:root {
  color-scheme: light;
  --ink: #173d6b;
  --ink-soft: #52655d;
  --paper: #f2f8f1;
  --white: #fffefa;
  --cyan: #6cae9c;
  --proof-green: #347b75;
  --coral: #b34836;
  --yellow: #f4c45c;
  --line: #d8e4d8;
  --sans: Tahoma, Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: var(--sans);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--coral); }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 8px 12px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(1320px, calc(100% - 64px)); min-height: 88px; margin: 0 auto; border-bottom: 1px solid var(--line); border-radius: 0 0 12px 12px; background: var(--white); box-shadow: 0 5px 18px rgb(23 61 107 / 8%); }
.brand { display: flex; flex: 0 1 255px; align-items: center; gap: 9px; }
.brand img { width: 100%; height: auto; }
.brand picture { display: block; flex: 1; min-width: 0; }
.brand .brand-round { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; }
.brand .brand-wordmark { display: block; min-width: 0; width: 100%; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); font-size: 14px; font-weight: 700; }
.primary-nav > a:not(.nav-cta) { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.nav-fuzz { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-fuzz img { width: 30px; height: 30px; flex: 0 0 30px; border: 2px solid var(--coral); border-radius: 50%; object-fit: cover; }
.link-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; align-self: center; margin: 0; object-fit: contain; opacity: .84; }
.primary-nav .link-icon { width: 18px; height: 18px; flex-basis: 18px; }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; color: var(--white); background: var(--coral); text-decoration: none; white-space: nowrap; transition: background-color .18s ease, transform .18s ease; }
.nav-cta:hover { color: var(--white); background: #963929; transform: translateY(-1px); }
.nav-cta .link-icon { filter: brightness(0) invert(1); opacity: 1; }
.nav-cta span, .button span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin: 0; padding: 0 0 2px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 16px; font-weight: 900; line-height: 1; -webkit-text-stroke: .45px currentColor; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); align-items: center; gap: clamp(36px, 7vw, 110px); width: min(1320px, calc(100% - 64px)); min-height: 560px; margin: 0 auto; padding: 52px 4.5% 64px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero-copy h1 { font-size: clamp(38px, 4.9vw, 64px); }
.hero-title-line { white-space: nowrap; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-family: var(--sans); font-size: 74px; font-weight: 750; line-height: 1.27; }
h1 em, h2 em { color: var(--coral); font-weight: 500; }
.hero-intro { max-width: 520px; margin-bottom: 30px; color: var(--ink-soft); font-size: 17px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.hero-actions .button, .hero-actions .text-link { white-space: nowrap; }
.button { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 19px; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; transition: background-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--coral); box-shadow: 0 5px 14px rgb(179 72 54 / 18%); }
.button-primary:hover { color: var(--white); background: #963929; box-shadow: 0 7px 18px rgb(179 72 54 / 23%); }
.hero-note { margin: 14px 0 0; color: #647087; font-size: 12px; }
.text-link { font-size: 14px; font-weight: 800; text-decoration: none; }
.text-link span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 7px; padding-bottom: 2px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 19px; font-weight: 900; line-height: 1; -webkit-text-stroke: .55px currentColor; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }
.hero-photo { justify-self: end; width: min(100%, 420px); margin: 0; }
.hero-photo-wrap { position: relative; }
.hero-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgb(23 61 107 / 20%);
}
.hero-photo-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 34%, rgb(16 28 59 / 48%) 100%);
  content: "";
  pointer-events: none;
}
.hero-photo-frame > picture { display: block; }
.hero-photo-frame > picture > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 24px; }
.frabby-walker {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 7.5%;
  width: 14%;
  max-width: 58px;
  height: auto;
  pointer-events: none;
  animation: frabby-walk 12s ease-in-out -2s infinite;
}
@keyframes frabby-walk {
  /* At 14% width, 507.143% moves roughly 71% of the container. */
  0% { transform: translate(0, -80%) scaleX(-1); }
  25% { transform: translate(253.571%, -84%) scaleX(-1); }
  49.9% { transform: translate(507.143%, -80%) scaleX(-1); }
  50% { transform: translate(507.143%, -80%) scaleX(1); }
  75% { transform: translate(253.571%, -84%) scaleX(1); }
  99.9% { transform: translate(0, -80%) scaleX(1); }
  100% { transform: translate(0, -80%) scaleX(-1); }
}
.hero-photo figcaption { display: flex; justify-content: center; gap: 12px; padding: 12px 0 0; color: var(--ink-soft); font-size: 11px; text-align: center; }
.photo-credit { color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.caption-mark { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: 0; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 24px; padding: 22px max(32px, calc((100% - 1140px) / 2)); color: var(--white); background: var(--proof-green); }
.proof-strip p { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.proof-strip strong { color: var(--yellow); font-family: var(--sans); font-size: 21px; font-weight: 700; white-space: nowrap; }
.proof-strip span { color: var(--white); font-size: 11px; }
.resource-proof-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.proof-strip > a { display: inline-flex; align-items: center; justify-self: end; gap: 9px; min-height: 46px; padding: 8px 15px; border-radius: 999px; color: var(--ink); background: var(--white); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, transform .18s ease; }
.proof-strip > a:hover { color: var(--ink); background: var(--yellow); transform: translateY(-1px); }
.proof-strip > a .link-icon { width: 20px; height: 20px; flex-basis: 20px; opacity: 1; }

.reasons-section { padding: 48px 32px; background: #fff5e8; }
.reasons-inner { width: min(1120px, 100%); margin: 0 auto; }
.reasons-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; margin-bottom: 24px; }
.reasons-heading .eyebrow { margin-bottom: 8px; }
.reasons-heading h2 { font-size: 34px; }
.reasons-heading h2 em { color: var(--coral); font-weight: 500; }
.reasons-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--ink-soft); font-size: 14px; }
.reasons-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.reason-card { min-width: 0; padding: 15px 16px 13px; border-top: 3px solid var(--cyan); background: var(--white); }
.reason-card h3 { margin: 0 0 8px; font-size: 14px; }
.reason-card ul { display: grid; gap: 4px; margin: 0; padding: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; list-style: none; }
.reason-card li::before { margin-right: 6px; color: var(--coral); content: "·"; }
.proof-strip > a span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin: 0; padding-bottom: 2px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 19px; font-weight: 900; line-height: 1; -webkit-text-stroke: .55px currentColor; }

