@charset "UTF-8";
:root{--deep:#15252c;--panel:#25414b;--cream:#f3e7cc;--rust:#bf7056;--mint:#82d7c9}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"BIZ UDPGothic","Yu Gothic",Meiryo,sans-serif;background:var(--deep);color:var(--cream)}button,a{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:#b9e9dc}
header{min-height:48px;padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#203840;border-bottom:1px solid #678d88}header strong{font-size:13px;text-align:center}header a{font-size:11px;white-space:nowrap;text-decoration:none;padding:8px;border-radius:7px;background:#31545a}
.lesson-page main{max-width:1150px;margin:auto;padding:12px 14px 24px}.lesson-title{display:flex;align-items:center;gap:12px}.lesson-title #lesson-icon{width:58px;height:58px;flex:none;background:#efd7af;border-radius:14px;padding:5px}.lesson-title .game-icon{width:100%;height:100%}.lesson-title small{color:#98dccd;font-size:9px;letter-spacing:1px}.lesson-title h1{font-size:21px;margin:2px 0}.lesson-title p{font-size:11px;margin:0;line-height:1.5;color:#d8c8aa}
.playbar{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px 0}.playbar button{min-height:42px;border:1px solid #8ac1b5;border-radius:8px;background:#315761;color:#fff4d9;padding:5px 10px;font-size:11px}.playbar span{min-width:46px;text-align:center;font-size:11px}
.stage-list{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 8px}.stage{flex:1 0 130px;min-width:130px;min-height:93px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px solid #6e9795;border-radius:13px;background:#29434c;color:#f4e3c5;text-align:center;padding:6px}.stage.current{background:#6f4c3d;border-color:#f5cb8d;box-shadow:0 0 0 2px #f5cb8d55}.stage .game-icon{width:42px;height:42px}.stage b{font-size:10px;line-height:1.3}
.stage-detail{display:flex;align-items:center;gap:18px;min-height:160px;margin-top:8px;padding:16px;border:2px solid #d1a477;border-radius:15px;background:#f2e5c9;color:#382f2c}.stage-art{width:112px;height:112px;flex:none;border-radius:14px;background:#e0c9a3;padding:10px}.stage-art .game-icon{width:100%;height:100%}.stage-detail small{font-size:10px;color:#9d654a;font-weight:700}.stage-detail h2{font-size:19px;margin:4px 0 8px}.stage-detail p{font-size:13px;line-height:1.65;margin:0}
.science-context{margin-top:12px;padding:12px 14px;border:1px solid #72938c;border-radius:12px;background:#203840}.science-context h2{font-size:13px;margin:0 0 7px}.science-context p{font-size:10px;line-height:1.6;margin:4px 0}.source-links{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.source-links a{font-size:10px;padding:7px 9px;border:1px solid #83b0aa;border-radius:7px;text-decoration:none}
.atlas-page{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.atlas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;background:#182e36}.atlas-toolbar nav{display:flex;overflow-x:auto;gap:5px}.atlas-toolbar a{white-space:nowrap;padding:8px;border-radius:7px;background:#31545a;text-decoration:none;font-size:10px}.atlas-toolbar a[aria-current]{background:#b86e50;color:#fff}.atlas-zoom{display:flex;gap:3px;flex:none}.atlas-zoom button{min-width:42px;min-height:42px;border:1px solid #e4c9a7;border-radius:7px;background:#3a4d50;color:#fff;font-size:17px}.atlas-zoom #atlas-fit{font-size:10px}.atlas-scroll{flex:1;overflow:auto;touch-action:pan-x pan-y;background:#291d20;scrollbar-width:thin}.atlas-scroll img{display:block;width:100%;height:auto;max-width:none;user-select:none}.atlas-page footer{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;background:#243b42;font-size:9px;color:#d4c7ad}
@media(orientation:landscape){.lesson-page{height:100dvh;overflow:auto}.lesson-page main{padding:6px 12px 12px}.lesson-title #lesson-icon{width:44px;height:44px}.lesson-title h1{font-size:17px}.playbar{margin:5px 0}.stage-list{gap:5px;padding-bottom:4px}.stage{min-height:70px;flex-basis:115px}.stage .game-icon{width:30px;height:30px}.stage-detail{min-height:100px;padding:8px 12px}.stage-art{width:74px;height:74px}.stage-detail h2{font-size:15px}.stage-detail p{font-size:11px}.science-context{margin-top:7px;padding:7px 10px}.source-links{margin-top:5px}.atlas-toolbar{padding:3px 6px}.atlas-toolbar a{padding:6px}.atlas-zoom button{min-height:36px}.atlas-page footer{font-size:8px}}
@media(max-width:420px){header strong{font-size:10px}header a{font-size:9px;padding:6px}.lesson-title h1{font-size:17px}.stage-detail{align-items:flex-start}.stage-art{width:64px;height:64px}.stage-detail h2{font-size:16px}.stage-detail p{font-size:11px}.atlas-page footer{display:block}.atlas-toolbar{flex-wrap:wrap}.atlas-toolbar nav{width:100%}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.atlas-canvas{position:relative;width:100%}.atlas-highlight{position:absolute;border:5px solid #20d7cf;border-radius:12px;box-shadow:0 0 0 4px #124e56,0 0 28px #0effe9;pointer-events:none;color:transparent}.atlas-highlight[hidden]{display:none}
.atlas-steps{display:flex;gap:4px;overflow-x:auto;padding:3px 6px;background:#243b42;scrollbar-width:thin;min-height:34px;align-items:center}.atlas-steps button{flex:none;min-height:30px;padding:3px 9px;border:1px solid #769f9b;border-radius:6px;background:#31545a;color:#eee2c9;font-size:10px}.atlas-steps button[aria-pressed="true"]{background:#ba6e50;border-color:#f1cf8e}.atlas-steps span{font-size:10px;color:#d9cab3}
.atlas-page header,.lesson-page header{position:fixed;top:max(6px,env(safe-area-inset-top));left:6px;right:6px;min-height:0;padding:0;z-index:8;background:transparent;border:0;pointer-events:none}
.atlas-page header #language-toggle,.lesson-page header #language-toggle{pointer-events:auto;min-height:38px;border:1px solid #789d95;border-radius:8px;background:#203840ee;color:#f5e7ca;font-size:11px;padding:3px 8px;box-shadow:0 2px 7px #12191eaa}
.atlas-page header strong,.lesson-page header strong{display:none}.atlas-page header a,.lesson-page header a{pointer-events:auto;background:#203840ee;border:1px solid #789d95;box-shadow:0 2px 7px #12191eaa}
.atlas-toolbar{position:fixed;top:48px;left:6px;right:6px;z-index:8;padding:0;background:transparent;pointer-events:none}.atlas-toolbar nav,.atlas-toolbar .atlas-zoom{pointer-events:auto}.atlas-toolbar a,.atlas-zoom button{background-color:#31545aee;box-shadow:0 2px 7px #12191eaa}
.atlas-steps{position:fixed;z-index:8;left:6px;right:6px;bottom:max(6px,env(safe-area-inset-bottom));padding:0;min-height:30px;background:transparent;pointer-events:none}.atlas-steps button{pointer-events:auto;background:#31545aee;box-shadow:0 2px 7px #12191eaa}
.atlas-scroll{position:absolute;inset:0;display:flex;flex-direction:column}.atlas-canvas{flex:none;margin:auto}.atlas-page footer{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
.lesson-page main{padding-top:48px}
