/* ==========================================================================
   Company Message (代表挨拶) Page
   ========================================================================== */

.p-company-message-page {
  background: #fb9516;
}

.cm-message {
  overflow: hidden;
}

.cm-message img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Hero — Orange band + white arch (single element, top + bottom curves)
   -------------------------------------------------------------------------- */

.cm-hero {
  position: relative;
  z-index: 3;
  background: #fb9516;
  padding-top: 86px;
}

.cm-hero__arch {
  width: 100%;
  padding: clamp(70px, 7.1vw, 102px) clamp(30px, 12vw, 172px) clamp(120px, 14vw, 200px);
  background: linear-gradient(to bottom, #ffffff 0%, #f2f8f7 100%);
  border-top-left-radius: 50% clamp(300px, 40vw, 580px);
  border-top-right-radius: 50% clamp(300px, 40vw, 580px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Megaphone person illustration */
.cm-hero__illust {
  margin: 0 auto 40px;
  width: clamp(140px, 15.4vw, 222px);
}

.cm-hero__illust-img {
  width: 100%;
}

/* Title block: MESSAGE + 代表挨拶 */
.cm-hero__title-block {
  text-align: center;
}

.cm-hero__title {
  margin: 0 auto;
  width: clamp(280px, 27.7vw, 398.9px);
}

.cm-hero__subtitle {
  margin: 4px 0 0;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  color: #fbb03b;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Content — Photo + Message text + Signature (inside arch)
   -------------------------------------------------------------------------- */

.cm-content__inner {
  width: min(1066px, 100%);
  margin: 69px auto 0;
}

.cm-content__grid {
  display: grid;
  grid-template-columns: clamp(180px, 19.1vw, 275px) 1fr;
  gap: clamp(30px, 6.5vw, 94px);
  align-items: start;
}

/* President photo */
.cm-content__photo {
  margin: 0;
}

.cm-content__photo img {
  width: 100%;
  height: auto;
}

/* Message text */
.cm-content__text {
  color: #333333;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.77;
}

.cm-content__text p {
  margin: 0;
}

.cm-content__text p + p {
  margin-top: 1.77em;
}

/* Signature */
.cm-content__signature {
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-left: calc(clamp(180px, 19.1vw, 275px) + clamp(30px, 6.5vw, 94px));
}

.cm-content__sign-name {
  margin: 0;
  display: inline-block;
}

.cm-content__sign-name img {
  width: clamp(160px, 18.5vw, 267px);
}

.cm-content__sign-title {
  margin: clamp(4px, 0.5vw, 8px) 0 0;
  color: #333333;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Navigation Cards — PROFIEL + SDGs (inside arch)
   -------------------------------------------------------------------------- */

.cm-nav-cards__inner {
  width: min(1100px, 100%);
  margin: 146px auto 0;
  display: flex;
  justify-content: center;
  gap: clamp(30px, 5.2vw, 75px);
}

.cm-nav-cards__card {
  display: block;
  width: clamp(180px, 15.8vw, 228px);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cm-nav-cards__card:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.12));
}

.cm-nav-cards__card-img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   CTA — buttons on orange bg, white arch spacer below
   -------------------------------------------------------------------------- */

.cm-cta {
  position: relative;
  z-index: 1;
  background: #fb9516;
}

.cm-cta__buttons {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 48px);
  padding: 0 24px;
}

.cm-cta__button {
  display: block;
  width: clamp(200px, 23.82vw, 343px);
  aspect-ratio: 366 / 116;
  height: auto;
  line-height: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cm-cta__button:hover {
  transform: translateY(-3px);
  opacity: 0.88;
}

.cm-cta__button img {
  width: 100%;
  aspect-ratio: 366 / 116;
  height: auto;
  object-fit: contain;
}

/* White arch — buttons inside, decorative downward curve
   border-bottom-radius は .u-footer-arch から継承 */
.cm-cta__arch {
  width: 100%;
  background: linear-gradient(to bottom, #f2f8f7 0%, #ffffff 25%);
  height: clamp(400px, 42vw, 620px);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(120px, 13.5vw, 192px);
}

/* --------------------------------------------------------------------------
   Footer — curve fill color only (override handled by .has-footer-arch)
   -------------------------------------------------------------------------- */

.has-footer-arch.cm-message + .l-footer .l-footer__curve-path {
  fill: #fb9516;
}

/* --------------------------------------------------------------------------
   Responsive — 1200px (footer)
   -------------------------------------------------------------------------- */

/* 1200px footer override → .has-footer-arch に統合済み */

/* --------------------------------------------------------------------------
   Responsive — 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .cm-hero {
    padding-top: 80px;
  }

  .cm-hero__arch {
    padding: 70px 40px clamp(50px, 6vw, 80px);
  }

  .cm-content__grid {
    gap: 40px;
  }

  .cm-nav-cards__inner {
    margin-top: 80px;
  }

  .cm-cta__buttons {
    margin-top: 80px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — 767px
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .cm-hero {
    padding-top: 64px;
  }

  .cm-hero__arch {
    padding: 60px 24px 48px;
    border-top-left-radius: 50% 320px;
    border-top-right-radius: 50% 320px;
  }

  .cm-hero__illust {
    width: 130px;
  }

  .cm-hero__title {
    width: 280px;
  }

  .cm-content__inner {
    margin-top: 40px;
  }

  .cm-content__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cm-content__photo {
    width: min(250px, 80%);
    margin: 0 auto;
  }

  .cm-content__text {
    font-size: 14px;
  }

  .cm-content__signature {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-left: 0;
  }

  .cm-content__sign-name img {
    margin: 0 auto;
  }

  .cm-nav-cards__inner {
    margin-top: 40px;
    gap: 20px;
  }

  .cm-nav-cards__card {
    width: clamp(150px, 42vw, 200px);
  }

  .cm-cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 0;
  }

  .cm-cta__button {
    width: clamp(180px, 52vw, 260px);
  }

  .cm-cta__arch {
    height: 500px;
    padding-top: 60px;
    /* border-bottom-radius は .u-footer-arch から継承 */
  }
}

/* --------------------------------------------------------------------------
   Responsive — 480px
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .cm-hero {
    padding-top: 56px;
  }

  .cm-hero__arch {
    padding: 50px 16px 40px;
    border-top-left-radius: 50% 240px;
    border-top-right-radius: 50% 240px;
  }

  .cm-hero__illust {
    width: 110px;
  }

  .cm-hero__title {
    width: 220px;
  }

  .cm-hero__subtitle {
    font-size: 20px;
  }

  .cm-content__inner {
    margin-top: 32px;
  }

  .cm-content__photo {
    width: min(220px, 80%);
  }

  .cm-content__text {
    font-size: 13px;
  }

  .cm-content__sign-name img {
    width: 150px;
  }

  .cm-content__sign-title {
    font-size: 13px;
  }

  .cm-nav-cards__inner {
    margin-top: 32px;
  }

  .cm-nav-cards__card {
    width: clamp(130px, 40vw, 170px);
  }

  .cm-cta__button {
    width: min(220px, 65vw);
  }

  .cm-cta__arch {
    height: 420px;
    padding-top: 50px;
    /* border-bottom-radius は .u-footer-arch から継承 */
  }
}
