:root{--ink:#263e46;--muted:#526f70;--green:#287569;--line:#d8e7dd;--paper:#f7faf7;--blue:#38779d;--orange:#af733a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;background:linear-gradient(175deg,#f6faf7,#ecf4ef)}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #51a994;outline-offset:3px}a{color:inherit}
.classroom{max-width:830px;margin:auto;padding:0 20px 50px}.hero{padding:48px 0 30px}.kicker{color:#6b887e;letter-spacing:.13em;font-size:11px;font-weight:750}.grade-chip{display:inline-block;margin:16px 0 2px;padding:7px 12px;border:1px solid #cce0d5;border-radius:50px;color:#527d73;font-size:12px}.hero h1{font-size:clamp(25px,5vw,39px);line-height:1.52;letter-spacing:.025em;margin:16px 0}.hero p{font-size:15px;line-height:1.95;color:#46646a;max-width:700px}.hero-summary{font-weight:700;color:#32796e!important}
.chapter{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 28px;margin:17px 0 24px;box-shadow:0 8px 23px #42684d0b}
.step{font-size:11px;letter-spacing:.1em;font-weight:800;color:#5a8b78;margin-bottom:9px}.chapter h2{font-size:clamp(20px,3.5vw,26px);line-height:1.5;margin:0 0 13px}.chapter p{font-size:14px;line-height:1.86;color:#4c666b}.chapter h3{font-size:15px;margin:0 0 12px}.lesson-panel{border:1px solid #cfe1d7;border-radius:18px;padding:15px;background:var(--paper);margin-top:16px}.sim-title{font-size:12px;font-weight:750;color:#517c73;margin:2px 0 10px}.visual{display:block;width:100%;max-width:620px;margin:auto;background:#fff;border:1px solid #e0e9e5;border-radius:13px}
.result-area{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch;margin:12px 0}.metric{flex:1 1 120px;border:1px solid #d6e9dd;border-radius:11px;background:#fff;padding:10px 11px}.metric small{display:block;font-size:11px;color:#587a74}.metric strong{display:block;margin-top:3px;font-size:22px;color:#2f7a6c;line-height:1.4}
.controls{background:#fff;border:1px solid #e0ebe5;border-radius:12px;padding:14px;display:grid;gap:12px}.controls label{font-size:13px;font-weight:750;line-height:1.6;display:block}.controls output{color:#317d72;font-weight:800}.controls select,.controls input[type=range]{width:100%}.controls select{padding:12px;border:1px solid #b2d0c2;border-radius:10px;min-height:44px;background:#fff}.controls input[type=range]{accent-color:#318e7a;min-height:30px}.button-row,.options{display:flex;flex-wrap:wrap;gap:9px}.button-row button,.options button,.guess button{background:#fff;color:#2a7169;border:1px solid #bbd7ca;border-radius:12px;padding:11px 13px;min-height:44px;font-size:13px;font-weight:760}.button-row button.primary{background:#2e796b;color:white}.button-row button:disabled{opacity:.45;cursor:not-allowed}.options button[aria-pressed=true],.guess button[aria-pressed=true]{background:#def1e8;border-color:#448f78}.guess{display:flex;flex-wrap:wrap;gap:9px}.feedback{padding:10px 12px;background:#f0f7f3;border-radius:10px;min-height:43px}.sim-insight{font-size:13px!important;margin:12px 0 0;font-weight:680}.key-rule{border:1px solid #b9d8d0;border-left:6px solid #31877b;background:#eff8f4;border-radius:13px;padding:15px 17px;margin:16px 0}.key-rule span{font-size:11px;font-weight:800;color:#357a72;display:block;margin-bottom:8px}.key-rule strong{display:block;font-size:clamp(18px,3vw,24px);line-height:1.6;overflow-wrap:anywhere;color:#205f59}.key-rule p{margin:5px 0 0;font-size:13px}.mini-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;font-size:12px}.mini-table th,.mini-table td{border-bottom:1px solid #e3ede7;text-align:center;padding:9px 3px}.mini-table th{background:#e8f3ec;font-weight:800}.recap{margin:15px 0;padding-left:20px}.recap li{margin:8px 0;line-height:1.8;font-size:14px}.quiz{border-top:1px solid #e2ebe5;padding:19px 0 6px}.quiz:first-child{border-top:0}.mystery{margin:27px 0;background:#2e5154;color:#f8fdfa;border-radius:20px;padding:26px 25px}.mystery>span{font-size:11px;letter-spacing:.08em;color:#b8e0d1}.mystery h2{font-size:22px;margin:13px 0}.mystery p{line-height:1.9;font-size:14px}.mystery .mystery-question{font-size:18px;font-weight:800;color:#e7f7ef}.footer{display:flex;justify-content:space-between;gap:12px;padding:22px 0;font-size:12px;color:#5a8076}.footer a{text-decoration:underline}.tiny{font-size:12px!important;color:#637a75!important}.equation-now{font-weight:850;font-size:clamp(20px,4vw,28px);color:#1c6b61;text-align:center;margin:8px 0}.graph-label{font-family:Arial,sans-serif;font-size:17px;fill:#3a6260;font-weight:700}
@media(max-width:480px){.classroom{padding:0 13px 36px}.hero{padding:33px 4px 23px}.hero h1{font-size:26px}.hero p{font-size:14px}.chapter{padding:18px 13px;border-radius:15px;margin:12px 0 16px}.chapter p{font-size:13px}.chapter h2{font-size:20px}.lesson-panel{padding:10px}.metric strong{font-size:20px}.metric{padding:9px}.controls{padding:11px}.guess button,.button-row button,.options button{font-size:12px;padding:10px}.key-rule{padding:13px}.footer{font-size:11px;flex-wrap:wrap}.mystery{padding:23px 18px}.mystery .mystery-question{font-size:16px}}

/* Experience R2 — quiet, science-forward and mobile-first; no decorative illustrations */
:root{--aqua:#308c7f;--aqua-soft:#e7f4ee;--amber:#c58349;--amber-soft:#fff3e3;--navy:#253f46}
.hero{padding:34px 3px 20px}.hero h1{font-size:clamp(28px,6vw,43px);letter-spacing:0.01em;line-height:1.48;max-width:760px}.hero p{margin:10px 0 0;max-width:65ch}.hero-summary{font-size:14px!important}
.lab-kicker{letter-spacing:.13em;color:#528b7d;font-weight:800;font-size:11px}.narrative{margin:18px 0;color:#4a6f66;font-size:13px;line-height:1.85}.chapter-flow{margin:10px 0 24px;padding:14px 17px;border-left:3px solid #8bb8a4;background:#edf6f0;border-radius:4px 13px 13px 4px;color:#3f7362;font-size:14px;line-height:1.85}
.chapter h2 em,.hero h1 em{font-style:normal;color:#278475}.chapter h2{margin-bottom:9px}.chapter p{margin:8px 0;line-height:1.88}
.question-lead{color:#2e665d;font-weight:750;font-size:15px!important}
.story-stage{background:linear-gradient(160deg,#f3f9f4,#eef5f1);border:1px solid #d2e6db;border-radius:20px;padding:18px;margin:15px 0 0}
.stage-heading{font-size:11px;letter-spacing:.08em;font-weight:850;color:#518476;margin-bottom:12px}
.experiment-title{font-size:18px;font-weight:800;line-height:1.6;margin:6px 0 13px}
.display-window{background:#fff;border:1px solid #d7e6dd;border-radius:15px;padding:8px;min-width:0;position:relative}
.display-window svg{display:block;width:100%;height:auto;max-height:390px;overflow:visible}
.experiment-controls{display:grid;gap:11px;margin:15px 0 2px}
.experiment-controls label{font-size:13px;font-weight:800;color:#3b665b}
.experiment-controls output{color:#217d70;font-weight:850}
.experiment-controls select{min-height:47px;background:#fff;padding:11px;border:1px solid #b7d2c5;border-radius:10px;width:100%}
.experiment-controls input[type=range]{width:100%;accent-color:#31877a;min-height:30px}
.btn-group{display:flex;flex-wrap:wrap;gap:9px}
.btn-group button,.discovery-btn{min-height:45px;padding:10px 14px;border:1px solid #b6d1c3;background:#fff;color:#286b5c;border-radius:12px;font-weight:750;line-height:1.5}
.btn-group button[disabled],.discovery-btn[disabled]{opacity:.38;cursor:not-allowed}
.btn-group button.primary,.discovery-btn.primary{background:#2e7a69;border-color:#2e7a69;color:#fff}
.btn-group button[aria-pressed=true]{background:#dcefe7;border-color:#418d76}
.btn-group button.wrong{border-color:#e8c9ad;color:#9a603d;background:#fff8f1}
.btn-group button.wrong[aria-pressed=true]{background:#fbe8d4}
.stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0}
.stat-box{background:#fff;border:1px solid #dce9e2;border-radius:12px;padding:12px 10px;min-width:0}
.stat-box small{font-size:11px;display:block;color:#648077}.stat-box strong{display:block;font-size:clamp(17px,4.3vw,24px);font-weight:900;letter-spacing:-.03em;color:#266c60;overflow-wrap:anywhere;line-height:1.5}
.stat-box.orange strong{color:#a56a3c}
.finding{border-left:4px solid #3e977d;background:#e7f5ed;border-radius:0 12px 12px 0;padding:13px 14px;color:#2c6657;font-size:13px;line-height:1.9;margin:13px 0 0}
.finding.warning{border-left-color:#c58f61;background:#fff2e5;color:#85552d}
.finding strong{display:block;font-size:14px;margin-bottom:2px}
.story-tag{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e5f1e9;color:#3b816f;font-size:11px;font-weight:800}
.step-path{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:15px 0}
.step-path span{padding:6px 9px;border:1px solid #d3e5d9;color:#688074;background:#f9fcfa;border-radius:999px;font-size:11px}
.step-path .active{background:#dff1e8;border-color:#6ca997;color:#276e60;font-weight:800}
.split-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.evidence-card{border:1px solid #d7e3db;border-radius:14px;background:#fff;padding:16px 12px}
.evidence-card span{display:block;font-size:12px;color:#718579}
.evidence-card strong{font-size:23px;color:#2a7666;display:block;margin:3px 0}
.evidence-card small{font-size:12px;line-height:1.8}
.evidence-card.gold{background:#fff9f1;border-color:#ead4bb}.evidence-card.gold strong{color:#ad7440}
.graph-board{background:#fff;border:1px solid #dbe7e0;border-radius:16px;margin:10px 0;padding:7px 6px}
.graph-board svg{width:100%;height:auto;max-height:395px;display:block}
.graph-board .axis-caption{fill:#526f68;font-family:Arial,sans-serif;font-weight:700;font-size:16px}
.range-marker{display:flex;justify-content:space-between;color:#6c827a;font-size:11px}
.experiment-switch{display:flex;flex-wrap:wrap;gap:9px}
.experiment-switch button{min-height:44px;border:1px solid #adcabb;padding:11px 13px;border-radius:10px;background:#fff;color:#306c5e;font-size:13px;font-weight:750}
.experiment-switch button[aria-pressed=true]{background:#317c6d;color:#fff;border-color:#317c6d}
.key-rule{margin-top:17px}.key-rule strong{font-size:clamp(19px,4.2vw,27px)}
.research-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;text-align:center;background:#fff}
.research-table th,.research-table td{padding:10px 3px;border-bottom:1px solid #e0ebe2}
.research-table th{background:#e9f4ed;color:#426e60}.research-table td{font-variant-numeric:tabular-nums}
.research-table tbody tr:last-child td{border-bottom:0}
.research-table-wrap{border-radius:12px;border:1px solid #d7e5d9;overflow:hidden;margin:10px 0}
.mission-flag{font-size:13px;border:1px dashed #aacabb;background:#f1f8f3;padding:13px 14px;border-radius:12px;line-height:1.9}
.note{color:#6c7d7a;font-size:12px!important;line-height:1.85!important}
.signal-bar{width:100%;height:17px;border:1px solid #cbd7d0;background:#e4ece8;border-radius:999px;overflow:hidden}
.signal-bar > span{height:100%;display:block;background:linear-gradient(90deg,#c9a577,#5fa891);transition:width .2s}
.soft-line{border:0;border-top:1px solid #e1ebe4;margin:20px 0}
.silent-list{margin:9px 0;padding-left:21px;font-size:14px;line-height:1.85}.silent-list li{margin:8px 0}
.discovery-canvas{width:100%;background:#fafcf9;border-radius:12px;border:1px solid #d9e8dc;padding:8px;min-height:90px}
.details-more{margin:15px 0;border:1px solid #dce7e2;border-radius:12px;padding:13px 15px;background:#fafdfe}
.details-more summary{cursor:pointer;color:#397668;font-weight:800;font-size:13px;min-height:32px}
.details-more p{font-size:13px}
.mystery{margin-top:22px}
.footer a{display:inline-block;padding:9px}
@media(max-width:500px){.classroom{padding:0 13px 28px}.hero{padding-top:27px}.hero h1{font-size:27px;margin:12px 0}.chapter{padding:19px 13px;margin:13px 0 17px}.story-stage{padding:10px;border-radius:14px;margin:13px 0 0}.display-window{padding:4px;border-radius:11px}.experiment-controls{gap:10px}.chapter h2{font-size:21px}.experiment-title{font-size:16px}.stat-box{padding:10px 9px}.stat-box strong{font-size:20px}.evidence-card strong{font-size:20px}.evidence-card{padding:12px 9px}.btn-group button,.discovery-btn{font-size:12px;padding:10px 9px}.finding{padding:12px 11px}.research-table{font-size:11px}.research-table th,.research-table td{padding:9px 2px}.graph-board{padding:4px}.chapter-flow{font-size:13px;padding:12px 13px}.mission-flag{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* EXPERIENCE R3: readable scientific diagrams and subject-specific first-screen evidence */
.hero-mini-lab{margin:17px 0 7px;padding:11px 14px;border:1px solid #cadfd4;border-radius:14px;background:#f5faf6}
.hero-mini-beam{display:flex;align-items:center;justify-content:space-around;gap:7px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.hero-mini-beam>span{display:block;font-size:13px;font-weight:800;border-radius:8px;color:#2d685e;background:#fff;border:1px solid #d4e5d9;padding:8px 9px}
.hero-mini-lab p{font-size:12px!important;color:#5c8072!important;line-height:1.3!important;margin:6px 3px 0!important}
.chart-accessible{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 9px 0;color:#375f57;font-size:12px;font-weight:800;line-height:1.6}
.chart-accessible span{font-weight:650;color:#63786f}
.experiment-switch{margin-top:12px}
.experiment-controls .discovery-btn{display:block;width:100%;min-height:45px}
@media(max-width:390px){.hero-mini-beam>span{font-size:11px;padding:7px 5px}.chart-accessible{font-size:11px}.chart-accessible span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.hero-mini-beam,.display-window svg{animation:none!important}}


/* R4: educational first-screen diagrams and mobile readable supporting labels */
.hero-mini-lab svg{display:block;width:100%;height:auto;max-height:138px;border:0;overflow:visible}
.hero-mini-lab{padding:10px 12px;max-width:520px}
.hero-mini-lab p{font-size:12px!important;line-height:1.55!important}
.mission-flag .btn-group{margin-top:9px}
.mission-flag .btn-group button[aria-pressed=true]{background:#e1f3e9;border-color:#378f78;color:#236d5c}
.display-window .diagram-note{padding:7px 11px;font-size:13px;line-height:1.6;color:#3e7568;font-weight:750}
.experiment-controls .mission-flag{padding:10px 12px;margin:4px 0}
.experiment-controls .btn-group button{flex:1 1 130px}
.chart-accessible{line-height:1.8}
@media(max-width:480px){.hero-mini-lab{margin:14px 0 6px}.hero-mini-lab svg{max-height:114px}.mission-flag .btn-group button{min-height:44px}.display-window .diagram-note{font-size:12px}}

/* CLASSROOM UI FIX 2026-11-20: use existing density lesson mystery design faithfully. */
.chapter .mystery{margin:32px 0 0;background:linear-gradient(135deg,#275d53,#173e3f 82%);border-radius:25px;padding:clamp(26px,6vw,58px);color:#fff;min-width:0;position:relative;overflow:hidden}
.chapter .mystery::before{content:"?";font-family:Georgia,serif;position:absolute;right:-10px;top:-88px;font-size:310px;color:#ffffff12;line-height:1;pointer-events:none}
.chapter .mystery>span{position:relative;color:#cbe9d0;font-size:11px;font-weight:900;letter-spacing:.16em;line-height:1.65;display:block}
.chapter .mystery h2{position:relative;font-size:22px;line-height:1.5;margin:14px 0 15px;color:#fff}
.chapter .mystery p{position:relative;line-height:1.9;font-size:15px;color:#e6f3ea;margin:0 0 15px;font-weight:400;opacity:1}
.chapter .mystery p.mystery-question{font-size:clamp(24px,5vw,36px);font-weight:800;line-height:1.6;color:#fff;margin:25px 0;opacity:1}
.chapter .mystery .mystery-question strong{color:#f9e7b3}
@media(max-width:630px){.chapter .mystery{border-radius:18px;padding:28px 18px}}

