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

/* --------------------------------------------------------------------------
   Header — white logo & white menu button on orange
   -------------------------------------------------------------------------- */
.is-subpage .l-header__logo-img {
  filter: brightness(0) invert(1);
}

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

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

@media (max-width: 767px) {
  .is-subpage .l-header__logo-img {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .is-subpage .l-header__logo-img {
    width: 130px;
  }
}

/* --------------------------------------------------------------------------
   CTA Grid — CONTACT / NEWS / COMPANY / SDGs 4分割グリッド
   全サブページ共通で使用
   -------------------------------------------------------------------------- */
.p-cta-grid {
  position: relative;
  z-index: auto;
  padding: 38px 0 52px;
  background-color: transparent;
}

.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;
}

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

.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;
}

.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;
}

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

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

.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;
}

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

@media (max-width: 1200px) {
  .p-cta-grid {
    padding: 34px 0 46px;
  }

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

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

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

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

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

@media (max-width: 900px) {
  .p-cta-grid__box {
    width: 100%;
  }

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

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

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

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

@media (max-width: 620px) {
  .p-cta-grid__box {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

/* --------------------------------------------------------------------------
   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 を付与 → フッターオーバーライド自動適用
   ========================================================================== */

/* 下アーチ — 上アーチと同じ値で下向きカーブ（単一クラスで全ページ共通管理） */
.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;
}

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

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

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

@media (max-width: 1200px) {
  .has-footer-arch + .l-footer {
    padding-top: 160px;
  }

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

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

@media (max-width: 767px) {
  .has-footer-arch + .l-footer {
    padding-top: 120px;
  }
}

@media (max-width: 480px) {
  .has-footer-arch + .l-footer {
    padding-top: 80px;
  }
}
