:root{--green:#00645f;--ink:#0b2435;--muted:#52686d;--tint:#f0f7f4;--line:#d6e3df;--paper:#fff;--wrong:#8e3f30;--wrong-bg:#fff3ee;font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:#f6f9f7;font-size:16px;line-height:1.8;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:var(--green);text-underline-offset:.2em}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #167cb4;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.5;letter-spacing:.035em}h2{font-size:1.45rem;line-height:1.6}h3{font-size:1.1rem}button{line-height:1.5}ul{padding-left:1.5em}p+p{margin-top:.7rem}.skip-link{position:fixed;top:-80px;left:12px;background:white;padding:12px;z-index:100}.skip-link:focus{top:8px}.development-note{background:#e9f1ed;color:#315651;text-align:center;padding:6px 16px;font-size:.8rem;letter-spacing:.02em}.development-note span{margin-left:12px}.app-shell{max-width:1160px;margin:auto;padding:25px 28px 40px}.app-heading{font-size:.85rem;color:var(--muted);margin-bottom:15px}.app-heading span{margin:0 6px}.app-nav{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px}.app-nav button,.app-nav a{font-size:.92rem;border:0;background:transparent;min-height:44px;padding:10px 18px;text-decoration:none;color:var(--muted);border-radius:6px}.app-nav button[aria-current=page]{background:var(--tint);color:var(--green);font-weight:700}.app-nav a{margin-left:auto}.storage-note{font-size:.78rem;color:var(--muted);margin:12px 0 19px}.storage-note.warning{color:#795010}.panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:30px;margin-bottom:22px}.muted,.caption{color:var(--muted)}.caption{font-size:.85rem}.eyebrow{color:var(--green);font-size:.8rem;letter-spacing:.15em;font-weight:700;margin-bottom:10px}.hero{min-height:290px;background:#fff url('./images/home.webp') no-repeat right bottom;background-size:auto 100%;padding:40px;border-radius:16px;border:1px solid var(--line);margin-bottom:24px}.hero-copy{max-width:61%}.hero h1{margin-bottom:15px}.hero p{margin:10px 0 16px}.hero .caption{font-size:.84rem}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:28px 0 14px}.section-title h2{font-size:1.25rem}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.mode-card{padding:25px 24px;background:var(--paper);border:1px solid var(--line);border-radius:14px;display:flex;align-items:flex-start;flex-direction:column;gap:10px}.mode-card h3{font-size:1.25rem}.mode-card p{color:var(--muted);font-size:.9rem;flex:1}.mode-card .button{margin-top:10px;width:100%}.card-icon{height:42px;width:42px;display:grid;place-items:center;color:var(--green);background:var(--tint);border-radius:12px}.card-icon svg{height:24px;width:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.count{font-size:.78rem;color:var(--green);font-weight:700;letter-spacing:.04em}.button{min-height:48px;padding:12px 22px;border-radius:8px;border:1px solid var(--green);background:var(--green);color:white;font-weight:700;text-decoration:none;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button.secondary{color:var(--green);background:#fff}.button.subtle{border-color:var(--line);background:var(--paper);color:var(--ink)}.button.small{font-size:.85rem;min-height:44px;padding:10px 16px}.text-button{border:0;background:none;color:var(--green);text-decoration:underline;text-underline-offset:4px;padding:10px;min-height:44px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:24px}.continue{background:var(--tint);display:flex;align-items:center;justify-content:space-between;gap:20px}.continue .button{flex-shrink:0}.continue h2{font-size:1.15rem}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{padding:18px 20px;background:white;border:1px solid var(--line);border-radius:10px}.metric strong{display:block;font-size:1.8rem;font-weight:650;line-height:1.45}.metric span{font-size:.8rem;color:var(--muted)}.metric small{font-size:.8rem;font-weight:400;margin-left:5px}.notice{padding:15px 20px;background:var(--tint);border-left:3px solid var(--green);margin:16px 0;color:#244e48}.error{border-color:var(--wrong);background:var(--wrong-bg);color:#733122}.notice button{margin-left:10px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:25px 0}.field label{font-weight:700;display:block;margin-bottom:8px}.field select{display:block;width:100%;min-height:48px;background:#fff;border:1px solid #aebfba;border-radius:7px;padding:10px 35px 10px 12px;color:var(--ink)}.field.wide{grid-column:1/-1}.count-options{display:flex;gap:12px;flex-wrap:wrap}.count-options label{display:flex;align-items:center;justify-content:center;gap:8px;min-width:110px;padding:12px;border:1px solid var(--line);border-radius:8px;font-weight:400;cursor:pointer}.count-options label:has(input:checked){border-color:var(--green);background:var(--tint)}input{accent-color:var(--green)}.setup-summary{padding:18px;background:var(--tint);border-radius:8px}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 234px;gap:20px;align-items:start}.quiz-panel{padding:28px 30px}.quiz-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.quiz-top strong{font-size:1.1rem}.progress{height:5px;appearance:none;width:100%;border:0;border-radius:5px;overflow:hidden;background:#e5ede9;display:block;margin:15px 0 27px}.progress::-webkit-progress-bar{background:#e5ede9}.progress::-webkit-progress-value{background:var(--green)}.progress::-moz-progress-bar{background:var(--green)}.quiz-meta{display:flex;align-items:flex-start;gap:15px;justify-content:space-between;margin-bottom:18px}.quiz-meta h1{font-size:1.35rem;letter-spacing:0}.quiz-meta .caption{margin:5px 0 0}.bookmark{font-size:.8rem;border:1px solid var(--line);border-radius:6px;background:white;min-height:44px;padding:9px 12px;flex-shrink:0;max-width:170px}.bookmark[aria-pressed=true]{background:var(--tint);border-color:var(--green);color:var(--green)}.question-prompt{font-weight:650;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.08rem;margin-bottom:18px}.question-notes{font-size:.88rem;color:var(--muted);margin:10px 0;white-space:pre-wrap}.answer-hint{font-size:.82rem;color:var(--muted);margin:16px 0 10px;min-height:1.8em}.choices{border:0;padding:0;margin:0;min-width:0;display:grid;gap:12px}.choices.quick{grid-template-columns:1fr 1fr}.choice{position:relative;display:flex;gap:13px;align-items:flex-start;border:1px solid var(--line);border-radius:9px;padding:17px 18px;cursor:pointer;min-height:80px}.choice:has(input:checked){background:var(--tint);border-color:var(--green)}.choice.correct{border-color:var(--green);background:var(--tint)}.choice.incorrect{border-color:#b27564;background:var(--wrong-bg)}.choice input{margin:8px 0 0;width:18px;height:18px;flex-shrink:0}.choice input:disabled{opacity:1}.choice-body{flex:1;min-width:0}.choice-text{display:block;overflow-wrap:anywhere}.choice-status{display:block;min-height:1.65em;font-size:.76rem;color:var(--green);margin-top:4px}.incorrect .choice-status{color:var(--wrong)}.choices.quick .choice-text{font-size:1.2rem}.choice.readonly{cursor:default}.answer-result{padding:17px 20px;border-radius:9px;margin:28px 0 24px;background:var(--tint);color:var(--green);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.answer-result.wrong{background:var(--wrong-bg);color:var(--wrong)}.explanation{border-top:1px solid var(--line);padding-top:26px;margin-top:24px}.explanation h2{font-size:1rem;margin-bottom:10px}.explanation p{line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}.point{background:#f5f8f5;border-left:3px solid #90b6a6;padding:18px 20px;margin:20px 0}.point strong{font-size:.85rem;color:var(--green);display:block;margin-bottom:8px}.source{margin-top:26px;border-top:1px solid var(--line);padding-top:18px;font-size:.78rem;overflow-wrap:anywhere}.source p+p{margin-top:6px}.question-nav{padding:20px}.question-nav summary{cursor:pointer;font-weight:700}.question-nav-list{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:16px;max-height:440px;overflow:auto;padding:3px}.question-number{background:white;border:1px solid var(--line);border-radius:6px;min-height:46px;padding:4px;display:flex;flex-direction:column;align-items:center;font-size:.8rem;line-height:1.4}.question-number small{font-size:.65rem;min-height:1em}.question-number.correct{background:var(--tint)}.question-number.wrong{background:var(--wrong-bg)}.question-number[aria-current=true]{border:2px solid var(--green);font-weight:700}.legend{font-size:.72rem;color:var(--muted);margin-top:12px}.quiz-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-top:26px}.result-title{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.result-title h1{font-size:1.7rem}.result-summary{margin:20px 0}.result-rows{display:grid;gap:10px;margin-top:18px}.result-row{display:flex;gap:15px;align-items:center;padding:15px 18px;border:1px solid var(--line);border-radius:9px;min-width:0}.result-row .row-copy{flex:1;min-width:0}.result-row h3{font-size:1rem;overflow-wrap:anywhere}.result-row p{font-size:.8rem;color:var(--muted);margin-top:4px}.result-row .button{flex-shrink:0}.status-label{font-size:.8rem;font-weight:700;min-width:38px;color:var(--green)}.status-label.wrong{color:var(--wrong)}.empty{padding:32px 15px;text-align:center;color:var(--muted)}.filters{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0}.filters .field{flex:1;min-width:145px}.filters label{font-size:.8rem}.history-label{display:inline-block;font-size:.75rem;color:var(--green);background:var(--tint);border-radius:4px;padding:2px 8px;margin-bottom:5px}.history-card{padding:22px 24px;background:white;border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.history-card h2{font-size:1.08rem}.history-card .caption{margin:4px 0}.history-card .actions{margin-top:0;flex-shrink:0}.history-card strong{color:var(--green)}.table-wrap{overflow-x:auto}.stats-table{width:100%;border-collapse:collapse;font-size:.9rem}.stats-table th,.stats-table td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line)}.stats-table th{font-size:.8rem;color:var(--muted)}.stats-table .progress{margin:6px 0;min-width:60px}.app-footnote{font-size:.76rem;color:var(--muted);margin-top:30px}.loading{text-align:center;padding:60px 20px}dialog{border:1px solid var(--line);border-radius:15px;padding:28px;max-width:min(520px,calc(100% - 32px));color:var(--ink)}dialog::backdrop{background:#15332e66}dialog p{margin:15px 0}dialog .actions{justify-content:flex-end}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:850px){.quiz-layout{grid-template-columns:minmax(0,1fr)}.question-nav{order:-1;padding:12px 18px;margin-bottom:0}.question-nav-list{grid-template-columns:repeat(8,1fr);max-height:180px}.question-nav summary{font-size:.88rem}.quiz-layout:has(.question-nav) .question-nav .legend{display:none}.hero{background-size:auto 90%}.hero-copy{max-width:65%}.cards{gap:12px}.mode-card{padding:20px 17px}.mode-card h3{font-size:1.1rem}.app-shell{padding:20px}.quiz-panel{padding:25px}.history-card{align-items:flex-start}.stats-table th,.stats-table td{padding:12px 8px}}
@media(max-width:600px){:root{font-size:16px}.app-shell{padding:15px 16px 30px}.development-note{font-size:.7rem;padding:6px 10px}.development-note span{margin-left:8px}.app-heading{font-size:.76rem;margin-bottom:8px}.app-nav{gap:0}.app-nav button,.app-nav a{font-size:.8rem;padding:10px 10px}.app-nav a{margin-left:0}.storage-note{font-size:.7rem;margin:10px 0 15px}.hero{min-height:260px;padding:25px 24px 80px;background-size:auto 55%}.hero-copy{max-width:100%}.hero h1{font-size:1.65rem;max-width:265px}.hero p{font-size:.9rem;max-width:255px}.hero .caption{font-size:.72rem;max-width:225px}.panel{padding:22px 20px;border-radius:12px;margin-bottom:16px}.cards{grid-template-columns:1fr;gap:12px}.mode-card{display:grid;grid-template-columns:44px 1fr;padding:20px;gap:6px 14px}.mode-card .card-icon{grid-row:1/3}.mode-card h3{font-size:1.17rem}.mode-card .count{grid-column:2;grid-row:2}.mode-card p,.mode-card .button{grid-column:1/-1}.mode-card p{margin-top:6px}.mode-card .button{margin-top:10px}.continue{display:block}.continue .button{width:100%;margin-top:16px}.overview{grid-template-columns:1fr 1fr;gap:10px}.metric{padding:15px 17px}.metric strong{font-size:1.55rem}.section-title{margin-top:23px}.form-grid{grid-template-columns:1fr;gap:20px}.field.wide{grid-column:auto}.count-options{gap:8px}.count-options label{min-width:0;flex:1;padding:12px 8px}.actions{gap:10px}.actions .button{width:100%}.quiz-panel{padding:20px 18px}.quiz-top{font-size:.85rem}.quiz-top strong{font-size:1rem}.progress{margin:13px 0 22px}.quiz-meta{flex-wrap:wrap;gap:12px}.quiz-meta h1{font-size:1.25rem}.quiz-meta .bookmark{max-width:none}.question-prompt{font-size:1.03rem}.choices.quick{grid-template-columns:1fr}.choice{padding:16px;gap:12px}.choices.quick .choice{min-height:82px}.answer-result{font-size:.9rem;padding:16px;margin:24px 0 20px}.explanation{padding-top:23px}.explanation p{font-size:.97rem}.point{padding:17px}.quiz-footer{font-size:.8rem}.quiz-footer .button{padding:10px 14px;font-size:.8rem}.question-nav{padding:10px 15px;margin:0}.question-nav-list{grid-template-columns:repeat(6,1fr)}.history-card{display:block;padding:20px}.history-card .actions{margin-top:15px}.history-card .button{width:100%}.result-row{flex-wrap:wrap;padding:14px;gap:8px 12px}.result-row .button{margin-left:auto}.result-row .row-copy{flex-basis:70%}.result-title{display:block}.result-title .caption{margin-top:12px}.stats-table{font-size:.8rem}.stats-table td:first-child{min-width:110px}.stats-table th{font-size:.72rem}.filters{gap:12px}.filters .field{min-width:125px}.source{font-size:.74rem}}
h1[tabindex="-1"]:focus{outline:none}
@media(max-width:600px){.site-header>.site-width{display:grid;grid-template-columns:1fr auto;width:calc(100% - 32px);gap:3px 10px;padding-block:10px;min-height:0}.site-header .site-brand{width:auto;justify-content:flex-start;grid-column:1;grid-row:1}.site-header .site-brand strong{font-size:28px}.site-header .site-brand>span{display:none}.site-header .dm-home-account{width:auto;grid-column:2;grid-row:1;max-width:170px;justify-content:flex-end}.site-header .site-width nav{grid-column:1/-1;grid-row:2;width:auto;justify-content:center;gap:24px}.hero{min-height:0;padding:22px 22px 25px;background-size:auto 65%}.hero h1{font-size:1.5rem;margin-bottom:8px}.hero .eyebrow{margin:0 0 8px}.hero-copy>p:not(.eyebrow):not(.caption){display:none}.hero .caption{max-width:195px;margin:8px 0 0;font-size:.72rem}.hero-copy{max-width:100%}}
@media(max-width:600px){.hero{min-height:220px}.hero-caption-description,.hero .caption br{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.app-nav{margin-bottom:20px}.storage-note[hidden]{display:none}

/* Keep the native radios accessible without duplicating the answer's circle. */
.choices.quick{width:100%;max-width:560px;margin-inline:auto}
.choices.quick .choice{min-height:80px;padding:16px 20px;align-items:center;text-align:center}
.choices.quick .choice-status:empty{display:none}
.choices.quick .choice-status:has(>span){display:grid}
.choices.quick .choice-status:has(>span)::before{content:'正答 · あなたの回答';visibility:hidden;grid-area:1/1}
.choices.quick .choice-status>span{grid-area:1/1}
.choices.quick .choice input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.choices.quick .choice:has(input:focus-visible){outline:3px solid #167cb4;outline-offset:4px}
.choices.quick .choice:has(input:disabled){cursor:default}
.choices.quick .choice-text{font-size:1.25rem;font-weight:650}
@media(hover:hover){.choices.quick .choice:has(input:enabled):hover{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}}

/* Keep the page width and question list stable when answers add explanations. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
.question-number small{min-height:2.8em}
.question-number[aria-current=true]{border-width:1px;box-shadow:inset 0 0 0 1px var(--green)}

/* Shared disclosure for qualification sources and material metadata. */
.source-details>summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:.9rem;font-weight:600;color:var(--ink)}
.source-details[open]>summary{margin-bottom:10px}
