/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: #f2f5f9;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* SP/PC 表示切り替え */
.sp-only { display: block; }
.pc-only { display: none; }

/* ============================================================
   PAGE HEADER  — SP base
   ============================================================ */
.page-header {
  position: relative;
  height: 369px;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  display: block;
}
.page-header__bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* タイトルエリア */
.page-header__title-wrap {
  position: absolute;
  top: 68px; left: 0; right: 0;
  height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.page-header__label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500; font-size: 12px;
  letter-spacing: 3px; color: rgba(255,255,255,0.9);
}
.page-header__title {
  font-weight: 700; font-size: 32px;
  letter-spacing: 2px; color: #fff;
}

/* ウェーブ */
.page-header__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 81px;
}
.page-header__wave img { width: 100%; height: 100%; object-fit: fill; display: block; }

/* ============================================================
   共通トークン
   ============================================================ */
.plan-tag {
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 12px 4px 12px 4px;
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.6px; color: #fff; line-height: 1;
}
.plan-tag--blue  { background: #00477b; }
.plan-tag--pink  { background: #c71781; }

.plan-location {
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.5px; color: #6e7c92; line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.plan-price {
  display: flex; align-items: baseline; gap: 4px;
  white-space: nowrap; line-height: 1;
}
.plan-price__yen {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500; font-size: 12px; color: #555;
}
.plan-price__num {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500; font-size: 16px; color: #555;
}
.plan-price__unit { font-weight: 500; font-size: 12px; color: #6e7c92; }

/* ============================================================
   PLANS SECTION  — SP base
   ============================================================ */
.plans-section {
  display: flex; flex-direction: column; gap: 22px;
  padding: 0 20px 40px;
  background: #fff;
}

/* SP Featured */
.featured { display: flex; flex-direction: column; gap: 12px; }
.featured__img-wrap {
  position: relative; height: 210px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(102,92,46,0.1);
}
.featured__img { width: 100%; height: 100%; object-fit: cover; }
.featured__meta { display: flex; align-items: flex-end; justify-content: space-between; }
.featured__text { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.featured__name { font-weight: 700; font-size: 17px; letter-spacing: 0.3px; color: #555; line-height: 1.5; }

/* Plan grid SP: 2-col */
.plan-grid { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.plan-row { display: flex; gap: 12px; min-width: 0; }
.plan-card { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
/* .pc-only とdisplay指定の詳細度が同じで負けてしまうため、SPでは明示的に非表示にする */
.plan-card.pc-only { display: none; }
.plan-card__img-wrap {
  position: relative; height: 196px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(102,92,46,0.1); flex-shrink: 0;
}
.plan-card__img { width: 100%; height: 100%; object-fit: cover; }
.plan-card__meta { display: flex; flex-direction: column; gap: 6px; }
.plan-card__title-price { display: flex; flex-direction: column; gap: 6px; }
.plan-card__name { font-weight: 700; font-size: 14px; letter-spacing: 0.2px; color: #555; line-height: 1.6; }

/* SP: すべて表示ボタン */
.btn-all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px;
  border: 1px solid #d5dee8;
  border-radius: 20px 8px 20px 8px;
  font-weight: 500; font-size: 13px; letter-spacing: 0.5px;
  color: #00477b; line-height: 1;
}

/* ============================================================
   OTHER CATEGORY  — SP base (2×2 grid)
   ============================================================ */
.other-cat {
  display: flex; flex-direction: column; gap: 24px;
  padding: 40px 0 0;
  background: #f2f5f9;
}
.other-cat__head {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 20px;
}
.other-cat__label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500; font-size: 12px; letter-spacing: 1.6px; color: #6e7c92;
}
.other-cat__title {
  font-weight: 700; font-size: 22px; letter-spacing: 0.4px; color: #333; line-height: 1.4;
}

.cat-grid {
  display: flex; flex-wrap: wrap;
}

.cat-card {
  position: relative;
  width: 50%; height: 197px;
  overflow: hidden;
  box-shadow: 0 8px 12px rgba(102,92,46,0.12);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 32px rgba(102,92,46,0.22);
}
.cat-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.cat-card:hover .cat-card__img { transform: scale(1.04); }
.cat-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.cat-num-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 14px;
  border-radius: 16px 4px 16px 4px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 0.8px; color: #fff;
}
.cat-num-tag--blue { background: #00477b; }
.cat-num-tag--pink { background: #c71781; }

.cat-card__body {
  position: absolute; left: 0; right: 0;
  top: 103px; height: 83px;
  padding: 14px 14px 0;
  display: flex; flex-direction: column; gap: 4px; color: #f2f5f9;
}
.cat-card__en { font-family: 'Josefin Sans', sans-serif; font-weight: 500; font-size: 10px; line-height: 1; }
.cat-card__name { font-weight: 700; font-size: 16px; line-height: 1; }
.cat-card__desc { font-weight: 500; font-size: 10px; line-height: 1.4; }
.cat-card__arrow {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  font-family: 'Josefin Sans', sans-serif; font-size: 10px; line-height: 1; margin-top: auto;
}
.cat-card__arrow span:last-child { font-weight: 700; font-size: 11px; }

/* ============================================================
   BOTTOM CTA  — SP base (fixed bar)
   ============================================================ */
.bottom-cta {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 375px;
  display: flex; align-items: center; gap: 12px;
  padding: 17px 16px 17px 20px;
  background: #fff;
  box-shadow: 0 -3px 14px rgba(102,92,46,0.1);
  z-index: 100;
}
.bottom-cta__left { flex: 1; min-width: 0; }
.bottom-cta__text {
  font-weight: 700; font-size: 12px; color: #555; line-height: 1.7;
}
.bottom-cta__btn {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px;
  background: #06c755;
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 4px 12px rgba(6,199,85,0.3);
  font-weight: 700; font-size: 14px; letter-spacing: 0.4px;
  color: #fff; white-space: nowrap; line-height: 1;
}

/* SP body padding for fixed bar */
body { padding-bottom: 80px; }

/* ============================================================
   PC MEDIA QUERY  ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .sp-only { display: none !important; }
  .pc-only { display: block; }

  /* !important でユーティリティ .pc-only { display: block } による上書きを防ぐ */
  .plan-card.pc-only {
    display: flex !important;
  }

  body { padding-bottom: 0; background: #fff; }

  /* --- Page Header --- */
  .page-header { height: 541px; }

  .page-header__overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.5));
  }

  /* タイトル */
  .page-header__title-wrap {
    top: 80px; height: 380px; gap: 16px;
  }
  .page-header__label { font-size: 14px; letter-spacing: 4px; }
  .page-header__title { font-size: 64px; letter-spacing: 4px; }
  .page-header__subtitle {
    display: block;
    font-weight: 500; font-size: 15px;
    letter-spacing: 1px; color: rgba(255,255,255,0.85);
  }

  /* Wave */
  .page-header__wave { height: 81px; bottom: 0; top: auto; }

  /* --- Breadcrumb --- */
  .breadcrumb {
    display: flex; gap: 8px; align-items: center;
    padding: 48px 120px 24px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500; font-size: 11px; letter-spacing: 2.5px;
  }
  .breadcrumb__item { color: #6e7c92; }
  .breadcrumb__item--active { color: #00477b; }
  .breadcrumb__sep { color: rgba(110,124,146,0.5); }

  /* --- Plans Section --- */
  .plans-section {
    gap: 56px; padding: 0 120px 80px;
    background: #fff;
  }

  /* PC Featured (horizontal) */
  .featured-pc {
    display: flex;
    background: #f2f5f9;
    border-radius: 12px;
    overflow: hidden;
  }
  .featured-pc__img {
    flex: 1 1 55%; min-width: 280px; position: relative;
    min-height: 420px;
  }
  .featured-pc__img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
  }
  .featured-pc__body {
    flex: 1 1 45%; min-width: 280px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 40px; padding: 56px;
  }
  .featured-pc__upper { display: flex; flex-direction: column; gap: 16px; }
  .featured-badge {
    display: inline-flex; align-items: center;
    align-self: flex-start;
    padding: 10px 14px 6px;
    background: #00477b;
    border-radius: 14px 4px 4px 4px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700; font-size: 11px; letter-spacing: 2px; color: #fff;
  }
  .featured-pc__name {
    font-weight: 700; font-size: 30px; line-height: 44px; color: #555;
  }
  .featured-pc__desc {
    font-weight: 500; font-size: 16px; line-height: 2;
    letter-spacing: 0.8px; color: #555;
  }
  .featured-pc__lower {
    display: flex; align-items: center; justify-content: space-between;
  }
  .plan-price--lg .plan-price__yen { font-size: 18px; }
  .plan-price--lg .plan-price__num { font-size: 30px; }
  .plan-price--lg .plan-price__unit { font-size: 14px; }
  .featured-pc__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    border: 1px solid #00477b;
    border-radius: 30px 8px 30px 8px;
    font-weight: 500; font-size: 13px; color: #00477b;
  }

  /* Plan grid PC: 3-col */
  .plan-grid { gap: 32px; }
  .plan-row { gap: 24px; }

  .plan-card__img-wrap { height: 280px; border-radius: 8px; }
  .plan-card__meta { gap: 8px; }
  .plan-card__title-price {
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 12px;
  }
  .plan-card__name { font-size: 18px; line-height: 1.56; }
  .plan-tag {
    top: 16px; left: 16px;
    border-radius: 14px 4px 14px 4px;
    padding: 6px 14px;
  }
  .plan-price__num { font-size: 20px; }
  .plan-price__yen { font-size: 13px; }

  /* Pagination */
  .pager {
    display: flex; flex-direction: column;
    align-items: center; gap: 16px;
  }
  .pager__controls { display: flex; gap: 10px; align-items: center; }
  .pager__btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid rgba(0,71,123,0.35);
    border-radius: 999px; background: transparent; cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500; font-size: 14px; letter-spacing: 1px; color: #00477b;
  }
  .pager__btn--active {
    background: #00477b; border-color: #00477b;
    color: #fff; font-weight: 700;
  }
  .pager__btn--disabled { opacity: 0.4; }
  .pager__btn--arrow { font-size: 18px; }
  .pager__info {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500; font-size: 12px;
    letter-spacing: 2px; color: #6e7c92;
  }

  /* --- Other Category PC: 4-col horizontal --- */
  .other-cat { padding: 80px 0 96px; gap: 48px; }
  .other-cat__head { padding: 0 120px; }
  .other-cat__label { font-size: 13px; letter-spacing: 3px; }
  .other-cat__title { font-size: 32px; letter-spacing: 1px; color: #00477b; }

  .cat-grid { flex-wrap: nowrap; }
  .cat-card { width: 25%; height: 424px; }
  .cat-card__body {
    top: 266px; height: auto;
    padding: 24px 24px 0;
    flex-direction: row; flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
  }
  .cat-card__body > *:not(.cat-card__arrow) { flex: 0 0 100%; }
  .cat-card__en { font-size: 12px; letter-spacing: 1.6px; }
  .cat-card__name { font-size: 22px; letter-spacing: 0.4px; }
  .cat-card__desc { font-size: 13px; line-height: 1.8; }
  .cat-card__arrow {
    flex: 1; justify-content: flex-end;
    font-size: 11px; letter-spacing: 1.2px;
    margin-top: 0;
  }
  .cat-card__arrow span:last-child { font-size: 12px; }

  /* --- Bottom CTA PC: static horizontal --- */
  .bottom-cta {
    position: static;
    width: auto; transform: none;
    padding: 28px 120px;
    border-top: 1px solid rgba(0,71,123,0.12);
    box-shadow: none;
    background: #fff;
  }
  .bottom-cta__left { display: flex; flex-direction: column; gap: 4px; }
  .bottom-cta__advisor {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500; font-size: 11px;
    letter-spacing: 2.5px; color: #6e7c92;
  }
  .bottom-cta__text {
    font-size: 18px; color: #00477b; font-weight: 700;
    line-height: normal;
  }
  .bottom-cta__btn {
    padding: 18px 32px;
    background: #00b900;
    border-radius: 28px 8px 28px 8px;
    font-size: 15px;
  }

  /* --- Footer --- */
  .site-footer {
    background: #00477b; color: #fff;
    padding: 60px 120px 40px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .site-footer__brand {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700; font-size: 18px; letter-spacing: 2.5px;
  }
  .site-footer__copy { font-weight: 500; font-size: 11px; }
}