.stats-section, .class-section { position: relative; isolation: isolate; }
.stats-section::before, .class-section::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; background: var(--band-color); content: ""; transform: translateX(-50%); }
.stats-section { --band-color: #fff5e8; padding-top: 64px; padding-bottom: 64px; }
.class-section { --band-color: #e7f3e8; }
.stats-section .section-heading { margin-bottom: 34px; }
.stats-section .section-heading h2 { font-size: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stats-panel { min-width: 0; padding: 20px 18px 18px; border-top: 3px solid var(--cyan); border-bottom: 1px solid var(--line); background: var(--white); }
.stats-panel .eyebrow { margin-bottom: 8px; font-size: 10px; }
.stats-panel h3 { min-height: 3.2em; margin: 0 0 10px; color: var(--ink); font-size: 16px; line-height: 1.6; }
.stats-value { margin: 0 0 12px; color: var(--ink); font-size: 31px; font-weight: 800; line-height: 1.2; }
.stats-value span { margin-left: 2px; font-size: 18px; }
.stats-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 8px; height: 142px; padding: 4px 0 0; border-bottom: 1px solid var(--line); }
.stats-bar-column { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-items: center; gap: 6px; height: 100%; min-width: 0; }
.stats-bar-value, .stats-bar-label { color: var(--ink-soft); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats-bar-change { font-size: 8px; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1; white-space: nowrap; }
.stats-bar-change--baseline { color: var(--ink-soft); }
.stats-bar-change--increase { color: #26725f; }
.stats-bar-change--decrease { color: var(--coral); }
.stats-bar-rail { display: flex; align-items: end; width: min(100%, 28px); height: 100%; overflow: hidden; border-radius: 5px 5px 0 0; background: #edf3f8; }
.stats-bar-fill { display: block; width: 100%; height: var(--bar-height); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #75aeda, #286ba9); }
.stats-bar-fill--growth-small { background: linear-gradient(180deg, #9bd2b7, #4b9b84); }
.stats-bar-fill--growth-large { background: linear-gradient(180deg, #75c9a2, #237762); }
.stats-bar-fill--decline { background: linear-gradient(180deg, #efa58b, #b34836); }
.stats-bar-fill--growth-modest { background: linear-gradient(180deg, #b5dbbd, #6b9f70); }
.stats-context { min-height: 4.5em; margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; }
.stats-change { display: grid; gap: 4px; margin: 0 0 12px; color: var(--coral); font-size: 13px; font-variant-numeric: tabular-nums; }
.stats-change strong { font-size: 15px; }
.stats-change span { color: var(--ink-soft); font-size: 11px; }
.stats-comparison-track { display: block; height: 14px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.stats-comparison-fill { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: #286ba9; }
.ai-floor-chart-title { margin: 14px 0 0; color: var(--ink); font-size: 11px; font-weight: 800; text-align: center; }
.ai-floor-chart { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 8px; }
.ai-floor-figure { display: grid; align-content: start; justify-items: center; gap: 7px; min-width: 0; margin: 0; }
.ai-floor-donut { position: relative; display: grid; width: min(112px, 100%); aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) 0 var(--learner-share), var(--cyan) var(--learner-share) 100%); }
.ai-floor-donut::before { position: absolute; inset: 14px; border-radius: 50%; background: var(--white); content: ""; }
.ai-floor-donut-center { position: relative; display: grid; justify-items: center; gap: 2px; color: var(--ink); line-height: 1.2; }
.ai-floor-donut-center strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.ai-floor-donut-center span { font-size: 9px; }
.ai-floor-figure figcaption { color: var(--ink); font-size: 11px; font-weight: 800; text-align: center; }
.ai-floor-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 0 0 14px; padding: 0; color: var(--ink-soft); font-size: 10px; list-style: none; }
.ai-floor-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.ai-floor-swatch { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 2px; }
.ai-floor-swatch--learner { background: var(--coral); }
.ai-floor-swatch--rest { background: var(--cyan); }
.stats-comparison { display: grid; gap: 13px; margin: 25px 0 20px; }
.stats-comparison-plot { position: relative; display: grid; gap: 13px; }
.stats-comparison-plot::before { position: absolute; z-index: 2; top: 5px; bottom: 5px; left: calc(61% + 6.7px); width: 2px; background: var(--ink); box-shadow: 0 0 0 1px var(--white); content: ""; pointer-events: none; }
.stats-comparison-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 36px; align-items: center; gap: 8px; color: var(--ink); font-size: 11px; }
.stats-comparison-row strong { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.stats-comparison-country { display: grid; gap: 1px; line-height: 1.25; }
.stats-comparison-country small { color: var(--ink-soft); font-size: 9px; }
.stats-comparison-fill--very-low { background: var(--coral); }
.stats-comparison-fill--low { background: #d58b39; }
.stats-comparison-fill--moderate { background: #347b75; }
.stats-comparison-row--global { padding-top: 8px; border-top: 1px solid var(--line); }
.stats-comparison-fill--global { background: #286ba9; }
.stats-comparison-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ink-soft); font-size: 9px; }
.stats-comparison-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.stats-comparison-swatch { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 2px; }
.stats-comparison-swatch--very-low { background: var(--coral); }
.stats-comparison-swatch--low { background: #d58b39; }
.stats-comparison-swatch--moderate { background: #347b75; }
.stats-comparison-average-swatch { width: 10px; height: 12px; flex: 0 0 10px; border-left: 2px solid var(--ink); }
.stats-scale { margin: 0; color: var(--ink-soft); font-size: 10px; text-align: right; }
.stats-note { margin: 16px 0 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.stats-source { color: var(--ink); font-size: 11px; font-weight: 800; text-underline-offset: 3px; }
.stats-source span { margin-left: 3px; }
.stats-research-note { max-width: 760px; margin: 24px auto 0; color: var(--ink-soft); font-size: 12px; }
.stats-research-note a { color: var(--ink); font-weight: 800; }
.class-evidence { margin-top: 40px; margin-bottom: 40px; padding-top: 24px; padding-bottom: 24px; border-block: 1px solid var(--line); }
.page-content .class-evidence h2 { margin: 0 0 10px; font-size: 26px; }
.class-evidence > p:not(.eyebrow) { margin-bottom: 16px; font-size: 13px; }
.curriculum-steps { display: grid; gap: 16px; margin: 24px 0 16px; }
.curriculum-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
.curriculum-step > strong { color: var(--ink); font-size: 14px; }
.curriculum-step-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; }
.curriculum-step-copy strong { color: var(--ink); font-size: 13px; }
.curriculum-step-copy span { color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.curriculum-track { grid-column: 1 / -1; height: 10px; overflow: hidden; border-radius: 999px; background: #e8f2fb; }
.curriculum-track span { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: #286ba9; }
.eiken-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 16px; padding: 0; list-style: none; }
.eiken-path li { min-width: 0; padding: 14px; border-top: 2px solid var(--cyan); background: #e8f2fb; }
.eiken-path strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.eiken-path p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.online-steps li { position: relative; }
.online-steps li:not(:last-child)::after { position: absolute; z-index: 1; top: 50%; right: -11px; color: var(--ink); content: "→"; transform: translateY(-50%); }
.page-content .online-privacy-note { color: var(--ink-soft); font-size: 12px; }
.class-evidence-note { margin: 0 0 8px; color: var(--ink-soft); font-size: 11px; }
.class-evidence-source { color: var(--ink); font-size: 11px; font-weight: 800; text-underline-offset: 3px; }
.toeic-skill-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0 16px; }
.toeic-skill-group { padding: 14px; border-top: 2px solid var(--cyan); background: #e8f2fb; }
.toeic-skill-group strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: 14px; }
.toeic-skill-items { display: flex; flex-wrap: wrap; gap: 7px; }
.toeic-skill-items span { padding: 3px 8px; border: 1px solid #b8cce0; border-radius: 999px; color: var(--ink); background: var(--white); font-size: 11px; }
.cefr-scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 22px 0 16px; padding: 0; list-style: none; }
.cefr-scale li { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cefr-scale strong { color: var(--coral); font-size: 16px; }
.cefr-scale span { color: var(--ink-soft); font-size: 12px; line-height: 1.65; }

.section { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 88px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; margin-bottom: 46px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
h2 { margin-bottom: 0; font-family: var(--sans); font-size: 48px; font-weight: 700; line-height: 1.35; }
.section-heading h2::after { display: block; width: 42px; height: 4px; margin-top: 14px; border-radius: 999px; background: var(--yellow); content: ""; }
.section-heading > p:last-child { max-width: 430px; margin-bottom: 5px; color: var(--ink-soft); font-size: 14px; }
.class-list { border-top: 1px solid var(--ink); }
.class-row { display: grid; grid-template-columns: 100px minmax(180px, 1fr) minmax(220px, 1fr) 24px; align-items: center; gap: 18px; min-height: 78px; border-bottom: 1px solid var(--line); text-decoration: none; }
.class-row:hover { color: var(--ink); background: rgb(117 201 185 / 15%); }
.class-age { color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: 0; }
.class-name { font-family: var(--sans); font-size: 20px; font-weight: 700; }
.class-detail { color: var(--ink-soft); font-size: 12px; }
.row-arrow { display: grid; place-items: center; width: 30px; height: 30px; padding-bottom: 2px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 19px; font-weight: 900; line-height: 1; -webkit-text-stroke: .55px currentColor; text-align: center; }
.section-link { display: inline-block; margin-top: 28px; }
.resource-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; background: var(--white); }
.resource-promo > .button { flex-shrink: 0; white-space: nowrap; }
.class-section .resource-promo { margin-top: 30px; }
.resource-promo h3 { margin: 0 0 6px; color: var(--ink); font-size: 19px; }
.resource-promo p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.resource-promo .resource-promo-disclosure { margin-top: 6px; font-size: 11px; }
.team-feature { margin: 0 0 60px; padding: 42px max(32px, calc((100% - 1120px) / 2)); background: #e8f3eb; }
.team-feature-heading { max-width: 1120px; margin: 0 auto 22px; }
.team-feature-heading .eyebrow { margin-bottom: 6px; color: var(--coral); }
.team-feature-heading h2 { font-size: 32px; }
.team-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1120px; margin: 0 auto; }
.team-feature-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 20px; min-width: 0; padding: 20px; color: var(--ink); background: var(--white); text-decoration: none; }
.team-feature-card > img { width: 140px; height: 188px; border-radius: 8px; object-fit: cover; }
.team-feature-card--fuzz:hover { color: var(--ink); background: #f7fbf8; }
.team-feature-copy .eyebrow { margin-bottom: 4px; color: var(--coral); }
.team-feature-copy h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.45; }
.team-feature-copy h3 em { color: var(--coral); font-weight: 500; }
.team-feature-copy p:not(.eyebrow) { margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; }
.button-secondary { border: 1px solid #8bb5da; color: var(--ink); background: var(--white); }
.button-secondary:hover { color: var(--ink); background: #f7fbff; }
.test-practice-button { gap: 10px; font-size: 13px; }
.test-practice-icon { width: 20px; height: 20px; flex: 0 0 20px; }

.quote-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 64px max(32px, calc((100% - 1120px) / 2)); color: var(--white); background: #963929; }
.quote-band .eyebrow { color: var(--white); }
.quote-band h2 em { color: #d7edff; }
.quote-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.quote-list blockquote { margin: 0; padding: 0 0 24px; border-bottom: 1px solid rgb(255 255 255 / 28%); }
.quote-list blockquote:first-child { grid-column: 1 / -1; }
.quote-list blockquote p { margin-bottom: 8px; font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.8; }
.quote-list cite { color: var(--white); font-size: 11px; font-style: normal; }

.visit-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 88px 0; }
.visit-copy > p:not(.eyebrow) { max-width: 500px; margin: 22px 0 26px; color: var(--ink-soft); }
.visit-details { display: grid; align-content: center; gap: 22px; padding: 28px 0 28px 44px; border-left: 1px solid var(--line); }
.detail-label { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: 0; }
.visit-details p { margin: 5px 0 0; font-size: 14px; }
.visit-details a { text-decoration: none; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; padding: 32px max(32px, calc((100% - 1320px) / 2)); color: var(--white); background: var(--ink); }
.footer-brand { width: fit-content; font-family: var(--sans); font-size: 28px; font-weight: 800; line-height: 1.1; text-decoration: none; }
.footer-brand .footer-classic-logo { display: block; width: 160px; height: auto; padding: 5px; border-radius: 6px; }
.footer-brand span { display: block; margin-top: 5px; color: var(--yellow); font-family: var(--sans); font-size: 9px; letter-spacing: 0; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 15px; font-size: 11px; }
.footer-links a, .footer-social a { color: #eff8f2; text-decoration: none; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; }
.footer-links .link-icon { filter: brightness(0) invert(1); opacity: .96; }
.footer-social svg, .social-mark { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; color: var(--ink); background: var(--yellow); }
.footer-social svg { padding: 5px; }
.social-mark { font-size: 14px; font-weight: 900; line-height: 1; }
.site-footer small { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid rgb(255 255 255 / 20%); color: #c4cede; font-size: 10px; }

.page-hero { padding: 66px max(32px, calc((100% - 1120px) / 2)) 54px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { max-width: 900px; margin-bottom: 12px; font-size: 62px; }
.page-hero p:last-child { max-width: 680px; margin: 0; color: var(--ink-soft); }
.resource-banner {
  min-height: 260px;
  background: radial-gradient(circle at 88% 28%, rgb(244 196 92 / 45%) 0 45px, transparent 46px),
    radial-gradient(circle at 95% 85%, rgb(108 174 156 / 25%) 0 95px, transparent 96px),
    linear-gradient(120deg, #f8fbf3, #deefe9);
}
.resource-banner--printing {
  background: radial-gradient(circle at 88% 28%, rgb(108 174 156 / 35%) 0 45px, transparent 46px),
    radial-gradient(circle at 95% 85%, rgb(244 196 92 / 30%) 0 95px, transparent 96px),
    linear-gradient(120deg, #f8fbf3, #e1edf4);
}
.resource-banner h1 { max-width: 800px; font-size: clamp(32px, 4vw, 58px); overflow-wrap: anywhere; }
.resource-banner .eyebrow { color: #355a4d; }
.resources-hero p.resource-intro { max-width: 680px; margin: 0; color: var(--ink-soft); }
.resources-hero p.resource-subtitle { max-width: 680px; margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.page-hero--media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); grid-template-rows: auto auto auto; align-items: center; column-gap: clamp(24px, 5vw, 64px); }
.page-hero--media > .eyebrow { grid-column: 1; grid-row: 1; }
.page-hero--media > h1 { grid-column: 1; grid-row: 2; }
.page-hero--media > .resource-hero-copy { grid-column: 1; grid-row: 3; }
.page-hero--media > p:last-of-type { grid-column: 1; grid-row: 3; max-width: 680px; margin: 0; color: var(--ink-soft); }
.resources-hero.page-hero--media > .eyebrow { grid-row: 1; margin: 0 0 14px; }
.page-hero-photo { grid-column: 2; grid-row: 1 / 4; width: min(100%, 400px); justify-self: end; margin: 0; }
.page-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: var(--hero-ratio, 4 / 3); border-radius: 8px; object-fit: cover; box-shadow: 0 12px 28px rgb(23 61 107 / 12%); }
.resources-hero .page-hero-photo img { object-position: center 40%; }
.page-hero-photo--square { --hero-ratio: 1 / 1; }
.page-hero-photo--wide { --hero-ratio: 16 / 9; }
.page-hero-photo--portrait { --hero-ratio: 3 / 4; }
.page-hero-photo--banner { --hero-ratio: 18 / 7; }
.page-hero-photo--contain img, .page-hero-photo--banner img { object-fit: contain; box-shadow: none; }
.page-hero-photo figcaption { padding-top: 8px; color: var(--ink-soft); font-size: 11px; text-align: center; }
.page-content { width: min(940px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 100px; }
.page-content.page-content--pricing { padding-top: 32px; }
.page-content > * + * { margin-top: 30px; }
.page-content h2 { margin: 0 0 16px; font-size: 34px; }
.page-content > * + h2 { margin-top: 30px; }
.page-content p { color: var(--ink-soft); }
.page-content a { color: var(--ink); font-weight: 700; }
.page-content a.button-primary { color: var(--white); }
.resource-card-image, .resource-card-placeholder { width: 160px; height: 160px; flex: 0 0 160px; border-radius: 8px; }
.resource-card-image { object-fit: cover; }
.resource-card-placeholder { position: relative; display: grid; place-items: center; overflow: hidden; background: #dceee8; }
.resource-card-placeholder img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.resource-placeholder-label { position: relative; width: 100%; padding: 5px 2px; color: #fff; background: rgb(16 28 59 / 86%); font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; }
.page-content .resource-card-credit { font-size: 12px; }
.form-intro { max-width: 700px; margin: 0 auto 34px; }
.frabby-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-left: 4px solid var(--coral);
  border-radius: 12px;
  background: #e8f2fb;
}
.frabby-note img { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }
.frabby-note p { margin: 0; color: var(--ink-soft); }
.form-intro .frabby-note { margin-top: 20px; }
.trial-form { display: grid; gap: 23px; max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 7px; }
.form-field.full-width, .form-fieldset, .form-actions { grid-column: 1 / -1; }
.form-field label, .form-fieldset legend { color: var(--ink); font-size: 13px; font-weight: 800; }
.availability-link-note { font-size: 12px; }
.required-mark { margin-left: 5px; color: var(--coral); font-size: 11px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #a7c2b5; border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; font-size: 14px; }
.form-field textarea { min-height: 112px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--ink); }
.form-fieldset { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.form-fieldset legend { margin-bottom: 5px; }
.radio-option { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.radio-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--coral); }
.form-privacy-notice { max-width: 700px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.form-privacy-notice a { color: var(--ink); font-weight: 800; }
.form-actions { display: grid; justify-items: start; gap: 12px; }
.form-actions .button { border: 0; font: inherit; cursor: pointer; }
.form-actions .button:disabled { opacity: .55; cursor: wait; }
.form-note { margin: 0; color: #667187; font-size: 12px; }
.form-status { min-height: 1.75em; margin: 0; font-size: 14px; font-weight: 700; }
.form-status[data-state="success"] { color: #16704f; }
.form-status[data-state="error"] { color: #a7342e; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.weekly-closed { display: flex; align-items: center; gap: 16px; margin: 0 0 42px; padding: 18px 22px; border-left: 4px solid var(--coral); border-radius: 8px; background: #e8f2fb; }
.weekly-closed > img { width: 28px; height: 28px; flex: 0 0 28px; }
.weekly-closed strong { display: block; color: var(--ink); font-size: 17px; }
.weekly-closed p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.fifth-week-note { margin: 0 0 30px; padding: 16px 20px; border-left: 4px solid var(--coral); border-radius: 8px; background: #fff1e9; }
.fifth-week-note strong { display: block; margin-bottom: 4px; color: #a94826; font-size: 15px; }
.fifth-week-note p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.undecided-notice { margin: 0 0 26px; padding: 16px 20px; border-left: 4px solid #2b73b9; border-radius: 8px; background: #e8f2fb; }
.undecided-notice strong { display: block; margin-bottom: 4px; color: #1c5d98; font-size: 15px; }
.undecided-notice p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.holiday-policy-note { margin: 0 0 30px; padding: 14px 20px; border-left: 4px solid #2b73b9; border-radius: 8px; background: #e8f2fb; }
.holiday-policy-note strong { display: block; margin-bottom: 3px; color: #1c5d98; font-size: 14px; }
.holiday-policy-note p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.holiday-section { margin-top: 34px; }
.holiday-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.holiday-heading .eyebrow { margin-bottom: 5px; }
.holiday-heading h2 { font-size: 36px; }
.holiday-heading > p { max-width: 430px; margin-bottom: 4px; color: var(--ink-soft); font-size: 13px; }
.holiday-status { margin: 16px 0 0; color: var(--ink-soft); font-size: 13px; }
.holiday-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.holiday-row { display: grid; grid-template-columns: minmax(200px, .55fr) 1fr; align-items: center; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.holiday-dates { color: var(--coral); font-weight: 800; font-variant-numeric: tabular-nums; }
.holiday-summary { color: var(--ink-soft); }
.page-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.page-links a { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 58px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.page-links a:hover { border-color: var(--cyan); box-shadow: 0 5px 16px rgb(23 61 107 / 9%); transform: translateY(-2px); }
.page-links a span:last-child { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; margin-left: auto; padding-bottom: 2px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 19px; font-weight: 900; line-height: 1; -webkit-text-stroke: .55px currentColor; }
.resource-category-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; width: min(940px, calc(100% - 48px)); margin: 30px auto 0; }
.resource-category-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) 28px; align-items: center; gap: 12px; min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--white); text-decoration: none; box-shadow: 0 3px 12px rgb(23 61 107 / 5%); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.resource-category-card:hover { border-color: var(--cyan); color: var(--ink); box-shadow: 0 7px 20px rgb(23 61 107 / 10%); transform: translateY(-2px); }
.resource-category-card > img { width: 34px; height: 34px; padding: 6px; border-radius: 10px; color: var(--ink); background: #e8f3eb; object-fit: contain; }
.resource-category-card-text { display: grid; gap: 4px; min-width: 0; }
.resource-category-card-text strong { font-size: 14px; line-height: 1.4; }
.resource-category-card-text small { color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.resource-category-card-arrow { display: grid; place-items: center; width: 28px; height: 28px; padding-bottom: 2px; border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 19px; font-weight: 900; line-height: 1; }
.resource-support-note { width: min(940px, calc(100% - 48px)); margin: 16px auto 0; padding: 16px 20px; border-left: 4px solid var(--cyan); border-radius: 10px; background: #e8f3eb; }
.resource-support-note h2 { margin: 0 0 6px; font-size: 20px; }
.resource-support-note p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.resource-support-note p + p { margin-top: 5px; }
.resource-support-note .resource-support-disclosure { font-size: 11px; }
.resource-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; align-items: stretch; margin: 24px 0; }
.resource-category-disclosure { color: var(--ink-soft); font-size: 12px; }
.resource-category-content { padding-top: 16px; }
.resource-category-content > div { max-width: 940px; }
.resource-category-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.resource-category-hero-row > div:first-child { min-width: 0; }
.resource-index-section { width: 100%; padding: 28px 0 32px; background: var(--proof-green); }
.resource-index-inner { width: min(940px, calc(100% - 48px)); margin: 0 auto; }
.resource-index-inner p { color: var(--white); }
.resource-index-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.resource-index-actions .button { white-space: nowrap; }
.resource-card-footer { margin: auto calc(-1 * var(--resource-card-padding)) calc(-1 * var(--resource-card-padding)); padding: 20px var(--resource-card-padding) var(--resource-card-padding); border-radius: 0 0 15px 15px; background: #fff1e9; }
.resource-read-more { justify-content: center; gap: 10px; width: 100%; text-align: center; }
.resource-read-more img { flex: 0 0 20px; }
.resource-product-back { margin-top: 24px; }
.resource-product-card { --resource-card-padding: 24px; display: flex; flex-direction: column; min-width: 0; padding: var(--resource-card-padding); border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgb(23 61 107 / 7%); scroll-margin-top: 100px; }
.page-content .resource-product-card h2 { margin: 0 0 18px; color: var(--ink); font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.page-content .resource-product-list .resource-product-card h2 { display: flex; align-items: center; height: calc(2.8em + 32px); margin: calc(-1 * var(--resource-card-padding)) calc(-1 * var(--resource-card-padding)) 18px; padding: 16px var(--resource-card-padding); border-radius: 15px 15px 0 0; background: #fff1e9; }
.resource-product-list .resource-product-card h2 a { display: -webkit-box; width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.resource-product-top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.resource-product-top .resource-card-image, .resource-product-top .resource-card-placeholder { width: 125px; height: 125px; flex: 0 0 125px; }
.resource-product-top > div { min-width: min-content; margin-left: auto; text-align: right; }
.resource-product-top .button { white-space: normal; text-align: center; }
.resource-product-card p, .resource-product-card li { font-size: 14px; line-height: 1.75; }
.resource-product-card p { margin: 0; }
.resource-product-description, .resource-product-comment, .resource-product-activities { padding-top: 18px; }
.resource-product-card h3, .resource-product-card h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 800; }
.resource-product-comment { margin-top: 18px; padding: 14px; border-radius: 10px; background: #e8f3eb; }
.resource-product-list .resource-product-comment { padding: 0; background: transparent; }
.resource-product-card ul { margin: 0; padding-left: 1.3em; }
.resource-product-card li + li { margin-top: 5px; }
.resource-product-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.resource-product-card summary { color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.resource-product-card summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.resource-product-details h4 { margin-top: 14px; }
.resource-product-card .resource-product-safety { margin-top: 14px; color: var(--ink-soft); font-size: 12px; }
.resource-product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.resource-product-tags span { padding: 4px 10px; border-radius: 99px; color: var(--ink); background: #e8f3eb; font-size: 12px; font-weight: 700; }
.footer-links a, .visit-details a { display: inline-flex; align-items: center; gap: 10px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 30px 0; }
.fact-grid > div { padding-top: 14px; border-top: 2px solid var(--cyan); }
.fact-grid strong { display: block; margin-bottom: 7px; color: var(--ink); font-family: var(--sans); font-size: 19px; font-weight: 700; }
.fact-grid p { margin: 0; font-size: 13px; }
.story-image { width: min(100%, 520px); margin: 26px 0; }
.story-image img { width: 100%; height: auto; }
.price-table-wrap { max-width: 100%; border-radius: 10px; overflow: hidden; }
.price-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: rgb(255 255 255 / 70%); font-size: 14px; }
.price-table th, .price-table td { padding: 13px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.price-table thead th { color: var(--white); background: var(--ink); font-size: 12px; }
.price-table tbody tr:nth-child(even) { background: #e8f2fb; }
.price-table tbody tr:hover { background: #fff1e9; }
.price-table.price-table--estimate tbody tr,
.price-table.price-table--estimate tbody tr:hover { background: #e8f3eb; }
.price-table tbody th { width: 28%; font-weight: 700; }
.price-total { color: var(--coral); font-weight: 900; }
.page-content .price-note { margin-top: 8px; margin-bottom: 30px; color: var(--ink-soft); font-size: 12px; }
.offer-note { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr; align-items: center; gap: 22px; margin: 26px 0; padding: 20px 22px; border-left: 4px solid var(--coral); background: #fff1e9; }
.offer-note img { width: 100%; max-height: 125px; object-fit: contain; }
.offer-note strong { display: block; margin-bottom: 4px; color: #aa3829; }
.map-frame { width: 100%; height: 360px; border: 1px solid var(--line); }
.school-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0; border: 0; }
.teacher-profile { display: grid; grid-template-columns: minmax(200px, .75fr) 1.25fr; align-items: start; gap: 42px; }
.teacher-profile--text { grid-template-columns: minmax(0, 1fr); }
.teacher-profile--text > div { max-width: 760px; }
.teacher-profile img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 28%; }
.teacher-profile h2 { margin-top: 0; }
.trial-confirmation img { grid-column: 1; grid-row: 1; border-radius: 12px; }
.eiken-art { width: min(100%, 520px); margin: 28px 0; }
.eiken-art img { width: 100%; height: auto; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.photo-gallery figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 6px; background: var(--white); }
.photo-gallery img { width: 100%; height: 232px; object-fit: cover; }
.photo-gallery--pets img { height: 264px; }
.photo-gallery figcaption { padding: 10px 12px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.logo-feature { display: flex; align-items: center; gap: 20px; margin: 38px 0; padding: 22px; border-radius: 8px; background: #e8f2fb; }
.logo-feature img { width: 116px; height: 116px; flex: 0 0 116px; object-fit: contain; }
.logo-feature p { margin: 0; color: var(--ink-soft); }
.logo-feature strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; }

@keyframes scroll-reveal {
  from { opacity: .65; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-bar-up {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes scroll-bar-across {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-heading, .stats-panel, .class-row, .team-feature-card,
    .quote-heading, .quote-list blockquote, .visit-copy, .visit-details,
    .page-content > h2, .page-links > a, .photo-gallery figure {
      animation: scroll-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }

    :is(.stats-panel, .class-row, .team-feature-card, .visit-copy, .visit-details, .page-links > a):focus-within {
      animation: none;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.has-chart-reveal .stats-bar-fill { transform: scaleY(0); transform-origin: bottom; }
  html.has-chart-reveal .stats-comparison-fill,
  html.has-chart-reveal .curriculum-track span { transform: scaleX(0); transform-origin: left; }
  html.has-chart-reveal .stats-bar-rail.is-visible .stats-bar-fill { animation: scroll-bar-up 700ms ease-out both; }
  html.has-chart-reveal .stats-comparison-track.is-visible .stats-comparison-fill,
  html.has-chart-reveal .curriculum-track.is-visible span { animation: scroll-bar-across 700ms ease-out both; }
}

@media (max-width: 900px) {
  .site-header { width: min(100% - 40px, 1320px); min-height: 76px; }
  .brand { flex-basis: 210px; }
  .brand .brand-round { width: 44px; height: 44px; flex-basis: 44px; }
  .primary-nav { gap: 15px; font-size: 12px; }
  .nav-cta { padding: 9px 11px; }
  .hero { width: calc(100% - 40px); grid-template-columns: 1fr minmax(250px, .72fr); gap: 36px; min-height: 560px; padding-right: 2%; padding-left: 2%; }
  .hero-photo img { height: auto; }
  h1 { font-size: 62px; }
  h2 { font-size: 42px; }
  .page-hero h1 { font-size: 54px; }
  .resource-category-hero-row { flex-direction: column; align-items: flex-start; }
  .resource-index-actions { justify-content: flex-start; }
  .page-content h2 { font-size: 32px; }
  .proof-strip { grid-template-columns: repeat(3, 1fr); padding-right: 24px; padding-left: 24px; }
  .proof-strip > a { grid-column: 1 / -1; }
  .reasons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section, .visit-section { width: calc(100% - 48px); }
  .quote-band { grid-template-columns: 1fr 1.2fr; gap: 36px; padding-right: 24px; padding-left: 24px; }
  .visit-section { gap: 48px; }
}

@media (max-width: 1320px) {
  .menu-toggle { display: grid; flex: 0 0 44px; gap: 6px; width: 44px; height: 44px; place-content: center; padding: 0; border: 1px solid var(--ink); border-radius: 14px; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: -18px; left: -18px; display: none; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 16px rgb(23 61 107 / 8%); }
  .primary-nav.is-open { display: grid; }
  .primary-nav > a:not(.nav-cta) { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { justify-content: center; margin-top: 13px; text-align: center; }
}

@media (max-width: 680px) {
  .resource-product-card { --resource-card-padding: 18px; }
  .resource-product-top { gap: 12px; }
  .resource-product-top .resource-card-image, .resource-product-top .resource-card-placeholder { width: 90px; height: 90px; flex-basis: 90px; }
  html { scroll-behavior: auto; }
  .site-header { width: calc(100% - 36px); min-height: 70px; }
  .brand { flex-basis: 185px; }
  .brand .brand-round { width: 40px; height: 40px; flex-basis: 40px; }
  .resource-promo { align-items: stretch; flex-direction: column; gap: 14px; padding: 20px; }
  .resource-promo .button { align-self: flex-start; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; width: 100%; min-height: 0; padding: 50px 24px 44px; }
  h1 { font-size: 38px; }
  .hero-copy h1 { font-size: clamp(20px, 8.6vw, 38px); }
  h2 { font-size: 34px; }
  .hero-intro { font-size: 15px; }
  .hero-photo { align-self: center; width: min(100%, 420px); margin: 0; }
  .hero-photo img { height: auto; }
  .hero-photo figcaption { align-items: center; flex-direction: column; font-size: 10px; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; padding: 22px 24px; }
  .reasons-section { padding: 38px 24px; }
  .reasons-heading { grid-template-columns: 1fr; gap: 8px; }
  .reasons-heading h2 { font-size: 29px; }
  .reasons-heading > p { font-size: 12px; }
  .reasons-grid { gap: 9px; }
  .reason-card { padding: 13px 11px 11px; }
  .reason-card h3 { font-size: 13px; }
  .reason-card ul { font-size: 10px; }
  .stats-section { padding-top: 64px; padding-bottom: 64px; }
  .stats-section .section-heading h2 { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 14px; }
  .stats-panel h3 { min-height: 0; }
  .stats-context { min-height: 0; }
  .proof-strip p { display: grid; gap: 0; }
  .proof-strip p:nth-child(3) { grid-column: 1; }
  .resource-proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-strip > a { grid-column: 2; grid-row: 2; align-self: end; }
  .section, .visit-section { width: calc(100% - 48px); padding: 60px 0; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2 { margin-bottom: 18px; }
  .section-heading > p:last-child { font-size: 13px; }
  .class-row { grid-template-columns: 62px minmax(0, 1fr) 30px; gap: 9px; min-height: 76px; }
  .class-age { font-size: 9px; }
  .class-name { min-width: 0; overflow-wrap: anywhere; font-size: 16px; }
  .class-detail { grid-column: 2; grid-row: 2; margin-top: -20px; font-size: 10px; }
  .row-arrow { grid-column: 3; grid-row: 1 / 3; }
  .team-feature { margin-bottom: 42px; padding: 34px 24px; }
  .team-feature-heading h2 { font-size: 28px; }
  .team-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .team-feature-card { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .team-feature-card > img { width: 92px; height: 124px; }
  .team-feature-copy h3 { font-size: 19px; }
  .team-feature-copy p:not(.eyebrow) { font-size: 11px; }
  .quote-band { grid-template-columns: 1fr; gap: 26px; padding: 60px 24px; }
  .quote-list { grid-template-columns: 1fr; gap: 18px; }
  .quote-list blockquote:first-child { grid-column: auto; }
  .quote-list blockquote p { font-size: 15px; }
  .visit-section { grid-template-columns: 1fr; gap: 35px; }
  .visit-details { gap: 18px; padding: 0 0 0 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .site-footer small { grid-column: auto; }
  .page-hero { padding: 48px 24px 38px; }
  .page-hero h1 { font-size: 42px; }
  .resource-banner h1 { font-size: clamp(30px, 8vw, 42px); }
  .page-hero--media { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .page-hero--media > .eyebrow { grid-column: 1; grid-row: 1; }
  .page-hero--media > h1 { grid-column: 1; grid-row: 2; }
  .page-hero--media > p:last-of-type { grid-column: 1; grid-row: 3; }
  .page-hero-photo { grid-column: 1; grid-row: 4; width: min(100%, 420px); justify-self: start; margin-top: 24px; }
  .page-content h2 { font-size: 28px; }
  .page-content { width: calc(100% - 40px); padding: 38px 0 70px; }
  .page-content.page-content--pricing { padding-top: 24px; }
  .resource-card-image, .resource-card-placeholder { width: 90px; height: 90px; flex-basis: 90px; }
  .class-evidence { margin-top: 32px; margin-bottom: 32px; padding-top: 20px; padding-bottom: 20px; }
  .page-content .class-evidence h2 { font-size: 24px; }
  .eiken-path, .toeic-skill-map { grid-template-columns: 1fr; }
  .eiken-path { gap: 9px; }
  .cefr-scale { grid-template-columns: 1fr; }
  .eiken-path li, .toeic-skill-group { padding: 12px; }
  .online-steps li:not(:last-child)::after { top: auto; right: 12px; bottom: -16px; content: "↓"; transform: none; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-field.full-width, .form-fieldset, .form-actions { grid-column: auto; }
  .weekly-closed { align-items: flex-start; gap: 12px; margin-bottom: 32px; padding: 16px; }
  .fifth-week-note { margin-bottom: 24px; padding: 14px 16px; }
  .undecided-notice { margin-bottom: 22px; padding: 14px 16px; }
  .holiday-policy-note { margin-bottom: 24px; padding: 13px 16px; }
  .weekly-closed strong { font-size: 15px; }
  .holiday-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .holiday-heading h2 { font-size: 28px; }
  .holiday-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .page-links { grid-template-columns: 1fr; }
  .resource-category-nav, .resource-support-note { width: calc(100% - 40px); }
  .resource-category-nav { grid-template-columns: 1fr; gap: 9px; }
  .resource-category-card { min-height: 70px; padding: 11px 13px; }
  .resource-support-note { padding: 14px 16px; }
  .resource-product-list { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; gap: 18px; }
  .price-table-wrap { border-radius: 0; overflow: visible; }
  .price-table { background: transparent; }
  .price-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .price-table tbody { display: grid; gap: 12px; }
  .price-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
  .price-table tbody tr:nth-child(even) { background: #e8f2fb; }
  .price-table tbody tr:hover { background: inherit; }
  .price-table tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 9px; border: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .price-table tbody td { min-width: 0; padding: 9px 0 0; border: 0; font-size: 13px; }
  .price-table tbody td::before { display: block; margin-bottom: 2px; color: var(--ink-soft); content: attr(data-label); font-size: 10px; font-weight: 800; }
  .price-table tbody .price-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); border-bottom: 0; }
  .price-table tbody .price-total::before { margin: 0; color: var(--ink); font-size: 12px; }
  .map-frame { height: 300px; }
  .teacher-profile { grid-template-columns: 1fr; gap: 24px; }
  .teacher-profile img { max-width: 360px; }
  .trial-confirmation img { grid-column: auto; grid-row: auto; }
  .offer-note { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-gallery img { height: 180px; }
  .photo-gallery--pets img { height: 190px; }
  .photo-gallery figcaption { padding: 8px; font-size: 11px; }
  .logo-feature { align-items: flex-start; gap: 14px; padding: 16px; }
  .logo-feature img { width: 76px; height: 76px; flex-basis: 76px; }
}

@media (max-width: 360px) {
  .hero-copy h1 { font-size: clamp(20px, 8.6vw, 32px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .frabby-walker { left: 50%; transform: translate(-50%, -80%); animation: none; }
}