/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #888; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: #f2f5f9;
  overflow-x: hidden;
  padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

.sp-only { display: block; }
.pc-only { display: none; }

/* ============================================================
   PAGE HEADER — SP base
   ============================================================ */
.page-header {
  position: relative;
  height: 369px;
  overflow: hidden;
}
.page-header__bg-wrap {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
}
.page-header__bg {
  width: 100%; height: 100%; object-fit: cover;
}
.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: 12px;
  padding: 0 18px;
}
.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); white-space: nowrap;
}
.page-header__title {
  font-weight: 700; font-size: 36px;
  letter-spacing: 3px; color: #fff; white-space: nowrap;
}
.page-header__desc {
  font-weight: 500; font-size: 14px;
  line-height: 2; letter-spacing: 0.7px;
  color: rgba(255,255,255,0.85);
  text-align: center; width: 100%; max-width: 339px;
}

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

/* ============================================================
   共通トークン
   ============================================================ */
.plan-location {
  font-weight: 500; font-size: 11px;
  letter-spacing: 0.5px; color: #6e7c92; line-height: 1;
}
.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; letter-spacing: 0.5px; color: #555;
}
.plan-price__num {
  font-family: 'Josefin Sans', sans-serif; font-weight: 500;
  font-size: 16px; letter-spacing: 0.3px; color: #555;
}
.plan-price__unit { font-weight: 500; font-size: 12px; color: #6e7c92; }

.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-label {
  font-family: 'Josefin Sans', sans-serif; font-weight: 500;
  font-size: 12px; letter-spacing: 1.6px; color: #6e7c92; line-height: 1;
}
.section-title {
  font-weight: 700; font-size: 22px;
  letter-spacing: 0.4px; color: #333; line-height: 1.4;
}

/* ============================================================
   CONTENT WRAPPER — SP
   ============================================================ */
.content {
  display: flex; flex-direction: column; gap: 44px;
  background: #fff; padding: 0 20px 40px;
}

/* ============================================================
   PLANS SECTION — SP
   ============================================================ */
.plans-section { display: flex; flex-direction: column; gap: 22px; }

/* Featured: SP vertical */
.featured { display: flex; flex-direction: column; gap: 12px; }
.featured__img-wrap {
  height: 210px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(102,92,46,0.1);
}
.featured__img,
.featured__img-wrap picture,
.featured__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.featured__body { display: flex; flex-direction: column; gap: 12px; }
.featured__upper { display: flex; flex-direction: column; gap: 6px; }
.featured__name {
  font-weight: 700; font-size: 17px;
  letter-spacing: 0.3px; color: #555; line-height: 1.5;
}
.featured__desc {
  font-weight: 500; font-size: 14px;
  line-height: 2; letter-spacing: 0.7px; color: #555;
}
.featured__lower {
  display: flex; align-items: center; justify-content: flex-end;
}

/* Plan grid: SP 2-col */
.plan-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px 12px;
}
.plan-card { display: flex; flex-direction: column; gap: 10px; }
.plan-card__img-wrap {
  height: 196px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(102,92,46,0.1);
}
.plan-card__img,
.plan-card__img-wrap picture,
.plan-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-card__meta { 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;
}

/* すべて表示 */
.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 2×2
   ============================================================ */
.other-cat { display: flex; flex-direction: column; gap: 24px; }
.other-cat__head { /* inherits section-head styles */ }

.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__pic {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
}
.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; }

/* SP: body is a column */
.cat-card__body {
  position: absolute; left: 0; right: 0;
  top: 103px; height: 80px; padding: 14px 14px 0;
  display: flex; flex-direction: column; gap: 0; color: #f2f5f9;
}
.cat-card__left { display: flex; flex-direction: column; gap: 4px; }
.cat-card__right { margin-top: auto; }
.cat-card__en {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500; font-size: 10px; line-height: 1; white-space: nowrap;
}
.cat-card__name { font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; }
.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; white-space: nowrap;
}
.cat-card__arrow span:last-child { font-weight: 700; font-size: 11px; }

/* ============================================================
   BOTTOM CTA — SP fixed
   ============================================================ */
