/* ==========================================================================
   Company Top (Hub) Page
   ========================================================================== */

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

.cp-company {
  overflow: hidden;
}

.cp-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.cp-company img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Hub Section — Orange bg + white arch
   -------------------------------------------------------------------------- */

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

/* White arch container with top + bottom curves */
.cp-hub__arch {
  width: 100%;
  padding: clamp(70px, 7.1vw, 102px) clamp(30px, 6vw, 80px) clamp(200px, 22vw, 320px);
  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;
}

/* Island illustration */
.cp-hub__island {
  width: clamp(112px, 26.94vw, 388px);
  margin: 0 auto 56px;
}

.cp-hub__island-img {
  width: 100%;
}

/* COMPANY title with shadow */
.cp-hub__title-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 52px;
}

.cp-hub__title {
  position: relative;
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
  font-size: clamp(48px, 4.8vw, 70px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.cp-hub__title-main {
  position: relative;
  z-index: 1;
  color: #fbb03b;
}

.cp-hub__title-shadow {
  position: absolute;
  top: 7.5px;
  left: 8px;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(251, 176, 59, 0.25);
}

/* --------------------------------------------------------------------------
   Navigation Cards — 3 cards (228x363px, gap 75px)
   -------------------------------------------------------------------------- */

.cp-hub__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(700px, 72%);
}

/* 2x2 grid — no full-width first child */

.cp-hub__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(140px, 26vw, 260px);
  height: auto;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cp-hub__card:hover {
  transform: translateY(-6px);
}

/* Card with HTML text overlay (MVV etc.) — simple rounded border */
.cp-hub__card:has(.cp-hub__card-text) {
  border: 1px solid #fb9516;
  border-radius: 50%;
  aspect-ratio: 1 / 1.59;
  justify-content: center;
  padding: 10% 8%;
  box-sizing: border-box;
}

.cp-hub__card-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: clamp(30px, 4.5vw, 57px);
}

.cp-hub__card-en {
  font-family: "Hiragino Kaku Gothic Std", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Hiragino Sans", sans-serif;
  font-size: clamp(16px, 2.97vw, 30px);
  font-weight: 800;
  color: #fbb03b;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cp-hub__card-en--sdgs {
  font-size: clamp(17px, 1.52vw, 21.8px);
}

.cp-hub__card-ja {
  display: block;
  margin-top: clamp(6px, 0.8vw, 11px);
  font-family: "Hiragino Sans", "ヒラギノ角ゴシック", sans-serif;
  font-size: clamp(9px, 1.3vw, 14px);
  font-weight: 500;
  color: #fbb03b;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
}

.cp-hub__card-illust {
  position: static;
  width: 100%;
  padding: 0;
}

.cp-hub__card-illust img {
  width: 100%;
  max-height: none;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   CTA Buttons (inside .cp-hub__arch)
   -------------------------------------------------------------------------- */

.cp-cta__buttons {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3.3vw, 47px);
  margin-top: 60px;
  margin-bottom: 0;
}

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

.cp-cta__button-img {
  display: block;
  width: 100%;
  height: auto;
}

.cp-cta__button:hover {
  transform: scale(1.03);
}

/* Footer — curve fill color only (override handled by .has-footer-arch) */
.has-footer-arch.cp-company + .l-footer .l-footer__curve-path {
  fill: #f2f8f7;
}

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

@media (max-width: 1200px) {
  .cp-cta__buttons {
    margin-top: clamp(64px, 15.56vw, 224px);
  }

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

@media (max-width: 900px) {
  .cp-hub {
    padding-top: 74px;
  }

  .cp-hub__arch {
    padding: clamp(50px, 7vw, 70px) 30px clamp(50px, 6vw, 80px);
    border-top-left-radius: 50% clamp(200px, 40vw, 430px);
    border-top-right-radius: 50% clamp(200px, 40vw, 430px);
  }
}

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

  .cp-hub__arch {
    min-height: 300px;
    padding: 100px 20px 320px;
    border-top-left-radius: 50% 280px;
    border-top-right-radius: 50% 280px;
  }

  .cp-hub__title {
    font-size: clamp(40px, 10vw, 56px);
  }

  .cp-hub__title-shadow {
    top: 5px;
    left: 5px;
  }

  .cp-hub__title-wrap {
    margin-bottom: clamp(40px, 8vw, 60px);
  }

  .cp-hub__cards {
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 4vw, 40px);
    width: min(420px, 90%);
  }

  .cp-hub__card {
    width: clamp(140px, 40vw, 190px);
  }

  .cp-hub__card-illust {
    position: static;
    width: 100%;
    margin-left: 0;
  }

  .cp-hub__card-illust img {
    max-height: none;
  }

  .cp-cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: clamp(40px, 10vw, 80px);
    margin-bottom: 0;
  }

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

}

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

  .cp-hub__arch {
    min-height: 260px;
    padding: 80px 16px 240px;
    border-top-left-radius: 50% 200px;
    border-top-right-radius: 50% 200px;
  }

  .cp-hub__title {
    font-size: 36px;
  }

  .cp-hub__title-shadow {
    top: 4px;
    left: 4px;
  }

  .cp-hub__cards {
    width: min(340px, 92%);
    gap: 16px;
  }

  .cp-hub__card {
    width: clamp(130px, 40vw, 160px);
  }

  .cp-hub__card-en {
    font-size: 18px;
  }

  .cp-hub__card-en--sdgs {
    font-size: 16px;
  }

  .cp-hub__card-ja {
    font-size: 13px;
  }

  .cp-hub__card-illust {
    width: 100%;
  }

  .cp-hub__card-illust img {
    max-height: none;
  }

  .cp-cta__buttons {
    margin-top: clamp(32px, 8vw, 60px);
    margin-bottom: 0;
  }

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

}
