/* =========================================================
   River Tennis School — Top page
   Design system: UI/UX Pro Max "Hero-Centric + Social Proof"
   Vibrant & Block-based / Bebas Neue + Noto Sans JP
   ========================================================= */

:root {
  /* Brand */
  --brand: #D1185E;          /* River pink (white text 5.25:1) */
  --brand-strong: #A80F49;
  --brand-soft: #FFF4F7;
  --ball: #D9F24A;           /* tennis-ball accent — on navy only */
  --navy: #0F2236;
  --navy-2: #172F49;

  /* Semantic */
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --fg: #0F2236;
  --fg-muted: #5A6473;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B7C2D0;
  --border: #E3E7EC;
  --ring: #D1185E;

  /* Type */
  --font-display: "Bebas Neue", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  /* Spacing (density 4) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-s: 8px; --radius-m: 14px; --radius-l: 24px;
  --shadow: 0 1px 2px rgba(15,34,54,.06), 0 8px 24px rgba(15,34,54,.08);
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt"; letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: .03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(209,24,94,.28); }
.btn--primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn--ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--ghost:hover { background: var(--fg); color: #fff; }
.btn--ball { background: var(--ball); color: var(--navy); }
.btn--ball:hover { background: #fff; }
.btn--light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 12px rgba(15,34,54,.06); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { height: 40px; width: auto; }
.logo span { font-size: 12px; font-weight: 700; color: var(--fg-muted); line-height: 1.3; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; }
.gnav a {
  display: block; padding: 10px 10px; border-radius: 8px; text-decoration: none;
  font-size: 14px; white-space: nowrap; font-weight: 700; color: var(--fg); transition: color .2s, background-color .2s;
}
.gnav a:hover { color: var(--brand); background: var(--brand-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { white-space: nowrap; }
.header-tel { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.header-tel strong { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; font-weight: 400; }
.header-tel small { font-size: 11px; color: var(--fg-muted); }

.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; color: var(--fg);
}
.menu-toggle svg { width: 28px; height: 28px; margin: auto; }

@media (max-width: 1360px) {
  .header-tel { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; margin: 0;
    border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(15,34,54,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .gnav.is-open { opacity: 1; transform: none; visibility: visible; }
  .gnav ul { flex-direction: column; padding: 8px 16px 16px; }
  .gnav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
}

/* ---------- Section scaffolding ---------- */
main { padding-top: var(--header-h); }
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section-head { margin-bottom: var(--space-7); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px; letter-spacing: .12em; color: var(--brand); line-height: 1;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: inset -3px -2px 0 rgba(0,0,0,.12); }
.section--dark .eyebrow { color: var(--ball); }
.section-title { margin-top: 12px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
.section-lead { margin-top: 16px; color: var(--fg-muted); }
.section--dark .section-lead { color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--space-8) var(--space-9); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10vw; top: -20%; width: 60vw; height: 140%;
  background: var(--brand-soft); border-radius: 50%; z-index: -1;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-7); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
}
.hero-badge b { background: var(--ball); color: var(--navy); border-radius: 999px; padding: 2px 10px; font-family: var(--font-display); font-size: 16px; font-weight: 400; letter-spacing: .06em; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.6vw, 64px); font-weight: 900; line-height: 1.25; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { margin-top: 20px; font-size: 17px; color: var(--fg-muted); max-width: 34em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; justify-content: start; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: .03em; }
.hero-facts strong small { font-family: var(--font-body); font-size: 14px; font-weight: 700; margin-left: 2px; }
.hero-facts span { font-size: 13px; color: var(--fg-muted); }

.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.15fr 1fr; gap: 12px; aspect-ratio: 1 / .95; }
.hero-visual figure { margin: 0; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .v1 { grid-column: 1 / 3; }
.hero-visual .v2 img { object-position: 50% 30%; }
.hero-stamp {
  position: absolute; left: -24px; bottom: 28px; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero-stamp .ball { width: 40px; height: 40px; border-radius: 50%; background: var(--ball); flex: none; position: relative; overflow: hidden; }
.hero-stamp .ball::before, .hero-stamp .ball::after { content: ""; position: absolute; width: 40px; height: 40px; border: 2px solid #fff; border-radius: 50%; }
.hero-stamp .ball::before { left: -26px; top: 0; } .hero-stamp .ball::after { right: -26px; top: 0; }
.hero-stamp p { font-size: 13px; line-height: 1.5; font-weight: 700; }
.hero-stamp p small { display: block; color: var(--fg-muted); font-weight: 500; }

@media (max-width: 900px) {
  .hero { padding-block: var(--space-6) var(--space-8); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / .9; }
  .hero-stamp { left: 12px; bottom: 12px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
  .hero-facts strong { font-size: 30px; }
  .hero-actions .btn { flex: 1 1 220px; }
}

/* ---------- Results (social proof) ---------- */
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.results-head .section-head { margin-bottom: 0; }
.results-controls { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--ball); color: var(--navy); border-color: var(--ball); }
.icon-btn svg { width: 22px; height: 22px; }
.results-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--navy-2) transparent;
}
.result-card {
  scroll-snap-align: start; background: var(--navy-2); border-radius: var(--radius-m); overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.result-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.35); }
