/* Sun Japanese Training Center — site styles
   Palette from the logo: hinomaru red + Bangladesh green, on clean paper. */
:root {
  --red: #E9292B;        /* logo red: sun, decoration */
  --red-ink: #C8191C;    /* buttons, text on white (AA) */
  --green: #06904E;      /* logo green */
  --green-ink: #05753F;
  --ink: #18242C;
  --ink-2: #4A5961;
  --washi: #F2F5F3;
  --line: #DDE4E0;
  --paper: #FFFFFF;
  --font: "Anek Bangla", "Noto Sans Bengali", system-ui, sans-serif;
  --font-jp-display: "Shippori Mincho", "Yu Mincho", serif;
  --wrap: 1200px;
  --r-sm: 6px;
  --r: 12px;
  --shadow: 0 1px 2px rgba(24, 36, 44, .06), 0 8px 24px -12px rgba(24, 36, 44, .18);
}
.lang-ja { --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); }
.lang-en body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic--sm { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.3em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn--lg { min-height: 54px; padding-inline: 1.7em; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn--red { background: var(--red-ink); color: #fff; }
.btn--red:hover { background: #A51416; color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--green-ink); }
.btn--white:hover { background: var(--washi); color: var(--ink); }
.btn--line-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--line-white:hover { background: #fff; color: var(--green-ink); }

.tag { display: inline-block; padding: .1em .65em; border-radius: 999px; font-size: .8125rem; font-weight: 600; line-height: 1.6; }
.tag--red { background: #FDE8E8; color: #A51416; }
.tag--green { background: #E2F3EA; color: var(--green-ink); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #D4DCD8; font-size: .875rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__social { display: flex; gap: 14px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand img { width: 112px; height: auto; }
.nav { flex: 1; }
.nav { min-width: 0; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 0; justify-content: flex-end; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; line-height: 1.4; background: none; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.nav__link:hover { color: var(--red-ink); }
.nav__link.is-active { color: var(--red-ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__more { position: relative; }
.nav__sub { list-style: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: none; }
.nav__more.is-open .nav__sub { display: block; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.nav__sub a:hover, .nav__sub a.is-active { background: var(--washi); color: var(--red-ink); }
.nav__apply-mobile { display: none; }
.header__tools { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.langs { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px; white-space: nowrap; }
.langs a { display: block; padding: 2px 11px; border-radius: 999px; font-size: .875rem; color: var(--ink-2); text-decoration: none; line-height: 1.6; white-space: nowrap; }
.langs a:hover { color: var(--ink); }
.langs a.is-current { background: var(--ink); color: #fff; }
/* Desktop: languages live in the dark top bar; header shows them only on small screens */
.langs--top { border-color: #3A4A53; padding: 2px; }
.langs--top a { color: #C4CEC9; font-size: .82rem; padding: 1px 10px; }
.langs--top a:hover { color: #fff; }
.langs--top a.is-current { background: #fff; color: var(--ink); }
.langs--header { display: none; }
.langs a[lang="ja"] { font-family: "Noto Sans JP", var(--font); }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-btn .ic { width: 24px; height: 24px; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

/* ---------- Hero (the one bold moment: the rising sun) ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; background: #fff; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; }
.hero__title { font-size: clamp(2rem, 4.2vw, 3.35rem); line-height: 1.22; font-weight: 700; max-width: 16ch; margin-bottom: .45em; }
.lang-en .hero__title { max-width: 18ch; letter-spacing: -.02em; }
.lang-ja .hero__title { line-height: 1.4; font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 14em; }
.hero__sub { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__next { display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; color: var(--ink-2); margin: 0; }
.hero__next strong { color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(233, 41, 43, .15); }
.hero__art { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: end; }
.hero__rays { position: absolute; inset: -6%; width: 112%; height: 112%; }
.hero__sun { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #F24A4C 0%, var(--red) 46%, #CF1E21 100%); overflow: hidden; }
.hero__sun.has-img { background: var(--washi); box-shadow: 0 0 0 10px var(--red); }
.hero__sun img { width: 100%; height: 100%; object-fit: cover; }
.hero__tate { position: absolute; right: -2%; top: 6%; writing-mode: vertical-rl; font-family: var(--font-jp-display); font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.7; letter-spacing: .14em; color: var(--green); margin: 0; }
/* One orchestrated moment: the sun rises on load */
@keyframes sun-rise { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero__sun { animation: sun-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__rays { animation: fade-in .6s .55s both; }
.hero__tate { animation: fade-in .8s .8s both; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column-reverse; padding-inline: 20px; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; padding-left: 0; }
.stats dt { color: var(--ink-2); font-size: .95rem; }
.stats dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--ink); line-height: 1.2; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec--washi { background: var(--washi); }
.sec__head { margin-bottom: 36px; max-width: 62ch; }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.sec__title { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
.sec__sub { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; margin: 0; }
.link-more { font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.link-back { font-weight: 600; }
.empty { padding: 40px; text-align: center; color: var(--ink-2); background: var(--washi); border-radius: var(--r); }

/* Course ladder: N5 → N4 → N3 rises like steps */
.ladder { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.ladder__step { margin-top: calc((2 - var(--i, 0)) * 32px); } /* each level a step higher */
.ladder__card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 26px 24px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ladder__step:last-child .ladder__card { border-top-color: var(--red); }
.ladder__card:hover { box-shadow: var(--shadow); border-color: #C8D2CD; color: var(--ink); }
.ladder__level { font-family: var(--font-jp-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--green); margin-bottom: 14px; }
.ladder__step:last-child .ladder__level { color: var(--red-ink); }
.ladder__title { font-size: 1.2rem; }
.ladder__short { color: var(--ink-2); flex: 1; }
.ladder__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--ink-2); }
.ladder__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ladder__more { font-weight: 600; color: var(--red-ink); margin-top: 6px; }

/* Intake timeline */
.intake { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.intake__text .btn { margin-top: 22px; }
.intake__line { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.intake__line::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 2px; background: var(--line); }
.intake__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intake__dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #C8D2CD; margin-bottom: 14px; position: relative; }
.intake__item.is-next .intake__dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 7px rgba(233, 41, 43, .15); }
.intake__month { font-weight: 700; font-size: 1.15rem; }
.intake__year { color: var(--ink-2); font-size: .95rem; }
.intake__badge { margin-top: 8px; font-size: .8rem; font-weight: 600; color: #A51416; background: #FDE8E8; padding: 1px 10px; border-radius: 999px; }

/* Steps: a real sequence, so numbered */
.steps-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.steps { list-style: none; display: grid; gap: 0; }
.steps__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num { font-family: var(--font-jp-display); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--red); }
.steps__title { font-size: 1.15rem; margin-bottom: .2em; }
.steps__item p { margin: 0; color: var(--ink-2); }

/* Stories */
.story-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.story-row > * { scroll-snap-align: start; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.story { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.story__photo { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #E8EEEA, #D6E2DB); display: grid; place-items: center; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__photo .tag { position: absolute; left: 12px; bottom: 12px; }
.story__initial { font-family: var(--font-jp-display); font-size: 4rem; font-weight: 800; color: rgba(6, 144, 78, .35); }
.story__body { padding: 16px 18px 18px; }
.story__name { font-size: 1.1rem; margin-bottom: .15em; }
.story__inst { font-weight: 500; margin: 0 0 .2em; }
.story__intake { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .92rem; margin: 0 0 .6em; }
.story__quote { color: var(--ink-2); font-size: .95rem; margin: 0; }
.story__video { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; text-decoration: none; }

/* Promises (commitments) */
.promises { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 48px; }
.promises__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.promises__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #E2F3EA; color: var(--green-ink); }
.promises__icon .ic { width: 22px; height: 22px; }
.promises__item h3 { font-size: 1.12rem; margin-bottom: .25em; }
.promises__item p { margin: 0; color: var(--ink-2); }

/* Part-time chips */
.parttime { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; }
.chip .ic { color: var(--green); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post__link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; }
.post__link:hover { border-color: #C8D2CD; color: var(--ink); }
.post__link:hover .post__title { color: var(--red-ink); }
.post__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post__body { padding: 18px 20px 20px; }
.post__meta { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9rem; margin-bottom: 8px; }
.post__title { font-size: 1.12rem; }
.post__ex { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* CTA band */
.cta { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -90px; top: 50%; width: 260px; height: 260px; margin-top: -130px; border-radius: 50%; background: var(--red); opacity: .95; }
.cta__in { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 54px 0; padding-right: 150px; }
.cta__title { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin-bottom: .3em; }
.cta__sub { margin: 0; opacity: .92; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Inner page hero ---------- */
.phero { position: relative; overflow: hidden; background: var(--washi); padding: 44px 0 48px; border-bottom: 1px solid var(--line); }
.phero__in { position: relative; z-index: 1; }
.phero__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; max-width: 24ch; }
.phero__lead { color: var(--ink-2); font-size: 1.1rem; margin: .5em 0 0; max-width: 60ch; }
.phero__sun { position: absolute; right: -70px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: var(--red); }
.phero__sun::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px solid rgba(233, 41, 43, .25); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: #A3B0AA; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red-ink); }

/* Prose */
.prose { max-width: 72ch; }
.prose--narrow { margin: 0 auto 0 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose .lead { font-size: 1.25rem; font-weight: 600; color: var(--green-ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--red); }
.prose img { border-radius: var(--r); margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.side-stats { position: sticky; top: 110px; display: grid; gap: 0; border-left: 3px solid var(--red); padding-left: 22px; }
.side-stats div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.side-stats strong { display: block; font-size: 2rem; line-height: 1.2; }
.side-stats span { color: var(--ink-2); }

/* Course list page */
.course-list { display: grid; gap: 16px; }
.course-row { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.course-row__level { font-family: var(--font-jp-display); font-size: 3rem; font-weight: 800; color: var(--green); line-height: 1; }
.course-row__title { font-size: 1.3rem; margin-bottom: .2em; }
.course-row__title a { color: var(--ink); text-decoration: none; }
.course-row__title a:hover { color: var(--red-ink); }
.course-row__main p { margin: 0; color: var(--ink-2); }
.course-row__facts { display: grid; gap: 4px; margin: 0; font-size: .95rem; }
.course-row__facts div { display: flex; gap: 8px; }
.course-row__facts dt { color: var(--ink-2); min-width: 5.5em; }
.course-row__facts dd { margin: 0; font-weight: 500; }
.course-row__cta { display: flex; flex-direction: column; gap: 8px; }

/* Detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.detail__img { border-radius: var(--r); margin-bottom: 28px; width: 100%; }
.detail__side { position: sticky; top: 110px; display: grid; gap: 22px; }
.factbox { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: #fff; display: grid; gap: 12px; }
.factbox__level { font-family: var(--font-jp-display); font-size: 2.6rem; font-weight: 800; color: var(--green); line-height: 1; }
.factbox dl { margin: 0 0 8px; }
.factbox dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.factbox dt { color: var(--ink-2); }
.factbox dd { margin: 0; font-weight: 600; text-align: right; }
.side-h { font-size: 1.1rem; margin-bottom: .6em; }
.side-list { list-style: none; display: grid; gap: 4px; }
.side-list a { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; background: var(--washi); }
.side-list a:hover { color: var(--red-ink); }
.side-list span { font-family: var(--font-jp-display); font-weight: 800; color: var(--green); }
.side-list--posts a { flex-direction: column; gap: 2px; }
.side-list--posts time { font-size: .85rem; color: var(--ink-2); }

/* Filters, tabs, pager */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 32px; padding: 18px 20px; background: var(--washi); border-radius: var(--r); }
.filters label { display: grid; gap: 4px; font-size: .9rem; color: var(--ink-2); min-width: 150px; }
.filters__reset { align-self: center; font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; color: var(--ink-2); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--red-ink); border-color: var(--red); }
.pagination { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pagination .active a, .pagination .active span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Teachers */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.teacher__photo { aspect-ratio: 5 / 6; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, #E8EEEA, #D6E2DB); display: grid; place-items: center; margin-bottom: 14px; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher__name { font-size: 1.15rem; margin-bottom: 0; }
.teacher__role { color: var(--ink-2); margin: 0 0 .5em; }
.teacher__q { font-size: .93rem; margin: .5em 0 0; font-weight: 500; }
.teacher__bio { font-size: .95rem; color: var(--ink-2); margin: .4em 0 0; }

/* Branches */
.branch-list { display: grid; gap: 24px; }
.branch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.branch__info { padding: 28px; display: grid; gap: 12px; align-content: start; justify-items: start; }
.branch__name { font-size: 1.35rem; margin: 0; }
.branch__map { width: 100%; height: 100%; min-height: 300px; border: 0; }
.iconlist { list-style: none; display: grid; gap: 10px; }
.iconlist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.iconlist .ic { margin-top: .3em; color: var(--green); }
.iconlist a { color: var(--ink); text-decoration: none; }
.iconlist a:hover { color: var(--red-ink); }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.album { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.album__cover { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--washi); margin-bottom: 8px; }
.album__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album:hover .album__cover img { transform: scale(1.03); }
.album__title { font-weight: 600; font-size: 1.08rem; }
.album__meta { color: var(--ink-2); font-size: .9rem; }
.masonry { columns: 3 280px; column-gap: 18px; margin-bottom: 28px; }
.masonry__item { break-inside: avoid; margin: 0 0 18px; }
.masonry__item img { border-radius: var(--r); width: 100%; }
.masonry__item--video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }
.masonry figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 16, 20, .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-sm); }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }

/* FAQ */
.faq { max-width: 860px; }
.faq__group + .faq__group { margin-top: 40px; }
.faq__cat { font-size: 1.3rem; color: var(--green-ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { transition: transform .2s; color: var(--red); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 2px 20px; color: var(--ink-2); max-width: 70ch; }
.faq__more { margin-top: 36px; color: var(--ink-2); }

/* ---------- Forms ---------- */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 4vw, 36px); }
.formcard__title { font-size: 1.5rem; margin-bottom: .2em; }
.formcard__sub { color: var(--ink-2); }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; padding: 0; }
.legend-num { width: 32px; height: 32px; border-radius: 50%; background: var(--red-ink); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.field { margin-bottom: 16px; min-width: 0; }
.field label, .field .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #C8D2CD; border-radius: var(--r-sm); background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
textarea { min-height: 0; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5961' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(6, 144, 78, .18); }
[aria-invalid="true"] { border-color: var(--red-ink) !important; }
.field__err { color: #A51416; font-size: .9rem; margin: 6px 0 0; }
.radios, .levels { display: flex; flex-wrap: wrap; gap: 8px; }
.radio, .level { position: relative; cursor: pointer; }
.radio input, .level input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span, .level span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #C8D2CD; border-radius: 999px; font-weight: 500; }
.radio input:checked + span, .level input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio input:focus-visible + span, .level input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.file { position: relative; display: block; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file__btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1.5px dashed #A9B7B0; border-radius: var(--r-sm); color: var(--ink-2); background: var(--washi); }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.has-file .file__btn { border-style: solid; border-color: var(--green); color: var(--green-ink); background: #E2F3EA; }
.file input:focus-visible + .file__btn { outline: 3px solid var(--green); outline-offset: 2px; }
.hint { font-size: .9rem; color: var(--ink-2); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--green); flex: none; }
.check.is-invalid span { color: #A51416; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-weight: 500; }
.alert--ok { background: #E2F3EA; color: var(--green-ink); }
.alert--err { background: #FDE8E8; color: #A51416; }

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.contact__quick { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.quick { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; background: #fff; }
.quick:hover { border-color: var(--red); color: var(--ink); }
.quick .ic { width: 26px; height: 26px; color: var(--red-ink); }
.quick--wa .ic { color: var(--green); }
.quick span { display: grid; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.quick strong { color: var(--ink); font-size: 1.1rem; }
.contact__branch { padding: 20px 0; border-top: 1px solid var(--line); }
.contact__branch .link-more { display: inline-block; margin-top: 12px; }

.apply { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.apply__side { position: sticky; top: 110px; }
.side-intakes { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; }
.side-intakes li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: var(--washi); }
.side-intakes li.is-next { background: #FDE8E8; font-weight: 600; }
.side-intakes em { font-style: normal; font-size: .8rem; color: #A51416; }

.done { max-width: 560px; text-align: center; display: grid; justify-items: center; }
.done__sun { width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 0 0 12px rgba(233, 41, 43, .12); }
.done__sun .ic { width: 44px; height: 44px; }
.done__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.done__ref { display: grid; gap: 2px; padding: 18px 32px; margin: 10px 0; border: 2px dashed var(--green); border-radius: var(--r); }
.done__ref span { color: var(--ink-2); font-size: .92rem; }
.done__ref strong { font-size: 1.6rem; letter-spacing: .04em; }
.done__code { font-family: var(--font-jp-display); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--red); margin-bottom: 10px; }
.done__links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C4CEC9; padding-top: 64px; font-size: .97rem; }
.footer a { color: #E6ECE9; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { width: 140px; margin-bottom: 18px; }
.footer__brand p { max-width: 36ch; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3A4A53; display: grid; place-items: center; }
.footer__social a:hover { background: var(--red-ink); border-color: var(--red-ink); }
.footer__h { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.footer__links { list-style: none; display: grid; gap: 8px; }
.footer__contact { list-style: none; display: grid; gap: 12px; }
.footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.footer__contact .ic { margin-top: .3em; color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid #2E3D46; font-size: .9rem; }

/* Floating contact */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #1E9E57; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35); }
.wa-float:hover { background: var(--green-ink); color: #fff; }
.wa-float .ic { width: 26px; height: 26px; }
.call-float { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1260px) {
  .header__in { gap: 16px; }
  .nav__link { padding: 8px 7px; font-size: .93rem; }
  .brand img { width: 100px; }
}
@media (max-width: 1120px) {
  .header__apply { display: none; }
}
@media (max-width: 1020px) {
  .topbar__contact a:nth-child(2) { display: none; }
  .menu-btn { display: inline-flex; }
  .langs--top { display: none; }
  .langs--header { display: flex; }
  .nav { position: fixed; inset: 0 0 0 auto; top: 0; width: min(88vw, 360px); background: #fff; z-index: 70; padding: 84px 20px 28px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .3); overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; padding: 13px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-active { box-shadow: none; }
  .nav__more-btn { display: none; }
  .nav__sub { display: block; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .nav__sub a { padding: 13px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav__apply-mobile { display: flex; }
  .menu-btn { position: relative; z-index: 80; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 16, 20, .45); z-index: 40; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(52vw, 250px); justify-self: start; margin: 0 0 -8px -4px; }
  .hero__tate { right: -42%; top: 14%; font-size: 1.3rem; }
  .hero { padding-top: 24px; }
  .intake, .steps-wrap, .parttime, .contact, .apply, .detail, .prose-wrap { grid-template-columns: 1fr; gap: 32px; }
  .apply__side, .detail__side, .side-stats { position: static; }
  .promises { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .ladder__step { margin-top: 0; }
  .course-row { grid-template-columns: 80px 1fr; }
  .course-row__facts, .course-row__cta { grid-column: 2; }
  .course-row__cta { flex-direction: row; flex-wrap: wrap; }
  .branch { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__in { flex-direction: column; align-items: flex-start; padding-right: 0; }
  .cta::after { width: 180px; height: 180px; right: -70px; top: 30px; margin-top: 0; }
  .cta__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar { display: none; }
  .header__in { min-height: 66px; gap: 10px; }
  .brand img { width: 92px; }
  .langs a { padding: 3px 7px; font-size: .8rem; }
  .stats { grid-template-columns: 1fr 1fr 1fr; margin-top: 32px; padding: 18px 0 22px; }
  .stats__item { padding-inline: 10px; }
  .stats dt { font-size: .8rem; line-height: 1.35; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .intake__line { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .intake__line::before { display: none; }
  .course-row { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .course-row__facts, .course-row__cta { grid-column: 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .sec__head--row { flex-direction: column; align-items: flex-start; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .call-float { display: grid; place-items: center; position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: var(--red-ink); color: #fff; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35); }
  .call-float .ic { width: 24px; height: 24px; }
  .phero__sun { width: 180px; height: 180px; right: -60px; bottom: -100px; }
  .filters label { min-width: 0; flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .footer, .wa-float, .call-float, .cta { display: none; }
}
