:root{color-scheme:light;--navy:#133b70;--ink:#162943;--muted:#53647b;--line:#d9e2ed;--blue:#1858b8}*{box-sizing:border-box}body{margin:0;background:#f2f6fb;color:var(--ink);font:16px/1.7 system-ui,-apple-system,'Yu Gothic',sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}header{padding:24px 6%;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:750;color:var(--navy);text-decoration:none}.brand small{display:block;font-size:12px;font-weight:400;color:var(--muted)}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--navy);color:white;border-radius:8px;font-size:28px}.test-tag{font-size:13px;color:var(--muted);border:1px solid var(--line);padding:3px 9px;border-radius:4px}main{max-width:1150px;margin:64px auto;display:grid;grid-template-columns:1fr 440px;gap:72px;padding:0 28px;align-items:start}.intro{padding-top:24px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;color:var(--blue)}h1{font-size:clamp(30px,3.5vw,44px);line-height:1.5;letter-spacing:-.03em;margin:20px 0}.lead{color:var(--muted);line-height:1.9}.spec{display:flex;gap:44px;padding:24px 0;margin:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.spec strong{font-size:48px;line-height:1.2;color:var(--navy)}.spec span{font-size:18px;margin-left:6px}.spec p{margin:8px 0 0;color:var(--muted);font-size:14px}.plan{border-left:3px solid var(--blue);padding-left:18px;margin:28px 0}.plan p{font-size:14px;color:var(--muted);margin:8px 0}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:32px;box-shadow:0 16px 48px #133b700c}.card h2{font-size:23px;margin:0 0 4px}.muted{font-size:14px;color:var(--muted)}.tabs{display:flex;background:#edf2f8;padding:4px;border-radius:6px;margin:24px 0}.tabs button{flex:1;border:0;background:transparent;color:var(--muted);font-size:14px;padding:9px;border-radius:4px}.tabs button[aria-pressed=true]{background:white;color:var(--navy);box-shadow:0 1px 4px #133b701a;font-weight:700}form>label,#signup-fields>label{display:block;font-size:14px;font-weight:600;margin:18px 0 0}input:not([type=radio],[type=checkbox]){display:block;width:100%;padding:11px 12px;border:1px solid #b9c8da;border-radius:5px;background:white;min-width:0;margin-top:6px;color:var(--ink)}input:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #66a5f1;outline-offset:3px}.password-row{display:flex;align-items:center;position:relative}.password-row input{padding-right:58px}.password-row button{position:absolute;right:8px;top:14px;background:none;border:0;font-size:13px;color:var(--blue)}.hint{font-size:12px;color:var(--muted);margin:5px 0 18px}fieldset{border:0;padding:0;margin:20px 0;font-size:14px}legend{font-weight:600;margin-bottom:8px}.inline{display:flex!important;align-items:flex-start;gap:9px;font-weight:400!important;font-size:14px;margin:8px 0!important}.inline input{margin-top:7px;flex-shrink:0;width:16px;height:16px;accent-color:var(--blue)}.primary,.secondary{width:100%;padding:12px;border-radius:6px;font-weight:650;font-size:15px;margin-top:24px}.primary{border:1px solid var(--blue);background:var(--blue);color:white}.primary:hover{background:#12458f}.secondary{background:#fff;color:var(--navy);border:1px solid var(--line)}.error,.notice{font-size:14px;padding:14px;border-radius:5px;overflow-wrap:anywhere}.error{background:#fff1f1;color:#9e2525;border:1px solid #f1caca}.notice{background:#edf5ff;color:#174879;border:1px solid #c9dff6}.checkmark{display:grid;place-items:center;background:#e0f5ef;color:#11634f;width:48px;height:48px;border-radius:50%;font-size:24px;margin-bottom:18px}#account-email{overflow-wrap:anywhere;color:var(--muted)}dl{margin:28px 0}dl>div{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}dt{color:var(--muted)}dd{margin:0}details{font-size:13px;color:var(--muted);margin-top:12px}summary{cursor:pointer;text-decoration:underline}footer{padding:24px;text-align:center;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}@media(max-width:850px){main{grid-template-columns:1fr;gap:28px;margin:24px auto;max-width:540px}.intro{padding-top:0}h1{font-size:30px}.spec{gap:40px;padding:14px 0;margin:16px 0}.spec strong{font-size:36px}.card{padding:24px}.brand small{font-size:11px}header{padding:18px 24px}.test-tag{font-size:11px}.lead{font-size:15px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,box-shadow .15s}}
:root{--navy:#292426;--ink:#292426;--muted:#68676d;--line:#d8d7dc;--blue:#d92d27}body.auth-page{background:#fff}.auth-page main{max-width:none;min-height:100vh;margin:0;padding:0;grid-template-columns:54% 46%;gap:0;align-items:stretch}.auth-page .intro{background:#fff8f5;padding:48px 9% 24px;display:flex;flex-direction:column;justify-content:center}.auth-brand{font-size:clamp(24px,2.8vw,40px);font-weight:850;color:var(--ink);text-decoration:none;line-height:1.25}.auth-brand span,.intro h1 span{color:var(--blue)}.auth-brand small{display:block;font-size:15px;color:var(--muted);font-weight:500;margin-top:8px}.auth-page h1{font-size:clamp(32px,4.4vw,64px);line-height:1.32;letter-spacing:-.045em;margin:44px 0 12px}.auth-page .lead{font-size:clamp(17px,1.8vw,25px);margin:0;font-weight:600}.login-fox{display:block;width:100%;max-height:430px;object-fit:contain;margin:12px auto 0}.free-caption{text-align:center;font-weight:650;margin:8px 0}.intro-note{text-align:center;font-size:12px;color:var(--muted);margin:0}.auth-page .card{border:0;border-radius:0;box-shadow:none;align-self:center;padding:60px 9%;width:100%;max-width:700px;margin:auto}.auth-page .card h2{font-size:clamp(28px,3vw,44px);line-height:1.3;margin-bottom:12px;letter-spacing:-.025em}.auth-page #auth-description{font-size:18px;margin:0 0 32px}.auth-page form>label{font-size:16px;margin-top:24px}.auth-page input:not([type=radio],[type=checkbox]){padding:16px;border-radius:7px;font-size:17px;border-color:#c9c8ce}.auth-page .primary,.auth-page .secondary{padding:16px;font-size:17px;border-radius:7px}.auth-page .primary:hover{background:#be241f}.auth-page .secondary:hover{background:#fff8f5;border-color:var(--blue)}.auth-page .tabs{background:none;padding:0;gap:16px;margin:24px 0;border-bottom:1px solid var(--line);border-radius:0}.auth-page .tabs button{border-radius:0;padding:10px 0;font-size:15px}.auth-page .tabs button[aria-pressed=true]{box-shadow:none;color:var(--blue);border-bottom:3px solid var(--blue)}.auth-page .password-row button{top:20px;color:var(--muted)}.auth-page #verify-open{font-size:13px;font-weight:500;border:0;margin-top:20px;padding:8px;color:var(--muted)}.auth-page .notice{background:#f5f8f6;color:#315e44;border-color:#d6e4da}.auth-page input:focus-visible,.auth-page button:focus-visible,.auth-page a:focus-visible{outline:3px solid #df827d;outline-offset:3px}.link-button{display:block;text-align:center;text-decoration:none}@media(max-width:850px){.auth-page main{grid-template-columns:1fr;min-height:100vh}.auth-page .intro{padding:26px 24px}.auth-page h1{font-size:30px;margin:24px 0 8px}.auth-brand{font-size:25px}.auth-brand small{font-size:12px}.login-fox,.free-caption,.intro-note{display:none}.auth-page .card{padding:32px 24px;max-width:560px}.auth-page #auth-description{font-size:16px;margin-bottom:22px}}
/* Shared visual rules: calm typography, 8px spacing, restrained elevation. */
@font-face{font-family:AppJapanese;src:local('Noto Sans JP');font-weight:100 900;font-display:swap}
:root{--brand:#d92d27;--text:#29272b;--text-secondary:#6f6c73;--surface:#fff;--surface-warm:#fff8f5;--border:#e6e1df;--shadow-panel:0 18px 60px rgba(49,30,24,.07),0 2px 8px rgba(49,30,24,.025);--shadow-action:0 4px 10px rgba(191,38,32,.18)}
body.auth-page{font-family:AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif;color:var(--text);background:#fffcfa;font-weight:400;-webkit-font-smoothing:antialiased}
.auth-page main{max-width:1440px;min-height:100vh;margin:auto;grid-template-columns:52% 48%;padding:40px 48px;gap:40px;align-items:center}
.auth-page .intro{background:transparent;padding:24px 24px;max-width:650px;justify-content:flex-start}
.auth-brand{font-size:30px;font-weight:750;letter-spacing:-.035em}
.auth-brand small{font-size:12px;font-weight:450;letter-spacing:.045em;margin-top:10px}
.auth-page h1{font-size:clamp(32px,3.15vw,46px);line-height:1.55;letter-spacing:-.045em;font-weight:750;margin:46px 0 12px}
.auth-page .lead{font-size:18px;font-weight:450;line-height:1.8;color:var(--text-secondary)}
.login-fox{max-height:330px;margin:12px 0 0;mix-blend-mode:multiply}
.free-caption{font-size:14px;font-weight:550;letter-spacing:.025em;margin-top:12px}
.intro-note{font-size:11px;margin-top:8px}
.auth-page .card{max-width:480px;padding:44px 40px;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow-panel)}
.auth-page .card h2{font-size:30px;line-height:1.5;font-weight:700;letter-spacing:-.04em;margin:0 0 8px}
.auth-page #auth-description{font-size:14px;color:var(--text-secondary);margin-bottom:28px;line-height:1.8}
.auth-page .tabs{margin:0 0 24px;gap:24px;border-color:#eee8e5}
.auth-page .tabs button{font-size:13px;font-weight:500;padding:12px 0}
.auth-page .tabs button[aria-pressed=true]{font-weight:650;border-bottom-width:2px}
.auth-page form>label{font-size:13px;font-weight:600;margin-top:20px}
.auth-page input:not([type=radio],[type=checkbox]){padding:13px 14px;min-height:50px;border-color:#dcd6d4;border-radius:8px;font-size:15px;background:#fff;box-shadow:0 1px 2px rgba(30,20,15,.03);margin-top:8px}
.auth-page input:not([type=radio],[type=checkbox]):focus{border-color:#d92d27;box-shadow:0 0 0 4px rgba(217,45,39,.075);outline:none}
.auth-page .password-row input{padding-right:64px}
.auth-page .password-row button{font-size:12px;top:21px;right:12px;padding:3px 6px;min-height:28px}
.auth-page .primary,.auth-page .secondary{font-size:14px;font-weight:600;padding:14px;border-radius:8px;min-height:50px;letter-spacing:.03em}
.auth-page .primary{box-shadow:var(--shadow-action);margin-top:28px;background:var(--brand)}
.auth-page .primary:hover{background:#c32722;box-shadow:0 6px 16px rgba(191,38,32,.23)}
.auth-page .primary:active{box-shadow:0 2px 5px rgba(191,38,32,.16)}
.auth-page #verify-open{margin-top:20px;font-size:11px;line-height:1.7;min-height:36px}
.auth-page .primary:disabled{box-shadow:none;cursor:wait}
@media(prefers-reduced-motion:no-preference){.auth-page button,.auth-page input{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}}
@media(min-width:1500px){.auth-page main{min-height:100vh}}
@media(max-width:850px){.auth-page main{padding:24px 20px;gap:24px;grid-template-columns:1fr}.auth-page .intro{padding:8px 4px;margin:auto;width:100%;max-width:480px}.auth-brand{font-size:24px}.auth-page h1{font-size:28px;line-height:1.5;margin:24px 0 8px}.auth-page .lead{font-size:14px}.auth-page .card{padding:32px 24px;width:100%;margin:0 auto 24px}.auth-page .card h2{font-size:26px}.login-fox{display:none}}
/* User-selected shared landscape + separate transparent mascot. */
body.auth-page{background:#fffcfa url('/login-background.png') center bottom / cover no-repeat fixed}
.auth-page .intro{background:transparent}
.login-fox{mix-blend-mode:normal;width:100%;height:330px;object-fit:contain;object-position:center;margin:12px auto 0}
@media(max-width:850px){body.auth-page{background-attachment:scroll}.login-fox{display:none}}
/* Fit the desktop login to the available height without clipping forms. */
@media(min-width:851px){
 .auth-page main{padding-block:clamp(16px,3vh,40px);min-height:100svh}
 .auth-page .intro{padding-block:0}
 .auth-page h1{margin-top:clamp(20px,4vh,46px)}
 .login-fox{height:clamp(150px,30vh,330px);max-height:330px}
 .auth-page .card{padding:clamp(24px,4vh,44px) 40px}
 .auth-page #auth-description{margin-bottom:clamp(16px,3vh,28px)}
 .auth-page .tabs{margin-bottom:16px}
 .auth-page form>label{margin-top:16px}
}
@media(min-width:851px) and (max-height:720px){
 .auth-brand{font-size:26px}
 .auth-page h1{font-size:36px;line-height:1.4;margin-top:20px}
 .auth-page .lead{font-size:15px}
 .auth-page .card h2{font-size:26px}
 .auth-page #auth-description{margin-bottom:12px}
 .auth-page .tabs{margin-bottom:12px}
 .auth-page #verify-open{margin-top:12px}
}
@media(min-width:851px) and (max-height:560px){
 .auth-page main{padding-block:12px}
 .auth-page .card{padding:20px 32px}
 .auth-page .card h2{font-size:24px;margin-bottom:4px}
 .auth-page #auth-description{margin-bottom:8px}
 .auth-page form>label{margin-top:10px}
 .auth-page .tabs{margin-bottom:8px}
 .auth-page .primary{margin-top:18px}
 .auth-page #verify-open{margin-top:8px}
 .login-fox{height:150px}
}
/* Balance the two columns as a single composition. */
@media(min-width:851px){
 .auth-page main{max-width:1160px;grid-template-columns:minmax(0,1fr) 430px;gap:72px;padding-inline:40px}
 .auth-page .intro{padding-inline:0;max-width:none}
 .auth-brand{font-size:27px;letter-spacing:-.035em}
 .auth-brand small{font-size:11px;margin-top:8px}
 .auth-page h1{font-size:38px;line-height:1.45;margin:28px 0 12px;letter-spacing:-.04em}
 .auth-page .lead{font-size:15px;line-height:1.7}
 .login-fox{height:clamp(190px,34vh,290px);max-height:290px;width:100%;object-position:center;margin:14px auto 0}
 .free-caption{font-size:12px;margin:8px 0 0}
 .intro-note{font-size:10px;margin-top:6px}
 .auth-page .card{max-width:430px;padding-inline:36px;border-radius:16px}
 .auth-page .card h2{font-size:28px}
 .auth-page #auth-description{font-size:13px}
}
@media(min-width:851px) and (max-height:650px){
 .auth-page h1{font-size:33px;margin-top:20px}
 .login-fox{height:190px;margin-top:8px}
 .auth-brand{font-size:24px}
}
@media(min-width:851px) and (max-width:1050px){
 .auth-page main{grid-template-columns:minmax(0,1fr) 390px;gap:40px;padding-inline:32px}
 .auth-page h1{font-size:32px}
 .auth-page .card{padding-inline:28px}
}
/* Let the page scroll naturally, keeping only the desktop introduction in place. */
@media(min-width:851px){
 .auth-page .intro{position:sticky;top:max(16px,calc((100svh - 545px) / 2));align-self:start;margin-top:max(0px,calc((100svh - 545px) / 2 - clamp(16px,3vh,40px)))}
}
@media(min-width:851px) and (max-height:560px){
 .auth-page .intro{top:12px;margin-top:0}
}

/* Signed-in home: desktop learning dashboard, sharing the login palette. */
body.home-page{background:#faf9f8;font-family:AppJapanese,'Noto Sans JP','Yu Gothic',sans-serif}
.home-page main{display:block;max-width:none;padding:0;margin:0;min-height:100svh}
.home-page main>.intro{display:none}
.home-page main>.card{max-width:none;width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.home-header{height:80px;padding:0 36px;position:relative;background:white;border-bottom:1px solid var(--border);gap:24px;z-index:3}
.home-brand{font-size:25px;font-weight:750;letter-spacing:-.04em;text-decoration:none;color:var(--text);white-space:nowrap}
.home-brand span{color:var(--brand)}
.home-subtitle{font-size:12px;color:var(--text-secondary);margin-right:auto}
.home-plan{font-size:11px;border:1px solid var(--border);padding:4px 10px;border-radius:6px;white-space:nowrap}
.home-account{margin:0;position:relative;color:var(--text);font-size:13px}
.home-account summary{text-decoration:none;font-weight:600}
.home-account[open]{background:white;border:1px solid var(--border);border-radius:10px;padding:16px;position:absolute;right:32px;top:20px;min-width:260px;box-shadow:var(--shadow-panel)}
.home-account p{max-width:300px;font-size:12px}.home-account dl{margin:12px 0}.home-account .secondary{font-size:12px;min-height:36px;padding:8px;margin-top:8px}
.home-sidebar{position:fixed;top:80px;bottom:0;left:0;width:220px;padding:28px 16px;display:flex;flex-direction:column;gap:8px;background:white;border-right:1px solid var(--border)}
.home-sidebar a{padding:13px 20px;border-radius:7px;text-decoration:none;color:#625d61;font-size:14px;font-weight:550}
.home-sidebar a:hover{background:#fff5f1;color:var(--brand)}
.home-sidebar a[aria-current]{color:var(--brand);background:#fcece8;font-weight:650;box-shadow:inset 3px 0 var(--brand)}
.home-sidebar .home-report{margin-top:auto;border-top:1px solid var(--border);border-radius:0;padding-top:20px;font-size:12px}
.home-content{margin-left:220px;max-width:1240px;padding:32px 40px 24px}
.home-welcome .eyebrow{font-size:10px;letter-spacing:.14em;margin:0 0 6px;color:var(--text-secondary)}
.home-page .home-welcome h1{font-size:30px;line-height:1.5;letter-spacing:-.04em;margin:0 0 6px}
.home-welcome>p:last-child{font-size:14px;color:var(--text-secondary);margin:0 0 24px}
.exam-countdown{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:20px 24px;border:1px solid #efc2b8;border-radius:12px;background:linear-gradient(110deg,#fff6f1,#fffdfb);box-shadow:0 4px 18px rgba(166,53,39,.06)}
.exam-countdown .eyebrow{margin:0 0 3px;color:#a13b31;font-size:11px;letter-spacing:.08em}.home-page .exam-countdown h2{margin:0;font-size:25px;letter-spacing:-.035em;line-height:1.45;color:#512d2a}.exam-countdown p:last-child{margin:3px 0 0;color:var(--text-secondary);font-size:13px}.exam-countdown>a{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:8px;background:var(--brand);color:#fff;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}.exam-countdown>a:hover{background:#c32722}.exam-countdown[data-state="missing"]{border-color:#e7c7aa;background:#fffaf3}.exam-countdown[data-state="missing"]>a{background:#925a20}.exam-countdown[data-state="past"]{border-color:#d9d7dc;background:#faf9f8}.exam-countdown[data-state="past"]>a{background:#625d61}
.home-hero{display:flex;align-items:center;position:relative;overflow:hidden;min-height:290px;padding:30px 36px;border-radius:14px;background:#fff6f1 url('/login-background.png') center bottom/cover no-repeat;border:1px solid #f2e8e2}
.home-hero-copy{flex:1;position:relative;z-index:1}
.home-hero .eyebrow{font-size:11px;letter-spacing:.05em;margin:0 0 8px;color:var(--brand)}
.home-page .home-hero h2{font-size:34px;font-weight:750;letter-spacing:-.04em;margin:0 0 4px;line-height:1.5}
.home-spec{font-size:23px;font-weight:650;color:#51494a;margin:0 0 12px}.home-spec span{font-weight:400;color:#b3a29b}
.home-hero-copy>p:not(.eyebrow):not(.home-spec){font-size:13px;color:var(--text-secondary)}
.home-action{display:inline-flex;align-items:center;justify-content:center;padding:13px 26px;margin-top:12px;background:var(--brand);border-radius:8px;box-shadow:var(--shadow-action);text-decoration:none;color:white;font-size:14px;font-weight:650;min-width:250px}
.home-action:hover{background:#c32722}
.home-hero-copy .home-hero-note{font-size:10px!important;margin:10px 0 0}
.home-mascot{width:34%;height:240px;object-fit:contain;align-self:center}
.home-learning-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.home-learning-card{padding:22px 26px;background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px rgba(49,30,24,.025)}
.home-learning-card .eyebrow{font-size:10px;margin:0 0 6px;color:var(--brand)}
.home-page .home-learning-card h2,.home-page .home-history h2{font-size:19px;margin:0 0 8px;letter-spacing:-.025em}
.home-learning-card>p:not(.eyebrow){font-size:13px;color:var(--text-secondary);margin:0 0 16px;line-height:1.8}
.home-outline{display:block;text-align:center;border:1px solid #e7aca7;border-radius:7px;padding:8px;color:var(--brand);font-size:13px;font-weight:600;text-decoration:none}
.home-outline:hover{background:#fff5f1;border-color:var(--brand)}
.home-history{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--border);background:white;border-radius:12px;padding:20px 26px;margin-top:18px;color:var(--text);text-decoration:none}
.home-history h2{margin-bottom:4px!important}.home-history p{font-size:12px;margin:0;color:var(--text-secondary)}.home-history>span{font-size:12px;color:var(--brand);font-weight:600;white-space:nowrap}
.home-disclaimer{font-size:10px;color:var(--text-secondary);margin:16px 0 0}
.home-page #error:not([hidden]),.home-page #notice:not([hidden]){margin:16px 40px 16px 260px}
@media(max-width:1050px) and (min-width:851px){.home-sidebar{width:180px}.home-content{margin-left:180px;padding:28px}.home-header{padding-inline:24px}.home-subtitle{display:none}.home-page .home-hero h2{font-size:29px}.home-hero{padding:26px}.home-mascot{width:30%}}
@media(max-width:850px){.home-header{height:68px;padding:0 20px;gap:12px}.home-brand{font-size:20px}.home-subtitle{display:none}.home-plan{margin-left:auto;font-size:10px}.home-account{font-size:11px}.home-sidebar{position:static;width:auto;flex-direction:row;overflow-x:auto;padding:12px;gap:4px;border-right:0;border-bottom:1px solid var(--border)}.home-sidebar a{white-space:nowrap;padding:8px 12px;font-size:12px}.home-sidebar .home-report{margin:0;border:0;padding-top:8px}.home-content{margin:0;padding:24px 20px}.home-page .home-welcome h1{font-size:23px}.home-hero{padding:24px;min-height:270px}.home-page .home-hero h2{font-size:26px}.home-spec{font-size:19px}.home-mascot{width:29%;height:170px}.home-action{min-width:0;padding:12px 18px;font-size:12px}.home-learning-grid{gap:12px}.home-learning-card{padding:18px}.home-page .home-learning-card h2{font-size:17px}.home-page #error:not([hidden]),.home-page #notice:not([hidden]){margin:16px 20px}}
@media(max-width:520px){.home-mascot{display:none}.home-learning-grid{grid-template-columns:1fr}.home-history{padding:18px}.home-history p{max-width:210px}.home-account[open]{right:12px}.home-plan{display:none}}
/* Keep brand images visible in compact browser panels as well as desktop. */
@media(max-width:850px){.auth-page:not(.home-page) .login-fox{display:block;height:150px;max-height:150px;margin:12px auto 0}.auth-page:not(.home-page) .intro{position:static;top:auto;margin-top:0}}
@media(max-width:520px){.home-mascot{display:block;width:90px;height:135px;flex-shrink:0}.home-hero{gap:10px;padding:20px}.home-page .home-hero h2{font-size:23px}.home-spec{font-size:17px}}
/* Keep the desktop header joined to the fixed sidebar while scrolling. */
@media(min-width:851px){.home-header{position:sticky;top:0;z-index:20}.home-sidebar{top:80px;z-index:10;overflow-y:auto}}
/* Let the header scroll while the sidebar edge continues to the top. */
@media(min-width:851px){.home-header{position:relative;top:auto;z-index:20}.home-sidebar{top:0;padding-top:108px;z-index:10}}
/* Scroll with the header, then hold the menu at the viewport top. */
@media(min-width:851px){.home-sidebar{position:sticky;float:left;top:0;bottom:auto;height:100svh;padding-top:28px}}
.auth-page .verification-symbol{display:grid;place-items:center;width:52px;height:52px;margin-bottom:20px;border:1px solid #f0dcd4;background:#fff4ef;color:#b83b34;border-radius:14px;font-size:26px;line-height:1}.auth-page #verification .eyebrow{font-size:10px;letter-spacing:.08em;margin:0 0 10px}.auth-page #verification-title{font-size:26px;letter-spacing:-.035em;line-height:1.5;margin:0 0 12px}.auth-page #verification-title:focus{outline:none}.verification-description{font-size:13px;line-height:1.9;color:#6f6c73;margin:0 0 24px}.auth-page #code-form>label{font-size:12px;font-weight:500;margin-top:18px}.auth-page #code-input{font-size:23px;font-weight:600;letter-spacing:.2em;text-align:center;min-height:58px}.auth-page #code-input::placeholder{font-size:13px;font-weight:400;letter-spacing:.04em;color:#a19892}.auth-page #verify-code{font-size:13px;border-radius:8px;background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720;padding:14px 10px;margin-top:22px}.verification-help{margin:24px 0 14px;background:#faf8f7;border:1px solid #e9e1dc;border-radius:8px;padding:14px 16px}.verification-help h3{font-size:12px;font-weight:600;margin:0 0 6px;color:#49444a}.verification-help p{font-size:11px;line-height:1.9;color:#817974;margin:0}.auth-page #resend{margin:0;font-size:12px;padding:12px;border:1px solid #d8d0cb;background:white;color:#625459;border-radius:8px;box-shadow:none}.auth-page #verify-back{margin:18px 0 0;padding:6px;background:transparent;border:0;box-shadow:none;color:#817974;text-decoration:underline;font-size:11px}.auth-page #verification input:focus-visible{outline:2px solid #d92d2770;outline-offset:2px}
@media(max-width:560px){.auth-page #verification-title{font-size:23px}.verification-symbol{margin-bottom:16px}.verification-description{font-size:12px}}
@media(min-width:851px){.auth-page:has(#verification:not([hidden])) .card{padding:24px 32px}.auth-page .verification-symbol{width:38px;height:38px;font-size:21px;margin-bottom:12px}.auth-page #verification .verification-description{margin-bottom:14px;font-size:12px}.auth-page #code-form>label{margin-top:12px}.auth-page #verification input:not([type=radio],[type=checkbox]){min-height:44px;padding:10px 12px}.auth-page #verification #code-input{min-height:50px}.auth-page #verify-code{margin-top:16px;padding:12px 10px}.auth-page .verification-help{margin-top:18px;padding:12px 14px}.auth-page #verify-back{margin-top:12px}}
.auth-page .auth-text-button{display:block;width:100%;background:transparent;border:0;color:#817974;text-decoration:underline;font:inherit;font-size:11px;padding:8px;margin:12px 0 0}.auth-page #reset-title{font-size:24px;letter-spacing:-.035em;line-height:1.6;margin:0 0 14px}.auth-page #reset-title:focus{outline:none}.reset-description{font-size:12px;color:#6f6c73;line-height:1.9;margin:0 0 24px}.auth-page #reset-form>label{font-size:12px;font-weight:500}.auth-page #reset-form .primary{font-size:13px;background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;border-radius:8px;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}.auth-page #password-reset .eyebrow{font-size:10px;letter-spacing:.08em;margin:0 0 10px}#reset-preview-result{border:1px solid #cfe4d9;background:#f0f8f3;border-radius:10px;padding:20px;margin:20px 0}#reset-preview-result>span{color:#307452;font-size:22px}#reset-preview-result h3{font-size:15px;margin:8px 0}#reset-preview-result p{font-size:12px;color:#6f6c73;line-height:1.9}.auth-page #reset-preview-result .reset-preview-warning{font-size:11px;color:#a33732}.auth-page #reset-edit{background:white;border:1px solid #d8d0cb;border-radius:7px;padding:10px 12px;font:inherit;font-size:11px;color:#625459}.auth-page #reset-back{margin-top:16px}
@media(max-width:560px){.auth-page #reset-title{font-size:22px}}
.auth-page #new-password-title{font-size:24px;line-height:1.6;letter-spacing:-.035em;margin:0 0 14px}.auth-page #new-password-title:focus{outline:none}.auth-page #new-password-screen .eyebrow{font-size:10px;margin:0 0 10px}.auth-page #new-password-form>label{font-size:12px;font-weight:500;margin-top:18px}.auth-page #new-password-form .primary{font-size:13px;background:linear-gradient(#e83b32,#cf2722);border:1px solid #c82922;border-radius:8px;box-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}.auth-page #new-password-screen>a{text-align:center;text-decoration:underline}.auth-page #new-password-error{padding:12px;background:#fff0ed;border-radius:8px;font-size:12px;color:#a33732}#new-password-done{border:1px solid #cfe4d9;background:#f0f8f3;border-radius:10px;padding:22px;margin:20px 0}#new-password-done>span{font-size:24px;color:#307452}#new-password-done h3{font-size:16px;margin:10px 0}#new-password-done p{font-size:12px;color:#6f6c73}#new-password-done a{display:block;margin-top:16px;font-size:13px;color:#b83b34}
@media(max-width:560px){.auth-page #new-password-title{font-size:22px}}
/* Shared loading status: preserve the page-specific operation while it is prepared. */
#loading[role=status]{display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;width:100%;max-width:none;min-height:min(520px,calc(100svh - 210px));margin:0 auto;padding:48px 24px;background:transparent;border:0;box-shadow:none;color:#29272b;text-align:center;font-size:clamp(18px,2.3vw,24px);font-weight:750;letter-spacing:-.035em;line-height:1.45}
#loading[role=status]::before{content:'';display:block;position:relative;width:132px;height:132px;margin:0 0 22px;border-radius:50%;background:url('/loading-drone.png') center/70px auto no-repeat,radial-gradient(circle,transparent 0 38%,rgba(217,45,39,.62) 39% 41%,transparent 42% 61%,rgba(217,45,39,.12) 62% 74%,transparent 75%);filter:drop-shadow(0 8px 10px rgba(51,28,28,.13))}
#loading[role=status]::after{content:'必要な情報を準備しています';display:block;margin-top:5px;color:#6f6c73;font-size:13px;font-weight:400;letter-spacing:0;line-height:1.7}
body.practice-page #loading[role=status]::after{content:'利用状況と分野別問題を準備しています'}body.learning-page #loading[role=status]::after{content:'学習履歴と復習問題を準備しています'}body.account-page #loading[role=status]::after{content:'登録内容と利用状況を準備しています'}body.report-page #loading[role=status]::after{content:'報告フォームを準備しています'}
@media(prefers-reduced-motion:no-preference){#loading[role=status]::before{animation:loading-beacon 1.9s ease-in-out infinite}}@keyframes loading-beacon{50%{transform:translateY(-3px) scale(1.03);filter:drop-shadow(0 12px 14px rgba(51,28,28,.15))}}
@media(max-width:560px){#loading[role=status]{min-height:min(440px,calc(100svh - 168px));padding:36px 20px;font-size:18px}#loading[role=status]::before{width:104px;height:104px;margin-bottom:18px;background-size:56px auto,auto}#loading[role=status]::after{font-size:12px}}
/* Shared finishing rules: retain page layouts and compact exam navigation. */
:root{--app-font:AppJapanese,'Noto Sans JP','Yu Gothic',Meiryo,sans-serif;--app-focus:#b62f28;--app-control-radius:8px;--app-action-shadow:0 3px 0 #b92520,0 7px 14px #d92d2720}
body[class]{font-family:var(--app-font);-webkit-font-smoothing:antialiased}
body[class] :is(button,input,select,textarea){font-family:var(--app-font)!important}
body[class] :is(button,.link-button){line-height:1.6}
body[class] :is(input[type=email],input[type=password],input[type=text],input[type=date],input[type=month],select,textarea){border-radius:var(--app-control-radius)}
body[class] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--app-focus);outline-offset:4px}
body[class] :is(button,a){-webkit-tap-highlight-color:#d92d271c}
body[class] button:disabled{cursor:not-allowed}
body[class] :is(.home-sidebar a,.primary,.link-button){transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
body[class] .primary:not(:disabled):hover{filter:brightness(.96)}
body[class] .primary:not(:disabled):active{filter:brightness(.92)}
body[class] :is(.learning-heading,.account-heading,.contact-heading,.completion-heading,.review-complete-heading) h1,
body[class] :is(.learning-heading,.account-heading,.contact-heading,.completion-heading,.review-complete-heading) h2{line-height:1.5;letter-spacing:-.035em}
body[class] :is(.practice-actions,.review-question-actions,.completion-actions,.review-complete-actions,.setting-actions,.contact-actions) button{font-weight:600;min-height:44px}
body[class] :is(.home-sidebar,.history-score,#timer,.completion-score,.review-complete-stats){font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){body[class] :is(button,a,input,select,textarea){transition:none}}
