:root {
  --paper: #F6F9FE;
  --grid: #DCE6F5;
  --ink: #1B2A4A;
  --ink-soft: #4A5875;
  --sun: #FFC531;
  --leaf: #2FA36B;
  --berry: #E8467C;
  --berry-ink: #B4234F;
  --sky: #3D7BF0;
  --white: #FFFFFF;
  --display: "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --brand: "Baloo 2", "Nunito", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html:lang(ja) {
  --display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Baloo 2", system-ui, sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 1rem); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
html:lang(ja) body { line-height: 1.8; }
img, svg { max-width: 100%; }
a { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { line-height: 1.35; letter-spacing: 0; word-break: auto-phrase; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: var(--white); padding: .5rem 1rem; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 1rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow-wrap { width: min(720px, 100% - 2.5rem); }

/* Header */
.top { padding: 1.25rem 0; }
.top .wrap { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav tools"; align-items: center; gap: .75rem 1.75rem; }
.logo { grid-area: logo; font-family: var(--brand); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; }
.logo span { width: .42em; height: .42em; background: var(--sun); border-radius: 50%; display: inline-block; margin-left: .08em; box-shadow: 0 0 0 3px var(--ink) inset; }
.top nav { grid-area: nav; display: flex; gap: 1.4rem; align-items: center; justify-content: flex-end; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--berry); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tools { grid-area: tools; }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang a { font-family: var(--body); font-weight: 600; font-size: .9rem; color: var(--ink); padding: .3rem .75rem; text-decoration: none; }
.lang a + a { border-left: 2px solid var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--white); }
.lang .ja { font-family: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif; }

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3;
  padding: .7rem 1.4rem .6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 3px solid var(--ink); background: var(--sun); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.small { font-size: 1rem; padding: .45rem 1rem .35rem; box-shadow: 3px 3px 0 var(--ink); }
.btn.dark { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--sun); }
.btn.dark:hover { box-shadow: 5px 5px 0 var(--sun); }
.link { font-weight: 600; color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--berry); }

/* Hero */
.hero { padding: 2.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; max-width: 13ch; }
html:lang(ja) .hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 14em; }
.hero .lede { margin-top: 1.25rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: center; }
.hero .age { margin-top: 1.75rem; display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-weight: 600; }
.hero .age b { font-family: var(--brand); background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 0 .5rem; }

/* Circuit demo */
.bench { background: var(--white); border: 3px solid var(--ink); border-radius: 28px; padding: 1.25rem 1.25rem 1.5rem; box-shadow: 8px 8px 0 var(--ink); }
.circuit-btn { display: block; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 18px; }
.circuit { display: block; width: 100%; height: auto; }
.circuit .lbl { font-family: var(--body); font-size: 15px; font-weight: 600; fill: var(--ink-soft); }
.circuit .plus { font-family: var(--brand); font-size: 30px; font-weight: 800; fill: var(--white); }
.wire { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.flow { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 22; opacity: 0; }
.lever { transform-origin: 262px 60px; transform-box: view-box; transform: rotate(-28deg); transition: transform .35s cubic-bezier(.5,1.8,.5,1); }
.glass { fill: #EEF2F8; transition: fill .3s; }
.glow, .rays { opacity: 0; transition: opacity .4s; }
.on .lever { transform: rotate(0deg); }
.on .flow { opacity: 1; animation: run 1.1s linear infinite; }
.on .glass { fill: var(--sun); }
.on .glow, .on .rays { opacity: 1; }
@keyframes run { to { stroke-dashoffset: -48; } }
.caption { margin-top: 1rem; display: flex; gap: .75rem; align-items: flex-start; min-height: 3.4em; }
.caption .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: .45em; background: var(--berry); transition: background .3s; }
.caption.lit .dot { background: var(--leaf); }
.caption p { font-weight: 500; }

/* Sections */
section { padding: 4.5rem 0; }
.page { padding-top: 2rem; }
.sec-head { max-width: 40rem; margin-bottom: 2.75rem; }
.sec-head h1, .sec-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.sec-head p { margin-top: .9rem; color: var(--ink-soft); font-size: 1.125rem; }
.more { margin-top: 2rem; }

/* STEM letters */
.stem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; list-style: none; margin: 0; padding: 0; }
.stem li { display: flex; flex-direction: column; gap: .8rem; }
.letter { width: 84px; height: 84px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 22px; font-family: var(--brand); font-weight: 800; font-size: 3.2rem; line-height: 1; padding-top: .12em; }
.stem li:nth-child(1) .letter { background: var(--leaf); color: var(--white); transform: rotate(-4deg); }
.stem li:nth-child(2) .letter { background: var(--sky); color: var(--white); transform: rotate(3deg); }
.stem li:nth-child(3) .letter { background: var(--sun); transform: rotate(-2deg); }
.stem li:nth-child(4) .letter { background: var(--berry); color: var(--white); transform: rotate(5deg); }
.stem h3 { font-size: 1.5rem; }
.stem p { color: var(--ink-soft); }