.bottom-cta {
  position: fixed; bottom: 0;
  left: 0; right: 0; width: auto;
  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: 500; 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;
}

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

  html { background: #fff; }
  body { max-width: none; 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));
  }

  /* Title wrap */
  .page-header__title-wrap {
    top: 80px; height: 380px; gap: 14px;
  }
  .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);
  }
  .page-header__desc {
    font-size: 16px; letter-spacing: 0.8px;
    line-height: 2; width: 640px;
  }

  /* Wave */
  .page-header__wave { top: 460px; }

  /* --- 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); }

  /* --- Content wrapper --- */
  .content { padding: 0; gap: 0; background: transparent; }

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

  .section-label { font-size: 13px; letter-spacing: 3px; }
  .section-title { font-size: 32px; letter-spacing: 1px; color: #00477b; }

  /* Featured: PC horizontal */
  .featured {
    flex-direction: row; gap: 0;
    background: #f2f5f9; border-radius: 12px; overflow: hidden;
  }
  .featured__img-wrap {
    flex: 0 0 60%; width: auto; height: auto;
    border-radius: 0; min-height: 420px;
    box-shadow: none; position: relative;
  }
  .featured__img-wrap picture {
    position: absolute; inset: 0; display: block;
    width: 100%; height: 100%;
  }
  .featured__img-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
  }
  .featured__body {
    flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
    justify-content: space-between; gap: 40px; padding: 56px;
  }
  .featured__upper {
    flex-direction: column; gap: 16px;
    display: flex;
  }
  .featured-badge,
  span.badge {
    display: inline-flex; align-items: center;
    align-self: flex-start;
    padding: 9px 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__name { font-size: 30px; line-height: 44px; }
  .featured__desc { font-size: 16px; letter-spacing: 0.8px; }
  .featured__lower {
    display: flex; align-items: center; justify-content: space-between;
  }
  .featured__lower .plan-price__yen { font-size: 18px; }
  .featured__lower .plan-price__num { font-size: 30px; }
  .featured__lower .plan-price__unit { font-size: 14px; }
  .featured__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;
    position: relative; overflow: hidden; z-index: 1;
    transition: color 0.35s ease;
  }
  .featured__btn::before {
    content: '';
    position: absolute; inset: 0;
    background: #00477b;
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
    z-index: -1;
  }
  .featured__btn:hover { color: #fff; }
  .featured__btn:hover::before { transform: scaleX(1); }

  /* Plan grid: PC 4-col */
  .plan-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .plan-card__img-wrap { height: 220px; border-radius: 8px; }
  .plan-card__meta { gap: 6px; }
  .plan-card__name { font-size: 16px; line-height: 1.6; }
  .plan-card__meta .plan-price__yen { font-size: 13px; }
  .plan-card__meta .plan-price__num { font-size: 20px; }

  /* 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 {
    background: #f2f5f9; padding: 80px 0 96px; gap: 48px;
  }
  .other-cat__head { padding: 0 120px; }

  .cat-grid { flex-wrap: nowrap; }
  .cat-card { width: 25%; height: 424px; }

  /* PC body: row layout */
  .cat-card__body {
    top: 266px; height: auto;
    padding: 24px;
    flex-direction: row; gap: 10px;
    align-items: flex-end; justify-content: flex-end;
  }
  .cat-card__left {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .cat-card__right {
    flex: 1; display: flex; align-items: flex-start; margin-top: 0;
  }
  .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 {
    font-size: 11px; letter-spacing: 1.2px;
    justify-content: flex-end; width: 100%;
    gap: 6px;
  }
  .cat-card__arrow span:last-child { font-size: 12px; }

  /* --- Bottom CTA: PC static --- */
  .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-weight: 700; font-size: 18px;
    color: #00477b; line-height: normal;
  }
  .bottom-cta__btn {
    padding: 18px 32px; font-size: 15px;
    background: #00b900;
    border-radius: 28px 8px 28px 8px;
  }

  /* --- 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; }
}

/* ============================================================
   PC NARROW  1024px – 1279px：120pxパディングが狭いので縮小
   ============================================================ */
@media (min-width: 1024px) and (max-width: 1279px) {
  .breadcrumb { padding: 40px 48px 20px; }
  .plans-section { padding: 0 48px 64px; }
  .other-cat__head { padding: 0 48px; }
  .site-footer { padding: 48px 48px 32px; }

  .featured__img-wrap { flex-basis: 50%; min-height: 360px; }
  .featured__body { padding: 36px; gap: 28px; }
  .featured__name { font-size: 24px; line-height: 36px; }
}
