/* ==========================================================================
   Sub-page Common Styles
   トップページ以外の全ページで使用
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header — white logo & white menu button on orange
   -------------------------------------------------------------------------- */

.is-subpage .l-header__logo-img {
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {

.is-subpage .l-header__logo-img {
    width: 150px;
}
  }

@media (max-width: 480px) {

.is-subpage .l-header__logo-img {
    width: 130px;
}
  }

.is-subpage .l-header__menu-btn {
  background-color: #ffffff;
}

.is-subpage .l-header__menu-line {
  background-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   CTA Grid — CONTACT / NEWS / COMPANY / SDGs 4分割グリッド
   全サブページ共通で使用
   -------------------------------------------------------------------------- */

.p-cta-grid {
  position: relative;
  z-index: auto;
  padding: 38px 0 52px;
  background-color: transparent;
}

@media (max-width: 1200px) {

.p-cta-grid {
    padding: 34px 0 46px;
}
  }

@media (max-width: 620px) {

.p-cta-grid {
    padding: 28px 0 40px;
}
  }

.p-cta-grid__box {
  position: relative;
  z-index: 4;
  width: min(1120px, 92vw);
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}

@media (max-width: 1200px) {

.p-cta-grid__box {
    width: min(1020px, 93vw);
}
  }

@media (max-width: 900px) {

.p-cta-grid__box {
    width: 100%;
}
  }

@media (max-width: 620px) {

.p-cta-grid__box {
    grid-template-columns: 1fr;
}
  }

.p-cta-grid__cell {
  position: relative;
  padding: 24px 86px 22px 48px;
  text-align: left;
  min-height: 142px;
}

@media (max-width: 1200px) {

.p-cta-grid__cell {
    padding: 20px 72px 18px 34px;
    min-height: 128px;
}
  }

@media (max-width: 900px) {

.p-cta-grid__cell {
    min-height: 106px;
    padding: 16px 64px 15px 20px;
}
  }

@media (max-width: 620px) {

.p-cta-grid__cell {
    padding: 14px 54px 13px 16px;
    min-height: 92px;
}
  }

.p-cta-grid__cell:nth-child(1),
.p-cta-grid__cell:nth-child(2) {
  border-bottom: 1px solid #ededed;
}

.p-cta-grid__cell:nth-child(1),
.p-cta-grid__cell:nth-child(3) {
  border-right: 1px solid #ededed;
}

@media (max-width: 620px) {

.p-cta-grid__cell:nth-child(1),
.p-cta-grid__cell:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid #ededed;
}
  }

@media (max-width: 620px) {

.p-cta-grid__cell:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #ededed;
}
  }

