@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#11120f;--bg:#fafaf7;--paper:#fff;--muted:#777a71;--line:#171814;--soft:#edeee8;--accent:#d9ff57;--accent-text:#11120f}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans','Noto Sans JP',-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;transition:background .25s,color .25s}button,a{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #fa6e37;outline-offset:3px}.header{height:90px;display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;letter-spacing:.09em;font-size:16px;white-space:nowrap}.brand-icon{width:39px;height:39px;background:var(--ink);color:var(--paper);display:grid;place-items:center;font-size:22px;font-weight:900;letter-spacing:0;border-radius:50%}.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:.13em;margin-top:3px;font-weight:700}.header-right{display:flex;align-items:center;gap:28px}.balance{display:flex;align-items:baseline;gap:5px}.balance span{font-size:10px;font-weight:800;letter-spacing:.12em}.balance strong{font-size:25px;line-height:1}.pill{border:1.5px solid var(--line);border-radius:99px;padding:12px 20px;background:transparent;font-weight:700;font-size:12px;white-space:nowrap}.pill:hover{background:var(--ink);color:var(--paper)}.pill span{margin-left:12px}.ticker{display:flex;align-items:center;gap:22px;padding:10px 5%;border-bottom:1px solid var(--line);font-size:10px;font-weight:700;letter-spacing:.12em}.ticker span:nth-child(2){letter-spacing:0;color:var(--muted);font-weight:500}.ticker-right{margin-left:auto}main{max-width:1500px;margin:auto;padding:0 5% 100px;min-height:70vh}.hero{padding:75px 0 63px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:30px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;display:flex;align-items:center;gap:10px}.eyebrow:before{content:'';display:inline-block;width:9px;height:9px;background:var(--ink);border-radius:50%}.hero h1{font-size:clamp(48px,7.2vw,106px);line-height:1.16;letter-spacing:-.075em;margin:25px 0 22px;font-weight:900}.hero h1 .marker{position:relative;z-index:0}.hero h1 .marker:after{content:'';position:absolute;height:25%;bottom:3%;left:0;right:-5px;background:var(--accent);z-index:-1}.hero p,.lead{font-size:14px;line-height:2;color:var(--muted);margin:0}.hero-stamp{width:130px;height:130px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(9deg);font-weight:800}.hero-stamp b{font-size:43px;line-height:1}.hero-stamp span{font-size:9px;letter-spacing:.15em;margin-top:9px}.section-head{border-top:2px solid var(--line);display:flex;align-items:baseline;justify-content:space-between;padding:20px 0}.section-head h2{margin:0;font-size:21px;letter-spacing:-.04em}.section-head h2 span{font-size:11px;letter-spacing:.15em;margin-right:14px}.section-head p{color:var(--muted);font-size:11px;margin:0}.grade-grid{display:grid;grid-template-columns:repeat(6,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.grade-card{min-height:190px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);text-align:left;padding:20px;display:flex;flex-direction:column;transition:background .2s,color .2s}.grade-card:hover,.grade-card:focus-visible{background:var(--ink);color:var(--paper)}.grade-card .num{font-size:10px;letter-spacing:.15em;font-weight:800}.grade-card strong{font-size:47px;line-height:1;letter-spacing:-.08em;margin:auto 0 10px}.grade-card strong small{font-size:15px;letter-spacing:0;margin-left:5px}.grade-card .bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700}.arrow{font-size:21px;line-height:1}.how{margin-top:50px;background:var(--soft);padding:24px 28px;display:flex;align-items:center;gap:28px}.how-badge{border:1px solid var(--line);border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font-weight:800;flex:none}.how b{font-size:14px}.how p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.8}.how .how-right{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:.13em;white-space:nowrap}.page-top{padding:42px 0 50px}.back{border:0;background:none;padding:0;font-size:12px;font-weight:700}.back:hover{text-decoration:underline}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-top:55px}.page-heading h1{font-size:clamp(38px,5vw,68px);letter-spacing:-.07em;line-height:1.2;margin:15px 0}.page-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.big-number{font-size:clamp(80px,12vw,160px);font-weight:900;line-height:.8;letter-spacing:-.1em;color:var(--soft)}.subjects{display:grid;grid-template-columns:1fr 1fr;border-left:1px solid var(--line);border-top:1px solid var(--line)}.subject{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-height:285px;padding:34px;text-align:left;display:flex;flex-direction:column;background:var(--paper)}.subject:first-child{background:var(--ink);color:var(--paper)}.subject:hover{background:var(--accent);color:var(--accent-text)}.subject .n{font-size:12px;letter-spacing:.16em;font-weight:800}.subject h2{font-size:42px;letter-spacing:-.06em;margin:22px 0 9px}.subject p{font-size:13px;opacity:.65;line-height:1.8}.subject-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:end;font-size:11px;letter-spacing:.1em;font-weight:800}.subject-foot span:last-child{font-size:28px}.notice{font-size:12px;color:var(--muted);line-height:1.9;margin-top:18px}.quiz-wrap{max-width:850px;margin:0 auto}.quiz-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:48px 0 20px}.quiz-head h1{font-size:18px;margin:8px 0 0}.quiz-count{font-size:12px;font-weight:800;letter-spacing:.1em}.quiz-count strong{font-size:27px}.progress{height:5px;background:var(--soft)}.progress div{height:100%;background:var(--ink);transition:width .25s}.question{padding:44px 0 25px}.question-label{font-size:11px;letter-spacing:.16em;font-weight:800}.question h2{font-size:clamp(25px,3vw,38px);line-height:1.6;letter-spacing:-.04em;margin:20px 0 6px}.choices{display:grid;gap:10px}.choice{display:flex;align-items:center;gap:20px;width:100%;text-align:left;border:1px solid var(--line);background:var(--paper);min-height:68px;padding:12px 20px;font-weight:700;font-size:15px}.choice:not(:disabled):hover{background:var(--ink);color:var(--paper)}.choice:disabled{cursor:default}.choice-letter{width:34px;height:34px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:11px;flex:none}.choice.correct{background:var(--accent);color:var(--accent-text);border-color:var(--line)}.choice.wrong{background:var(--soft);color:var(--muted)}.feedback{border:1px solid var(--line);border-top:0;padding:24px;background:var(--paper)}.feedback strong{font-size:21px}.feedback p{font-size:13px;line-height:1.9;margin:10px 0 20px}.solid{border:1px solid var(--ink);background:var(--ink);color:var(--paper);padding:15px 23px;font-size:13px;font-weight:800;min-height:50px}.solid:hover{background:var(--accent);color:var(--accent-text)}.result{text-align:center;padding:70px 20px}.result h1{font-size:clamp(38px,6vw,72px);letter-spacing:-.06em;margin:20px 0}.result-score{font-weight:900;font-size:80px;letter-spacing:-.08em}.result-score small{font-size:20px;letter-spacing:0}.result p{color:var(--muted);line-height:2;font-size:14px}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:30px}.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.theme-card{border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--paper);padding:15px}.swatch{height:150px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid rgba(0,0,0,.15)}.swatch small{font-size:10px;font-weight:800;letter-spacing:.15em}.swatch strong{font-size:26px;letter-spacing:-.05em}.theme-info{display:flex;justify-content:space-between;align-items:center;margin:17px 0 13px;gap:5px}.theme-info b{font-size:14px}.theme-info span{font-size:11px;font-weight:700;color:var(--muted)}.theme-action{width:100%;padding:12px 5px;background:transparent;border:1px solid var(--line);font-size:12px;font-weight:700}.theme-action:hover:not(:disabled){background:var(--ink);color:var(--paper)}.theme-action:disabled{opacity:.45;cursor:default}.shop-note{background:var(--soft);padding:20px;margin-top:25px;font-size:12px;line-height:1.9}.danger{margin-top:40px;background:none;border:0;color:var(--muted);text-decoration:underline;font-size:11px;padding:4px}footer{border-top:1px solid var(--line);padding:32px 5%;display:flex;justify-content:space-between;gap:20px;font-size:10px;letter-spacing:.08em;color:var(--muted)}footer b{color:var(--ink)}footer div{display:flex;gap:20px}footer p{margin:0}body[data-theme="forest"]{--ink:#173d30;--bg:#f2f5e9;--paper:#fffef5;--muted:#6c7e6b;--line:#284b3b;--soft:#dfe9d3;--accent:#f5df80;--accent-text:#173d30}body[data-theme="soda"]{--ink:#183656;--bg:#f0f9fc;--paper:#fff;--muted:#6a8392;--line:#183656;--soft:#d8f0f3;--accent:#ffdb7a;--accent-text:#183656}body[data-theme="night"]{--ink:#f3f2e9;--bg:#151c36;--paper:#202a4b;--muted:#b3bdd2;--line:#d2d8e7;--soft:#313d61;--accent:#bdeef5;--accent-text:#17213b}body[data-theme="night"] .solid{border-color:var(--line)}body[data-theme="night"] .subject:first-child{background:#f3f2e9;color:#151c36}body[data-theme="night"] .subject:hover{background:var(--accent);color:var(--accent-text)}
@media(max-width:800px){.grade-grid{grid-template-columns:repeat(3,1fr)}.grade-card{min-height:150px}.shop-grid{grid-template-columns:repeat(2,1fr)}.hero-stamp{width:100px;height:100px}.hero-stamp b{font-size:32px}.header{height:75px}.ticker-right{display:none}.hero{padding:55px 0}.subjects{grid-template-columns:1fr 1fr}}@media(max-width:500px){.header{padding:0 5%;height:69px}.brand{font-size:12px;gap:7px}.brand-icon{width:34px;height:34px;font-size:19px}.brand small{font-size:8px}.header-right{gap:10px}.balance span:first-child{display:none}.balance strong{font-size:20px}.pill{padding:10px;font-size:10px}.pill span{margin-left:3px}.ticker{font-size:9px;gap:12px}.ticker span:nth-child(2){font-size:9px}.hero{display:block;padding:52px 0 46px}.hero h1{font-size:clamp(43px,11vw,60px)}.hero-stamp{display:none}.section-head h2{font-size:17px}.section-head p{font-size:10px}.grade-card{padding:14px;min-height:135px}.grade-card strong{font-size:38px}.how{padding:20px;gap:15px}.how-right{display:none}.subjects{grid-template-columns:1fr}.subject{min-height:220px;padding:25px}.subject h2{font-size:34px}.page-heading{margin-top:42px}.big-number{font-size:90px}.quiz-head{margin-top:35px}.question{padding-top:32px}.choice{font-size:13px;gap:12px}.shop-grid{grid-template-columns:repeat(2,1fr)}.swatch{height:115px;padding:12px}.swatch strong{font-size:19px}.theme-card{padding:10px}.theme-info{align-items:start;flex-direction:column}.result-score{font-size:65px}footer{flex-direction:column;line-height:1.7}footer div{flex-direction:column;gap:4px}main{padding-bottom:70px}}
