*{box-sizing:border-box}body{margin:0;background:#f0f7f8;color:#183e59;font-family:'Yu Gothic','Meiryo',sans-serif}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}.lab-page{max-width:1240px;margin:auto;padding:18px 14px 28px}.lab-page h1{font-size:clamp(24px,3vw,36px);margin:8px 0}.lab-page>p{line-height:1.8}.parent-note{font-size:14px}#host{container-type:inline-size;position:relative;isolation:isolate;width:100%;aspect-ratio:16/9;border:3px solid #87afb9;border-radius:16px;background:#dce7e9 url('./assets/lab.webp') center/cover;overflow:hidden;font-weight:800}#host:fullscreen{width:100vw;height:100dvh;aspect-ratio:auto;border:0;border-radius:0}#base{height:100%;padding:1.5% 4% 2%;display:flex;flex-direction:column;gap:2%}#host button{font-weight:800;line-height:1.3;border:2px solid #779aa7;border-radius:12px;background:#fff9e9;color:#204456;min-height:2.3em;padding:.5em .7em;box-shadow:0 3px 0 #315c7544}#host button:hover{border-color:#da6d4c}#host button:focus-visible,input:focus-visible{outline:3px solid white;box-shadow:0 0 0 6px #c15a39!important}#host .teal-button{background:#138a96;color:#fff;border-color:#086873}#host .blue-button{background:#286fb5;color:#fff;border-color:#19548b}.lab-top{height:9%;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:clamp(11px,1.25cqw,22px)}.lab-top>strong{font-size:2em;background:#fff5e6ec;border-bottom:4px solid #d77958;border-radius:8px;padding:.2em .6em;white-space:nowrap;color:#123851}.top-tools{display:flex;gap:6px}.top-tools button{padding:.4em .6em!important}.notebook{background:#fffaf1 url('./assets/notebook.webp') center/100% 100%}.cover{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 38%;gap:2%;font-size:clamp(12px,1.8cqw,30px)}.lab-cover{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:12px;border:4px solid #fff5e5}.invitation{padding:8% 8% 6% 12%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:3%;min-height:0}.invitation h2{font-size:1.35em;line-height:1.4;margin:0;color:#163f60}.cover-magnet{height:25%;width:60%;object-fit:contain;min-height:0}.invitation p{margin:0;line-height:1.6;font-size:.95em}.invitation p:last-child{font-size:.7em}.invitation #start{width:100%;font-size:1.3em}#play{flex:1;min-height:0;display:grid;grid-template-rows:14% minmax(0,1fr) 16%;gap:2%}.record-strip{background:#284c75;display:flex;justify-content:space-around;align-items:center;border:3px solid #ebf0ed;border-radius:12px;color:#fff9e9;font-size:1.7cqw}.record-strip p{margin:0;display:flex;align-items:center;gap:.6em}.record-strip strong{font-size:2.1em}.experiment{min-height:0;display:flex;flex-direction:column;align-items:center;background:#f7f7ee url('./assets/mat.webp') center/100% 100%;padding:2% 4%;border-radius:12px}.experiment h2{margin:0;background:#fff0cfe8;border-radius:6px;padding:.2em .9em;font-size:2.2cqw;line-height:1.3}.experiment #physics{position:relative;flex:1;min-height:0;width:100%;overflow:hidden}.experiment img{position:absolute;object-fit:contain;display:block;pointer-events:none;max-width:none}#feedback{margin:0;min-height:2em;line-height:1.5;text-align:center;font-size:1.6cqw;padding:.15em .6em;border-radius:8px;white-space:pre-line}#host[data-answered=true] #feedback{background:#fff4d9}#host[data-correct=true] #feedback{color:#17634e}.play-bottom{display:grid;grid-template-columns:1fr 27%;gap:2%;min-height:0}#answers{display:flex;gap:3%;height:100%;min-height:0}#answers button{flex:1;font-size:3cqw;min-height:0!important;padding:.2em!important}#answers button[aria-disabled=true]{opacity:.8}.small-tools{display:flex;align-items:center;gap:8px;font-size:1.2cqw}.small-tools button{flex:1;height:75%}#result{flex:1;min-height:0;margin:0 3%;padding:3% 5% 3% 8%;display:flex;flex-direction:column;gap:4%;color:#173e55}#result>h2{font-size:2.7cqw;line-height:1.3;margin:0;border-bottom:3px solid #2e909b;padding-bottom:.3em}.record-content{display:grid;grid-template-columns:28% minmax(0,1fr);gap:5%;flex:1;min-height:0}.record-content dl{margin:0;display:flex;flex-direction:column;gap:6%}.record-content dl>div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#dcefea;border-radius:12px;padding:5%;min-height:0}.record-content dl>div:nth-child(2){background:#fae1d3}.record-content dl>div:nth-child(3){background:#f7edbb}.record-content dt{font-size:1.3cqw;white-space:nowrap}.record-content dd{font-size:1.5cqw;margin:0}.record-content strong{font-size:3em;line-height:1.1}.material-notes{display:flex;flex-direction:column;gap:4%;min-height:0}.material-notes section{flex:1;min-height:0;border:2px solid #dba694;border-radius:12px;padding:2% 3%;display:flex;flex-direction:column;background:#fff8edbf}.material-notes .others{border-color:#88b9d4}.material-notes h3{font-size:1.45cqw;text-align:center;margin:0;line-height:1.4;color:#20506b}.material-notes section>div{display:flex;align-items:center;justify-content:space-around;flex:1;min-height:0}.material-notes figure{width:24%;height:100%;min-height:0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.material-notes img{width:100%;height:70%;object-fit:contain;min-height:0}.material-notes figcaption{font-size:1cqw;text-align:center;white-space:pre-line;line-height:1.3}.material-notes>p{font-size:1.2cqw;margin:0;text-align:center;line-height:1.5}.result-tools{display:flex;gap:3%;justify-content:center;font-size:1.55cqw}.result-tools button{flex:1}#modal{position:absolute;inset:0;background:#214957bd;display:grid;place-items:center;padding:3%;z-index:8}.dialog{width:85%;max-width:800px;max-height:96%;overflow:auto;padding:4% 5% 4% 8%;font-size:clamp(14px,1.6cqw,25px);border-radius:15px}.dialog header{display:flex;justify-content:space-between;align-items:center;gap:10px}.dialog h2{font-size:1.4em;margin:0}.dialog p{line-height:1.7}.dialog small{display:block;font-size:.8em;line-height:1.7}.dialog button{margin:.3em}.dialog label{display:block;margin-top:1em}.dialog input{width:95%}
@media(max-width:600px) and (orientation:portrait){.lab-page{padding:12px 8px}#host{height:760px;aspect-ratio:auto}#host:fullscreen{height:100dvh}#base{padding:12px 8px 16px;gap:10px}.lab-top{height:auto;min-height:77px;justify-content:center;flex-wrap:wrap;font-size:11px;gap:8px}.lab-top>strong{font-size:23px}.top-tools button{min-height:30px!important}.cover{grid-template-columns:1fr;grid-template-rows:32% 1fr;gap:10px;font-size:17px}.invitation{padding:24px 25px 20px 34px;gap:3%}.invitation h2{font-size:24px}.cover-magnet{height:80px}.invitation p{font-size:16px}.invitation #start{font-size:23px}#play{grid-template-rows:85px minmax(0,1fr) 110px;gap:12px}.record-strip{font-size:12px;gap:3px;border-width:2px}.record-strip p{flex-direction:column;gap:0;line-height:1.3}.record-strip strong{font-size:28px}.experiment{padding:16px 8px}.experiment h2{font-size:21px}#feedback{font-size:15px;min-height:65px;display:grid;align-items:center;line-height:1.6;padding:6px}.play-bottom{grid-template-columns:1fr;grid-template-rows:60px 38px;gap:10px}#answers{gap:12px}#answers button{font-size:26px}.small-tools{font-size:13px;gap:12px}.small-tools button{height:100%}#result{margin:0;padding:22px 15px 20px 26px;gap:15px}#result>h2{font-size:25px}.record-content{grid-template-columns:1fr;grid-template-rows:90px minmax(0,1fr);gap:16px}.record-content dl{flex-direction:row;gap:7px}.record-content dl>div{padding:4px}.record-content dt{font-size:10px;white-space:normal;text-align:center}.record-content dd{font-size:10px}.record-content strong{font-size:32px}.material-notes{gap:10px}.material-notes h3{font-size:14px}.material-notes img{height:67%}.material-notes figcaption{font-size:11px}.material-notes>p{font-size:12px}.result-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.result-tools #resume{grid-column:1/3;font-size:18px}.dialog{width:100%;padding:25px 22px 25px 30px;font-size:15px}.dialog h2{font-size:20px}.dialog header button{font-size:12px}.dialog p{line-height:1.6}}
@media(max-width:350px) and (orientation:portrait){#result>h2{font-size:22px}.material-notes h3{font-size:12px}.material-notes figcaption{font-size:10px}.experiment h2{font-size:18px}}
@media(max-height:550px) and (orientation:landscape){.lab-page{padding:8px}#host{width:min(100%,calc((100dvh - 16px)*16/9));margin:auto}.lab-top{min-height:25px;font-size:9px}.lab-top>strong{font-size:17px}.top-tools{gap:3px}.top-tools button{font-size:9px}.dialog{font-size:14px}.dialog p{margin:.5em 0}}
