:root{color-scheme:light;--paper:#f5f6ee;--card:#fffefa;--ink:#193a30;--muted:#53655b;--line:#dce2d6;--green:#215c46;--gold:#f2cf85;font-family:"Hiragino Sans","Yu Gothic",Meiryo,"Noto Sans CJK JP",sans-serif;color:var(--ink);background:var(--paper);font-size:16px}
*{box-sizing:border-box}
body{margin:0;line-height:1.65}
a{color:inherit}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #17768a;outline-offset:3px}
main:focus,.feedback:focus{outline:none}
.skip{position:fixed;top:-10rem;left:1rem;background:white;padding:1rem;z-index:5}
.skip:focus{top:1rem}
header{border-bottom:1px solid var(--line);background:var(--card)}
.header-inner{max-width:1240px;margin:auto;padding:13px 32px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:900;font-size:1.25rem;white-space:nowrap;letter-spacing:.015em}
.brand small{font-size:.79em}
.brand-icon{background:#245942;color:#f5d795;width:40px;height:40px;display:grid;place-items:center;border-radius:11px;font-size:1.38rem}
nav{display:flex;align-items:center;gap:4px}
nav a,.level-chip{text-decoration:none;padding:8px 13px;border-radius:9px;font-weight:750;white-space:nowrap}
nav a{font-size:.94rem;display:flex;align-items:center;gap:7px;min-height:44px}
nav a::before{content:attr(data-icon);font-size:1.22rem;line-height:1}
nav a:hover,nav a[aria-current]{background:#e6eee2;color:#245942}
.level-chip{border:1px solid #dce7dd;background:#f0f5eb;font-size:.9rem}
main,footer{max-width:1240px;margin:auto;padding:28px 32px}
.hero{min-height:350px;display:flex;align-items:center;padding:35px 48px;border-radius:23px;color:#fff9ec;background:#113629;overflow:hidden;position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#123527 3%,#123527eb 29%,#12352746 65%,#1235270d 100%),url('./hero.webp') center 56%/cover}
.hero-tag{display:inline-block;background:#ffffff15;border:1px solid #ffffff43;color:#ffedc1;padding:4px 13px;border-radius:30px;font-size:.85rem;font-weight:750}
h1,h2,h3,p{margin:0}
.hero h1{font-size:clamp(2.3rem,5vw,3.65rem);line-height:1.18;margin:16px 0 14px;font-weight:900;letter-spacing:.04em}
.hero p{color:#e5eee2;margin-bottom:24px}
.gold,.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:11px 18px;border-radius:10px;border:1px solid transparent;font-weight:800;text-decoration:none;text-align:center}
.gold{background:var(--gold);color:#263526;box-shadow:0 3px 0 #b58a45}
.gold:hover{background:#fbdea2}
.primary{background:var(--green);color:white}
.primary:hover{background:#174733}
.secondary{border-color:var(--line);background:white;color:var(--green)}
.overview{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:19px 0 32px}
.overview article{display:flex;align-items:center;gap:12px;min-width:0;background:var(--card);padding:15px;border:1px solid var(--line);border-radius:14px}
.tile{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:10px;background:var(--tint,#e6eee2);color:var(--ink);color:var(--ink,#215c46);font-size:1.65rem;font-weight:800;line-height:1}
.overview article>div{flex-shrink:0}
.overview article>div>span,.stage-progress{color:var(--muted);font-size:.88rem;font-weight:700}
.overview strong{display:block;line-height:1.25;font-size:1.42rem}
em{font:inherit;font-size:.8rem}
.overview small{margin-left:auto;white-space:nowrap;color:#6f501e;background:#f8ecd6;border-radius:20px;padding:3px 8px;font-weight:750}
progress{appearance:none;width:100%;height:8px;display:block;border:0;border-radius:30px;overflow:hidden;background:#e5eae0;color:#3c8564}
progress::-webkit-progress-bar{background:#e5eae0}
progress::-webkit-progress-value{background:#3c8564;border-radius:30px}
progress::-moz-progress-bar{background:#3c8564;border-radius:30px}
.overview progress{margin-left:auto;max-width:85px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:15px}
.section-title>span{color:var(--muted);font-size:.9rem;font-weight:700;white-space:nowrap}
.eyebrow{font-size:.78rem;font-weight:900;letter-spacing:.15em;color:#387258;margin-bottom:3px}
h2{font-size:1.65rem;line-height:1.4}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.stage{display:block;text-align:left;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:15px;padding:16px 17px;min-width:0}
.stage:hover{border-color:#6ca486;box-shadow:0 3px 12px #173d3113}
.stage-head{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:750;font-size:.86rem}
.stage-head b{margin-left:auto;font-size:1.45rem;color:#51816c}
.stage h3{font-size:1.13rem;line-height:1.4;margin:10px 0}
.stage-progress{display:flex;justify-content:space-between;gap:4px;margin-bottom:6px}
footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);gap:10px;color:var(--muted);font-size:.86rem;padding-top:18px;padding-bottom:20px}
.inner{max-width:800px;margin:0 auto;min-height:58vh}
.inner>h1{font-size:2.2rem;line-height:1.3;margin-bottom:14px}
.inner>p{margin-bottom:18px}
.empty,.record-level,.quiz-card,.metrics>div,.badges article,.question-list li{background:var(--card);border:1px solid var(--line);border-radius:16px}
.empty{text-align:center;padding:32px 18px;margin-top:20px}
.empty>div{font-size:2.6rem}
.empty p,.empty h1{margin-bottom:14px}
.question-list{padding:0;list-style:none}
.question-list li{display:flex;align-items:center;gap:10px;margin-bottom:9px;padding:8px}
.question-list button:first-child{flex:1;text-align:left;border:0;background:transparent;color:var(--ink);padding:9px}
.question-list small,.badges small{display:block;color:var(--muted)}
.record-level{padding:20px;margin-top:16px}
.record-level strong{font-size:1.4rem}
.record-level p{margin-bottom:8px}
.metrics,.badges{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.metrics>div,.badges article{padding:16px}
.metrics dd{font-size:1.65rem;font-weight:850;margin:0}
.badges{margin:12px 0}
.badges article{display:flex;align-items:center;gap:11px}
.badges .unlocked{border-color:#c89443;background:#fff8e9}
.subtle,.question-meta,.quiz-top{color:var(--muted)}
.quiz-top{display:flex;justify-content:space-between;font-weight:750;margin-bottom:8px}
.quiz-card{padding:24px;margin-top:14px}
.question-header,.actions{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tags span,.question-meta span{background:#edf1e8;border-radius:6px;padding:4px 8px;font-weight:700;font-size:.88rem}
.bookmark{background:white;color:var(--green);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:7px 10px;font-weight:750;white-space:nowrap}
.bookmark[aria-pressed=true]{background:#faedce;border-color:#d6a95a;color:#694710}
.quiz-card h1{font-size:clamp(1.28rem,3.6vw,1.9rem);line-height:1.5;margin:20px 0}
.choices{display:grid;gap:9px}
.choices.binary{grid-template-columns:1fr 1fr}
.choices button{background:#f6f9f3;border:1px solid #b9cbbd;color:var(--ink);min-height:54px;border-radius:10px;text-align:left;padding:9px 13px;font-weight:750}
.choices button:hover{background:#e0efdf}
.choices.binary button{text-align:center;font-size:1.55rem}
input{display:block;margin:5px 0 12px;width:min(100%,340px);border:1px solid #89a396;border-radius:8px;min-height:48px;padding:8px}
.question-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:22px;font-size:.9rem}
.feedback,.notice{padding:15px;border-radius:10px;margin:0 0 14px}
.feedback p{margin-top:8px}
.feedback.correct{background:#e2f2e4}
.feedback.incorrect,.notice{background:#f8ecd9;color:#653e18}
.result-card .actions{justify-content:flex-start}
@media(max-width:900px){.overview progress{display:none}}
@media(max-width:720px){.header-inner{flex-wrap:wrap;gap:6px 10px;padding:9px 16px 0}.brand{font-size:1.07rem}nav{order:3;width:100%;justify-content:space-between;gap:0}nav a{padding:6px;font-size:.85rem;gap:4px}main,footer{padding:16px}.hero{padding:24px;min-height:310px}.hero::before{background:linear-gradient(90deg,#123527e8,#1235275e),url('./hero.webp') 62% center/cover}.hero p{max-width:300px}.overview{gap:7px;margin:12px 0 25px}.overview article{padding:9px;gap:4px;flex-wrap:wrap}.overview .tile{width:28px;height:28px;flex-basis:28px;font-size:1.12rem}.overview small{margin-left:0}.overview strong{font-size:1.12rem}.overview article>div>span{font-size:.8rem}.grid{grid-template-columns:repeat(2,1fr);gap:9px}.stage{padding:12px}.stage h3{font-size:1rem}.stage-head{gap:5px}.stage-head .tile{width:34px;height:34px;flex-basis:34px;font-size:1.3rem}.quiz-card{padding:15px}footer{flex-wrap:wrap}}
@media(max-width:370px){nav a::before{display:none}.grid{grid-template-columns:1fr}.overview article>div{flex-shrink:1}}
