:root{--ink:#263f3d;--ink-soft:#526f69;--forest:#23665b;--mint:#e7f3ed;--mint-deep:#d4eadf;--amber:#a55c27;--line:#d4e3d9;--paper:#fffefa;--sans:"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,sans}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(#f6faf6,#edf5f0 72%,#f5f8f5);font-family:var(--sans);color:var(--ink);-webkit-text-size-adjust:100%}
button,select,input{font:inherit}
button{cursor:pointer}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #71aaf0;outline-offset:3px}
button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #23665b}
[hidden]{display:none!important}
.classroom{max-width:975px;margin:0 auto;padding:0 clamp(12px,3.3vw,32px) 45px;min-width:0}
.hero{padding:clamp(32px,6vw,58px) clamp(16px,4vw,42px) clamp(25px,4vw,37px);background:linear-gradient(128deg,#edf7ef 0%,#f8fbf4 55%,#e6f2ef 100%);border:1px solid #d8e8df;border-radius:0 0 28px 28px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;width:170px;height:170px;right:-52px;top:-75px;border-radius:50%;background:radial-gradient(circle,#f5e8b6bb,#c9e7dd55 70%,transparent 75%);pointer-events:none}
.kicker,.step,.mystery-kicker{font-size:11px;font-weight:900;letter-spacing:.16em;color:#498476}
.level{display:inline-block;margin-top:14px;border-radius:50px;padding:7px 12px;border:1px solid #c6ddd1;color:#3f7165;background:#ffffffaa;font-size:12px;font-weight:750}
h1,h2,h3,p{overflow-wrap:break-word}
h1{font-size:clamp(30px,6.4vw,53px);line-height:1.44;margin:17px 0 17px;letter-spacing:.015em}
h1 em{font-style:normal;color:#287a6b}
.hero-copy{font-size:clamp(14px,2.15vw,18px);line-height:1.85;color:#486962;max-width:680px;margin:0}
.hero-copy strong{color:#236a5e}
.plan-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:27px}
.plan{display:grid;gap:4px;border-radius:17px;padding:18px 20px;background:#fff;border:1px solid var(--line);min-width:0;color:#52706a;font-size:14px}
.plan.a{border-top:5px solid #287b71}
.plan.b{border-top:5px solid #c57835}
.plan-name{font-weight:900;color:var(--ink);font-size:17px;margin-bottom:5px}
.plan strong{color:#264c44;font-variant-numeric:tabular-nums;font-size:20px}
.fine{font-size:12px;line-height:1.75;color:#647b72;margin:15px 0 0}
.chapter{border:1px solid var(--line);border-radius:23px;background:var(--paper);padding:clamp(21px,4.5vw,39px);margin:23px 0;min-width:0;box-shadow:0 8px 30px rgba(56,105,85,.04)}
.step{color:#3b8773;margin-bottom:12px}
.chapter h2{font-size:clamp(21px,3.7vw,29px);line-height:1.55;margin:0 0 15px}
.chapter h3{font-size:clamp(17px,2.9vw,21px);line-height:1.55}
.chapter>p{font-size:15px;line-height:1.85;color:#526c67;margin:0 0 16px}
.guess,.method-tabs,.answers{display:flex;gap:9px;flex-wrap:wrap}
.guess button,.method-tabs button,.answers button{border:1px solid #b4d1c2;border-radius:13px;background:#f8fcf8;color:#2a6355;padding:11px 14px;font-size:14px;min-height:46px;font-weight:800;flex:1 1 115px}
.guess button:hover,.method-tabs button:hover,.answers button:hover{background:#e1f2e8}
.guess button[aria-pressed=true],.method-tabs button[aria-pressed=true],.answers button[aria-pressed=true]{background:#d8eddf;border-color:#367c69}
.feedback,.quiz-feedback{border-radius:12px;background:#eff6f0;border:1px solid #dbece0;color:#386954;font-size:14px;line-height:1.7;padding:12px 15px;min-height:43px;margin:15px 0 0}
.hint{border-left:3px solid #83b9a2;padding:6px 11px;margin:15px 0 0;color:#5a7b6b;font-size:13px}
.lab{background:#fafdf9}
.control-shell{background:#fff;border-radius:16px;border:1px solid #d7e5dc;padding:clamp(16px,3vw,24px);margin:25px 0 16px}
.control-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.control-row label{font-size:15px;font-weight:850;color:#356f5e}
.big-time{font-weight:900;font-variant-numeric:tabular-nums;font-size:clamp(22px,4vw,30px);color:#276c5e}
#hoursSlider{display:block;width:100%;accent-color:#317c6f;cursor:pointer;min-height:36px;margin:10px 0 0}
.slider-ends{display:flex;justify-content:space-between;gap:7px;color:#668077;font-size:12px}
.live-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0 23px}
.price{display:flex;min-height:114px;flex-direction:column;gap:6px;padding:15px 11px;border-radius:15px;background:#fff;border:1px solid var(--line);min-width:0}
.price span{font-size:13px;font-weight:800}
.price strong{font-size:clamp(17px,3vw,25px);font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
.price.a{border-top:4px solid #287b71}
.price.a strong{color:#287b71}
.price.b{border-top:4px solid #c57835}
.price.b strong{color:#a76225}
.price.difference{background:#eaf4ef;border-color:#cddfd3}
.price.difference strong{color:#215c50}
.price.difference small{font-size:12px;line-height:1.35;color:#316958}
.graph-card{margin:0;border-radius:18px;background:#fff;border:1px solid #d7e5dc;padding:clamp(8px,2vw,18px);min-width:0}
.graph-card figcaption{font-size:17px;font-weight:850;margin:4px 7px 10px}
.legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin:0 7px 7px;font-size:13px;color:#375d55}
.legend>span{display:inline-flex;align-items:center;gap:7px}
.swatch{display:inline-block;width:25px;height:5px;border-radius:10px}
.swatch.a{background:#287b71}
.swatch.b{background:#c57835}
#planGraph{width:100%;height:auto;display:block;overflow:visible;background:#fbfdfb;border-radius:11px;max-width:100%}
.tick-labels{font-size:15px;font-family:Arial,sans-serif}
.graph-caption{margin:10px 8px 0;font-size:13px;line-height:1.65;color:#526e62}
.table-wrap{margin-top:16px;overflow:hidden;border:1px solid #d5e4da;border-radius:13px;background:#fff}
table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:center;font-size:14px}
th{font-weight:850;background:#deeee3;color:#315e52}
th,td{padding:11px 7px;border-bottom:1px solid #e4ede8;font-variant-numeric:tabular-nums}
tbody tr:last-child td{border-bottom:0}
tr.is-active{background:#fdf3df;font-weight:800}
.prediction{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#f0f6ec;padding:15px;border-radius:12px;margin:20px 0 13px;flex-wrap:wrap}
.prediction label{font-size:14px;font-weight:800}
.prediction output{font-weight:900;color:#256c5b;font-size:19px}
.primary{width:100%;min-height:52px;background:#267e6b;border-radius:14px;border:0;color:white;font-size:17px;font-weight:850;padding:13px 18px}
.primary:hover{background:#1e675a}
.result{margin:20px 0 0;padding:20px;border-radius:16px;background:#ecf6ed;border-left:5px solid #358876;font-size:17px;font-weight:700;line-height:1.85;color:#235d50}
.solution-steps{padding:18px 0 0}
.solution-steps h3{margin:0 0 11px;color:#23665a}
.solution-steps>p{font-size:15px;line-height:1.85;color:#4a6d61}
.equations{border:1px solid #d7e9dc;border-radius:14px;padding:12px 17px;background:#f7fbf7}
.equations p{margin:6px 0;font-size:17px;line-height:1.55}
.equations strong,.sample-equations{color:#276c5c;font-weight:900}
.math-steps{padding-left:24px;display:grid;gap:10px;margin:20px 0}
.math-steps li{font-size:14px;line-height:1.65;padding:12px;background:#f7faf5;border:1px solid #e1eae2;border-radius:12px}
.math-steps code{display:block;font-family:var(--sans);font-size:clamp(17px,3.3vw,22px);font-weight:900;color:#276d61;margin-top:7px;overflow-wrap:anywhere}
.takeaway{border-radius:13px;background:#dff0e6;padding:16px;color:#245c4f!important;font-size:16px!important}
.check{font-size:13px!important;color:#4f7468!important}
.sample-equations{background:#eef7f0;padding:17px 21px;border-radius:16px;margin:19px 0 13px;display:grid;gap:8px;text-align:center;font-size:clamp(20px,3.6vw,28px);font-variant-numeric:tabular-nums;line-height:1.45}
.method-body{margin-top:15px;padding:17px;border:1px solid #d9e7dd;border-radius:16px;background:#f9fcf8;color:#42665a;font-size:15px;line-height:1.8}
.method-body h3{margin:0 0 10px}
.method-body ol{margin:10px 0;padding-left:23px}
.method-body li{margin:8px 0}
.method-body strong{color:#246b5b}
.scenario-label{display:block;font-size:14px;font-weight:850;margin:10px 0}
#scenarioSelect{display:block;width:100%;border:1px solid #abcdb9;border-radius:12px;background:#fff;color:#315a4e;padding:14px 12px;font-size:15px;min-height:48px}
.scenario-status{background:#edf5e9;border-radius:13px;padding:16px;margin-top:15px!important;color:#315f50!important}
.quiz-list{display:grid;gap:13px}
.quiz{padding:19px;border:1px solid #dae6dd;border-radius:17px;background:#f7faf7}
.quiz h3{margin:0 0 14px;font-size:16px}
.quiz-feedback{margin:13px 0 0}
.recap{background:#f2f8f2}
.recap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.recap-grid article{background:#fff;border:1px solid #dbe8de;border-radius:16px;padding:18px;min-width:0}
.recap-grid span{font-size:11px;font-weight:900;color:#4a9a7d;letter-spacing:.12em}
.recap-grid h3{margin:5px 0 7px;font-size:17px;color:#2b6457}
.recap-grid p{font-size:14px;line-height:1.8;margin:0;color:#4d6a5e}
.recap-grid strong{color:#245d4f}
.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}
.mystery:before{content:"?";font-family:Georgia,serif;position:absolute;right:-10px;top:-88px;font-size:310px;color:#ffffff12;line-height:1;pointer-events:none}
.mystery-kicker{position:relative;color:#cbe9d0}
.mystery h2{position:relative;font-size:22px;margin:14px 0 15px}
.mystery p{position:relative;line-height:1.9;font-size:15px;color:#e6f3ea;margin:0 0 15px}
.mystery .mystery-question{font-size:clamp(24px,5vw,36px);font-weight:800;line-height:1.6;color:white;margin:25px 0}
.mystery-question strong{color:#f9e7b3}
.mystery .mystery-tail{font-size:13px;color:#d6e8df;margin:0;max-width:680px}
.footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:27px 5px;color:#6d877c;font-size:12px}
@media(max-width:630px){
 .classroom{padding:0 12px 25px}
 .hero{border-radius:0 0 17px 17px;padding:25px 16px}
 .plan-cards{grid-template-columns:1fr;gap:9px}
 .plan{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;padding:12px 14px;font-size:13px}
 .plan-name{grid-row:span 2;font-size:16px;align-self:center}
 .plan strong{font-size:17px}
 .chapter{border-radius:16px;padding:19px 13px;margin:15px 0}
 .chapter>p{font-size:14px}
 .live-prices{gap:6px}
 .price{padding:10px 7px;min-height:94px}
 .price span{font-size:11px}
 .price small{font-size:11px}
 .graph-card{padding:8px 3px}
 .graph-card figcaption{font-size:14px}
 .tick-labels{font-size:15px}
 .graph-caption{font-size:12px}
 .quiz{padding:13px}
 .recap-grid{grid-template-columns:1fr}
 .mystery{border-radius:18px;padding:28px 18px}
}
@media(max-width:360px){
 .live-prices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .price.difference{grid-column:1 / -1;min-height:80px}
 .plan-name{font-size:15px}
 .graph-caption{font-size:12px}
 .tick-labels{font-size:15px}
 .answers button,.guess button{font-size:13px;padding:10px 7px}
 .method-tabs button{flex-basis:100%;font-size:14px}
 .footer{font-size:11px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* R1R3: readable SVG labels at 320px and line styles distinguishable without color. */
#hoursSlider{min-height:48px}
.swatch.b{background:none;border-top:5px dashed #c57835;height:0}
.systems-why,.systems-slope{margin:15px 0;padding:15px 17px;border-radius:14px;background:#eaf5ef;border-left:5px solid #418b72;color:#345e50;font-size:15px;line-height:1.8}
.systems-slope{margin-top:18px;background:#f1f6ed}
.systems-slope h3{margin:0 0 9px;font-size:18px;color:#235e53}
.systems-slope p{margin:0}
@media(max-width:630px){#planGraph .tick-labels{font-size:27px}#planGraph > text{font-size:24px}#planGraph #crossLabel{font-size:26px}}
