:root{--blue:#345ef1;--ink:#203452;--muted:#647795;--line:#dce5f3}*{box-sizing:border-box}body{margin:0;background:#f5f8ff;color:var(--ink);font:16px/1.75 system-ui,sans-serif}a{color:var(--blue);text-decoration:none}button,input{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:9px 15px;min-height:42px;font-size:12px;font-weight:400;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover:not(:disabled){background:#f1f5ff}button:disabled{opacity:.5;cursor:default}.secondary{background:white;color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #84b8ff;outline-offset:3px}[hidden]{display:none!important}header{max-width:1240px;margin:auto;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:850;font-size:22px;line-height:1.3}.brand img{width:64px;height:64px}.brand small{display:block;font-size:11px;letter-spacing:.06em;margin-top:5px}main{max-width:1180px;margin:auto;padding:0 24px}.hero{padding:56px 48px;border-radius:28px;background:linear-gradient(115deg,#e4efff,#edfaff);position:relative;overflow:hidden}.hero:after{content:'N2';position:absolute;right:5%;top:0;font-size:210px;font-weight:900;color:#345ef10d;pointer-events:none}.eyebrow{letter-spacing:.16em;font-size:11px;font-weight:750;color:var(--blue)}h1{font-size:clamp(34px,5vw,58px);line-height:1.2;letter-spacing:-.04em;margin:22px 0}h2{font-size:28px;line-height:1.3}h3{font-size:17px}.stats{display:flex;gap:36px;margin-top:28px}.stats span{font-size:12px;color:var(--muted)}.stats b{display:block;font-size:27px;color:var(--ink)}.panel{background:white;border:1px solid var(--line);padding:30px;border-radius:22px;margin:24px 0}.four{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.four p{padding-bottom:20px;border-bottom:1px solid var(--line);color:var(--muted);font-size:14px}.four b{color:var(--ink);font-size:16px}.note,.source{font-size:13px;color:var(--muted)}.note{padding:18px;background:#f5f8ff;border-radius:12px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.exam-bar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#203452;color:white;border-radius:16px;padding:12px 20px;margin:24px 0}#clock{font:700 24px ui-monospace,monospace;font-variant-numeric:tabular-nums}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px}.exam-layout .panel{margin-top:12px}aside{align-self:start;position:sticky;top:90px}#sections{display:flex;gap:8px;overflow:auto}#sections button{white-space:nowrap;background:#e7edfb;color:var(--ink);font-size:13px}#sections button.active{background:var(--blue);color:white}#grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}#grid button{padding:5px 0;background:#f1f5fc;color:var(--ink);border:1px solid transparent;border-radius:6px;font-size:12px}#grid .answered{background:#dbeaff;color:#17449c}#grid .current{border-color:var(--blue)}#grid .marked{box-shadow:inset 0 -3px #f6b849}.legend,#progress{font-size:12px;color:var(--muted)}.passage{white-space:pre-line;background:#f5f8ff;border-radius:12px;padding:24px;line-height:2.2;margin:20px 0}.prompt{font-size:19px;line-height:1.9;white-space:pre-line}.choice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;margin:10px 0;cursor:pointer}.choice:has(input:checked){border-color:#345ef1;background:#eff4ff}.choice input{margin-top:8px;accent-color:var(--blue)}.question-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:26px}.audio-panel{padding:18px;background:#eef5ff;border-radius:12px}.review-item{padding:24px 0;border-bottom:1px solid var(--line)}.correct{color:#19734d}.wrong{color:#b33e3e}.score{font-size:48px;font-weight:800;line-height:1.2}.score small{font-size:16px;color:var(--muted)}.archive{margin-top:44px}.pdf-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}footer{text-align:center;font-size:13px;color:var(--muted);padding:40px 20px} @media(max-width:700px){header{padding:18px}.brand{font-size:16px}.brand img{width:50px;height:50px}.brand small{font-size:8px}header>a:last-child{font-size:12px}main{padding:0 14px}.hero{padding:30px 24px}.hero:after{font-size:140px;top:25px}.stats{gap:24px}.panel{padding:22px 18px}.four{grid-template-columns:1fr;gap:0}.exam-layout{display:flex;flex-direction:column}.exam-layout aside{position:static;order:-1;padding:14px}#grid{grid-template-columns:repeat(10,1fr);max-height:125px;overflow:auto}.exam-bar{padding:10px;font-size:11px}.exam-bar button{padding:9px;font-size:11px}#clock{font-size:20px}.passage{padding:16px}.prompt{font-size:17px}.choice{padding:12px}.question-nav button{font-size:12px;padding:10px}h2{font-size:24px}}

/* One shared flag selector for all JLPT exam levels. */
header .exam-language{display:flex;gap:3px;margin-left:auto;flex-shrink:0;padding:3px;border:1px solid var(--line);border-radius:10px;background:#f4f7ff}header .exam-language button{display:grid;place-items:center;min-width:42px;min-height:40px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:inherit;font-size:22px;font-weight:400;line-height:1}header .exam-language button[aria-pressed=true]{background:white;box-shadow:0 2px 7px #345ef118}@media(max-width:600px){header{gap:12px;padding-inline:16px}header .exam-language button{min-width:34px;min-height:36px;padding:0 5px;font-size:21px}}@media(max-width:390px){header{gap:9px;padding-inline:12px}.brand{gap:8px;font-size:13px}.brand img{width:40px;height:40px}.brand small{font-size:7px}header .exam-language button{min-width:31px;padding:0 3px}}

/* Compact controls shared by all five JLPT exams. */
.actions{gap:10px}.question-nav{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}.question-nav #prev,.question-nav #next{width:128px;max-width:100%}.question-nav #prev{justify-self:start}.question-nav #next{justify-self:end}.question-nav #mark{justify-self:center}#grid button{min-height:30px;display:block}#sections button{min-height:38px;font-size:12px;padding:9px 12px}#sections button.active:hover{background:var(--blue)}
@media(max-width:700px){.question-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.question-nav #prev{grid-column:1;grid-row:1}.question-nav #next{grid-column:2;grid-row:1}.question-nav #mark{grid-column:1/-1;grid-row:2}.question-nav button,.exam-bar button{font-size:12px;padding:9px 12px}.exam-bar{flex-wrap:wrap}}

/* Match the Minna 50 cover and section heading sizes. */
.hero h1{font-size:clamp(26px,2.7vw,38px);line-height:1.4;letter-spacing:-1px}
#intro>h2{font-size:20px;line-height:1.5;letter-spacing:0}
