:root {
  color-scheme: light;
  --ink: #173d6b;
  --ink-soft: #4d6781;
  --paper: #f2f7fc;
  --white: #fff;
  --cyan: #67a9d8;
  --coral: #a8431f;
  --yellow: #f4c45c;
  --line: #d4e1ee;
  --sans: Tahoma, Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgb(23 61 107 / 3%) 40px), repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgb(23 61 107 / 3%) 40px);
  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); }
.brand { display: flex; flex: 0 1 255px; align-items: center; gap: 9px; }
.brand img { width: 100%; height: auto; }
.brand .brand-round { width: 52px; height: 52px; flex: 0 0 52px; object-fit: contain; }
.brand .brand-wordmark { min-width: 0; flex: 1; }
.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; align-items: center; gap: 10px; text-decoration: none; }
.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: #2b73b9; text-decoration: none; }
.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; -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: 620px; margin: 0 auto; padding: 60px 4.5% 76px; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero-copy h1 { font-size: 64px; }
.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; }
.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); }
.button-primary:hover { color: var(--white); background: #8f371f; }
.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; -webkit-text-stroke: .55px currentColor; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }
.hero-photo { justify-self: end; width: min(100%, 300px); margin: 0; }
.hero-photo img { width: 100%; height: auto; border-radius: 8px; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 0; color: var(--ink-soft); font-size: 11px; }
.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: #286ba9; }
.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; }
.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; }
.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; -webkit-text-stroke: .55px currentColor; }

.stats-section { padding-top: 78px; padding-bottom: 78px; }
.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 1fr 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-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: #286ba9; }
.stats-context { min-height: 4.5em; margin: 0 0 12px; color: var(--ink-soft); font-size: 12px; }
.stats-single-track, .stats-comparison-track { display: block; height: 14px; overflow: hidden; border-radius: 999px; background: #edf3f8; }
.stats-single-track { margin: 20px 0 22px; }
.stats-single-fill, .stats-comparison-fill { display: block; height: 100%; border-radius: inherit; background: #286ba9; }
.stats-single-fill { width: var(--bar-width); background: var(--coral); }
.stats-comparison { display: grid; gap: 13px; margin: 25px 0 20px; }
.stats-comparison-row { display: grid; grid-template-columns: 58px 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-fill--global { background: #67a9d8; }
.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; }
.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; }

.section { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 112px 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 > 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; -webkit-text-stroke: .55px currentColor; text-align: center; }
.section-link { display: inline-block; margin-top: 28px; }
.teacher-feature { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 48px; width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 76px; }
.teacher-feature > img { width: 100%; height: auto; border-radius: 8px; }
.teacher-feature h2 { font-size: 36px; }
.teacher-feature p:not(.eyebrow) { max-width: 500px; margin: 18px 0; color: var(--ink-soft); }
.fuzz-feature { margin: 0 0 76px; padding: 26px max(32px, calc((100% - 1120px) / 2)); border-block: 1px solid var(--line); background: #e8f1fa; }
.fuzz-feature-link { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 24px; max-width: 1120px; margin: 0 auto; color: var(--ink); text-decoration: none; }
.fuzz-feature-link > img { width: 96px; height: 96px; border: 4px solid var(--white); border-radius: 50%; object-fit: cover; }
.fuzz-feature-copy .eyebrow { margin-bottom: 4px; color: var(--coral); }
.fuzz-feature-copy h2 { margin-bottom: 5px; font-size: 29px; }
.fuzz-feature-copy p:last-child { margin: 0; color: var(--ink-soft); font-size: 13px; }
.button-secondary { border: 1px solid #8bb5da; color: var(--ink); background: var(--white); }
.button-secondary:hover { color: var(--ink); background: #f7fbff; }

.quote-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 78px max(32px, calc((100% - 1120px) / 2)); color: var(--white); background: var(--coral); }
.quote-band .eyebrow { color: #fff0e8; }
.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: #fff0e8; 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: 112px 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; background: var(--white); }
.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); }
.page-content { width: min(940px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 100px; }
.page-content > * + * { margin-top: 30px; }
.page-content h2 { margin: 0 0 16px; font-size: 34px; }
.page-content p { color: var(--ink-soft); }
.page-content a { color: var(--ink); font-weight: 700; }
.page-content a.button-primary { color: var(--white); }
.form-intro { max-width: 700px; margin: 0 auto 34px; }
.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; }
.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; -webkit-text-stroke: .55px currentColor; }
.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%; }
.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 #c5d5e4; 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 tbody th { width: 28%; font-weight: 700; }
.price-total { color: var(--coral); font-weight: 900; }
.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; background: var(--white); }
.offer-note strong { display: block; margin-bottom: 4px; color: #aa3829; }
.map-frame { width: 100%; height: 360px; border: 1px solid var(--line); }
.teacher-profile { display: grid; grid-template-columns: minmax(200px, .75fr) 1.25fr; align-items: start; gap: 42px; }
.teacher-profile img { width: 100%; max-height: 460px; object-fit: cover; object-position: center 28%; }
.teacher-profile h2 { margin-top: 0; }
.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, .fuzz-feature-link,
    .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%;
    }

    .stats-bar-rail, .stats-single-track, .stats-comparison-track, .curriculum-track {
      view-timeline-name: --chart-reveal;
    }

    .stats-bar-fill {
      transform-origin: bottom;
      animation: scroll-bar-up linear both;
      animation-timeline: --chart-reveal;
      animation-range: entry 0% entry 80%;
    }

    .stats-single-fill, .stats-comparison-fill, .curriculum-track span {
      transform-origin: left;
      animation: scroll-bar-across linear both;
      animation-timeline: --chart-reveal;
      animation-range: entry 0% entry 80%;
    }

    :is(.stats-panel, .class-row, .fuzz-feature-link, .visit-copy, .visit-details, .page-links > a):focus-within {
      animation: none;
    }
  }
}