.result-card figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #0b1a2a; }
.result-card img { width: 100%; height: 100%; object-fit: cover; }
.result-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rank {
  align-self: flex-start; font-family: var(--font-display); font-size: 18px; letter-spacing: .08em; line-height: 1;
  padding: 6px 10px 4px; border-radius: 6px; background: var(--ball); color: var(--navy);
}
.rank--silver { background: #fff; }
.result-card h3 { font-size: 17px; font-weight: 700; }
.result-card p { font-size: 13px; color: var(--on-dark-muted); line-height: 1.6; }
.result-card time { font-size: 12px; color: var(--on-dark-muted); margin-top: auto; }
.results-more { margin-top: var(--space-6); text-align: center; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature .num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--brand); }
.feature h3 { font-size: 18px; font-weight: 900; }
.feature p { font-size: 15px; color: var(--fg-muted); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Step-up path ---------- */
.path { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: step; }
.path::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #F7B3CB, var(--brand) 55%, var(--navy));
}
.path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.path .dot {
  position: relative; width: 66px; height: 66px; border-radius: 50%; background: #fff; border: 4px solid var(--brand);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 20px; line-height: 1; color: var(--brand);
}
.path li:nth-child(n+3) .dot { background: var(--brand); color: #fff; }
.path li:nth-child(n+6) .dot { background: var(--navy); border-color: var(--navy); color: var(--ball); }
.path h3 { font-size: 15px; font-weight: 900; }
.path .age { font-size: 12px; color: var(--fg-muted); line-height: 1.5; }
.path .goal {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); line-height: 1.5;
}
.path li:nth-child(n+6) .goal { background: var(--navy); color: #fff; }
.path-note { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 700;
}
.chip svg { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path::before { left: 31px; right: auto; top: 20px; bottom: 20px; width: 4px; height: auto; background: linear-gradient(180deg, #F7B3CB, var(--brand) 55%, var(--navy)); }
  .path li { flex-direction: row; text-align: left; align-items: center; gap: 16px; padding-block: 8px; }
  .path li > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
  .path .dot { flex: none; }
}

/* ---------- Classes (tabs) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.tab {
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--border); background: #fff;
  font: inherit; font-weight: 700; font-size: 15px; color: var(--fg); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab small { font-weight: 500; opacity: .75; margin-left: 4px; font-size: 12px; }
.tabpanel[hidden] { display: none; }
.tabpanel-intro { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-6); align-items: center; margin-bottom: var(--space-6); }
.tabpanel-intro figure { margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.tabpanel-intro img { width: 100%; height: 100%; object-fit: cover; }
.tabpanel-intro h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; }
.tabpanel-intro p { margin-top: 12px; color: var(--fg-muted); }
.adult-visual {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-l); background: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px;
}
.adult-visual::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: var(--ball); box-shadow: inset 0 0 0 4px var(--ball), inset 26px 0 0 -22px #fff;
}
.adult-visual .en { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: .95; letter-spacing: .04em; }
.adult-visual .ja { position: relative; z-index: 1; font-size: 14px; color: var(--on-dark-muted); line-height: 1.6; }
.adult-visual .ja b { color: var(--ball); font-size: 18px; }
.manners { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.manners li { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
@media (max-width: 800px) { .tabpanel-intro { grid-template-columns: 1fr; } }

.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.class-card {
  border: 1px solid var(--border); border-radius: var(--radius-m); padding: 22px; background: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.class-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.class-card h4 { font-size: 18px; font-weight: 900; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--fg-muted); white-space: nowrap; }
.tag--beginner { background: #E8F7D0; color: #2F5A00; }
.class-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 12px 0; border-block: 1px dashed var(--border); }
.class-card dt { font-size: 11px; color: var(--fg-muted); }
.class-card dd { margin: 0; font-weight: 700; font-size: 15px; }
.class-card .theme { font-size: 14px; font-weight: 700; color: var(--brand-strong); }
.class-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }
.class-card .goal-line { margin-top: auto; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.class-card .goal-line svg { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Message ---------- */
.message { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-7); align-items: center; }
.message figure { margin: 0; }
.message figure img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; border: 6px solid var(--ball); background: var(--navy-2); }
.message figcaption { margin-top: 16px; text-align: center; font-size: 14px; color: var(--on-dark-muted); }
.message figcaption strong { display: block; color: #fff; font-size: 18px; }
.message blockquote { margin: 0; }
.message blockquote > p:first-child { font-size: clamp(22px, 2.8vw, 32px); font-weight: 900; line-height: 1.5; }
.message blockquote > p:first-child em { font-style: normal; color: var(--ball); }
.message blockquote p + p { margin-top: 16px; color: var(--on-dark-muted); }
@media (max-width: 800px) {
  .message { grid-template-columns: 1fr; gap: var(--space-6); }
  .message figure { max-width: 200px; margin-inline: auto; }
}

/* ---------- Coaches ---------- */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.coach { background: #fff; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
.coach figure { margin: 0; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.coach img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.coach__noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; font-weight: 900; color: #fff; background: var(--navy); }
.coach .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.coach .role { font-size: 12px; font-weight: 700; color: var(--brand); }
.coach h3 { font-size: 19px; font-weight: 900; }
.coach ul { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.coach li { font-size: 13px; color: var(--fg-muted); padding-left: 16px; position: relative; line-height: 1.6; }
.coach li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
@media (max-width: 1000px) { .coaches { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.price-card--featured { border: 2px solid var(--brand); position: relative; }
.price-card__badge {
  position: absolute; top: -14px; left: 24px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 17px; font-weight: 900; }
.price-card .target { font-size: 13px; color: var(--fg-muted); }
.price { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.price strong { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: .02em; }
.price span { font-size: 14px; font-weight: 700; }
.price-card .per { font-size: 13px; color: var(--fg-muted); }
.price-card .spot { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--fg-muted); }
.discounts { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.discount { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-m); background: var(--brand-soft); }
.discount svg { width: 28px; height: 28px; color: var(--brand); flex: none; margin-top: 2px; }
.discount h4 { font-size: 15px; font-weight: 900; }
.discount p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; margin-top: 2px; }
.price-detail { margin-top: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-m); background: #fff; }
.price-detail summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.price-detail summary::-webkit-details-marker { display: none; }
.price-detail summary svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.price-detail[open] summary svg { transform: rotate(180deg); }
.price-detail .inner { padding: 0 22px 22px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.price-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.price-table caption { text-align: left; font-weight: 900; padding: 16px 0 8px; font-size: 15px; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th { background: var(--surface); font-size: 13px; color: var(--fg-muted); }
.price-table tbody th { font-weight: 700; }
.note { font-size: 13px; color: var(--fg-muted); margin-top: 12px; }
@media (max-width: 860px) { .discounts { grid-template-columns: 1fr; } }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: flow; }
.flow li { position: relative; background: #fff; border-radius: var(--radius-m); padding: 24px 20px; border: 1px solid var(--border); counter-increment: flow; }
.flow li::before {
  content: "STEP " counter(flow); display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .1em; color: var(--brand);
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand);
  transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.flow h3 { font-size: 16px; font-weight: 900; margin-top: 4px; }
.flow p { font-size: 13px; color: var(--fg-muted); margin-top: 8px; line-height: 1.7; }
.bring { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.bring > span { font-weight: 700; font-size: 14px; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -13px; transform: translateX(-50%) rotate(135deg); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); transition: border-color .2s; }
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 60px; position: relative; font-weight: 700; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 20px; top: 16px; font-family: var(--font-display); font-size: 26px; color: var(--brand); line-height: 1.3;
}
.faq summary svg { position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 24px 22px 60px; color: var(--fg-muted); position: relative; }
.faq .a::before { content: "A"; position: absolute; left: 22px; top: -4px; font-family: var(--font-display); font-size: 26px; color: var(--navy); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.news-list li + li { border-top: 1px solid var(--border); }
.news-list a { display: grid; grid-template-columns: 96px 1fr; gap: 4px 16px; padding: 16px 4px; text-decoration: none; transition: background-color .2s; border-radius: 8px; }
.news-list a:hover { background: var(--brand-soft); }
.news-list time { font-size: 13px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.news-list .cat { grid-row: 2; font-size: 11px; font-weight: 700; color: var(--brand); }
.news-list .ttl { grid-row: 1 / 3; grid-column: 2; font-weight: 700; font-size: 15px; line-height: 1.6; }
.news-col h3 { font-size: 18px; font-weight: 900; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.news-col h3 a { font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; }
.news-col h3 a:hover { text-decoration: underline; }
.sns { margin-top: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sns a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-m); text-decoration: none; color: #fff; font-weight: 700;
  transition: transform .2s var(--ease), filter .2s;
}
.sns a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sns a svg { width: 32px; height: 32px; flex: none; }
.sns a small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.sns .yt { background: #C4302B; }
.sns .ig { background: linear-gradient(45deg, #F09433, #DC2743 50%, #BC1888); }
@media (max-width: 800px) { .news-grid, .sns { grid-template-columns: 1fr; } }

/* ---------- Access ---------- */
.access { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-6); align-items: stretch; }
.access dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; }
.access dt, .access dd { padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.access dt { font-weight: 700; font-size: 14px; }
.access dd { font-size: 15px; }
.access dd a { color: var(--brand); font-weight: 700; }
.map { border-radius: var(--radius-l); overflow: hidden; min-height: 360px; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 800px) { .access { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--radius-l); padding: var(--space-8) var(--space-7); text-align: center; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); }
.cta-band::before { width: 420px; height: 420px; left: -160px; top: -200px; }
.cta-band::after { width: 300px; height: 300px; right: -100px; bottom: -160px; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; position: relative; }
.cta-band p { margin-top: 12px; position: relative; opacity: .95; }
.cta-band .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }
.cta-band .btn--white { background: #fff; color: var(--brand-strong); }
.cta-band .btn--white:hover { background: var(--navy); color: #fff; }
.cta-band .hours { margin-top: 16px; font-size: 13px; opacity: .9; position: relative; }
@media (max-width: 600px) { .cta-band { padding: var(--space-7) var(--space-5); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: var(--space-8) 0 calc(var(--space-6) + 72px); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: var(--space-7); }
.footer-brand img { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.footer-brand p { margin-top: 16px; line-height: 1.8; }
.footer-brand a { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h3 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-nav a { color: var(--on-dark-muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { color: var(--ball); }
.copyright { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: 1fr 1fr; } }
@media (min-width: 901px) { .site-footer { padding-bottom: var(--space-6); } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
}
.mobile-cta .btn { flex: 1; min-height: 50px; padding: 0 12px; font-size: 15px; box-shadow: none; }
.mobile-cta .btn--ghost { flex: .7; }
@media (max-width: 900px) { .mobile-cta { display: flex; } }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   WordPress theme additions (archives, single, pages)
   ========================================================= */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 900px) { .admin-bar .gnav { top: calc(var(--header-h) + 46px); } }

.container--narrow { width: min(820px, 100% - 32px); }
.container--page { width: min(1000px, 100% - 32px); }

.page-head { padding-block: var(--space-8) var(--space-6); background: var(--surface); }
.page-head--dark { background: var(--navy); color: var(--on-dark); }
.page-head--dark .section-lead { color: var(--on-dark-muted); }
.page-head .rank { display: inline-block; margin-bottom: 12px; }
.page-title { margin-top: 8px; font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; line-height: 1.45; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-muted); }
.page-head--dark .entry-meta { color: var(--on-dark-muted); }
.entry-cat { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; }
.entry-thumb { margin: 0 0 var(--space-6); border-radius: var(--radius-l); overflow: hidden; }
.entry-thumb img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--surface); }

.rank--ja { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.result-card__noimg { display: block; width: 100%; height: 100%; background:
  radial-gradient(circle at 70% 30%, var(--ball) 0 18%, transparent 18.5%), var(--navy-2); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.results-grid .result-card { height: 100%; }

.news-list--archive { max-width: 860px; }
.news-list--archive a { grid-template-columns: 110px 1fr; padding: 20px 8px; }

/* Entry content (existing pages built with the block editor / VK Blocks) */
.entry-content { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; margin-top: 2em; padding-bottom: .4em; border-bottom: 3px solid var(--brand); }
.entry-content h3 { font-size: 20px; font-weight: 900; margin-top: 1.8em; padding-left: 12px; border-left: 5px solid var(--brand); }
.entry-content h4 { font-size: 17px; font-weight: 700; margin-top: 1.6em; }
.entry-content a { color: var(--brand-strong); }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content img { border-radius: var(--radius-s); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: 13px; color: var(--fg-muted); margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; }
.entry-content th { background: var(--surface); }
.entry-content blockquote { margin-inline: 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.entry-content .alignwide { width: min(1160px, 100vw - 32px); margin-inline: calc((100% - min(1160px, 100vw - 32px)) / 2); }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-block-button__link { border-radius: 999px; }
.entry-content iframe { max-width: 100%; }

/* Contact Form 7 */
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 input[type=date], .wpcf7 select, .wpcf7 textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; border: 1px solid #C9D0D8; border-radius: 10px; background: #fff;
}
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 3px solid rgba(209,24,94,.3); border-color: var(--brand); }
.wpcf7 input[type=submit] {
  min-height: 52px; padding: 0 36px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.wpcf7 input[type=submit]:hover { background: var(--brand-strong); }
.wpcf7-not-valid-tip { font-size: 13px; }

/* Prev / next + pagination */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.post-nav a { display: block; text-decoration: none; padding: 14px 16px; border-radius: var(--radius-m); background: var(--surface); font-weight: 700; font-size: 14px; line-height: 1.6; transition: background-color .2s; }
.post-nav a:hover { background: var(--brand-soft); }
.post-nav span { display: block; font-size: 12px; color: var(--brand); }
.post-nav__next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__next { grid-column: 1; } }
.pagination { margin-top: var(--space-7); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 700; background: #fff; color: var(--fg); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.section--dark .pagination .page-numbers:not(.current) { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* ---------- Schedule ---------- */
.sched-period { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 22px; font-weight: 900; margin-bottom: 16px; }
.sched-period span { font-size: 13px; font-weight: 700; color: #fff; background: var(--navy); padding: 2px 12px; border-radius: 999px; }
.sched-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius-m); background: #FFF7D6; border: 1px solid #F1D77A; font-size: 15px; }
.sched-notice svg { width: 22px; height: 22px; flex: none; color: #8A6400; margin-top: 3px; }
.sched-filters, .sched-daytabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sched-chip, .sched-daytab {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--border); background: #fff; color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.sched-chip:hover, .sched-daytab:hover { border-color: var(--brand); }
.sched-chip[aria-pressed="true"], .sched-daytab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sched-chip::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--g, transparent); vertical-align: 0; }
.sched-chip[data-sched-filter="all"]::before { display: none; }
.sched-daytabs { display: none; }

.sched { --g-kids: #F7A8C4; --g-junior: #D1185E; --g-ikusei: #0F2236; --g-adult: #2E8B57; --g-soft: #E0B400; }
.sched-chip--kids { --g: var(--g-kids); } .sched-chip--junior { --g: var(--g-junior); } .sched-chip--ikusei { --g: var(--g-ikusei); }
.sched-chip--adult { --g: var(--g-adult); } .sched-chip--soft { --g: var(--g-soft); }
.lesson--kids { --g: var(--g-kids); } .lesson--junior { --g: var(--g-junior); } .lesson--ikusei { --g: var(--g-ikusei); }
.lesson--adult { --g: var(--g-adult); } .lesson--soft { --g: var(--g-soft); }

.sched-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sched-day { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); padding: 12px 10px; min-width: 0; }
.sched-day.is-today { border: 2px solid var(--brand); }
.sched-day h3 { font-size: 18px; font-weight: 900; text-align: center; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.sched-day h3 span { font-size: 12px; font-weight: 700; }
.sched-day h3 em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.sched-day ul { display: flex; flex-direction: column; gap: 6px; }
.lesson { border-left: 4px solid var(--g, var(--border)); background: var(--surface); border-radius: 0 8px 8px 0; padding: 6px 8px; display: flex; flex-direction: column; line-height: 1.4; }
.lesson-time { font-size: 12px; font-weight: 700; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.lesson-name { font-size: 14px; font-weight: 900; overflow-wrap: anywhere; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 11px; color: var(--fg-muted); }
.sched-closed { text-align: center; font-weight: 900; color: var(--fg-muted); padding: 24px 0; background: repeating-linear-gradient(45deg, var(--surface) 0 8px, #fff 8px 16px); border-radius: 8px; }
.sched-empty, .sched-none { font-size: 13px; color: var(--fg-muted); text-align: center; padding: 12px 0; }
.sched-foot { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--fg-muted); }

.sched[data-filter="kids"] .lesson:not([data-group="kids"]),
.sched[data-filter="junior"] .lesson:not([data-group="junior"]),
.sched[data-filter="ikusei"] .lesson:not([data-group="ikusei"]),
.sched[data-filter="adult"] .lesson:not([data-group="adult"]),
.sched[data-filter="soft"] .lesson:not([data-group="soft"]) { display: none; }

.sched-next { margin-top: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-m); background: #fff; }
.sched-next > summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.sched-next > summary::-webkit-details-marker { display: none; }
.sched-next > summary svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.sched-next[open] > summary svg { transform: rotate(180deg); }
.sched-next .sched { padding: 0 16px 16px; }

@media (max-width: 1000px) {
  .js .sched-daytabs { display: flex; flex-wrap: nowrap; gap: 4px; }
  .sched-daytab { min-width: 0; padding: 0; flex: 1 1 0; }
  .sched-week { grid-template-columns: 1fr; }
  .js .sched-day { display: none; }
  .js .sched-day.is-active { display: block; }
  .sched-day h3 { text-align: left; }
  .lesson { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 12px; }
  .lesson-time { font-size: 14px; min-width: 96px; }
  .lesson-name { font-size: 16px; }
  .lesson-meta { width: 100%; padding-left: 108px; font-size: 12px; }
}
@media (max-width: 420px) { .lesson-meta { padding-left: 0; } }

/* VK ExUnit 「ページトップへ」 button: keep it above the sticky mobile CTA */
@media (max-width: 900px) {
  #page_top.page_top_btn { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* =========================================================
   Designed sub pages (スクール案内 / スタッフ紹介 / 一般クラス / 体験の流れ)
   ========================================================= */
.sub-hero { position: relative; overflow: hidden; padding-block: var(--space-7) var(--space-8); background: var(--bg); }
.sub-hero::before { content: ""; position: absolute; right: -12vw; top: -30%; width: 58vw; height: 150%; background: var(--brand-soft); border-radius: 50%; z-index: 0; }
.sub-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-7); align-items: center; }
.sub-hero h1 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; line-height: 1.3; }
.sub-hero h1 em { font-style: normal; color: var(--brand); }
.sub-hero__lead { margin-top: 18px; font-size: 17px; color: var(--fg-muted); max-width: 34em; }
.sub-hero .hero-actions { margin-top: 28px; }
.sub-hero__media { margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.sub-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--fg-muted); margin-bottom: 14px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 900px) {
  .sub-hero { padding-block: var(--space-5) var(--space-7); }
  .sub-hero .container { grid-template-columns: 1fr; gap: var(--space-6); }
  .sub-hero .hero-actions .btn { flex: 1 1 220px; }
}

/* Greeting */
.greeting { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-8); align-items: start; }
.greeting__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.greeting__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-l); background: var(--surface); }
.greeting__photo::after { content: ""; position: absolute; right: -18px; bottom: 56px; width: 64px; height: 64px; border-radius: 50%; background: var(--ball); box-shadow: inset 10px 0 0 -6px #fff; }
.greeting__photo figcaption { margin-top: 14px; display: flex; flex-direction: column; font-size: 13px; color: var(--fg-muted); }
.greeting__photo figcaption strong { font-size: 20px; color: var(--fg); }
.greeting__text { margin-top: 24px; }
.greeting__text p { font-size: 16px; line-height: 2.05; }
.greeting__text p + p { margin-top: 1.2em; }
.greeting__text p:first-child { font-size: 17px; padding: 20px 24px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.greeting__sign { margin-top: 32px; text-align: right; font-size: 13px; color: var(--fg-muted); }
.greeting__sign strong { display: block; font-size: 22px; color: var(--fg); letter-spacing: .1em; }
@media (max-width: 860px) {
  .greeting { grid-template-columns: 1fr; gap: var(--space-6); }
  .greeting__photo { position: relative; top: 0; max-width: 260px; }
}

/* Numbers */
.numbers { background: var(--navy); color: #fff; padding-block: var(--space-7); }
.numbers ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.numbers li { text-align: center; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-left: 1px solid rgba(255,255,255,.12); }
.numbers li:first-child { border-left: 0; }
.numbers strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--ball); }
.numbers span { font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 700px) { .numbers ul { grid-template-columns: 1fr 1fr; } .numbers li:nth-child(3) { border-left: 0; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-l); padding: 32px 28px; overflow: hidden; }
.value::after { content: ""; position: absolute; right: -36px; top: -36px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); }
.value__num { position: relative; z-index: 1; font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--brand); }
.value__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; }
.value__icon svg { width: 28px; height: 28px; }
.value h3 { position: relative; z-index: 1; margin-top: 16px; font-size: 20px; font-weight: 900; }
.value p { position: relative; z-index: 1; margin-top: 12px; font-size: 15px; color: var(--fg-muted); }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* Link cards */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.link-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--border); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.link-card .eyebrow { font-size: 16px; }
.link-card strong { font-size: 20px; font-weight: 900; }
.link-card > span:not(.eyebrow) { font-size: 14px; color: var(--fg-muted); padding-right: 40px; }
.link-card svg { position: absolute; right: 22px; bottom: 24px; width: 24px; height: 24px; color: var(--brand); }
@media (max-width: 860px) { .link-cards { grid-template-columns: 1fr; } }

/* Coach stack (staff hero) */
.sub-hero__media--stack { box-shadow: none; aspect-ratio: auto; overflow: visible; border-radius: 0; }
.coach-stack { position: relative; height: 380px; }
.coach-stack__item { position: absolute; width: 52%; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: var(--surface); }
.coach-stack__item img, .coach-stack__item .coach__noimg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.coach-stack__item--1 { left: 24%; top: 0; z-index: 3; }
.coach-stack__item--2 { left: 0; top: 70px; width: 40%; z-index: 2; transform: rotate(-4deg); }
.coach-stack__item--3 { right: 0; top: 90px; width: 40%; z-index: 1; transform: rotate(4deg); }
@media (max-width: 900px) { .coach-stack { height: 300px; max-width: 420px; margin-inline: auto; } }

/* Profiles */
.profiles { display: flex; flex-direction: column; gap: var(--space-8); }
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: center; }
.profile:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.profile:nth-child(even) .profile__photo { order: 2; }
.profile__photo { margin: 0; position: relative; z-index: 0; }
.profile__photo img, .profile__photo .coach__noimg { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-l); background: var(--surface); display: block; }
.profile__photo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border-radius: var(--radius-l); background: var(--brand-soft); z-index: 0; }
.profile:nth-child(even) .profile__photo::before { inset: 20px 20px -20px -20px; }
.profile__role { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--brand); padding: 3px 14px; border-radius: 999px; }
.profile__name { margin-top: 12px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; letter-spacing: .08em; }
.profile__name span { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .14em; color: var(--fg-muted); }
.profile__stats { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.profile__stats li { padding: 12px 20px; border-radius: var(--radius-m); background: var(--navy); color: #fff; display: flex; flex-direction: column; min-width: 120px; }
.profile__stats span { font-size: 12px; color: var(--on-dark-muted); }
.profile__stats strong { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--ball); }
.profile__label { margin-top: 24px; font-size: 14px; font-weight: 900; color: var(--brand); }
.profile__career { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.profile__career li { position: relative; padding-left: 20px; font-size: 15px; }
.profile__career li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.profile__hobby { margin-top: 18px; font-size: 15px; display: flex; gap: 12px; align-items: baseline; }
.profile__hobby span { flex: none; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--fg-muted); }
.profile__message { position: relative; margin: 22px 0 0; padding: 16px 22px; border-radius: var(--radius-m); background: var(--brand-soft); font-weight: 700; font-size: 16px; }
.profile__message::before { content: ""; position: absolute; left: 28px; top: -10px; border: 10px solid transparent; border-top: 0; border-bottom-color: var(--brand-soft); }
@media (max-width: 860px) {
  .profile, .profile:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-6); }
  .profile:nth-child(even) .profile__photo { order: 0; }
  .profile__photo { max-width: 320px; }
}

/* Adult page */
.adult-visual--hero { height: 100%; aspect-ratio: auto; justify-content: flex-end; border-radius: 0; }
.adult-visual--hero::after { width: 260px; height: 260px; right: -60px; bottom: -60px; }
.adult-visual--hero .en { font-size: clamp(48px, 7vw, 84px); position: relative; z-index: 1; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center; padding: var(--space-7); border-radius: var(--radius-l); background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; left: -100px; bottom: -160px; width: 340px; height: 340px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); }
.offer > * { position: relative; }
.offer__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; background: #fff; color: var(--brand-strong); padding: 3px 14px; border-radius: 999px; }
.offer h2 { margin-top: 14px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.45; }
.offer h2 em { font-style: normal; color: var(--ball); }
.offer p { margin-top: 12px; opacity: .95; }
.offer .offer__price { margin: 0; opacity: 1; background: #fff; color: var(--fg); border-radius: var(--radius-l); padding: 24px 32px; text-align: center; display: flex; flex-direction: column; }
.offer__price span { font-size: 14px; font-weight: 700; color: var(--brand); }
.offer__price strong { font-family: var(--font-display); font-weight: 400; font-size: 72px; line-height: 1; }
.offer__price small { font-size: 13px; color: var(--fg-muted); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); } }