/* Small project links */
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mini.one { grid-template-columns: 1fr; gap: .75rem; }
.mini a { display: flex; gap: .9rem; align-items: center; padding: .8rem 1rem; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.mini a:hover { box-shadow: 4px 4px 0 var(--ink); }
.mini svg { width: 52px; height: 52px; flex: none; }

/* Cards (projects and kits) */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.card { position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.card:hover, .card:focus-within { box-shadow: 6px 6px 0 var(--ink); }
.card svg { width: 76px; height: 76px; }
.card h3 { font-size: 1.5rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.card p { color: var(--ink-soft); }
.card .price { margin-top: auto; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.chip { font-size: .85rem; font-weight: 600; border: 2px solid var(--ink); border-radius: 8px; padding: .05rem .55rem; background: var(--paper); }
.price { font-family: var(--brand); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.price small { font-family: var(--body); font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-left: .4rem; }
.price.big { margin-top: 1.25rem; font-size: 2.6rem; }
.fineprint { margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; max-width: 60ch; }
.custom { margin-top: 3rem; background: var(--white); border: 3px dashed var(--ink); border-radius: 28px; padding: 2rem clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.custom h2 { font-size: 1.8rem; }
.custom p { margin-top: .5rem; color: var(--ink-soft); max-width: 52ch; }

/* Lesson sequence */
.lesson { background: var(--ink); color: var(--paper); border-radius: 36px; padding: 3.5rem clamp(1.5rem, 4vw, 3.5rem); }
.lesson .sec-head p { color: #C7D2E6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 4.25rem; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: var(--brand); font-weight: 800; font-size: 1.6rem; display: grid; place-items: center; padding-top: .1em; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 64px; right: -12px; border-top: 3px dashed #50607F; }
.steps h3 { font-size: 1.45rem; color: var(--white); }
.steps p { margin-top: .4rem; color: #C7D2E6; }

/* Tracks */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.track { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 2rem; }
.track .range { font-family: var(--brand); font-weight: 800; font-size: 3rem; line-height: 1; }
.track:nth-child(1) .range { color: var(--leaf); }
.track:nth-child(2) .range { color: var(--sky); }
.track h3 { font-size: 1.6rem; margin-top: .5rem; }
.track ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.track li { margin: .35rem 0; }
.track li::marker { color: var(--berry); }
.track .link { display: inline-block; margin-top: 1rem; }

/* Parents */
.parents { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.promises li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.promises svg { width: 48px; height: 48px; }
.promises h3 { font-size: 1.35rem; }
.promises p { color: var(--ink-soft); margin-top: .2rem; }

/* Contact band and contact ways */
.band { background: var(--sun); border: 3px solid var(--ink); border-radius: 36px; padding: 3rem clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; box-shadow: 8px 8px 0 var(--ink); }
.band h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.band > div > p { margin-top: .9rem; font-size: 1.125rem; max-width: 36ch; }
.band-cta { margin-top: 1.75rem; }
.band .band-cta { margin-top: 1.75rem; }
.ways { display: grid; gap: 1rem; }
.way { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; padding: .9rem 1.2rem; text-decoration: none; color: var(--ink); }
.way:hover { box-shadow: 4px 4px 0 var(--ink); }
.way svg { width: 52px; height: 52px; }
.way small { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.way strong { display: block; font-family: var(--brand); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.25; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.contact-grid .panel h2 { font-size: 1.7rem; margin-bottom: 1.25rem; }
.contact-side h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* Detail pages */
.back { display: inline-block; margin-bottom: 1.75rem; }
.detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.art { background: var(--white); border: 3px solid var(--ink); border-radius: 28px; padding: 2rem; box-shadow: 8px 8px 0 var(--ink); display: grid; place-items: center; aspect-ratio: 1 / .8; }
.art svg { width: min(260px, 72%); height: auto; }
.art .sweep { transform-origin: 32px 50px; transform-box: view-box; animation: sweep 2.6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-80deg); } to { transform: rotate(80deg); } }
.facts { margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 12rem)); margin-top: 1rem; }
.facts div { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: .55rem .8rem; }
.facts dt { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.detail h1 { font-size: clamp(2.2rem, 4.5vw, 3.3rem); font-weight: 800; }
.detail .lede { margin-top: 1rem; font-size: 1.2rem; color: var(--ink-soft); }
.detail h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.detail h2 + p, .detail h2 + ul { margin-top: .6rem; }
.detail ul { margin-bottom: 0; padding-left: 1.2rem; }
.detail .mini { padding-left: 0; margin-top: 1rem; }
.detail li { margin: .3rem 0; }
.detail li::marker { color: var(--berry); }
.side-h { font-size: 1.3rem !important; }
.note { margin-top: 1.25rem; background: var(--white); border: 2px solid var(--ink); border-left: 10px solid var(--berry); border-radius: 12px; padding: .8rem 1rem; font-weight: 500; }
.detail .btn { margin-top: 2.25rem; }
.athome { margin-top: 4rem; }
.athome h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.athome > p { margin: .6rem 0 1.75rem; color: var(--ink-soft); }
.pager { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a { display: block; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; padding: .9rem 1.2rem; color: var(--ink); text-decoration: none; }
.pager a:hover { box-shadow: 4px 4px 0 var(--ink); }
.pager a:last-child { text-align: right; }
.pager small { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.pager span { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* Panels and forms */
.panel { background: var(--white); border: 3px solid var(--ink); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 8px 8px 0 var(--ink); }
.panel h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; }
.panel .lede { margin-top: .9rem; font-size: 1.15rem; color: var(--ink-soft); }
.order { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.order-intro h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.order-intro p { margin-top: .8rem; color: var(--ink-soft); }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field.narrow { max-width: 14rem; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 14px; padding: .65rem .85rem; width: 100%; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--berry); }
.hint { font-size: .88rem; color: var(--ink-soft); }
.err { color: var(--berry-ink); font-weight: 600; font-size: .92rem; }
.alert { background: #FFF0F4; border: 3px solid var(--berry); border-radius: 14px; padding: .8rem 1rem; font-weight: 600; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500 !important; font-size: 1rem !important; }
.check input { width: 1.35rem; height: 1.35rem; margin: .2rem 0 0; flex: none; accent-color: var(--ink); }
.check a { color: var(--ink); text-decoration-color: var(--berry); text-underline-offset: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: .5rem 0 0; padding: 1rem 0; border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .sum { font-family: var(--brand); font-weight: 800; font-size: 1.35rem; }
.panel .totals { margin: 1.5rem 0; }
.panel .ways { margin-top: 1.25rem; }
.ordernum { margin-top: 1.5rem; display: inline-grid; background: var(--sun); border: 3px solid var(--ink); border-radius: 16px; padding: .6rem 1.1rem; }
.ordernum small { font-weight: 600; font-size: .85rem; }
.ordernum strong { font-family: var(--brand); font-size: 1.8rem; letter-spacing: .03em; line-height: 1.2; }
.code { font-family: var(--brand); font-weight: 800; font-size: 5rem; line-height: 1; color: var(--berry); }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 1.25rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.prose p, .prose ul { margin-top: .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--ink); text-decoration-color: var(--berry); text-underline-offset: 4px; }
.updated { color: var(--ink-soft); font-size: .95rem; }
.spec { width: 100%; margin-top: 1.5rem; border-collapse: separate; border-spacing: 0; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--grid); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 32%; font-weight: 700; background: var(--paper); }
.todo { color: var(--berry-ink); font-weight: 700; }

footer { padding: 3rem 0 3.5rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; align-items: flex-start; color: var(--ink-soft); }
footer .logo { font-size: 1.6rem; }
.foot-brand p { margin-top: .25rem; }
footer .reach, footer .foot-links { display: flex; flex-direction: column; gap: .3rem; }
footer .reach a { color: var(--ink); font-weight: 600; }
footer .foot-links a { color: var(--ink-soft); }

/* Admin */
.admin { background-image: none; font-size: .95rem; }
.admin-top { background: var(--white); border-bottom: 3px solid var(--ink); padding: .9rem 0; }
.admin-top .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.admin-top .logo { font-size: 1.6rem; }
.admin section { padding: 2rem 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-head h1 { font-size: 2rem; }
.tablewrap { overflow-x: auto; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; }
.admin table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin th, .admin td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--grid); }
.admin th { background: var(--paper); font-size: .85rem; }
.admin td small { color: var(--ink-soft); }
.admin td strong { white-space: nowrap; }
.admin .msg { max-width: 22rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin tr.st-new td:first-child, .admin tr.st-pending td:first-child { box-shadow: inset 5px 0 0 var(--berry); }
.statusform { display: flex; gap: .4rem; align-items: center; }
.statusform select { width: auto; padding: .3rem .5rem; border-width: 2px; border-radius: 10px; font-size: .9rem; }
.statusform .btn { box-shadow: 2px 2px 0 var(--ink); font-size: .85rem; padding: .25rem .7rem .2rem; }
.empty { background: var(--white); border: 3px dashed var(--ink); border-radius: 16px; padding: 1.25rem; }

@media (max-width: 960px) {
  .top .wrap { grid-template-columns: 1fr auto; grid-template-areas: "logo tools" "nav nav"; }
  .top nav { justify-content: flex-start; flex-wrap: wrap; gap: .5rem 1.2rem; }
  .hero .wrap, .parents, .band, .detail, .order, .contact-grid { grid-template-columns: 1fr; }
  .stem, .mini { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) {
  .stem, .steps, .tracks, .mini, .pager, .row2 { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .facts { grid-template-columns: 1fr 1fr; }
  section { padding: 3.25rem 0; }
  .lesson, .band { border-radius: 26px; }
  .band { padding: 2rem 1.1rem; }
  .way { grid-template-columns: 44px 1fr; padding: .8rem 1rem; }
  .way svg { width: 44px; height: 44px; }
  .way strong { font-size: 1rem; }
  .spec th, .spec td { display: block; width: 100%; }
  .spec th { border-bottom: 0; padding-bottom: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .on .flow { stroke-dasharray: none; opacity: .9; }
}

/* ---------- Class photos and parent feedback ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grid); border: 3px solid var(--ink); border-radius: 20px; }
.voices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.voices li { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.voices blockquote { margin: 0; }
.voices blockquote p { margin: 0; font-size: 1.08rem; line-height: 1.7; }
.voices blockquote p::before { content: "“"; display: block; font-family: var(--display); font-size: 3rem; line-height: .8; color: var(--berry); }
html:lang(ja) .voices blockquote p::before { content: "「"; font-size: 2rem; line-height: 1; }
.voices .who { margin: auto 0 0; font-family: var(--display); font-weight: 700; color: var(--ink); }
.voices .orig { border-top: 2px dashed var(--grid); padding-top: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.voices .tr { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.voices .orig blockquote p { font-size: .95rem; color: var(--ink-soft); }
.voices .orig blockquote p::before { content: none; }
@media (max-width: 600px) {
  .gallery, .voices { grid-template-columns: 1fr; }
}
