﻿:root{--navy:#17243b;--navy2:#213451;--indigo:#5b6ce8;--indigo2:#eef0ff;--text:#172033;--muted:#5a6478;--line:#dfe4ee;--bg:#f5f7fb;--ok:#168462;--bad:#c84b5f;--warn:#c47717;--shadow:0 1px 3px rgba(16,24,40,.06),0 14px 36px rgba(35,52,81,.06);font-family:Inter,"Noto Sans JP","Yu Gothic UI",Meiryo,sans-serif;color:var(--text);background:var(--bg)}
*[hidden]{display:none!important}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{font-size:15px;line-height:1.7}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid rgba(91,108,232,.28);outline-offset:2px}.siteHeader{height:72px;background:rgba(23,36,59,.98);color:#fff;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1160px)/2));gap:28px;position:sticky;top:0;z-index:50;box-shadow:0 8px 24px rgba(23,36,59,.12)}.brand{border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:11px;padding:8px 0;text-align:left}.brandMark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#7b87f5,#4f63df);display:grid;place-items:center;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}.brand strong{display:block;font-size:14px}.brand small{display:block;font-size:12px;letter-spacing:.1em;color:#bfc9dd}.desktopNav{display:flex;align-self:stretch}.desktopNav button{border:0;background:transparent;color:#c9d1e2;min-width:70px;padding:0 16px;font-weight:700}.desktopNav button.active,.desktopNav button:hover{color:#fff;background:rgba(255,255,255,.06)}.accountButton{margin-left:auto;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#fff;border-radius:999px;min-height:44px;padding:5px 12px 5px 6px;display:flex;align-items:center;gap:8px}.accountButton span{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);font-weight:900}.accountButton b{font-size:13px}.app{width:min(1160px,calc(100% - 32px));margin:28px auto 64px}.hero{border-radius:22px;padding:36px 38px;background:linear-gradient(125deg,#17243b 0%,#243b61 68%,#344b81 100%);color:#fff;box-shadow:0 18px 48px rgba(23,36,59,.18);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:330px;height:330px;border-radius:50%;right:-90px;top:-170px;background:rgba(121,135,245,.15)}.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.14em;font-weight:900;color:#cbd3ff}.hero h1{font-size:clamp(28px,4vw,45px);line-height:1.25;margin:12px 0 12px;letter-spacing:-.03em}.hero p{max-width:660px;color:#d7deec;margin:0 0 24px;font-size:15px}.heroActions{display:flex;gap:12px;flex-wrap:wrap}.primary,.secondary,.ghost,.danger{border-radius:12px;min-height:48px;padding:0 20px;font-weight:800;border:1px solid transparent}.primary{background:var(--indigo);color:#fff;box-shadow:0 8px 20px rgba(91,108,232,.28)}.primary:hover{filter:brightness(.97)}.secondary{background:#fff;color:var(--navy);border-color:var(--line)}.ghost{background:transparent;color:var(--indigo);border-color:#cbd1ff}.danger{background:#fff1f3;color:var(--bad);border-color:#ffd1d9}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:24px;margin-top:20px}.panelHead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.panelHead h2{font-size:20px;margin:0}.panelHead p{margin:2px 0 0;color:var(--muted);font-size:13px}.firstGuide{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px;border:1px solid #dfe3ff;background:linear-gradient(135deg,#f7f8ff,#fff);border-radius:15px}.firstGuide h2{margin:5px 0;font-size:22px}.firstGuide p{margin:0;color:var(--muted)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow)}.metric small{display:block;color:var(--muted);font-size:13px}.metric strong{display:inline-block;font-size:29px;margin-top:5px}.metric em{font-style:normal;color:var(--muted);font-size:13px;margin-left:4px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.actionCard{border:1px solid var(--line);background:#fff;border-radius:16px;padding:20px;text-align:left;min-height:190px;display:flex;flex-direction:column;box-shadow:var(--shadow)}.actionCard:hover{border-color:#b8c0fa;transform:translateY(-1px)}.actionCard .tag{font-size:12px;font-weight:900;color:var(--indigo);letter-spacing:.06em}.actionCard .icon{width:43px;height:43px;border-radius:13px;background:var(--indigo2);color:var(--indigo);display:grid;place-items:center;font-weight:900;margin:12px 0}.actionCard h3{font-size:18px;margin:0 0 5px}.actionCard p{color:var(--muted);font-size:13px;margin:0}.actionCard .cta{margin-top:auto;color:var(--indigo);font-weight:800;font-size:13px;padding-top:14px}.loginShell{min-height:calc(100vh - 20px);display:grid;place-items:center;padding:24px}.loginCard{width:min(980px,100%);display:grid;grid-template-columns:1.08fr .92fr;background:#fff;border-radius:24px;overflow:hidden;border:1px solid var(--line);box-shadow:0 24px 70px rgba(23,36,59,.14)}.loginVisual{padding:52px;background:linear-gradient(135deg,#17243b,#2a4270);color:#fff}.loginVisual .brandMark{width:48px;height:48px}.loginVisual h1{font-size:38px;line-height:1.25;margin:30px 0 14px}.loginVisual p{color:#d7deec}.loginPoints{display:grid;gap:12px;margin-top:35px}.loginPoints div{display:flex;gap:11px;align-items:flex-start;font-size:13px;color:#e2e7f2}.loginPoints i{width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.12);display:grid;place-items:center;font-style:normal}.loginForm{padding:52px;display:flex;flex-direction:column;justify-content:center}.loginForm h2{font-size:25px;margin:0 0 8px}.loginForm>p{color:var(--muted);font-size:13px;margin:0 0 24px}.field label{display:block;font-weight:800;font-size:13px;margin-bottom:7px}.field input{width:100%;height:50px;border:1px solid #cfd5e1;border-radius:11px;padding:0 14px;font-size:16px}.loginForm .primary{width:100%;margin-top:14px}.loginStatus{margin-top:16px;background:#f5f7ff;border:1px solid #dce1ff;border-radius:12px;padding:14px;font-size:13px;color:var(--muted)}.loginStatus a{display:inline-flex;margin-top:8px;color:var(--indigo);font-weight:800}.examShell{width:min(920px,100%);margin:0 auto}.examBar{background:rgba(23,36,59,.98);color:#fff;border-radius:17px;padding:12px 14px;display:grid;grid-template-columns:1fr auto auto auto auto;align-items:center;gap:10px;position:sticky;top:82px;z-index:30;box-shadow:0 12px 32px rgba(23,36,59,.18)}.examIdentity{display:flex;align-items:center;gap:10px}.examIcon{width:38px;height:38px;border-radius:11px;background:#6676eb;display:grid;place-items:center;font-weight:900}.examIdentity strong{display:block;font-size:14px}.examIdentity span{display:block;color:#bdc7da;font-size:12px}.examMetric{min-width:82px;text-align:center;border-left:1px solid rgba(255,255,255,.12)}.examMetric small{display:block;font-size:12px;color:#bfc9dd}.examMetric strong{font-size:16px}.exitButton{height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;font-weight:800;padding:0 13px}.questionCard{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:28px;margin-top:16px}.questionTop{display:flex;gap:13px;align-items:flex-start}.questionNumber{flex:0 0 38px;height:38px;border-radius:11px;background:var(--indigo2);color:var(--indigo);display:grid;place-items:center;font-weight:900}.questionKind{font-size:12px;font-weight:900;color:var(--indigo);letter-spacing:.08em}.questionPrompt{font-size:17px;font-weight:800;line-height:1.8;margin-top:3px}.passage{max-width:46em;margin:24px auto;background:#fafbfe;border:1px solid #e5e8f0;border-radius:14px;padding:22px;font-size:16px;line-height:2}.passage p{margin:0 0 1em}.choices{display:grid;gap:10px;margin-top:20px}.choice{min-height:57px;border:1px solid #d7dce7;background:#fff;border-radius:13px;display:grid;grid-template-columns:36px 1fr;align-items:center;text-align:left;padding:10px 14px;color:var(--text)}.choice:hover{border-color:#aeb8fa;background:#fafaff}.choice.selected{border:2px solid var(--indigo);background:#f3f4ff;padding:9px 13px}.choiceKey{width:28px;height:28px;border-radius:9px;background:#f1f3f8;display:grid;place-items:center;font-weight:900;color:var(--muted)}.choice.selected .choiceKey{background:var(--indigo);color:#fff}.questionNav{display:flex;align-items:center;gap:10px;margin-top:20px}.questionNav .primary{margin-left:auto}.sessionCode{margin-top:17px;text-align:right;color:#8b94a5;font-size:12px;letter-spacing:.08em;user-select:none}.resultHero{border-radius:20px;padding:30px;background:linear-gradient(135deg,#17243b,#2b4370);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:30px}.scoreBig{font-size:52px;font-weight:900;line-height:1}.scoreBig small{font-size:17px;color:#c7d0e1}.resultList{display:grid;gap:13px;margin-top:18px}.reviewRow{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:var(--shadow)}.reviewRow.wrong{border-left:4px solid var(--bad)}.reviewRow.correct{border-left:4px solid var(--ok)}.reviewRow h3{font-size:15px;margin:0 0 9px}.answerLine{font-size:13px;color:var(--muted)}.answerLine .ok{color:var(--ok);font-weight:900}.answerLine .bad{color:var(--bad);font-weight:900}.explanation{margin-top:12px;padding-top:12px;border-top:1px solid #edf0f5;font-size:14px;color:#374156}.tableList{display:grid;gap:10px}.historyRow,.deviceRow,.reviewSummary{display:grid;grid-template-columns:1.4fr repeat(3,.7fr);align-items:center;gap:14px;border:1px solid var(--line);border-radius:13px;padding:15px;background:#fff}.historyRow small,.deviceRow small{display:block;color:var(--muted);font-size:12px}.historyRow strong,.deviceRow strong{font-size:14px}.statusPill{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:0 10px;background:#eaf8f2;color:var(--ok);font-size:12px;font-weight:900}.accountGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.infoList{display:grid}.infoRow{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #edf0f5}.infoRow span{color:var(--muted);font-size:13px}.infoRow strong{font-size:13px;text-align:right}.emptyState{text-align:center;padding:40px 18px;color:var(--muted)}.emptyState h2{color:var(--text);margin:0 0 6px}.modalBackdrop{position:fixed;inset:0;background:rgba(17,27,45,.55);z-index:100;display:grid;place-items:center;padding:20px}.modalCard{width:min(440px,100%);background:#fff;border-radius:16px;padding:24px;box-shadow:0 24px 60px rgba(16,24,40,.24)}.modalCard h2{font-size:19px;margin:0 0 7px}.modalCard p{font-size:14px;color:var(--muted)}.modalActions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.toast{position:fixed;right:18px;bottom:18px;z-index:120;background:#17243b;color:#fff;padding:12px 16px;border-radius:11px;box-shadow:0 12px 32px rgba(0,0,0,.18);opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.toast.show{opacity:1;transform:none}.mobileNav{display:none}.focusVideo{position:fixed;right:18px;bottom:18px;width:220px;aspect-ratio:4/3;object-fit:cover;border-radius:15px;border:4px solid #fff;box-shadow:0 16px 44px rgba(23,36,59,.28);z-index:40;background:#111}








@media print{.examShell,.questionCard,.resultList{display:none!important}}
@media(max-width:760px){body{padding-bottom:74px}.siteHeader{height:62px;padding:0 12px;gap:8px}.brand strong{font-size:13px}.brand small,.desktopNav,.accountButton b{display:none}.brandMark{width:35px;height:35px}.accountButton{width:44px;height:44px;padding:0;justify-content:center}.accountButton span{width:31px;height:31px}.app{width:min(100% - 20px,620px);margin:15px auto 28px}.mobileNav{position:fixed;left:0;right:0;bottom:0;height:65px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);z-index:60;padding-bottom:env(safe-area-inset-bottom)}.mobileNav button{border:0;background:#fff;color:#6a7385;min-height:51px;font-size:12px;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.mobileNav button span{font-size:17px}.mobileNav button.active{color:var(--indigo)}.hero{padding:26px 22px;border-radius:18px}.hero h1{font-size:29px}.heroActions>*{width:100%}.metrics{grid-template-columns:1fr 1fr}.metric{padding:15px}.metric strong{font-size:25px}.cards{grid-template-columns:1fr}.panel{padding:18px}.firstGuide{display:block}.firstGuide button{width:100%;margin-top:16px}.loginShell{padding:10px;min-height:100vh}.loginCard{grid-template-columns:1fr;border-radius:18px}.loginVisual{padding:27px}.loginVisual h1{font-size:27px;margin:18px 0 8px}.loginPoints{display:none}.loginForm{padding:27px}.examShell{width:100%}.examBar{top:70px;border-radius:14px;grid-template-columns:1fr auto auto;padding:10px}.examIdentity span,.examMetric:first-of-type,.examMetric:nth-of-type(2){display:none}.examMetric{min-width:64px}.examMetric small{font-size:12px}.exitButton{height:44px;padding:0 9px}.questionCard{padding:19px 16px;border-radius:15px}.questionPrompt{font-size:16px}.passage{width:100%;font-size:16px;line-height:1.95;padding:17px;margin:18px 0}.choice{min-height:52px;padding:11px;grid-template-columns:34px 1fr}.choice.selected{padding:10px}.questionNav{position:sticky;bottom:8px;background:rgba(245,247,251,.96);padding:9px;border-radius:14px;box-shadow:0 8px 24px rgba(23,36,59,.12)}.questionNav button{min-height:48px;padding:0 13px}.resultHero{display:block;padding:24px}.scoreBig{font-size:44px;margin-top:15px}.accountGrid{grid-template-columns:1fr}.historyRow,.deviceRow{grid-template-columns:1fr 1fr}.historyRow>:first-child,.deviceRow>:first-child{grid-column:1/-1}.focusVideo{display:none!important}body.inExam .mobileNav{display:none}body.inExam{padding-bottom:0}.sessionCode{font-size:12px}}

/* candidate_08: display mode and language timing analysis */
.layoutPicker{border:0;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.layoutPicker legend{font-weight:900;font-size:14px;margin-bottom:10px}.layoutOption{min-height:92px;border:1px solid var(--line);border-radius:14px;padding:15px;display:flex;gap:12px;align-items:flex-start;background:#fff;cursor:pointer}.layoutOption:hover{border-color:#b8c0fa}.layoutOption.selected{border:2px solid var(--indigo);background:#f5f6ff;padding:14px}.layoutOption input{margin-top:5px;accent-color:var(--indigo)}.layoutOption strong{display:block;font-size:15px}.layoutOption small{display:block;color:var(--muted);font-size:13px;line-height:1.65;margin-top:2px}.focusChoice{display:flex;gap:10px;align-items:center;margin-top:18px;color:var(--muted);font-size:13px}.practiceActions{display:flex;justify-content:flex-end;margin-top:20px}.loadingPanel{margin:80px auto;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);padding:44px;text-align:center}.loadingPanel h2{margin:12px 0 3px}.loadingPanel p{margin:0;color:var(--muted)}.loadingDot{display:inline-block;width:34px;height:34px;border-radius:50%;border:4px solid #dfe3ff;border-top-color:var(--indigo);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.allPageShell{width:min(1020px,100%)}.allQuestions{display:grid;gap:16px}.allQuestionCard{margin-top:16px}.finishPanel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:20px;margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:18px}.finishPanel strong{font-size:16px}.finishPanel p{margin:2px 0 0;color:var(--muted);font-size:13px}.resultActions,.accountActions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.timingPanel{margin-top:18px}.timingGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.timingGrid article{border:1px solid var(--line);border-radius:13px;padding:15px;background:#fbfcff}.timingGrid strong{display:block;color:var(--indigo);font-size:15px}.timingGrid span{display:block;font-weight:800;font-size:13px;margin-top:5px}.timingGrid small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.reviewTitle{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}.reviewTitle h3{margin:0 0 9px}.timingBadge{flex:0 0 auto;display:inline-flex;min-height:30px;align-items:center;border-radius:999px;padding:0 10px;background:var(--indigo2);color:var(--indigo);font-size:12px;font-weight:900}.timingLine{display:flex;gap:14px;flex-wrap:wrap;margin:2px 0 10px;color:var(--muted);font-size:12px}.timingLine strong{color:var(--text)}

@media(max-width:760px){.layoutPicker{grid-template-columns:1fr}.layoutOption{min-height:96px}.practiceActions .primary{width:100%}.loadingPanel{margin:50px auto;padding:30px 20px}.allPageShell .examBar{top:70px}.allQuestionCard{padding:19px 16px}.finishPanel{display:block}.finishPanel .primary{width:100%;margin-top:14px}.timingGrid{grid-template-columns:1fr 1fr}.timingGrid article{padding:13px}.reviewTitle{display:block}.timingBadge{margin-bottom:8px}.timingLine{gap:8px 12px}.resultActions{flex-direction:column-reverse}.resultActions button{width:100%}}

/* candidate_09: language drills and production adapter */
.menuCards{grid-template-columns:repeat(auto-fit,minmax(205px,1fr))}.practiceSection{scroll-margin-top:88px}.settingsGrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.compactPicker{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-content:start}.compactPicker legend{grid-column:1/-1;font-weight:900;font-size:14px;margin-bottom:2px}.compactPicker .layoutOption{min-height:66px;padding:12px}.compactPicker .layoutOption.selected{padding:11px}.drillStats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.drillStats>div{border:1px solid var(--line);border-radius:13px;background:#fbfcff;padding:14px}.drillStats small{display:block;color:var(--muted);font-size:12px}.drillStats strong{display:block;font-size:16px;margin-top:3px}.resultDrillStats{margin:0}.dontKnowChoice{background:#f2f4f7}.choice:disabled{cursor:default;opacity:1}.choice.answerCorrect{border:2px solid var(--ok);background:#eaf8f2;padding:9px 13px}.choice.answerCorrect .choiceKey{background:var(--ok);color:#fff}.choice.answerWrong{border:2px solid var(--bad);background:#fff1f3;padding:9px 13px}.choice.answerWrong .choiceKey{background:var(--bad);color:#fff}.inlineFeedback{margin-top:14px;border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:12px;font-size:13px}.inlineFeedback strong{font-size:15px}.inlineFeedback.isCorrect{background:#eaf8f2;color:var(--ok);border:1px solid #b9e5d5}.inlineFeedback.isWrong{background:#fff1f3;color:var(--bad);border:1px solid #ffd1d9}.drillNav{justify-content:flex-end}.questionNote{text-align:right;color:var(--muted);font-size:12px;margin:8px 2px 0}.reviewRow .questionKind{margin-bottom:5px}
@media(max-width:760px){.settingsGrid{grid-template-columns:1fr}.compactPicker{grid-template-columns:1fr 1fr}.drillStats{grid-template-columns:1fr}.practiceSection{scroll-margin-top:72px}.questionNote{text-align:left}.menuCards{grid-template-columns:1fr}}
.reviewBadges{display:inline-flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;margin-left:8px}.badgeWrong,.badgeSaved,.badgeMastered{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:900}.badgeWrong{background:#fff1f3;color:var(--bad)}.badgeSaved{background:#fff7dd;color:#8a6200}.badgeMastered{background:#eaf8f2;color:var(--ok)}.reviewRowActions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px}.reviewSaveButton{min-height:42px;border:1px solid #cfd5e1;border-radius:11px;padding:0 14px;background:#fff;color:var(--navy);font-weight:800}.reviewSaveButton.isSaved{background:#fff7dd;border-color:#efd27a;color:#725200}.reviewSaveButton:disabled{opacity:.55;cursor:wait}.integrityNotice{width:min(1160px,calc(100% - 32px));margin:18px auto 0;background:#fff7dd;border:1px solid #efd27a;border-radius:13px;padding:13px 15px;color:#725200;font-size:13px}.reviewMetrics{margin-bottom:0}
@media(max-width:760px){.reviewBadges{margin:8px 0 0;justify-content:flex-start}.reviewRowActions{display:grid;grid-template-columns:1fr}.reviewRowActions button{width:100%}.integrityNotice{width:100%;margin-top:14px}.reviewMetrics{grid-template-columns:1fr 1fr}.panelHead{align-items:flex-start;flex-direction:column}.panelHead>.primary{width:100%}}

/* candidate_21: scanner-safe magic-link confirmation */
.authConfirmBody{min-height:100vh;margin:0;background:radial-gradient(circle at 20% 10%,#eef1ff 0,transparent 38%),linear-gradient(145deg,#f7f9fd,#edf2f9);color:#17243b;display:grid;place-items:center;padding:24px;font-family:inherit}
.authConfirmShell{width:min(100%,520px)}
.authConfirmCard{background:#fff;border:1px solid #dfe4ee;border-radius:20px;box-shadow:0 18px 50px rgba(23,36,59,.12);padding:38px;text-align:center}
.authConfirmMark{width:56px;height:56px;margin:0 auto 18px;border-radius:16px;display:grid;place-items:center;color:#fff;font-size:24px;font-weight:800;background:linear-gradient(145deg,#5b6ce8,#22b6c7)}
.authConfirmCard h1{font-size:26px;line-height:1.35;margin:8px 0 14px}
.authConfirmLead{font-size:15px;line-height:1.9;color:#4b5870;margin:0 auto 18px}
.authConfirmNotice{font-size:13px;line-height:1.7;background:#f4f6ff;border:1px solid #dce1ff;color:#3443a8;border-radius:12px;padding:12px 14px;margin:0 0 18px}
.authConfirmNotice.isError{background:#fff3f1;border-color:#ffd3cc;color:#9b3325}
.authConfirmButton{width:100%;min-height:50px;font-size:15px}
.authConfirmButton:disabled{opacity:.55;cursor:not-allowed}
.authConfirmBack{display:inline-block;margin-top:16px;color:#4f5fcf;font-size:14px;font-weight:700;text-decoration:none}
.authConfirmBack:hover{text-decoration:underline}
.authConfirmFoot{font-size:12px;line-height:1.7;color:#657086;margin:22px 0 0}
@media(max-width:520px){.authConfirmBody{padding:16px}.authConfirmCard{padding:28px 20px;border-radius:17px}.authConfirmCard h1{font-size:22px}.authConfirmLead{font-size:14px}.authConfirmFoot{font-size:13px}}
.captchaArea{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafbfe;min-height:92px;display:flex;flex-direction:column;justify-content:center}.captchaArea>div{min-height:65px;display:flex;align-items:center;justify-content:center}.captchaArea p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.captchaArea p.captchaError{color:var(--bad)}.loginForm .primary:disabled{cursor:not-allowed;opacity:.58;box-shadow:none}.loginStatus.error{background:#fff4f5;border-color:#ffd4da;color:var(--bad)}
@media(max-width:760px){.captchaArea{padding:12px}.captchaArea>div{overflow:hidden}.captchaArea iframe{max-width:100%}}
/* candidate_25 legal notice v1 */
.legalLinks {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legalLinks a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legalNotice {
  margin-top: 18px;
}

.legalNoticeList {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.25rem;
  line-height: 1.75;
}

.legalPageBody {
  min-height: 100vh;
  margin: 0;
  padding: 32px 18px 56px;
}

.legalPage {
  width: min(820px, 100%);
  margin: 0 auto;
}

.legalPageHeader,
.legalPageSection {
  margin-bottom: 18px;
}

.legalPageHeader h1 {
  margin: 8px 0 12px;
}

.legalPageSection h2 {
  margin-top: 0;
}

.legalPageSection p,
.legalPageSection li {
  line-height: 1.85;
}

.legalPageSection ul {
  display: grid;
  gap: 8px;
  padding-left: 1.35rem;
}

.legalPageMeta {
  font-size: 0.9rem;
  opacity: 0.75;
}

.legalPageBack {
  margin-top: 26px;
}
/* candidate_25 mobile visual polish v1 */
.loginVisual h1 .heroLine {
  display: block;
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #app,
  .loginCard,
  .loginVisual,
  .hero,
  .metrics,
  .panel {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .loginVisual h1 {
    font-size: clamp(1.8rem, 8vw, 2.15rem);
    line-height: 1.22;
    letter-spacing: 0;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.1rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .hero p {
    overflow-wrap: anywhere;
  }

  .metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric {
    min-width: 0;
  }
}

/* candidate_25 account hero mobile fix v1 */
@media (max-width: 640px) {
  .hero.heroAccount {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero.heroAccount h1 {
    max-width: 100%;
    margin-right: 0;
    font-size: clamp(1.65rem, 7vw, 1.9rem);
    line-height: 1.22;
    letter-spacing: 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero.heroAccount .accountHeroLine {
    display: block;
    max-width: 100%;
  }

  .hero.heroAccount p {
    max-width: 100%;
    margin-right: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero.heroAccount::after {
    width: 180px;
    height: 180px;
    top: -88px;
    right: -70px;
    opacity: 0.55;
  }
}

/* TGWEB_CANDIDATE25_R8_ACCOUNT_HERO_MOBILE_TWO_LINE_V1
   390px前後のスマートフォン表示で、アカウント見出しの各行を途中分割しない。 */
@media (max-width: 700px) {
  .hero.heroAccount h1 {
    font-size: clamp(23px, 7.18vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.04em;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

/* TGWEB_CANDIDATE25_R9B_MANUAL_WITHDRAWAL_SUPPORT_V1
   アカウント画面に手動退会・問い合わせ窓口を表示する。 */
.accountSupportBlock {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 48, 96, 0.16);
}

.accountSupportBlock h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.accountSupportBlock p {
  margin: 0 0 10px;
}

.accountSupportBlock ul {
  margin: 10px 0 12px;
  padding-left: 1.35rem;
}

.accountSupportBlock li + li {
  margin-top: 6px;
}

.accountSupportAddress {
  font-weight: 700;
}

.accountSupportAddress a {
  overflow-wrap: anywhere;
}

.accountSupportNote {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: #4c5d78;
}

@media (max-width: 700px) {
  .accountSupportBlock {
    margin-top: 18px;
    padding-top: 18px;
  }

  .accountSupportBlock ul {
    padding-left: 1.2rem;
  }
}
/* candidate_27: product branding */
.loginBrand{
  display:flex;
  align-items:center;
  gap:12px;
}

.loginBrand strong{
  display:block;
  font-size:15px;
}

.loginBrand small{
  display:block;
  margin-top:1px;
  font-size:11px;
  letter-spacing:.12em;
  color:#cbd3ff;
}

/* candidate_27: preserve approved <u> markup in passages */
.passage u{
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}

/* candidate_27: robust copy-deterrence selection fallback */
.examShell .questionCard,[data-material-protected="1"]{
  -webkit-user-select:none;
  user-select:none;
}


/* ===== 段階B: 結果画面 分野別内訳 ===== */
.breakdownScroll { overflow-x: auto; }

.breakdownTable { width: 100%; border-collapse: collapse; font-size: 13px; }
.breakdownTable th,
.breakdownTable td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  white-space: nowrap;
}
.breakdownTable th { font-size: 11px; color: var(--muted); font-weight: 700; }
.breakdownTable td.num,
.breakdownTable th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 既存の .statusPill (正解用の緑) に判定バリエーションを追加 */
.statusPill.warn { background: #fdf1e0; color: var(--warn); }
.statusPill.bad  { background: #fbe9ec; color: var(--bad); }
.statusPill.neutral { background: #eef0f4; color: var(--muted); }

@media (max-width: 760px) {
  .breakdownTable { font-size: 12px; }
  .breakdownTable th,
  .breakdownTable td { padding: 8px 6px; }
}

.nt09FigTable{width:100%;max-width:100%;border-collapse:separate;border-spacing:0;margin:10px 0 8px;font-size:13px;border:1px solid #c7cbd0;border-radius:8px;overflow:hidden;background:#fff;font-variant-numeric:tabular-nums}
.nt09FigTable th,.nt09FigTable td{padding:7px 8px;text-align:center;border-right:1px solid #d7dade;border-bottom:1px solid #d7dade}.nt09FigTable tr:last-child td{border-bottom:0}.nt09FigTable th:last-child,.nt09FigTable td:last-child{border-right:0}
.nt09FigTable th{background:#f0f1f2;color:#111827;font-weight:800}.nt09FigTable .stub{background:#f7f7f7;text-align:left;font-weight:750}.nt09FigTable .total{background:#eceeef;font-weight:850}.nt09FigTable.compact{max-width:700px;margin-left:auto;margin-right:auto}.nt09FigTable.compact td,.nt09FigTable.compact th{padding:8px 10px}
.nt09FigTable.matrix{font-size:11.3px}.nt09FigTable.matrix td,.nt09FigTable.matrix th{padding:5px 5px}.nt09FigTable.striped tbody tr:nth-child(even) td{background:#fafafa}.nt09FigCaption{font-size:10.5px;color:#4b5563;margin:3px 2px 11px;text-align:right}.nt13TableWrap{width:100%;max-width:100%;overflow-x:visible}.nt13TotalRow td{background:#eceeef!important;font-weight:850}.nt13-total-first tbody tr:first-child td{background:#eceeef;font-weight:850}.nt13-heavy{font-size:11px}.nt13-light{font-size:13px}.nt13-target-edge th:nth-child(2),.nt13-target-edge td:nth-child(2){border-left:2px solid #9ca3af}
.nt13Graph{width:100%;max-width:720px;height:auto;display:block;margin:10px auto 14px;overflow:visible;font-family:var(--jp);font-variant-numeric:tabular-nums}.nt13Graph text{dominant-baseline:auto;fill:#111827}.nt13Table{min-width:0!important;max-width:100%!important;width:100%;table-layout:fixed}.nt13Table th,.nt13Table td{white-space:normal;overflow-wrap:break-word;word-break:normal;line-height:1.25}.nt13Table .stub{width:auto}.nt09Difficulty{display:none}
/* P6 display area normalization: square/tall no longer scale to the generic 720px graph maximum. */
.nt13Graph.nt23P6Wide{max-width:700px}.nt13Graph.nt23P6Square{max-width:520px}.nt13Graph.nt23P6Tall{max-width:450px}
@media(max-width:980px){.nt09FigTable{font-size:11.5px}.nt09FigTable th,.nt09FigTable td{padding:5px 5px}.nt09FigTable.matrix{font-size:10.5px}.nt09FigTable.matrix th,.nt09FigTable.matrix td{padding:4px 3.5px}.nt13Graph.nt23P6Wide{max-width:650px}.nt13Graph.nt23P6Square{max-width:500px}.nt13Graph.nt23P6Tall{max-width:435px}}
@media(max-width:760px){.nt09FigTable{font-size:10.5px}.nt09FigTable th,.nt09FigTable td{padding:4px 3px}.nt09FigTable.matrix{font-size:9.8px}.nt09FigTable.matrix th,.nt09FigTable.matrix td{padding:3.5px 2.5px}.nt13Graph{min-width:0}.nt11PracticeFigure .nt13TableWrap{overflow-x:visible}}

.nt09FigTable.nt17P1{max-width:820px;margin-left:auto;margin-right:auto;font-size:12.5px}
.nt09FigTable.nt17P1 th,.nt09FigTable.nt17P1 td{padding:7px 8px}
.nt09FigTable.nt17P3{max-width:620px;margin-left:auto;margin-right:auto;font-size:12.5px}
.nt09FigTable.nt17P3 th,.nt09FigTable.nt17P3 td{padding:9px 12px}
.nt09FigTable.nt17P5{font-size:11px}
.nt09FigTable.nt17P5 th,.nt09FigTable.nt17P5 td{padding:4.5px 4px}
/* candidate_22 visual skeleton directions retained; only fit geometry is normalized. */
.nt09FigTable.nt20P1Wide{max-width:900px;font-size:12.25px}
.nt09FigTable.nt20P1Wide th,.nt09FigTable.nt20P1Wide td{padding:6px 8px}
.nt09FigTable.nt20P1Tall{max-width:760px;font-size:12.75px}
.nt09FigTable.nt20P1Tall th,.nt09FigTable.nt20P1Tall td{padding:8px 9px}
.nt09FigTable.nt20P3Tall{max-width:540px;font-size:12.75px}
.nt09FigTable.nt20P3Tall th,.nt09FigTable.nt20P3Tall td{padding:9px 11px}
.nt09FigTable.nt20P3Wide{max-width:720px;font-size:12px}
.nt09FigTable.nt20P3Wide th,.nt09FigTable.nt20P3Wide td{padding:8px 10px}
.nt09FigTable.nt20P5Wide{max-width:100%;font-size:10.7px}
.nt09FigTable.nt20P5Wide th,.nt09FigTable.nt20P5Wide td{padding:4px 3.5px}
.nt09FigTable.nt20P5Tall{max-width:820px;font-size:10.9px;margin-left:auto;margin-right:auto}
.nt09FigTable.nt20P5Tall th,.nt09FigTable.nt20P5Tall td{padding:4.5px 4px}

/* candidate_24: past-exam-derived document structures; no horizontal scrolling. */
.nt24HierTable .nt24GroupCell{background:#eceeef;font-weight:800;text-align:center;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:.08em;min-width:28px}
.nt24HierTable .nt24Outside{background:#f7f7f7;text-align:left;font-weight:700}
.nt24HierTable .nt24Blank{background:#fbfbfb;color:#9ca3af}
.nt24HierTable .nt24SuperHead{background:#e7e9eb!important;font-weight:850;letter-spacing:.04em}
.nt24P3Support td:nth-child(2),.nt24P3Support th:nth-child(2){background:#fafafa}
.nt24P3Subtotal td{background:#eceeef!important;font-weight:800}
.nt24P5Matrix{table-layout:fixed!important}
.nt24P5Matrix .nt24Zero{color:#4b5563}
.nt24P5Matrix .nt24Grand{background:#e5e7eb!important;font-weight:900}
.nt24P5Matrix.nt24P5Cols12{font-size:9.9px}
.nt24P5Matrix.nt24P5Cols12 th,.nt24P5Matrix.nt24P5Cols12 td{padding:3.5px 2.5px}
.nt24P2Value{font-size:8.5px;font-weight:650;fill:#111827}
@media(max-width:1100px){.nt24P5Matrix.nt24P5Cols12{font-size:9.5px}.nt24P5Matrix.nt24P5Cols12 th,.nt24P5Matrix.nt24P5Cols12 td{padding:3px 2px}}

/* candidate_25: P1 derived hierarchy silhouettes; candidate_24 viewport-fit remains mandatory. */
.nt25P1Multi .nt25GroupCell{background:#e9ebed;font-weight:800;text-align:center;writing-mode:vertical-rl;text-orientation:upright;letter-spacing:.07em;min-width:27px}
.nt25P1Multi .nt25GroupCell.alt{background:#f0f1f2}
.nt25P1TopGroup{background:#e8eaec!important;font-weight:800}
.nt25P1TopItem{background:#f4f5f6!important;font-weight:700}
.nt25P1Standalone{background:#fafafa;font-weight:650;text-align:left}
.nt25P1PeriodRows{table-layout:fixed}
.nt25P1PeriodRows th,.nt25P1PeriodRows td{padding-left:4px;padding-right:4px}

/* Pattern-level result analysis - verbatim colors/layout from candidate_67's
   .nt07Analysis / .nt07Pill / .rt (var(--sub) mapped to this site's
   equivalent var(--muted)). */
.rt{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px;margin-bottom:18px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.rt th,.rt td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 10px;text-align:left}
.rt th:last-child,.rt td:last-child{border-right:0}
.rt tr:last-child td{border-bottom:0}
.rt th{background:#f3f5fa}
.rt td.num{text-align:right;font-variant-numeric:tabular-nums}
.nt07Analysis{margin:18px 0 22px;border:1px solid #dfe4ec;background:#fff;border-radius:16px;padding:16px;box-shadow:0 6px 18px rgba(31,48,73,.05)}
.nt07Analysis h2{font-size:17px;margin:0 0 4px;color:#202a3d}
.nt07Analysis .lead{font-size:12.5px;color:var(--muted);line-height:1.7;margin-bottom:12px}
.nt07Analysis .rt{margin-bottom:0}
.nt07Pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:850;white-space:nowrap}
.nt07Good{background:#e9f8f2;color:#247e68}
.nt07Warn{background:#fff5df;color:#9a6b12}
.nt07Bad{background:#fff0ee;color:#b3483f}
.nt07Neutral{background:#eef2f6;color:#647084}

/* Setup screen (layout picker) - verbatim from candidate_67 */
.nt07Setup{max-width:940px;margin:0 auto;padding:8px 0 24px}
.nt07LayoutGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.nt07LayoutCard{appearance:none;text-align:left;border:1px solid #dce2eb;background:#fff;border-radius:18px;padding:22px;cursor:pointer;box-shadow:0 8px 24px rgba(25,43,70,.07);transition:.18s;width:100%}
.nt07LayoutCard:hover{transform:translateY(-2px);border-color:#aebae0;box-shadow:0 12px 30px rgba(25,43,70,.11)}
.nt07LayoutCard .tag{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf1ff;color:#465bc5;font-weight:850;font-size:11px}
.nt07LayoutCard h2{font-size:19px;margin:13px 0 7px;color:#17243b}
.nt07LayoutCard p{font-size:13px;line-height:1.75;color:#5a6478;margin:0}
.nt07LayoutCard ul{margin:12px 0 0;padding-left:18px;color:#4e596d;font-size:12.5px;line-height:1.75}
@media(max-width:760px){.nt07LayoutGrid{grid-template-columns:1fr}.nt07LayoutCard{padding:18px}}

/* Target-time adjustment panel - verbatim from candidate_67 */
.q38TargetSettings{background:#fff;border:1px solid var(--line);border-radius:15px;padding:0 16px;margin:16px 0}
.q38TargetSettings summary{cursor:pointer;font-weight:850;padding:14px 0;color:#344054}
.q38TargetIntro{font-size:11.5px;color:var(--muted);line-height:1.65;margin:-2px 0 10px}
.q38TargetGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;padding-bottom:10px}
.q38TargetItem{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e4e7ec;border-radius:10px;padding:8px 9px;background:#fcfcfd;font-size:11px}
.q38TargetItem b{font-size:11.5px}
.q38TargetInput{display:flex;align-items:center;gap:3px}
.q38TargetInput input{width:58px;border:1px solid #d0d5dd;border-radius:8px;padding:6px;text-align:right;font-variant-numeric:tabular-nums}
.q38TargetInput i{font-style:normal;color:#667085}
.q38TargetActions{display:flex;justify-content:flex-end;align-items:center;gap:9px;border-top:1px solid #eef0f3;padding:10px 0 12px}
.q38TargetActions button{border:1px solid #d0d5dd;background:#fff;border-radius:9px;padding:7px 10px;font-size:11px;cursor:pointer}
.q38TargetSaved{font-size:10px;color:#2e7d67}
@media(max-width:760px){.q38TargetGrid{grid-template-columns:1fr 1fr}}

/* Focus mode (optional PC-only camera self-view) - verbatim from
   candidate_67's final implementation (candidate_60/61 era), adapted:
   quantitative-edition camBox sizing/aspect-ratio applied directly
   (this site is quantitative-only, so no body[data-edition] scoping
   needed), and the legacy .focusLabel is omitted entirely (candidate_67
   removes it defensively too - "video-only" viewport). */
#camBox{display:none;position:fixed;right:18px;bottom:18px;top:auto;width:210px;z-index:35;background:#111827;border:1px solid #425274;border-radius:16px;overflow:hidden;box-shadow:0 12px 36px rgba(13,23,42,.35)}
#camVideo{width:100%;display:block;aspect-ratio:4/3;object-fit:cover;transform:scaleX(-1);background:#0b1020}
.c05FocusInline{margin-top:14px;padding-top:8px}
.c05FocusCheck{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#243049;cursor:pointer}
.c05FocusCheck input{width:16px;height:16px;accent-color:#5567e8;cursor:pointer}
.c05FocusCheck span{line-height:1.5}
@media(max-width:760px){#camBox{width:128px;right:8px;bottom:8px}.c05FocusInline{margin-top:12px}.c05FocusCheck{font-size:12.5px}}

/* Answer/explanation review lists - verbatim from candidate_67.
   var(--success)/var(--sub) mapped to this site's equivalents
   var(--ok)/var(--muted); var(--warn-bg) omitted (unused by either
   review style actually rendered here - it's only used by an unrelated
   English-exam vocabulary panel in the source). */
.ok2{color:var(--ok);font-weight:800}
.ng2{color:var(--bad);font-weight:800}

/* New-Type exam review (candidate_67's base grade() "rev" markup) */
.rev{border:1px solid var(--line);border-left:5px solid var(--ok);padding:12px 14px;margin:10px 0;border-radius:12px;background:#fff}
.rev.ng{border-left-color:var(--danger)}
.rev .t{font-weight:800;margin-bottom:4px}
.rev .ex{margin-top:8px;font-size:13.5px;background:#f8f9fd;border:1px solid #e8ebf2;padding:8px 10px;border-radius:9px}

/* TC exam review (candidate_67's q37ReviewItem markup) */
.q37ReviewList{display:grid;gap:10px;margin-top:10px}
.q37ReviewItem{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fff}
.q37ReviewItem.ok{border-left:4px solid #5b9b86}
.q37ReviewItem.ng{border-left:4px solid #d17982}
.q37ReviewTitle{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin-bottom:8px}
.q37ReviewTitle strong{color:#344054}
.q37ReviewQuestion{font-size:16px;font-weight:800;line-height:1.7;margin-bottom:8px}
.q37ReviewAnswer{font-size:12.5px;margin-bottom:8px}
.q37ReviewExplanation{border-top:1px dashed #dfe4ea;padding-top:8px;font-size:13px;line-height:1.75}
@media(max-width:760px){.q37ReviewQuestion{font-size:14px}.q37ReviewItem{padding:12px}}



/* New-Type practice mode - verbatim from candidate_67 (candidate_11),
   var(--sub) mapped to this site's equivalent var(--muted), var(--ink)
   mapped to var(--text), var(--primary)/var(--primary-dark) mapped to
   var(--indigo)/var(--navy) (closest equivalents in this site's palette),
   var(--shadow-sm) mapped to var(--shadow) (this site has one shadow
   token, not two strengths). */
.nt11Setup{max-width:980px;margin:0 auto;padding:4px 0 40px}
.nt11ModeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nt11Mode,.nt11Count,.nt11Type{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;cursor:pointer;text-align:left;transition:.15s}
.nt11Mode:hover,.nt11Count:hover,.nt11Type:hover{border-color:#aeb8f6;transform:translateY(-1px)}
.nt11Mode.on,.nt11Count.on,.nt11Type.on{border-color:var(--indigo);background:#f1f4ff;box-shadow:0 0 0 2px rgba(91,108,232,.10)}
.nt11Mode strong{display:block;font-size:14px;margin-bottom:3px}
.nt11Mode span{display:block;font-size:11.5px;color:var(--muted);line-height:1.55}
.nt11CountRow{display:flex;gap:8px;flex-wrap:wrap}
.nt11Count{min-width:74px;text-align:center;font-weight:800}
.nt11TypeGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px}
.nt11Type{padding:9px 10px}
.nt11Type b{display:block;font-size:12px}
.nt11Type small{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:2px}
.q64GroupTitle{font-size:13px;margin:14px 0 8px;color:#334155}
.nt11Session{max-width:880px;margin:0 auto}
.nt11QCard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);margin-top:14px}
.nt11QHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #e9edf4;padding-bottom:12px;margin-bottom:14px}
.nt11QNo{font-weight:900;color:var(--navy);font-size:13px}
.nt11Stem{font-size:16px;font-weight:700;line-height:1.8;margin-bottom:14px}
.nt11Choices{display:grid;gap:8px}
.nt11Choice{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 13px;text-align:left;cursor:pointer;font-size:14px;display:flex;gap:10px;align-items:flex-start}
.nt11Choice:hover:not(:disabled){border-color:#aeb8f6;background:#fafbff}
.nt11Choice:disabled{cursor:default}
.nt11Choice.correct{border-color:#5b9b86;background:#edf8f3}
.nt11Choice.wrong{border-color:#d17982;background:#fff1f2}
.nt11Choice .key{min-width:20px;font-weight:900;color:#69758c}
@media(max-width:760px){.nt11ModeGrid{grid-template-columns:1fr}.nt11TypeGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.nt11QCard{padding:15px}.nt11Stem{font-size:14px}}


/* "分からない" (don't know) styling - verbatim from candidate_67 */
.q38UnknownChoice{border-style:dashed!important;background:#fafbfc!important;color:#475467!important}
.nt11Choice.q38UnknownChoice,.tc32Choice.q38UnknownChoice{border-style:solid!important;background:#fff!important;color:buttontext!important}
.nt11Choice.q38UnknownChoice:hover,.tc32Choice.q38UnknownChoice:hover{background:#fafbff!important}
.nt11Choice.q38UnknownChoice.wrong,.tc32Choice.q38UnknownChoice.wrong{border-color:#d17982!important;background:#fff1f2!important}
.q38UnknownText{color:#667085;font-weight:800}
.q38UnknownSummary{margin:-2px 0 12px;text-align:center;font-size:12px;color:#667085}

/* Practice mode's own pattern-analysis panel/table - verbatim from
   candidate_67 (reuses this site's .rt table look for consistency with
   the exam analysis table, since candidate_67's own .nt11Table styling
   is functionally identical to .rt - same border/header treatment). */
.nt11Panel{margin:18px 0 22px;border:1px solid #dfe4ec;background:#fff;border-radius:16px;padding:16px;box-shadow:0 6px 18px rgba(31,48,73,.05)}
.nt11Panel h2{font-size:17px;margin:0 0 4px;color:#202a3d}
.nt11Panel .lead{font-size:12.5px;color:var(--muted);line-height:1.7;margin-bottom:12px}
.nt11Table{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.nt11Table th,.nt11Table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px 10px;text-align:left}
.nt11Table th:last-child,.nt11Table td:last-child{border-right:0}
.nt11Table tr:last-child td{border-bottom:0}
.nt11Table th{background:#f3f5fa}
.nt11Table td.num,.nt11Table th.num{text-align:right;font-variant-numeric:tabular-nums}


/* TC practice mode + shared practice family-info block - verbatim from
   candidate_67 (candidate_35/candidate_11), var(--sub)->var(--muted),
   var(--ink)->var(--text), var(--primary)->var(--indigo),
   var(--primary-dark)->var(--navy). Hero sections reuse this site's own
   .resultHero (not .tc32Hero/.nt11Hero) for visual consistency with the
   rest of the site, so those two hero classes are intentionally omitted. */
.nt11Family{font-size:11px;color:var(--muted);text-align:right}
.tc32Setup{max-width:980px;margin:0 auto}
.tc32Panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;margin-top:12px;box-shadow:var(--shadow)}
.tc32Panel h2{font-size:16px;margin:0 0 5px}
.tc32Lead{font-size:11.5px;color:var(--muted);line-height:1.65;margin-bottom:11px}
.tc32Count,.tc32Type{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:12px;padding:11px 12px;cursor:pointer;text-align:left}
.tc32Count.on,.tc32Type.on{border-color:#6b76bf;background:#f2f4ff;box-shadow:inset 0 0 0 1px #6b76bf}
.tc32CountRow{display:flex;gap:8px;flex-wrap:wrap}
.tc32Count{min-width:74px;text-align:center;font-weight:800}
.tc32TypeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tc32Type{padding:9px 10px}
.tc32Type b{display:block;font-size:12px}
.tc32Type small{display:block;color:var(--muted);font-size:10px;line-height:1.4;margin-top:2px}
.tc36AllRow{margin:8px 0 16px}
.tc36AllPattern{width:min(420px,100%)}
.tc36PatternGroup{margin-top:14px;padding-top:14px;border-top:1px solid #e9edf3}
.tc36PatternGroup h3{font-size:14px;margin:0 0 3px;color:#273248}
.tc36PatternGroup>p{font-size:11.5px;line-height:1.65;color:var(--muted);margin:0 0 9px}
.tc36ExtraGroup{margin-top:18px}
.tc32StartRow{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px}
.tc32StartNote{font-size:11.5px;color:var(--muted)}
.tc32Primary{border:0;border-radius:12px;background:var(--indigo);color:#fff;font-weight:800;padding:12px 22px;cursor:pointer}
.tc32Secondary{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font-weight:700;padding:11px 16px;cursor:pointer}
.tc32Session{max-width:880px;margin:0 auto}
.tc32QCard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);margin-top:14px}
.tc32QHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #e9edf4;padding-bottom:12px;margin-bottom:14px}
.tc32QNo{font-weight:900;color:var(--navy);font-size:13px}
.tc32Family{font-size:11px;color:var(--muted);text-align:right}
.tc32Stem{font-size:18px;font-weight:750;line-height:1.85;margin:12px 0 15px}
.tc32Choices{display:grid;gap:8px}
.tc32Choice{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 13px;text-align:left;cursor:pointer;font-size:14px;display:flex;gap:10px;align-items:flex-start}
.tc32Choice:hover:not(:disabled){border-color:#aeb8f6;background:#fafbff}
.tc32Choice:disabled{cursor:default}
.tc32Choice.correct{border-color:#5b9b86;background:#edf8f3}
.tc32Choice.wrong{border-color:#d17982;background:#fff1f2}
.tc32Choice .key{min-width:20px;font-weight:900;color:#69758c}
.tc32Table{width:100%;border-collapse:collapse;font-size:12.5px}
.tc32Table th,.tc32Table td{border-bottom:1px solid var(--line);padding:9px 8px;text-align:left}
.tc32Table th{font-size:10px;color:var(--muted)}
.tc32Table td.num,.tc32Table th.num{text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:760px){.tc32TypeGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.tc32QCard{padding:15px}.tc32Stem{font-size:16px}.tc32StartRow{align-items:stretch;flex-direction:column}.tc32Primary,.tc32Secondary{width:100%}}


/* Mixed practice mode - verbatim from candidate_67 (candidate_43),
   var(--sub)->var(--muted), var(--ink)->var(--text),
   var(--primary)->var(--indigo), var(--primary-dark)->var(--navy),
   var(--shadow-sm)->var(--shadow). */
.mix43ToggleGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mix43Toggle{border:1px solid var(--line);background:#fff;border-radius:14px;padding:15px 16px;text-align:left;cursor:pointer;color:var(--text);box-shadow:var(--shadow);transition:.15s}
.mix43Toggle:hover{transform:translateY(-1px);border-color:#aeb8f6}
.mix43Toggle.on{background:#eef1ff;border-color:var(--indigo);box-shadow:0 0 0 2px rgba(82,103,232,.08)}
.mix43Toggle strong{display:block;font-size:15px;margin-bottom:4px}
.mix43Toggle span{display:block;color:var(--muted);font-size:12.5px;line-height:1.55}
.mix43Composition{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.mix43Composition>div{border:1px solid var(--line);border-radius:12px;background:#f8f9fd;padding:12px;text-align:center}
.mix43Composition small{display:block;color:var(--muted);font-size:10px;margin-bottom:3px}
.mix43Composition strong{font-size:18px}
.mix43SourceTag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;background:#eef1ff;color:var(--navy);font-size:10.5px;font-weight:800;margin-right:7px}
.mix43SourceTag.tc{background:#e9f7f5;color:#087a72}
.mix43SourceTag.fig{background:#f4edff;color:#7146a3}
.mix43AnalysisSource{white-space:nowrap;font-weight:750}
@media(max-width:700px){.mix43ToggleGrid{grid-template-columns:1fr}.mix43Composition{grid-template-columns:1fr 1fr 1fr}.mix43Composition strong{font-size:15px}}

/* nt11 setup footer row - verbatim from candidate_67 */
.nt11StartRow{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px}
.nt11StartNote{font-size:11.5px;color:var(--muted)}
.nt11Primary{border:0;border-radius:12px;background:var(--indigo);color:#fff;font-weight:800;padding:12px 22px;cursor:pointer}
.nt11Secondary{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);font-weight:700;padding:11px 16px;cursor:pointer}
@media(max-width:760px){.nt11StartRow{flex-direction:column;align-items:stretch}.nt11Primary,.nt11Secondary{min-height:48px;width:100%}}


/* 学習履歴 (history) - verbatim from candidate_67's FINAL history row
   design (candidate_63, body[data-edition="quantitative"]-scoped -
   applied directly since this whole site IS that edition), which fully
   replaces the earlier c04HistoryRow layout. */
.c04HistoryList,.q63HistoryList{display:grid;gap:10px}
.q63HistoryRow{display:grid;grid-template-columns:minmax(180px,1fr) 100px 90px 100px;gap:14px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px 16px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.q63HistoryRow:hover{border-color:#c9d2e4;box-shadow:0 8px 24px rgba(23,36,59,.07)}
.q63HistoryMain{min-width:0;display:flex;flex-direction:column;gap:4px}
.q63HistoryMain>strong{font-size:15px;color:#172033;line-height:1.45}
.q63HistoryDetail{font-size:12px;color:#657089;line-height:1.55;overflow-wrap:anywhere}
.q63HistoryDate{font-size:11px;color:#7c8799;font-variant-numeric:tabular-nums}
.q63HistoryMetric{min-width:0}
.q63HistoryMetric small{display:block;font-size:10px;color:#7c8799;margin-bottom:4px}
.q63HistoryMetric strong{font-size:14px;color:#172033;font-variant-numeric:tabular-nums;white-space:nowrap}
.q63HistoryMetric.rate.good strong{color:#11846b}
.q63HistoryMetric.rate.mid strong{color:#a56b00}
.q63HistoryMetric.rate.low strong{color:#b42332}
.c04Empty{border:1px dashed #ced6e5;border-radius:14px;padding:25px 18px;text-align:center;background:#fafbfe;color:#788295}
.c04Empty strong{display:block;color:#4b5569;font-size:14px;margin-bottom:5px}
.c04Empty span{font-size:12px;line-height:1.7}
.c04FilterBar{display:flex;gap:6px;flex-wrap:wrap}
.c04Filter{border:1px solid var(--line);background:#fff;color:#687286;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer;min-height:38px}
.c04Filter.on{background:#263a61;color:#fff;border-color:#263a61}
.c04KpiGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.c04Kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 15px;box-shadow:var(--shadow)}
.c04Kpi small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}
.c04Kpi strong{font-size:21px;line-height:1}
.c04Kpi span{font-size:11px;color:#848c9b;margin-left:3px}
.c04SyncNote{border:1px solid #d8e8e6;background:#f2fbf9;border-radius:12px;padding:11px 12px;font-size:12.5px;color:#4c716d;line-height:1.7;margin-top:14px}
.c05ManageHistory{border:1px solid var(--line);background:#fff;color:#596478;border-radius:9px;padding:8px 12px;font-size:13px;font-weight:800;cursor:pointer;min-height:40px}
@media(max-width:900px){.c04KpiGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.q63HistoryRow{grid-template-columns:1fr;gap:8px}.q63HistoryMetric{display:flex;justify-content:space-between;align-items:center}.q63HistoryMetric small{margin-bottom:0}}


/* Account page: 利用上の注意 / 退会・お問い合わせ - verbatim from
   candidate_67 (candidate_53), class names de-prefixed to match this
   site's own markup convention (.legalNotice instead of .q53LegalNotice
   etc.), colors/spacing unchanged. */
.legalNotice{margin-top:14px}
.legalNoticeList{margin:8px 0 10px;padding-left:1.35rem;color:#39455a;font-size:12.5px;line-height:1.75}
.legalNoticeList li+li{margin-top:5px}
.supportBlock{margin-top:20px;padding-top:18px;border-top:1px solid rgba(18,48,96,.14);font-size:12.5px;line-height:1.75;color:#39455a}
.supportBlock h3{margin:0 0 8px;font-size:14px;color:#172033}
.supportBlock p{margin:0 0 8px}
.supportBlock ul{margin:8px 0 10px;padding-left:1.35rem}
.supportBlock li+li{margin-top:4px}
.supportAddress a{font-weight:850;color:#253d76;overflow-wrap:anywhere}
.supportNote{margin-bottom:0!important;color:#5b667a;font-size:11.5px}


/* 計数 復習 (cumulative mastery) - verbatim from candidate_67
   (candidate_44/45/47), var(--sub)->var(--muted), var(--ink)->var(--text),
   var(--primary)->var(--indigo), var(--shadow-sm)->var(--shadow).
   .q47PatternActions/.q47PracticePattern/.q60ReviewBreak use the
   body[data-edition="quantitative"]-scoped values directly (this whole
   site IS that edition), not the earlier flex-based defaults. */
.q44MasteryPage{max-width:1120px;margin:0 auto}
.q44Hero{padding:20px 0 8px}
.q44Hero h1{font-size:28px;margin:5px 0 8px}
.q44Hero p{margin:0;color:var(--muted);line-height:1.7}
.q60ReviewBreak{display:inline}
.q44Summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:15px 0}
.q44Summary>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px;text-align:center;box-shadow:var(--shadow)}
.q44Summary small{display:block;color:var(--muted);font-size:10px}
.q44Summary strong{display:block;font-size:23px;margin-top:2px}
.q47ReviewHint{margin:0 0 11px;padding:10px 12px;border:1px solid #e2e7ef;border-radius:11px;background:#f8fafc;color:#5f6b7d;font-size:11.5px;line-height:1.65}
.q44Panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;margin-top:13px;box-shadow:var(--shadow)}
.q44Panel h2{font-size:16px;margin:0 0 5px}
.q44Lead{color:var(--muted);font-size:12px;line-height:1.65;margin-bottom:11px}
.q45TargetPanel h3{font-size:14px;margin:16px 0 5px;color:#334155}
.q45TargetPanel .q38TargetSettings{margin-top:6px}
.q44TableWrap{overflow-x:auto}
.q44Table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:12.5px}
.q44Table th,.q44Table td{padding:8px 9px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}
.q44Table th{background:#f3f5fa;text-align:left}
.q44Table tr:last-child td{border-bottom:0}
.q44Table th:last-child,.q44Table td:last-child{border-right:0}
.q44Table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.q44Pattern strong{display:block}
.q44Pattern small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.q44Pattern .q45Representative{display:block;color:#667085;font-size:10.5px;font-weight:600;line-height:1.45;margin-top:3px;white-space:normal}
.q44Pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:10.5px;font-weight:900;white-space:nowrap}
.q44Good{background:#dff4ef;color:#087a72}
.q44Warn{background:#fff2d7;color:#9a6200}
.q44Bad{background:#fde6e6;color:#b62d36}
.q44Neutral{background:#eef1f6;color:#5c6678}
.q47PatternActions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;justify-content:stretch}
.q47PracticePattern{border:0;background:var(--indigo);color:#fff;border-radius:8px;font-weight:850;cursor:pointer;white-space:normal;width:100%;min-height:44px;font-size:12px}
.q47PracticePattern:hover{filter:brightness(.96)}
.q44ResetOne{border:1px solid var(--line);background:#fff;color:#687386;border-radius:8px;padding:5px 8px;font-size:10.5px;cursor:pointer;white-space:nowrap}
.q44ResetOne:hover{border-color:#c7ccd6;background:#f8f9fb}
.q44Actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:16px}
.q44Danger{border:1px solid #e7b9bc;background:#fff;color:#b62d36;border-radius:10px;padding:9px 13px;font-weight:800;cursor:pointer}
.q44Back{border:0;background:#687386;color:#fff;border-radius:10px;padding:10px 16px;font-weight:800;cursor:pointer}
@media(max-width:760px){.q44Summary{grid-template-columns:repeat(2,minmax(0,1fr))}.q44Panel{padding:13px}.q44Table{font-size:11px}.q44Table th,.q44Table td{padding:7px}.q44Summary>div:last-child{grid-column:span 2}.q60ReviewBreak{display:block}}


/* 本当のホーム画面 (dashboard) - verbatim from candidate_67's final
   design (candidate_49, with the quantitative-edition-scoped refinements
   applied directly since this whole site IS that edition). Reuses this
   site's existing .hero for the gradient/padding base. */
.heroBadge{padding:0;border-radius:0;background:transparent;color:#cbd3ff;font-size:12px;font-weight:900;letter-spacing:.14em}
.heroActions{display:flex;gap:12px;margin-top:24px;position:relative;z-index:2;flex-wrap:wrap}
.heroAction{border-radius:12px;padding:0 20px;min-height:48px;font-size:14px;font-weight:800;cursor:pointer;border:0}
.heroAction.primary{background:#5b6ce8;color:#fff;box-shadow:0 8px 20px rgba(91,108,232,.28)}
.heroAction.ghost{background:#fff;color:#17243b;border:1px solid var(--line)}
.summaryGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.summaryCard{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow)}
.q49SummaryLabel{display:block;color:var(--muted);font-size:13px;margin-bottom:4px}
.summaryCard strong{font-size:22px}
.summaryCard span{font-size:12px;color:#848c9b;margin-left:3px}
.q49HomeSection{background:#fff;border:1px solid var(--line);border-radius:17px;padding:24px;box-shadow:var(--shadow);margin-top:20px}
.q49MenuGrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
.q49MenuCard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;min-height:190px;box-shadow:var(--shadow);display:flex;flex-direction:column;cursor:pointer;text-align:left;transition:transform .14s ease,border-color .14s ease}
.q49MenuCard:hover{transform:translateY(-1px);border-color:#b8c0fa}
.q49Tag{font-size:12px;font-weight:900;letter-spacing:.06em;color:#5b67f6}
.q49Icon{width:43px;height:43px;border-radius:13px;background:#eef2ff;color:#5b67f6;display:grid;place-items:center;font-weight:900;font-size:19px;margin:12px 0}
.q49MenuCard h3{margin:0 0 5px;font-size:18px;line-height:1.35;color:#0f172a}
.q49MenuCard p{margin:0;color:#475569;font-size:13px;line-height:1.6;min-height:0}
.q49Cta{margin-top:auto;padding-top:14px;color:#5b67f6;font-weight:800;font-size:13px}
.q54TitleLine{display:block;white-space:nowrap}
.q49HomeNote{margin-top:10px;color:#64748b;font-size:12px}
.linkBtn{border:0;background:#eef1ff;color:#5267da;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer;min-height:40px}
.c04Empty button{margin-top:12px;border:0;border-radius:9px;padding:10px 14px;background:#5267e8;color:#fff;font-size:12.5px;font-weight:850;cursor:pointer}
@media(max-width:900px){.q49MenuGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.summaryGrid{grid-template-columns:1fr 1fr}.heroActions{display:grid;grid-template-columns:1fr}.q49MenuGrid{grid-template-columns:1fr}.q49HomeSection{padding:18px}}

/* "分からない" choice - reuses this site's own .choice/.choiceKey base
   (solid border, matching the language edition's own live behavior -
   confirmed directly, not candidate_67's earlier dashed default), with
   a subtle background tint distinguishing it from the other choices,
   matching the language edition's own subtle tint. The .answerWrong/
   .answerCorrect overrides are required because .choiceUnknown's
   background would otherwise win (same specificity, later in the
   cascade) once an answer is revealed. */
.choice.choiceUnknown{background:#f2f4f7}
.choice.choiceUnknown:hover{background:#eaedf2}
.choice.choiceUnknown.answerWrong{background:#fff1f3 !important}
.choice.choiceUnknown.answerCorrect{background:#eaf8f2 !important}

/* 正答率 sub-line under scoreBig - font-size matches this site's own
   .scoreBig small convention (17px), per the language edition reference. */
.scoreBigRate{font-size:16px;color:#fff;margin-top:6px}

/* Pattern tag (New-Type/TC/mixed practice question card) as a direct
   flex sibling within .questionTop, guaranteeing right-edge placement
   regardless of prompt length (previously nested under the prompt,
   where text-align:right could be constrained by the wrapping div). */
.questionPromptWrap{flex:1;min-width:0}
.nt11Family{flex:0 0 auto;align-self:flex-start;text-align:right;white-space:nowrap;margin-left:10px}

/* Scoring panel (新型・全問表示模試 末尾) - mirrors .questionCard's own
   frame exactly (background/border/border-radius/box-shadow/padding/
   margin-top confirmed directly from the live stylesheet), so it reads
   as a sibling card matching the question cards above it, with the
   same margin-top providing the gap (not touching the last question). */
.scoringPanel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:28px;margin-top:16px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.scoringNote{display:flex;flex-direction:column;gap:4px}
.scoringNote strong{color:#0f172a;font-weight:900;font-size:15px}
.scoringNote span{font-size:13px;color:var(--muted)}
@media(max-width:700px){.scoringPanel{padding:19px 16px;flex-direction:column;align-items:stretch}.scoringPanel button{width:100%;min-height:48px}}

/* Mobile copy protection - JS selectstart/oncopy handlers are
   unreliable on touch devices (long-press text selection often bypasses
   them, especially on iOS Safari). user-select:none is the robust,
   standard way to prevent the selection UI itself from appearing on
   touch, complementing (not replacing) the JS-based desktop handlers. */
.questionCard, .rev, .q37ReviewItem {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Mobile bottom nav icons - proper SVG icons replacing single-character
   placeholder marks (there was no candidate_67 source for these; this
   bottom tab bar is this site's own responsive-nav addition, not a
   ported feature, so the icons are a from-scratch, standard icon set). */
.mobileNav button svg{width:22px;height:22px;display:block;margin:0 auto 3px}

/* 累積習熟度 (mastery) table - mobile-specific column reduction. The
   base @media(max-width:760px) rule only shrank font-size/padding,
   which is not enough for a 7-column table on a narrow phone: hide the
   less-essential 直近/累積 columns (still visible on tablet/desktop),
   keeping パターン・習熟度・平均時間・目標・操作 as the compact core. */
@media(max-width:520px){
  .q44Table th:nth-child(3),.q44Table td:nth-child(3),
  .q44Table th:nth-child(6),.q44Table td:nth-child(6){display:none}
  .q44Table th,.q44Table td{padding:6px 5px;font-size:10.5px}
  .q44Pattern .q45Representative{display:none}
  .q47PatternActions{grid-template-columns:1fr;gap:5px}
  .q47PracticePattern{font-size:10.5px;min-height:36px;padding:6px 8px}
  .q44ResetOne{width:100%}
}

/* 累積習熟度 (mastery) - mobile card layout, replacing the table on
   narrow screens entirely (rather than just shrinking columns, which
   still crammed long figure descriptions into 2-character-wide lines
   and squeezed the two action buttons together). */
.q44MobileCards{display:none}
.q44MobileCard{border:1px solid var(--line);border-radius:14px;padding:13px;margin-bottom:10px;background:#fff}
.q44MobileCard:last-child{margin-bottom:0}
.q44MobileCardHead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:11px}
.q44MobileCardHead strong{display:block;font-size:14px}
.q44MobileCardHead .q45Representative{display:block;color:#667085;font-size:11px;font-weight:600;line-height:1.5;margin-top:3px}
.q44MobileCardStats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.q44MobileCardStats>div{background:#f8f9fb;border-radius:9px;padding:7px 9px}
.q44MobileCardStats small{display:block;color:var(--muted);font-size:10px;margin-bottom:2px}
.q44MobileCardStats strong{font-size:12.5px}
.q44MobileCard .q47PatternActions{display:grid;grid-template-columns:1fr;gap:6px}
.q44MobileCard .q47PracticePattern{font-size:12.5px;min-height:42px}
.q44MobileCard .q44ResetOne{width:100%;min-height:36px}
@media(max-width:600px){
  .q44TableWrap{display:none}
  .q44MobileCards{display:block}
}

/* 累積習熟度 - each of the 4 category sections becomes a native
   <details> disclosure (matching this site's own "目標時間を調整"
   collapsible pattern), reducing page length substantially on mobile
   where the card layout above makes each section tall. */
.q44SectionDetails{padding:0;overflow:hidden}
.q44SectionDetails summary{list-style:none;cursor:pointer;padding:17px;display:flex;align-items:center;justify-content:space-between;user-select:none}
.q44SectionDetails summary::-webkit-details-marker{display:none}
.q44SectionDetails summary h2{margin:0}
.q44SectionDetails summary::after{content:'';width:9px;height:9px;border-right:2px solid #8b94a5;border-bottom:2px solid #8b94a5;transform:rotate(-45deg);transition:transform .15s;flex:0 0 auto;margin-left:10px}
.q44SectionDetails[open] summary::after{transform:rotate(45deg)}
.q44SectionDetails summary:hover{background:#fafbfe}
.q44SectionDetails .q44TableWrap,.q44SectionDetails .q44MobileCards{padding:0 17px 17px}
@media(max-width:520px){.q44SectionDetails summary{padding:13px}.q44SectionDetails .q44TableWrap,.q44SectionDetails .q44MobileCards{padding:0 13px 13px}}

/* パターン別分析 (result screens: exam/New-Type/TC/mixed practice) -
   same mobile card treatment as the mastery table above. These tables
   don't share mastery's .q44TableWrap wrapper, so the table elements
   themselves are targeted directly. */
@media(max-width:600px){
  .q37PatternAnalysis table,.nt07Analysis table.rt{display:none}
  .q37PatternAnalysis .q44MobileCards,.nt07Analysis .q44MobileCards{display:block}
}

/* 解答・解説 (review items) - collapsible per-question <details>,
   collapsed by default showing just "Q{n}" + a color-coded status dot
   (green=correct/red=wrong/gray=don't-know), with a "すべて開く/閉じる"
   toggle at the panel head. Reduces a 36/50-question review list to a
   compact scan of colors, while still opening any single question with
   one tap. */
.rev, .q37ReviewItem { padding: 0; overflow: hidden; }
.rev summary, .q37ReviewItem summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  gap: 9px; padding: 12px 14px; font-weight: 800; font-size: 13.5px;
  user-select: none;
}
.rev summary::-webkit-details-marker, .q37ReviewItem summary::-webkit-details-marker { display: none; }
.rev summary:hover, .q37ReviewItem summary:hover { background: #fafbfe; }
.q37StatusDot { width: 12px; height: 12px; border-radius: 999px; flex: 0 0 auto; }
.q37StatusDot.ok { background: var(--ok, #1a9c6d); }
.q37StatusDot.ng { background: var(--bad, #d1435a); }
.q37StatusDot.unknown { background: #9aa3b2; }
.rev > *:not(summary), .q37ReviewItem > *:not(summary) { padding-left: 14px; padding-right: 14px; }
.rev > .ex:last-child, .q37ReviewItem > .q37ReviewExplanation:last-child { padding-bottom: 14px; }
.panelHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Account page's メールアドレス row - the value's own text was wrapping
   inside .infoRow strong on narrow screens, making the row look like a
   stacked single column. Keeps label fixed-width and lets only the
   value shrink/wrap within its own column, preserving the 2-column
   (label | value) layout on mobile. */
@media(max-width:480px){
  .infoRow{align-items:flex-start}
  .infoRow span{flex:0 0 auto;white-space:nowrap}
  .infoRow strong{flex:1;min-width:0;overflow-wrap:break-word;text-align:right}
}

/* Hero heading mid-phrase wrap fix - the base stylesheet's mobile rule
   sets overflow-wrap:anywhere on .hero h1/.hero p (added for the
   account page's long email address), which also forces awkward,
   arbitrary-character breaks on the SHORT, punctuation-structured
   Japanese headings used elsewhere (ホーム/演習/復習/履歴). Resetting
   it back to normal for every hero except .heroAccount restores natural
   break points (CJK line-breaking already breaks between characters
   sensibly; "anywhere" was the actual problem, not word length). */
@media(max-width:720px){
  .hero:not(.heroAccount) h1, .hero:not(.heroAccount) p { overflow-wrap: normal; word-break: normal; }
  .loginVisual h1, .loginVisual p { overflow-wrap: normal; word-break: normal; }
}

/* Login screen mobile fixes:
   1) .loginPoints{display:none} was hiding the entire 3-item feature
      list on mobile - re-enabled, matching the language edition's own
/* Border-left color-coding removed (correct AND don't-know both showed
   green, which read as ambiguous/confusing) - the status dot alone is
   now the single indicator, matching the person's explicit request. */
.rev.ok, .rev.ng, .rev.unknown,
.q37ReviewItem.ok, .q37ReviewItem.ng, .q37ReviewItem.unknown { border-left: 1px solid var(--line); }
.reviewLegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.reviewLegend span { display: inline-flex; align-items: center; gap: 5px; }
.reviewLegend i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.reviewLegend i.ok { background: var(--ok, #1a9c6d); }
.reviewLegend i.ng { background: var(--bad, #d1435a); }
.reviewLegend i.unknown { background: #9aa3b2; }

/* Explicit line breaks at natural Japanese pause points for the 4 hero
   headings (ホーム/演習/復習/履歴) - CJK text has no spaces, so the
   browser's default line-breaking can split anywhere, including
   mid-phrase. Matches the login heading's own fix (manual <br> plus
   nowrap on the remainder) instead of relying on overflow-wrap alone. */
@media(max-width:720px){ .hero h1 { font-size: 22px !important; line-height: 1.5 !important; } }

/* ログイン画面 (mobile) - .loginForm was touching the viewport edge with
   no right-side breathing room once .loginCard/.loginShell were changed
   to allow expansion (overflow:visible) for .loginPoints; enforcing
   box-sizing + explicit horizontal padding on every child prevents the
   email field / captcha / submit button from visually overlapping the
   edge. */
@media(max-width:640px){
  .loginForm, .loginForm * { box-sizing: border-box; }
  .loginForm { padding: 22px 18px !important; width: 100%; max-width: 100%; }
  .field input, .loginForm button, #captchaContainer { width: 100%; max-width: 100%; }
}

/* Login screen mobile - two more fixes:
   1) .loginCard was switched to overflow:visible earlier (to stop
      .loginPoints content being clipped at the bottom), but that also
      removed the rounded-corner clipping it relied on for .loginVisual's
      TOP corners once stacked - restoring them explicitly, and matching
      width to .loginForm below it (both should be 100% of the single
      grid column, not diverging).
   2) h1 font-size reduced further so both nowrap segments reliably fit
      narrow phone widths without triggering horizontal overflow. */
@media(max-width:720px){
  /* Full content restored (brand image matters more than avoiding a
     scroll) - the key fix is .loginCard{display:block} instead of a
     grid with column-width matching, which is what was actually causing
     the persistent right-column mismatch (grid-template-columns kept
     reasserting the desktop 1.08fr/.92fr ratio at some breakpoint no
     matter how .loginVisual/.loginForm's own width/box-sizing were set;
     removing the grid entirely sidesteps that class of bug). */
  .loginCard { display: block; }
  .loginVisual {
    padding: 22px 18px;
    border-radius: 18px 18px 0 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .loginVisual h1 { font-size: 24px !important; line-height: 1.5 !important; }
  .loginPoints { display: grid; }
  .loginForm {
    padding: 22px 18px !important;
    border-radius: 0 0 18px 18px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .field input, .loginForm button, #captchaContainer { width: 100%; max-width: 100%; box-sizing: border-box; }
}

