/* ==========================================================================
   SDGs Page — STELLA SDGs
   カンプ: Stellasdgs.jpg (1440x5002px)
   DESIGN-DATA: sdgs/DESIGN-DATA.md
   ========================================================================== */

/* --- Page Root --- */
.p-sdgs-page {
  background: #fb9516;
}

.p-sdgs img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Hero — Orange bg + white pill arch
   -------------------------------------------------------------------------- */

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

.p-sdgs-hero__arch {
  width: 100%;
  padding: clamp(70px, 7.1vw, 102px) clamp(30px, 6vw, 80px) clamp(100px, 10vw, 150px);
  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);
  border-bottom-left-radius: 50% clamp(300px, 40vw, 580px);
  border-bottom-right-radius: 50% clamp(300px, 40vw, 580px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Title — "STELLA SDGs" SVG image (Stellasdgs-02.svg)
   -------------------------------------------------------------------------- */

.p-sdgs-hero__title-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.p-sdgs-hero__title {
  margin: 0 auto;
  width: clamp(320px, 50vw, 720px);
}

.p-sdgs-hero__title-img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Description (left) + Globe (right) — horizontal row
   -------------------------------------------------------------------------- */

.p-sdgs-hero__content-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
  max-width: 1160px;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.p-sdgs-hero__desc {
  flex: 0 0 auto;
  width: clamp(280px, 60%, 700px);
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
  font-size: clamp(15px, 1.65vw, 23.7px);
  font-weight: 600;
  color: #4d4d4d;
  line-height: 1.9;
  text-align: left;
}

.p-sdgs-hero__desc mark {
  background: linear-gradient(transparent 50%, rgba(251, 149, 22, 0.45) 50%);
  color: inherit;
}

.p-sdgs-hero__globe {
  flex: 1;
  width: clamp(220px, 33vw, 477px);
  max-width: 477px;
}

/* --------------------------------------------------------------------------
   Trees banner + quote text
   banner-wrap を position: relative で包んで、quote を absolute 中心固定
   -------------------------------------------------------------------------- */

.p-sdgs-hero__banner-wrap {
  position: relative;
  width: 100%;
  max-width: 1160px;
}

.p-sdgs-hero__banner {
  width: 100%;
  display: block;
  /* SVG aspect ratio: 1647.98 × 678.49 = 0.412 */
}

/* Quote text — SVGの楕円中心に absolute 固定 */
/* 楕円中心: SVG縦の約63%あたり（木々が上40%、楕円が40%〜90%） */
.p-sdgs-hero__quote {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64%;
  text-align: center;
  pointer-events: none;
}

.p-sdgs-hero__quote-en {
  margin: 0 0 14px;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", sans-serif;
  font-size: clamp(16px, 1.94vw, 27.9px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.6;
}

.p-sdgs-hero__quote-ja {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", sans-serif;
  font-size: clamp(13px, 1.44vw, 20.8px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   ACTION GUIDELINES — section title + card grid
   -------------------------------------------------------------------------- */

.p-sdgs-guidelines {
  width: 100%;
  max-width: 1160px;
  margin-top: clamp(80px, 8vw, 146px);
}

.p-sdgs-guidelines__title-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: clamp(40px, 5vw, 80px);
}

.p-sdgs-guidelines__title {
  position: relative;
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", sans-serif;
  font-size: clamp(36px, 5vw, 72.5px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.p-sdgs-guidelines__title-main {
  position: relative;
  z-index: 1;
  color: #fb9516;
}

.p-sdgs-guidelines__title-shadow {
  position: absolute;
  top: 9px;
  left: 5px;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 2px rgba(251, 149, 22, 0.32);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Card Grid — 2 columns x 3 rows
   -------------------------------------------------------------------------- */

.p-sdgs-guidelines__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.p-sdgs-card {
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 50px);
  border: 2px solid #fb9516;
  border-radius: clamp(16px, 1.5vw, 20px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.p-sdgs-card__title {
  margin: 0 0 12px;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", sans-serif;
  font-size: clamp(22px, 2.4vw, 34.1px);
  font-weight: 800;
  color: #fb9516;
  line-height: 1.3;
}

.p-sdgs-card__subtitle {
  margin: 0 0 20px;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
  font-size: clamp(14px, 1.38vw, 19.8px);
  font-weight: 700;
  color: #4d4d4d;
  line-height: 1.5;
}

.p-sdgs-card__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
  font-size: clamp(14px, 1.38vw, 19.8px);
  font-weight: 700;
  color: #4d4d4d;
  line-height: 1.8;
}

.p-sdgs-card__list li::before {
  content: "・";
}

.p-sdgs-card__link {
  color: #7fc5c4;
  text-decoration: none;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
  font-size: clamp(14px, 1.38vw, 19.8px);
  font-weight: 700;
  transition: opacity 0.2s;
}

.p-sdgs-card__link:hover {
  opacity: 0.7;
}

/* SDG Icon badges */
.p-sdgs-card__icons {
  display: flex;
  gap: 0;
  margin-top: auto;
  padding-top: 20px;
}

.p-sdgs-card__icon {
  width: clamp(56px, 6.5vw, 93px);
  height: auto;
}

/* --------------------------------------------------------------------------
   Navigation Cards — PROFIEL + MESSAGE (SVG components)
   -------------------------------------------------------------------------- */

.p-sdgs-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5.2vw, 75px);
  margin-top: clamp(80px, 10vw, 146px);
}

.p-sdgs-nav__link {
  display: block;
  width: clamp(140px, 15.84vw, 228px);
  line-height: 0;
  transition: transform 0.25s ease;
}

.p-sdgs-nav__link:hover {
  transform: translateY(-6px);
}

.p-sdgs-nav__card-img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   CTA Buttons — CONTACT + NEWS (SVG components)
   -------------------------------------------------------------------------- */

.p-sdgs-cta {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3.3vw, 47px);
  margin-top: clamp(60px, 8vw, 120px);
  margin-bottom: 40px;
}

.p-sdgs-cta__link {
  display: block;
  width: clamp(200px, 23.82vw, 343px);
  line-height: 0;
  transition: transform 0.25s ease;
}

.p-sdgs-cta__link:hover {
  transform: scale(1.03);
}

.p-sdgs-cta__img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Footer Override
   -------------------------------------------------------------------------- */

main.p-sdgs + .l-footer .l-footer__curve-path {
  fill: #fb9516;
}

main.p-sdgs + .l-footer {
  margin-top: -1px;
  padding-top: 380px;
}

main.p-sdgs + .l-footer .l-footer__curve {
  display: none;
}

main.p-sdgs + .l-footer .l-footer__island--left {
  top: 160px;
}

main.p-sdgs + .l-footer .l-footer__island--right {
  top: 90px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  main.p-sdgs + .l-footer {
    padding-top: 300px;
  }

  main.p-sdgs + .l-footer .l-footer__island--left {
    top: 120px;
  }

  main.p-sdgs + .l-footer .l-footer__island--right {
    top: 60px;
  }
}

@media (max-width: 900px) {
  .p-sdgs-hero {
    padding-top: 74px;
  }

  .p-sdgs-hero__arch {
    padding: clamp(50px, 7vw, 70px) 30px clamp(60px, 8vw, 100px);
    border-top-left-radius: 50% clamp(200px, 40vw, 430px);
    border-top-right-radius: 50% clamp(200px, 40vw, 430px);
    border-bottom-left-radius: 50% clamp(200px, 40vw, 430px);
    border-bottom-right-radius: 50% clamp(200px, 40vw, 430px);
  }

  .p-sdgs-hero__content-row {
    flex-direction: column;
    align-items: center;
  }

  .p-sdgs-hero__desc {
    width: 100%;
    max-width: 600px;
    text-align: center;
  }

  .p-sdgs-hero__globe {
    width: clamp(220px, 55vw, 420px);
  }

  .p-sdgs-hero__quote {
    width: 65%;
  }

  .p-sdgs-hero__quote-en {
    line-height: 1.45;
    margin-bottom: 8px;
  }
}

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

  .p-sdgs-hero__arch {
    padding: 80px 20px 80px;
    border-top-left-radius: 50% 280px;
    border-top-right-radius: 50% 280px;
    border-bottom-left-radius: 50% 280px;
    border-bottom-right-radius: 50% 280px;
  }

  main.p-sdgs + .l-footer {
    padding-top: 200px;
  }

  .p-sdgs-hero__title {
    width: clamp(240px, 70vw, 480px);
  }

  .p-sdgs-hero__content-row {
    flex-direction: column;
    align-items: center;
  }

  .p-sdgs-hero__desc {
    width: 100%;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
  }

  .p-sdgs-hero__globe {
    width: clamp(200px, 60vw, 320px);
  }

  /* モバイル: SVG非表示、テキストのみ表示 */
  .p-sdgs-hero__banner {
    display: none !important;
  }

  .p-sdgs-hero__quote {
    position: static;
    transform: none;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .p-sdgs-hero__quote-en {
    font-size: clamp(14px, 4vw, 18px);
    color: #fb9516;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .p-sdgs-hero__quote-ja {
    font-size: clamp(12px, 3.5vw, 15px);
    color: #4d4d4d;
    line-height: 1.7;
  }

  .p-sdgs-guidelines__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-sdgs-guidelines__title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .p-sdgs-card {
    padding: 20px;
  }

  .p-sdgs-card__title {
    text-align: center;
  }

  .p-sdgs-card__subtitle {
    text-align: center;
  }

  .p-sdgs-card__list {
    text-align: left;
  }

  .p-sdgs-card__icons {
    justify-content: center;
  }

  .p-sdgs-card__icon {
    width: 56px;
  }

  .p-sdgs-nav {
    gap: 20px;
  }

  .p-sdgs-nav__link {
    width: clamp(120px, 35vw, 180px);
  }

  .p-sdgs-cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .p-sdgs-cta__link {
    width: clamp(180px, 52vw, 260px);
  }
}

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

  .p-sdgs-hero__arch {
    padding: 80px 16px 80px;
    border-top-left-radius: 50% 200px;
    border-top-right-radius: 50% 200px;
    border-bottom-left-radius: 50% 200px;
    border-bottom-right-radius: 50% 200px;
  }

  main.p-sdgs + .l-footer {
    padding-top: 140px;
  }

  .p-sdgs-hero__title {
    width: clamp(200px, 80vw, 360px);
  }

  .p-sdgs-nav__link {
    width: 120px;
  }
}