@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; }
  .hero-copy h1 { font-size: 54px; }
  h2 { font-size: 42px; }
  .page-hero h1 { font-size: 54px; }
  .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; }
  .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: 680px) {
  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; }
  .menu-toggle { display: grid; 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(--paper); }
  .primary-nav.is-open { display: grid; }
  .primary-nav > a:not(.nav-cta) { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 13px; text-align: center; }
  .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: 38px; }
  h2 { font-size: 34px; }
  .hero-intro { font-size: 15px; }
  .hero-photo { align-self: center; width: min(68%, 240px); margin: 0; }
  .hero-photo img { height: auto; }
  .hero-photo figcaption { align-items: flex-start; flex-direction: column; font-size: 10px; }
  .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; padding: 22px 24px; }
  .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; }
  .proof-strip > a { grid-column: 2; grid-row: 2; align-self: end; }
  .section, .visit-section { width: calc(100% - 48px); padding: 74px 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; }
  .teacher-feature { grid-template-columns: 1fr; gap: 20px; width: calc(100% - 48px); padding-bottom: 48px; }
  .teacher-feature > img { width: min(50%, 180px); }
  .teacher-feature h2 { font-size: 28px; }
  .fuzz-feature { margin-bottom: 42px; padding: 22px 24px; }
  .fuzz-feature-link { grid-template-columns: 70px minmax(0, 1fr); gap: 13px; }
  .fuzz-feature-link > img { width: 68px; height: 68px; }
  .fuzz-feature-copy h2 { font-size: 21px; }
  .fuzz-feature-copy p:last-child { font-size: 11px; }
  .fuzz-feature-link > .button { grid-column: 1 / -1; justify-self: start; }
  .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; }
  .page-content h2 { font-size: 28px; }
  .page-content { width: calc(100% - 40px); padding: 38px 0 70px; }
  .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; }
  .eiken-path li, .toeic-skill-group { padding: 12px; }
  .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; }
  .fact-grid { grid-template-columns: 1fr; gap: 18px; }
  .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 #c5d5e4; 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 #c5d5e4; 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 #c5d5e4; 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; }
  .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: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}