.levels { display: flex; flex-direction: column; gap: 12px; }
.level { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-l); padding: 20px 24px; }
.level__step { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; font-family: var(--font-display); font-size: 24px; background: var(--brand-soft); color: var(--brand); }
.level:nth-child(n+3) .level__step { background: var(--brand); color: #fff; }
.level:nth-child(n+5) .level__step { background: var(--navy); color: var(--ball); }
.level h3 { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.level p { margin-top: 6px; font-size: 15px; color: var(--fg-muted); }
.level__meta { margin: 0; display: flex; gap: 20px; }
.level__meta div { text-align: right; }
.level__meta dt { font-size: 12px; color: var(--fg-muted); }
.level__meta dd { margin: 0; font-weight: 900; font-size: 18px; white-space: nowrap; }
@media (max-width: 760px) {
  .level { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
  .level__step { width: 60px; height: 60px; font-size: 18px; }
  .level__meta { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px dashed var(--border); }
  .level__meta div { text-align: left; }
}

.day-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.day-card { border-radius: var(--radius-l); border: 1px solid var(--border); padding: 20px; background: #fff; }
.day-card h3 { font-size: 28px; font-weight: 900; color: var(--brand); }
.day-card h3 span { font-size: 14px; color: var(--fg); margin-left: 2px; }
.day-card ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.day-card li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--surface); border-left: 4px solid #2E8B57; }
.day-card li strong { font-size: 16px; }
.day-card li small { font-size: 12px; color: var(--fg-muted); }
.table-card { background: #fff; border-radius: var(--radius-l); border: 1px solid var(--border); padding: 8px 16px; }

/* Flow page */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.assure li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 16px; border-radius: var(--radius-l); background: var(--surface); }
.assure__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: var(--shadow); margin-bottom: 6px; }
.assure__icon svg { width: 28px; height: 28px; }
.assure strong { font-size: 17px; font-weight: 900; }
.assure li > span:last-child { font-size: 13px; color: var(--fg-muted); }
@media (max-width: 860px) { .assure { grid-template-columns: 1fr 1fr; } }

.timeline { position: relative; max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #F7B3CB, var(--brand) 60%, var(--navy)); }
.timeline li { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 24px; align-items: start; }
.timeline__num { position: relative; z-index: 1; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 34px; border: 6px solid var(--surface); }
.timeline li:last-child .timeline__num { background: var(--navy); color: var(--ball); }
.timeline__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-l); padding: 24px 28px; }
.timeline__card h3 { font-size: 20px; font-weight: 900; }
.timeline__card p { margin-top: 10px; font-size: 15px; color: var(--fg-muted); }
.timeline__card p strong { color: var(--brand-strong); }
.timeline__card .timeline__note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.timeline__note svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 3px; }
.timeline__contact { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.timeline__tel { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.timeline__tel svg { width: 22px; height: 22px; color: var(--brand); }
.timeline__tel span { display: flex; flex-direction: column; line-height: 1.3; }
.timeline__tel strong { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: .04em; }
.timeline__tel small { font-size: 12px; color: var(--fg-muted); }
@media (max-width: 600px) {
  .timeline::before { left: 27px; }
  .timeline li { grid-template-columns: 58px 1fr; gap: 12px; }
  .timeline__num { width: 58px; height: 58px; font-size: 24px; border-width: 4px; }
  .timeline__card { padding: 18px; }
}

.bring-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-7); align-items: center; padding: var(--space-7); border-radius: var(--radius-l); background: var(--navy); color: #fff; }
.bring-box .eyebrow { color: var(--ball); }
.bring-box .section-lead { color: var(--on-dark-muted); }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius-m); background: var(--navy-2); font-weight: 700; }
.checklist svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--ball); color: var(--navy); }
@media (max-width: 760px) { .bring-box { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); gap: var(--space-5); } }

