/* =========================================
MESSAGE PAGE
代表挨拶ページ専用
========================================= */

/* =========================================
Message Page (Integrated)
========================================= */
.message-lead-label,
.message-contact-label,
.message-values-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef8f7;
  color: #2c7a7b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.message-lead-title {
  white-space: pre-line;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.message-quote-box {
  position: relative;
  padding: 48px 40px 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  box-shadow: 0 18px 42px rgba(44, 122, 123, 0.08);
  text-align: center;
}

.message-quote-mark {
  position: absolute;
  top: 14px;
  left: 28px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(44, 122, 123, 0.18);
}

.message-quote-text {
  font-size: 1.2rem;
  line-height: 2;
  color: #435555;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.message-quote-source {
  margin-top: 14px;
  color: #6f8080;
  font-size: 0.95rem;
  line-height: 1.8;
}

.message-profile-wrap {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.message-profile-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  box-shadow: 0 18px 42px rgba(44, 122, 123, 0.08);
  text-align: center;
}

.message-profile-role {
  margin: 0 0 10px;
  color: #2c7a7b;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.message-profile-name {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.04em;
}

.message-profile-note {
  color: #6c7b7b;
  font-size: 0.92rem;
  line-height: 1.8;
}

.message-profile-texts {
  max-width: 820px;
  font-size: 17px;
  line-height: 2.05;
}

.message-profile-texts .page-paragraph + .page-paragraph {
  margin-top: 22px;
}

.message-card-grid {
  align-items: stretch;
}

.message-card {
  position: relative;
  overflow: hidden;
}

.message-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #70b8b0 0%, #9cd4ce 100%);
}

.message-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 32px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3fbfa;
  color: #2c7a7b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.message-profile-photo-wrap {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfa 100%);
  box-shadow: 0 20px 40px rgba(44, 122, 123, 0.12);
}

.message-profile-photo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.message-qualifications {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #dbe9e8;
  text-align: left;
}

.message-qualifications h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #2c7a7b;
  letter-spacing: 0.04em;
}

.message-qualification-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.message-qualification-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.8;
  color: #445757;
}

.message-qualification-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #7fcfca;
  transform: translateY(-50%);
}

.message-catch {
  margin-bottom: 28px;
  color: #435555;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.02em;
}

.message-profile-texts .page-paragraph {
  font-size: 1.08rem;
  line-height: 2.05;
  color: #435555;
  letter-spacing: 0.01em;
}

.message-profile-texts .page-paragraph.strong {
  margin: 30px 0;
  color: #2c7a7b;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.message-signature {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-signature::before {
  display: none;
}

.message-signature img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 4px 10px rgba(44, 122, 123, 0.12));
}

/* =========================================
VALUES SECTION
========================================= */
.message-values-section {
  padding-top: 40px;
  padding-bottom: 24px;
}

.message-values-panel {
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  border: 1px solid #dfeeed;
  box-shadow: 0 18px 42px rgba(44, 122, 123, 0.08);
  text-align: center;
}

.message-values-title {
  margin-bottom: 18px;
}

.message-values-text {
  max-width: 780px;
  margin: 0 auto 32px;
  color: #556868;
  font-size: 1rem;
  line-height: 1.95;
}

.message-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.message-values-card {
  height: 100%;
  padding: 28px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
  border: 1px solid #e2efee;
  box-shadow: 0 10px 24px rgba(44, 122, 123, 0.06);
}

.message-values-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 30px;
  margin-bottom: 16px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8f7;
  color: #2c7a7b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.message-values-card h3 {
  margin: 0 0 14px;
  color: #2c7a7b;
  font-size: 1.2rem;
  line-height: 1.55;
}

.message-values-card p {
  margin: 0;
  color: #556868;
  font-size: 0.98rem;
  line-height: 1.9;
}

/* =========================================
代表者挨拶ページだけ CTA の区切りを強化
========================================= */
.page-message .cta {
  margin-top: 72px;
  padding: 72px 20px;
  background: #f6fbfa;
}

.page-message .cta-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-message .cta-title {
  margin-bottom: 18px;
}

.page-message .cta-desc,
.page-message .cta-text {
  margin-bottom: 24px;
}

/* =========================================
Responsive
========================================= */
@media screen and (max-width: 1024px) {
  .message-profile-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message-profile-texts {
    max-width: 100%;
  }

  .message-values-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  .message-quote-box,
  .message-profile-card,
  .message-values-panel {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .message-lead-title {
    margin-bottom: 20px;
  }

  .message-quote-mark {
    left: 18px;
    font-size: 3rem;
  }

  .message-quote-text {
    font-size: 1rem;
    line-height: 1.9;
  }

  .message-quote-source {
    font-size: 0.9rem;
  }

  .message-profile-photo-wrap {
    border-radius: 22px;
  }

  .message-qualifications {
    margin-top: 22px;
    padding-top: 20px;
  }

  .message-profile-texts {
    font-size: 16px;
  }

  .message-catch {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.95;
  }

  .message-profile-texts .page-paragraph {
    font-size: 1rem;
    line-height: 1.95;
  }

  .message-profile-texts .page-paragraph.strong {
    font-size: 1.05rem;
    line-height: 1.9;
  }

  .message-signature {
    margin-top: 28px;
  }

  .message-signature img {
    width: min(100%, 220px);
  }

  .message-values-section {
    padding-top: 28px;
    padding-bottom: 8px;
  }

  .message-values-text {
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .message-values-grid {
    gap: 16px;
  }

  .message-values-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .message-values-card h3 {
    font-size: 1.08rem;
  }

  .message-values-card p {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .page-message .cta {
    margin-top: 56px;
    padding: 48px 20px;
  }
}

/* VALUESセクションの横幅を完全に揃える */
.message-values-panel {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 中のコンテンツにだけ余白を持たせる */
.message-values-panel .section-heading,
.message-values-panel .message-values-grid {
  padding-left: 40px;
  padding-right: 40px;
}

/* =========================
VALUES 横幅完全統一（最終版）
========================= */

/* 外枠は full幅に合わせる */
.message-values-panel {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 内側だけ余白を持たせる */
.message-values-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* スマホ */
@media screen and (max-width: 767px) {
  .message-values-inner {
    padding: 0 20px;
  }
}

@media screen and (max-width: 767px) {
  .message-values-inner {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .message-values-card {
    padding: 18px 14px !important;
  }

  .message-values-card p {
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
  }
}

@media screen and (max-width: 767px) {
  .message-values-text {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* =========================
代表挨拶 リード文 リセット版
========================= */

/* 既存の pre-line を打ち消して、見出し全体を普通の箱に戻す */
.message-lead-title {
  white-space: normal !important;
  text-align: center;
  margin-bottom: 70px !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
}

/* 3行を個別制御 */
.lead-top,
.lead-main {
  display: block;
  margin: 0;
  padding: 0;
}

/* 1行目：少し小さく */
.lead-top {
  font-size: clamp(1.7rem, 2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 6px;
  opacity: 0.95;
}

/* 2行目・3行目：主役 */
.lead-main {
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* 2行目と3行目の間は自然な改行だけに近づける */
.lead-main + .lead-main {
  margin-top: 0px;
}

/* PCでは <br> を使わない */
.sp-br {
  display: none;
}

/* スマホだけ自然に縮める */
@media screen and (max-width: 767px) {
  .message-lead-title {
    margin: 0 0 24px !important;
  }

  .lead-top {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }

  .lead-main {
    font-size: 1.75rem;
    line-height: 1.24;
  }
}
