:root{--brown:#38271d;--mid:#6e4c2c;--gold:#b88739;--ivory:#fdfbf7;--pale:#f5eadb;--line:#dfcfb9;--ink:#302820}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#e9e2d7;font:16px/1.53 'Segoe UI','Noto Sans JP',sans-serif}button{cursor:pointer;font:inherit;padding:10px 14px;border-radius:8px;border:1px solid #d2bda0;background:#fffaf4;color:var(--brown)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #c38b30;outline-offset:2}.gold{background:linear-gradient(#b98b40,#906120);color:white;font-weight:700;border-color:#91611e}.top{max-width:1600px;margin:auto;background:linear-gradient(110deg,#36251a,#634325);color:#fff5e9;min-height:86px;display:flex;align-items:center;gap:24px;padding:14px 24px}.brand{font:27px Georgia,serif;white-space:nowrap}.brand small{display:block;font:12px 'Segoe UI';color:#e0c9ab}.top nav{display:flex;justify-content:center;gap:6px;flex:1;flex-wrap:wrap}.top nav button{background:transparent;border:0;color:#e3d3c2;padding:4px 6px;font-size:12px;min-width:74px}.top nav button em{display:block;width:30px;height:30px;margin:auto auto 3px;border-radius:50%;background:#816a56;line-height:30px;font-weight:bold;font-style:normal;color:#fff}.top nav button.active em{background:#f1c877;color:#3b2b1f}.top nav button.done em{background:#769075}.tools{display:flex;gap:5px}.tools button{background:#efd09a;border-color:#cca267;font-size:12px}.builder{background:#f7e4bf;max-width:1600px;margin:auto;padding:14px 25px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.builder span{font-size:13px}.builder div{display:flex;gap:5px;flex-wrap:wrap}.builder button{font-size:12px;padding:6px}.hidden{display:none!important}main{max-width:1600px;margin:auto;background:var(--ivory);padding:22px 24px 28px;min-height:calc(100vh - 158px)}h1,h2{font-family:Georgia,'Noto Serif JP',serif;color:var(--brown);line-height:1.15}h1{font-size:clamp(28px,3vw,46px);margin:4px 0 12px}h2{font-size:27px}.eyebrow{color:#855919;font-weight:700;letter-spacing:.04em;font-size:13px;text-transform:uppercase}.subtitle{font-size:18px;color:#655544;max-width:680px}.hero{display:grid;grid-template-columns:44% 56%;border:1px solid var(--line);border-radius:16px;overflow:hidden;min-height:520px;background:#fff}.hero>.copy{padding:40px}.hero .photo{position:relative;background:url('assets/daniel.jpg') center/cover;min-height:410px}.hero .photo:after{content:'QUEENSTOWN → HOKKAIDO';position:absolute;bottom:18px;right:20px;background:#fff8eced;border-radius:8px;padding:14px;font:700 16px Georgia}.tags{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tag{border-radius:100px;background:#f1dfba;padding:6px 12px;color:#64451f;font-weight:600;font-size:13px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:22px;margin:14px 0;box-shadow:0 3px 10px #6850330a}.two{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:20px}.learning{border-left:5px solid var(--gold)}.jp{color:#6b5847}.audio-box{background:#f7ecdc;padding:22px;border-radius:14px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.audio-box audio{max-width:100%;width:380px}.stepper{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.step{background:#f5ead8;padding:9px 14px;border-radius:8px;font-size:14px}.item{padding:14px;border:1px solid var(--line);border-radius:10px;display:block;margin:10px 0;background:#fff;cursor:pointer}.item input{margin-right:10px}.item.selected{border-color:var(--gold);background:#fff3da}.correct{background:#e8f3e8}.incorrect{background:#fff0ec}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.kpi{font-size:27px;font-weight:700;color:#785118}.example{border-left:4px solid #c59b54;background:#fff9ec;padding:13px 17px;margin:10px 0}.example strong{color:#53351e}.photo-band{height:145px;background:url('assets/mountain.jpg') center/cover;border-radius:12px;margin:14px 0}.input{width:100%;padding:13px;border:1px solid #cbb9a3;border-radius:9px;font:inherit}.status{font-size:13px;color:#72573d}.frame{width:100%;height:min(73vh,860px);min-height:550px;border:1px solid #d6c3a7;border-radius:11px;background:#fff}.warning{background:#fff7e8;border-left:5px solid #b78736;padding:16px;border-radius:8px;margin:16px 0}.bottom{max-width:1600px;margin:auto;min-height:72px;padding:15px 25px;background:#f8edde;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #dbcbb7}.bottom span{font-size:13px;color:#6d5947;text-align:center}details{padding:12px;background:#fbf3e7;border-radius:9px;margin:10px 0}summary{cursor:pointer;font-weight:700}@media(max-width:1000px){.top{flex-wrap:wrap}.hero{grid-template-columns:1fr}.two{grid-template-columns:1fr}.top nav{order:3;width:100%;justify-content:space-between}.top nav button{min-width:44px;font-size:10px}main{padding:14px}.hero>.copy{padding:25px}.frame{height:75vh}.brand{font-size:23px}}@media(max-width:620px){.bottom span{display:none}.top{padding:10px}.top nav{gap:0}.top nav button{padding:3px;min-width:0}.top nav button em{width:25px;height:25px;line-height:25px}button{padding:9px}.hero .photo{min-height:280px}}

.guide-audio{margin:14px 0 18px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#f5efe3;border:1px solid #d8c69f;border-radius:12px;padding:13px 16px}.guide-audio audio{width:min(100%,410px);height:38px}.guide-audio strong{font-size:13px;color:#5c4329}

/* v10.2 streamlined lesson shell */
.top{min-height:52px;padding:5px 18px;gap:14px;position:relative}.brand{font-size:19px}.brand small{font-size:10px}.top nav button{min-width:54px;font-size:10px;padding:2px 4px}.top nav button em{width:22px;height:22px;line-height:22px;margin-bottom:1px}.tools button{padding:5px 7px}.bottom{min-height:54px;padding:7px 18px;position:sticky;bottom:0;z-index:20;box-shadow:0 -2px 9px #35281d12}main{padding:15px 20px;min-height:calc(100vh - 110px)}h1{font-size:clamp(27px,2.4vw,37px)}.subtitle{font-size:15px;margin:6px 0 12px}.card{padding:16px;margin:10px 0}.guide-audio{padding:8px 11px;gap:10px;margin:7px 0}.guide-audio strong{font-size:12px}.guide-audio audio{height:30px;width:280px;max-width:100%}.photo-band{height:105px}.frame{height:78vh;min-height:520px}.radio-feature{max-width:780px;margin:10px auto 20px;padding:30px;background:linear-gradient(135deg,#fff8ec,#f1dfbf);border:1px solid #d6b888;border-radius:17px;text-align:center}.radio-feature h2{font-size:36px;margin:6px}.radio-feature .radio-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px}.radio-feature .radio-actions button,.radio-feature .radio-actions a{font-weight:700;font-size:18px;padding:13px 23px;border-radius:11px}.radio-feature audio{width:100%;margin:12px auto}.radio-feature a{display:inline-block;text-decoration:none;background:#39271d;color:white}.radio-feature .radio-status{font-size:14px;color:#735735}.radio-iframe{height:250px;min-height:250px;opacity:.88}.stage-notice{font-size:13px;color:#6d5234}.audio-box{padding:12px}.warning{padding:10px}.actions{margin-top:10px}@media(max-width:1000px){.top{padding:7px 10px;flex-wrap:wrap}.top nav{order:3;width:100%}.frame{height:70vh}.radio-iframe{height:250px}}

.privacy-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;max-width:1180px;margin:12px auto 90px;padding:8px 20px;color:#66574d;font-size:.85rem}.privacy-controls button{background:transparent;border:1px solid #b7a794;border-radius:9px;color:#614936;padding:10px 14px;cursor:pointer}.privacy-controls button:hover{background:#f6efe5}.privacy-controls button:disabled{opacity:.5}

/* v11.0: dedicated radio stage; no duplicate nested conversation */
.radio-iframe{display:none!important}
@media (max-width:1450px){.frame:not(.radio-iframe){height:75vh;min-height:520px} .top nav button{min-width:48px}}
@media (max-width:900px){.frame:not(.radio-iframe){height:70vh;min-height:470px} .top{gap:8px}.brand{font-size:17px}}

/* 11.1 controlled pilot: prominent but not destructive by accident */
.session-end{background:#50362a;color:white;border:1px solid #50362a;border-radius:9px;padding:12px 16px;cursor:pointer;white-space:normal;max-width:100%}
.session-end:hover{background:#3c281e}
@media(max-width:1450px){.frame:not(.radio-iframe){height:calc(100vh - 180px);min-height:500px}}

.ae-track-panel{max-width:1100px;margin:12px auto 55px;padding:12px 20px;background:#fff8ef;border:1px solid #c9ae83;border-radius:12px;color:#352820}.ae-track-panel summary{font-weight:700;cursor:pointer}.ae-track-panel input[type=email]{padding:9px;width:min(350px,90%);border:1px solid #bcaa93;border-radius:6px}.ae-track-panel button{padding:9px 13px;margin:6px;border:1px solid #7e5d3c;border-radius:7px;background:#fff;color:#493522;cursor:pointer}.ae-track-options{margin:8px 0;display:flex;flex-wrap:wrap;gap:10px;align-items:center}#aeTrackState{font-size:11px;color:#806447;margin-left:8px}

/* Original illustrated textbook companion. Keep lesson navigation intact. */
.tb-overlay[hidden]{display:none!important}.tb-overlay{position:fixed;inset:0;z-index:999;background:rgba(23,15,10,.72);padding:18px;display:flex;justify-content:center;align-items:center}.tb-dialog{max-width:1100px;width:100%;max-height:94vh;overflow:auto;background:#fdfbf7;border-radius:16px;box-shadow:0 25px 75px #0008;padding:18px 22px}.tb-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dfc9a8;padding-bottom:10px}.tb-heading strong{display:block;font:24px Georgia,serif;color:#482c1c}.tb-heading span{font-size:13px;color:#715642}.tb-note{color:#77583b;font-size:14px}.tb-tabs{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.tb-tabs button[aria-pressed=true]{background:#4b3020;color:white}.tb-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:18px}.tb-figure{margin:0;background:white;border:1px solid #dbcab7;border-radius:12px;overflow:hidden}.tb-figure img{display:block;width:100%;height:auto}.tb-figure figcaption{padding:8px 12px;font-size:13px;color:#5a3928}.tb-open{overflow:hidden}.tb-bridge{padding:16px 19px;margin-bottom:18px;border:1px solid #c7a578;border-radius:13px;background:linear-gradient(110deg,#fcf8ef,#f2e7d5);box-shadow:0 3px 9px #38271d0c}.tb-bridge h2{font:25px Georgia,serif;margin:3px 0 7px;color:#4e2e1e}.tb-bridge p{margin:7px 0}.tb-eyebrow{font-size:11px;letter-spacing:1.2px;color:#98703b;font-weight:800}.tb-bridge .tb-prompt{font-weight:600;color:#694324}.tb-read-button{font-size:14px;font-weight:700;border:1px solid #bc9966;background:white;margin-top:7px}@media(max-width:650px){.tb-overlay{padding:4px}.tb-dialog{max-height:99vh;padding:11px}.tb-bridge{padding:12px}.tb-bridge h2{font-size:21px}}