/* Japanese headings: break between phrases, balance lines */
h1, h2, h3, .section-title, .page-title { word-break: auto-phrase; text-wrap: balance; }

/* =========================================================
   Class overview: 進級ルート / クラス診断 / 育成キャリア / class pages
   ========================================================= */
:root { --g-kids: #F7A8C4; --g-junior: #D1185E; --g-ikusei: #0F2236; --g-adult: #2E8B57; --g-soft: #E0B400; }

/* Route diagram: continuous staircase (START bottom-left → GOAL top-right) */
.route { display: flex; flex-direction: column; gap: var(--space-6); }
.climb {
  --step-h: 84px;
  position: relative; display: grid; column-gap: 0;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.1fr) 132px minmax(0, 1.2fr);
  padding: 8px 0;
}
/* faint rising band behind the stairs */
.climb::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--radius-l); pointer-events: none;
  background: linear-gradient(to top right, rgba(247,179,203,.0) 0%, rgba(247,179,203,.22) 45%, rgba(217,242,74,.28) 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.climb > * { position: relative; z-index: 1; grid-row: var(--row); grid-column: var(--col); }

/* Lanes */
.climb-lane {
  display: grid; grid-template-rows: subgrid; align-content: stretch;
  border-radius: var(--radius-l); padding: 0 14px; border: 2px solid var(--border); background: #fff;
  transition: opacity .2s, box-shadow .2s;
}
.climb-lane--kids { background: #FFF4F7; border-color: var(--g-kids); }
.climb-lane--junior { border-color: var(--g-junior); box-shadow: 0 10px 30px rgba(209,24,94,.10); }
.climb-lane--ikusei { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 16px 40px rgba(15,34,54,.28); }
.climb-lane.is-current .climb-lane__head h3 { box-shadow: 0 0 0 3px var(--ball); }
.climb-lane.is-current { box-shadow: 0 0 0 4px var(--ball), 0 16px 40px rgba(15,34,54,.18); }
.climb-steps { display: contents; }
.climb-lane__head { grid-row: 1; align-self: end; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.climb-lane__head h3 { font-size: 16px; font-weight: 900; padding: 4px 14px; border-radius: 999px; color: #fff; background: var(--g-junior); white-space: nowrap; }
.climb-lane--kids .climb-lane__head h3 { background: var(--g-kids); color: var(--navy); }
.climb-lane--ikusei .climb-lane__head h3 { background: var(--ball); color: var(--navy); }
.climb-lane__here { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: var(--ball); white-space: nowrap; }
.climb-lane--ikusei .climb-lane__here { background: #fff; color: var(--navy); }
.climb-lane__head a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }
.climb-lane--ikusei .climb-lane__head a { color: var(--ball); }
.climb-lane__head a svg { width: 16px; height: 16px; }

/* Steps: one fixed-height row each */
.climb-step { grid-row: var(--r); position: relative; display: flex; gap: 8px; align-items: stretch; padding-block: 7px; min-width: 0; }
.climb-step .route-node { flex: 1 1 0; min-width: 0; }
.climb-step.has-prev::before {
  /* ↑ from the step below */
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; z-index: 2;
  transform: translateX(-50%) rotate(-135deg); border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; color: var(--brand);
}
.climb-lane--ikusei .climb-step.has-prev::before { color: var(--ball); }
.climb-lane--kids .climb-step.has-prev::before { color: #E57FA6; }

.route-node {
  display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 6px 12px; border-radius: 12px; text-decoration: none; color: var(--fg);
  background: var(--surface); border: 2px solid transparent; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s, background-color .2s;
}
.climb-lane--kids .route-node { background: #fff; }
.route-node:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.route-node strong { font-size: 15px; font-weight: 900; line-height: 1.35; }
.route-node small { font-size: 12px; color: var(--fg-muted); line-height: 1.35; }
.climb-lane--ikusei .route-node { background: var(--navy-2); color: #fff; }
.climb-lane--ikusei .route-node small { color: var(--on-dark-muted); }
.route-goal { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ball); display: flex; align-items: center; gap: 4px; line-height: 1.35; }
.route-goal::before { content: "▶"; font-size: 9px; }
.route-node--branch { background: transparent !important; border: 2px dashed var(--border); }
.climb-lane--ikusei .route-node--branch { border-color: rgba(255,255,255,.25); }

/* Elbow connector: right from the previous block's top step, then up one step */
.climb-link { position: relative; }
.climb-link__line { position: absolute; inset: 0; }
.climb-link__line::before {
  content: ""; position: absolute; left: -14px; width: calc(50% + 14px); top: 25%; height: 50%;
  border-bottom: 3px solid var(--navy); border-right: 3px solid var(--navy); border-bottom-right-radius: 14px;
}
.climb-link__line::after {
  content: ""; position: absolute; left: 50%; right: -6px; top: 25%; height: 0;
  border-top: 3px solid var(--navy); margin-left: -3px;
}
.climb-link::after {
  /* arrow head pointing into the next block's first step */
  content: ""; position: absolute; right: -14px; top: 25%; transform: translateY(-50%);
  border-left: 12px solid var(--navy); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.climb-gate {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 12px;
  background: #fff; border: 2px solid var(--navy); font-size: 12px; font-weight: 900; line-height: 1.25; text-align: center; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15,34,54,.15);
}
.climb-gate svg { width: 18px; height: 18px; color: var(--brand); }

/* START / GOAL */
.climb-start, .climb-goal { align-self: center; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; white-space: nowrap; }
.climb-start span, .climb-goal span { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .1em; padding: 2px 12px; border-radius: 999px; }
.climb-start span { background: var(--g-kids); color: var(--navy); }
.climb-goal { justify-self: stretch; justify-content: center; padding: 8px 14px; border-radius: 999px; background: var(--ball); color: var(--navy); box-shadow: 0 8px 24px rgba(181,204,42,.45); }
.climb-goal span { background: var(--navy); color: var(--ball); }
.climb-goal svg { width: 20px; height: 20px; }

/* Finder highlight */
.route.has-match .route-node:not(.is-match) { opacity: .45; }
.route-node.is-match { border-color: var(--brand); background: var(--brand-soft) !important; color: var(--fg); box-shadow: 0 0 0 4px rgba(209,24,94,.2); opacity: 1; }
.route-node.is-match small { color: var(--fg-muted); }
.route-node.is-match .route-goal { color: var(--brand-strong); }
.route.has-match .climb-lane.is-dim, .route.has-match .route-lane.is-dim { opacity: 1; }

/* Side courses */
.route-side__title { font-size: 14px; font-weight: 900; color: var(--fg-muted); margin-bottom: 10px; }
.route-side__lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.route-lane { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-l); padding: 14px 16px 16px; transition: opacity .2s; }
.route-lane--soft { border-color: var(--g-soft); }
.route-lane--adult { border-color: var(--g-adult); }

.route-lane.is-current { box-shadow: 0 0 0 4px var(--ball); }
.route-lane__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.route-lane__head h3 { font-size: 16px; font-weight: 900; padding: 4px 14px; border-radius: 999px; color: #fff; }
.route-lane--soft .route-lane__head h3 { background: var(--g-soft); color: var(--navy); }
.route-lane--adult .route-lane__head h3 { background: var(--g-adult); }
.route-lane__head a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; }
.route-lane__head a svg { width: 16px; height: 16px; }
.route-row { display: flex; align-items: stretch; gap: 22px; flex-wrap: wrap; }
.route-row li { position: relative; display: flex; }
.route-row li .route-node { min-height: 52px; }
.route-row li:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 50%; width: 9px; height: 9px; transform: translateY(-50%) rotate(-45deg);
  border-right: 3px solid var(--fg-muted); border-bottom: 3px solid var(--fg-muted); opacity: .6;
}

/* Small screens: stack the blocks top-to-bottom, START first */
@media (max-width: 1000px) {
  .climb { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .climb::before { display: none; }
  .climb-lane { display: block; padding: 14px 14px 10px; }
  .climb-lane__head { padding-bottom: 10px; }
  .climb-steps { display: flex; flex-direction: column; gap: 18px; }
  .climb-step { padding: 0; }
  .climb-step .route-node { min-height: 58px; }
  .climb-step.has-prev::before { bottom: auto; top: -15px; transform: translateX(-50%) rotate(45deg); }
  .climb-link { height: 44px; }
  .climb-link--gate { height: 96px; }
  .climb-link__line::before, .climb-link__line::after { display: none; }
  .climb-link__line { left: 50%; width: 3px; inset: 0 auto 0 50%; background: var(--navy); margin-left: -1.5px; }
  .climb-link::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%); border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--navy); border-bottom: 0; }
  .climb-gate { flex-direction: row; }
  .climb-start { order: -1; margin-bottom: 10px; }
  .climb-goal { margin-top: 14px; }
}

/* Finder */
.finder { max-width: 980px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; }
.finder__form { display: flex; flex-direction: column; gap: 18px; }
.finder__q { border: 0; margin: 0; padding: 22px; background: #fff; border-radius: var(--radius-l); border: 1px solid var(--border); }
.finder__q legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.finder__num { font-family: var(--font-display); font-weight: 400; font-size: 18px; color: #fff; background: var(--brand); border-radius: 8px; padding: 2px 10px; }
.finder__opts { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.finder__opts--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.finder__opt { position: relative; cursor: pointer; }
.finder__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.finder__opt span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; height: 100%; padding: 10px 14px; border-radius: 12px;
  border: 2px solid var(--border); background: #fff; font-weight: 700; font-size: 15px; line-height: 1.4; transition: border-color .15s, background-color .15s;
}
.finder__opt span strong { font-family: var(--font-display); font-weight: 400; font-size: 16px; color: var(--brand); letter-spacing: .04em; }
.finder__opt span small { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.finder__opt:hover span { border-color: var(--brand); }
.finder__opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.finder__opt input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 2px; }
.finder__soft { text-align: center; font-size: 14px; color: var(--fg-muted); }
.finder__soft a { color: var(--brand-strong); font-weight: 700; }
.finder__result { padding: 24px; border-radius: var(--radius-l); background: var(--navy); color: #fff; }
.finder__placeholder { text-align: center; color: var(--on-dark-muted); padding: 12px 0; }
.finder__lead { font-size: 18px; font-weight: 900; margin-bottom: 14px; color: var(--ball); }
.finder__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.finder-card { background: #fff; color: var(--fg); border-radius: var(--radius-m); padding: 18px; display: flex; flex-direction: column; gap: 6px; border-top: 6px solid var(--g, var(--brand)); }
.finder-card--kids { --g: var(--g-kids); } .finder-card--junior { --g: var(--g-junior); } .finder-card--ikusei { --g: var(--g-ikusei); } .finder-card--adult { --g: var(--g-adult); } .finder-card--soft { --g: var(--g-soft); }
.finder-card__group { font-size: 12px; font-weight: 700; color: var(--fg-muted); }
.finder-card h4 { font-size: 20px; font-weight: 900; }
.finder-card__target { font-size: 13px; color: var(--fg-muted); }
.finder-card__theme { font-size: 14px; font-weight: 700; color: var(--brand-strong); }
.finder-card__goal { font-size: 14px; font-weight: 700; }
.finder-card__next { margin-top: 4px; font-size: 13px; padding: 8px 10px; background: var(--surface); border-radius: 8px; }
.finder-card__next span { display: block; font-size: 11px; font-weight: 700; color: var(--fg-muted); }
.finder-card__next b { color: var(--brand-strong); }
.finder-card > a { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.finder-card > a svg { width: 16px; height: 16px; }
.finder__gate { margin-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
.finder__gate b { color: var(--ball); margin-right: 4px; }
.finder__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.finder__route { color: #fff; font-weight: 700; }
.finder__note { margin-top: 10px; font-size: 12px; color: var(--on-dark-muted); }
.finder__none p { margin-bottom: 14px; }

/* Career (育成) */
.career .section-head { margin-bottom: var(--space-6); }
.career-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: var(--space-6); }
.career-entry__from, .career-entry__to, .career-entry__gate { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.career-entry__from { background: var(--navy-2); color: var(--on-dark-muted); }
.career-entry__gate { display: inline-flex; gap: 6px; align-items: center; background: #fff; color: var(--navy); }
.career-entry__gate svg { width: 18px; height: 18px; color: var(--brand); }
.career-entry__to { background: var(--ball); color: var(--navy); }
.career-entry__arrow { width: 24px; height: 2px; background: var(--on-dark-muted); position: relative; }
.career-entry__arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 8px solid var(--on-dark-muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.stairs { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 10px; align-items: end; }
.stair { display: flex; flex-direction: column; justify-content: flex-end; gap: 0; }
.stair__card { background: #fff; color: var(--fg); border-radius: var(--radius-m) var(--radius-m) 0 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.stair__step { font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; color: var(--brand); }
.stair__card h3 { font-size: 20px; font-weight: 900; }
.stair__goal { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--brand-strong); line-height: 1.45; }
.stair__goal svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.stair__target { font-size: 12px; color: var(--fg-muted); }
.stair__block { display: block; height: calc(28px + var(--i) * 34px); background: linear-gradient(180deg, var(--brand), var(--brand-strong)); border-radius: 0 0 var(--radius-s) var(--radius-s); }
.stair:last-child .stair__block { background: linear-gradient(180deg, var(--ball), #B5CC2A); }
.career-notes { margin-top: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.career-notes li { padding: 16px 18px; border-radius: var(--radius-m); background: var(--navy-2); font-size: 14px; color: var(--on-dark-muted); }
.career-notes strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.career-results__title { margin: var(--space-7) 0 16px; font-size: 18px; font-weight: 900; }
@media (max-width: 860px) {
  .stairs { grid-template-columns: 1fr; gap: 8px; }
  .stair { flex-direction: row; align-items: stretch; }
  .stair__card { flex: 1; border-radius: var(--radius-m) 0 0 var(--radius-m); }
  .stair__block { height: auto; width: calc(14px + var(--i) * 12px); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
  .career-notes { grid-template-columns: 1fr; }
}

/* Hub: group cards */
.group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.group-card { display: grid; grid-template-columns: 140px 1fr; border-radius: var(--radius-l); overflow: hidden; background: #fff; border: 1px solid var(--border); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.group-card__media { position: relative; background: var(--surface); min-height: 150px; }
.group-card__media img, .group-card__media .adult-visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; padding: 14px; }
.group-card__media .adult-visual .en { font-size: 26px; }
.group-card__media .adult-visual::after { width: 80px; height: 80px; right: -20px; bottom: -20px; }
.group-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.group-card__body .eyebrow { font-size: 15px; }
.group-card__body strong { font-size: 20px; font-weight: 900; }
.group-card__body strong small { font-size: 12px; font-weight: 700; color: var(--fg-muted); margin-left: 8px; }
.group-card__classes { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }
.group-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--brand); }
.group-card__more svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .group-card { grid-template-columns: 110px 1fr; } }

/* Class page parts */
.where-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: var(--space-6); }
.learn { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-6); align-items: center; padding: var(--space-6); border-radius: var(--radius-l); background: var(--brand-soft); }
.learn h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; display: flex; flex-direction: column; gap: 8px; }
.checklist--light li { background: #fff; color: var(--fg); }
@media (max-width: 760px) { .learn { grid-template-columns: 1fr; padding: var(--space-5); } }
.level__theme { font-weight: 700; color: var(--brand-strong); margin-top: 6px; }
.level__goal { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; color: var(--fg) !important; }
.level__goal svg { width: 16px; height: 16px; color: var(--brand); }
.level__meta { flex-wrap: wrap; max-width: 360px; justify-content: flex-end; }
.day-card--kids li { border-left-color: var(--g-kids); } .day-card--junior li { border-left-color: var(--g-junior); }
.day-card--ikusei li { border-left-color: var(--g-ikusei); } .day-card--soft li { border-left-color: var(--g-soft); }
.rules { padding: var(--space-7); border-radius: var(--radius-l); border: 2px solid var(--navy); }
.rules h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.rules__list { counter-reset: rule; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.rules__list li { counter-increment: rule; position: relative; padding: 10px 0 10px 44px; border-bottom: 1px dashed var(--border); font-size: 15px; }
.rules__list li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 8px; font-family: var(--font-display); font-size: 22px; color: var(--brand); }
@media (max-width: 760px) { .rules { padding: var(--space-5); } .rules__list { grid-template-columns: 1fr; } }
.mind-sub { text-align: center; font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: var(--space-7); }
.creed li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border-radius: var(--radius-l); background: var(--navy); color: #fff; text-align: center; }
.creed li span { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--ball); }
.creed li strong { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; }
@media (max-width: 600px) { .creed { grid-template-columns: 1fr; } }
.promise { max-width: 720px; margin-inline: auto; padding: var(--space-6); border-radius: var(--radius-l); background: #fff; border: 1px solid var(--border); }
.promise ol { counter-reset: pr; display: flex; flex-direction: column; gap: 10px; }
.promise li { counter-increment: pr; display: flex; gap: 14px; align-items: center; font-size: 16px; font-weight: 700; }
.promise li::before { content: counter(pr); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.others-title { font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.link-cards--auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.link-card--accent { background: var(--navy); border-color: var(--navy); color: #fff; }
.link-card--accent .eyebrow { color: var(--ball); }
.link-card--accent > span:not(.eyebrow) { color: var(--on-dark-muted); }
.link-card--accent svg { color: var(--ball); }
.tabpanel-more { margin-top: 16px; }
.path-cta { margin-top: var(--space-6); text-align: center; }