.p-cta-grid__label {
  display: block;
  font-size: clamp(14px, 1.23vw, 18px);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

@media (max-width: 620px) {

.p-cta-grid__label {
    font-size: 11px;
    margin-bottom: 4px;
}
  }

.p-cta-grid__title {
  display: block;
  width: auto;
  height: 42px;
  margin-bottom: 8px;
}

@media (max-width: 1200px) {

.p-cta-grid__title {
    height: 34px;
}
  }

@media (max-width: 900px) {

.p-cta-grid__title {
    height: 28px;
    margin-bottom: 5px;
}
  }

@media (max-width: 620px) {

.p-cta-grid__title {
    height: 23px;
}
  }

.p-cta-grid__text {
  font-size: clamp(14px, 1.25vw, 18px);
  color: #333333;
  line-height: 1.65;
  font-weight: 500;
}

@media (max-width: 1200px) {

.p-cta-grid__text {
    font-size: 13px;
}
  }

@media (max-width: 900px) {

.p-cta-grid__text {
    font-size: 14px;
    line-height: 1.45;
}
  }

@media (max-width: 620px) {

.p-cta-grid__text {
    font-size: 12px;
}
  }

.p-cta-grid__arrow {
  position: absolute;
  right: 26px;
  top: 50%;
  width: 36px;
  height: auto;
  transform: translateY(-50%) scale(1);
  transform-origin: center;
  transition: transform 0.25s ease;
}

@media (max-width: 1200px) {

.p-cta-grid__arrow {
    width: 32px;
    right: 20px;
}
  }

@media (max-width: 900px) {

.p-cta-grid__arrow {
    width: 30px;
    right: 16px;
}
  }

@media (max-width: 620px) {

.p-cta-grid__arrow {
    width: 24px;
    right: 12px;
}
  }

.p-cta-grid__cell:hover .p-cta-grid__arrow {
  transform: translateY(-50%) scale(1.18);
}

/* --------------------------------------------------------------------------
   Footer — COMPANY sub-navigation list
   -------------------------------------------------------------------------- */

.l-footer__nav-sublist {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.l-footer__nav-sublist li {
  position: relative;
  padding-left: 13px;
}

.l-footer__nav-sublist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Shared Footer Arch — アーチ付きページ共通
   <main> に .has-footer-arch を付与 → フッターオーバーライド自動適用
   ========================================================================== */

/* 上下アーチ — 白コンテンツ div に付与、親のオレンジ背景が角から見える
   border-radius: 50% / Y で上下対称のドーム形状を作る */

.u-arch {
  border-radius: 50% / clamp(300px, 40vw, 580px);
}

@media (max-width: 900px) {

.u-arch {
    border-radius: 50% / clamp(200px, 40vw, 430px);
}
  }

@media (max-width: 767px) {

.u-arch {
    border-radius: 50% / 280px;
}
  }

@media (max-width: 480px) {

.u-arch {
    border-radius: 50% / 200px;
}
  }

/* 上アーチのみ — hero セクション等で使用 */

.u-top-arch {
  border-top-left-radius: 50% clamp(300px, 40vw, 580px);
  border-top-right-radius: 50% clamp(300px, 40vw, 580px);
}

@media (max-width: 900px) {

.u-top-arch {
    border-top-left-radius: 50% clamp(200px, 40vw, 430px);
    border-top-right-radius: 50% clamp(200px, 40vw, 430px);
}
  }

@media (max-width: 767px) {

.u-top-arch {
    border-top-left-radius: 50% 280px;
    border-top-right-radius: 50% 280px;
}
  }

@media (max-width: 480px) {

.u-top-arch {
    border-top-left-radius: 50% 200px;
    border-top-right-radius: 50% 200px;
}
  }

/* 下アーチのみ — 上アーチと同じ値で下向きカーブ（単一クラスで全ページ共通管理） */

.u-footer-arch {
  border-bottom-left-radius: 50% clamp(300px, 40vw, 580px);
  border-bottom-right-radius: 50% clamp(300px, 40vw, 580px);
}

@media (max-width: 900px) {

.u-footer-arch {
    border-bottom-left-radius: 50% clamp(200px, 40vw, 430px);
    border-bottom-right-radius: 50% clamp(200px, 40vw, 430px);
}
  }

@media (max-width: 767px) {

.u-footer-arch {
    border-bottom-left-radius: 50% 280px;
    border-bottom-right-radius: 50% 280px;
}
  }

@media (max-width: 480px) {

.u-footer-arch {
    border-bottom-left-radius: 50% 200px;
    border-bottom-right-radius: 50% 200px;
}
  }

/* フッターオーバーライド */

.has-footer-arch + .l-footer {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding-top: 200px;
}

@media (max-width: 1200px) {

.has-footer-arch + .l-footer {
    padding-top: 160px;
}
  }

@media (max-width: 767px) {

.has-footer-arch + .l-footer {
    padding-top: 120px;
}
  }

@media (max-width: 480px) {

.has-footer-arch + .l-footer {
    padding-top: 80px;
}
  }

.has-footer-arch + .l-footer .l-footer__curve {
  display: none;
}

.has-footer-arch + .l-footer .l-footer__island--left {
  top: 100px;
}

@media (max-width: 1200px) {

.has-footer-arch + .l-footer .l-footer__island--left {
    top: 80px;
}
  }

.has-footer-arch + .l-footer .l-footer__island--right {
  top: 50px;
}

@media (max-width: 1200px) {

.has-footer-arch + .l-footer .l-footer__island--right {
    top: 40px;
}
  }

/* ==========================================================================
   全ページ共通: main 背景グラデーション（白→薄緑）
   sections.css は @layer(base) 内のため、layer 外の page-*.css に負ける。
   page-common.css は layer 外で読み込まれるためここに配置。
   ========================================================================== */

main {
  background: linear-gradient(180deg,
    #ffffff 0%,
    #f7fcfb 20%,
    #f3faf8 35%,
    #f0f6f4 50%,
    #edf5f2 65%,
    #edf5f2 100%
  );
}
