.act-hero img{image-rendering:pixelated}
.study-lobby{margin-top:56px;padding:32px;border:1px solid #85c8f255;background:linear-gradient(140deg,#14263c,#0c1220);border-radius:12px;position:relative}.study-eyebrow{font:12px monospace;letter-spacing:2px;color:#85c8f2}.study-lobby h2{font-size:clamp(22px,4vw,32px);margin:18px 0}.study-lobby p{line-height:1.8}.study-lobby h3{margin-top:36px}.study-note{font-size:13px;color:#b8c9dd}.study-lobby button,.study-panel button,.study-panel input,.study-panel select{font:inherit}.study-primary,.study-secondary{border:1px solid #85c8f266;border-radius:6px;padding:12px 18px;background:#1c3048;color:#edf2fa;cursor:pointer}.study-primary{background:#f6c453;color:#0c1220;font-weight:700;box-shadow:4px 4px 0 #846a32}.study-primary:hover{background:#ffda7a;transform:translateY(-2px)}.study-secondary:hover{border-color:#f6c453}.study-primary:disabled{opacity:.6;cursor:wait}.study-session{border-top:1px solid #85c8f233;padding:24px 0}.study-session h4{font-size:19px;margin:0 0 14px}.study-badge{display:inline-block;font-size:12px;color:#f6c453;margin-left:12px}.study-card{background:#18273c;border:1px solid #85c8f244;border-radius:8px;padding:22px;overflow-wrap:anywhere}.study-card strong{display:block;margin:10px 0}.study-card p{margin:8px 0}.study-avatar{width:64px;height:64px;image-rendering:pixelated;display:block}#study-dialog{padding:0;border:1px solid #85c8f277;border-radius:12px;background:#0c1220;color:#edf2fa;width:min(680px,calc(100% - 24px));max-height:90dvh}#study-dialog::backdrop{background:#020816cc;backdrop-filter:blur(5px)}.study-panel{padding:28px;position:relative;font-family:system-ui,sans-serif}.study-panel h2{padding-right:25px}.study-panel a{color:#85c8f2}.study-close{position:absolute;right:12px;top:10px;background:none;border:0;color:#edf2fa;font-size:28px!important;cursor:pointer}.study-form label{display:block;margin:18px 0 8px}.study-form input,.study-form select{box-sizing:border-box;width:100%;padding:12px;background:#18273c;color:#edf2fa;border:1px solid #85c8f277;border-radius:5px}.study-form fieldset{margin:20px 0;border:0;padding:0}.study-error{color:#ffb6bd;line-height:1.6}.study-success{text-align:center}.study-success h3{font-family:'DotGothic16',monospace;color:#f6c453}.study-success .study-card{text-align:left}.study-success input{width:100%;box-sizing:border-box;padding:10px}.study-admin{background:#0c1220;color:#edf2fa;max-width:800px;margin:auto}.study-panel :focus-visible,.study-lobby :focus-visible{outline:3px solid #f6c453;outline-offset:4px}@media(max-width:560px){.study-lobby{padding:22px 16px}.study-panel{padding:24px 16px}.study-badge{display:block;margin:6px 0}.study-card{padding:16px}}@media(prefers-reduced-motion:reduce){.study-primary:hover{transform:none}}
.study-avatar{animation:study-idle 2.8s steps(2,end) infinite;transform-origin:center bottom}.study-motion{display:block;margin-top:8px;background:none;border:0;padding:6px 0;color:#b8c9dd;font-size:12px!important;text-decoration:underline;cursor:pointer}.study-motion-paused .study-avatar{animation:none}@keyframes study-idle{0%,70%,100%{transform:translateY(0)}80%,90%{transform:translateY(-4px)}}@keyframes study-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px) rotate(-5deg)}}@media(prefers-reduced-motion:reduce){.study-avatar{animation:none}.study-motion{display:none}}
.study-parade{display:flex;gap:16px;margin-bottom:22px}.study-parade .study-avatar:nth-child(2){animation-delay:-.7s}.study-parade .study-avatar:nth-child(3){animation-delay:-1.4s}.study-parade .study-avatar:nth-child(4){animation-delay:-2.1s}
#study-dialog{margin:auto}.study-close{position:sticky;top:0;float:right;z-index:2;border-radius:5px;background:#0c1220;padding:0 10px;min-height:44px;min-width:44px}.study-panel h2{clear:none}
/* Place the decision and registration action before the longer introduction. */
.study-lobby{margin-top:24px;padding:0;border:0;background:none;border-radius:0}
.study-intro{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;padding:32px;background:linear-gradient(120deg,#14263c,#101b2c);border:1px solid #85c8f233;border-radius:12px}
.study-intro h2{font-size:clamp(24px,3vw,34px);line-height:1.5;margin:12px 0;font-family:inherit}
.study-intro-copy>p{font-size:14px;color:#bdccdd;margin:0}
.study-facts{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:22px 0 0}
.study-facts li{padding:6px 10px;background:#85c8f20c;border:1px solid #85c8f226;border-radius:4px;font-size:13px;color:#edf2fa}
.study-facts small{color:#b8c9dd;font-size:10px}
.study-action{align-self:center;text-align:center;border-left:1px solid #85c8f222;padding-left:28px}
.study-action .study-parade{justify-content:center;gap:12px;margin:0 0 20px}.study-action .study-avatar{width:38px;height:38px}
.study-action .study-primary{width:100%;min-height:52px;font-size:16px}.study-action .study-note{font-size:12px;line-height:1.7;margin:14px 0}
.study-action .study-motion{font-size:10px!important;margin:12px auto 0;color:#8599b2}
.study-about-link{font-size:13px;color:#b8c9dd;text-underline-offset:4px}
.study-primary:disabled{cursor:default;box-shadow:none;background:#26364a;color:#a8b7c9;opacity:1;transform:none}
.study-schedule-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:32px 0 14px}
.study-schedule-heading[hidden]{display:none}
.study-schedule-heading h3{margin:0;font-size:18px}.study-schedule-heading .study-note{font-size:12px}
.study-schedule-empty{padding:22px 24px;margin:0;background:#85c8f208;border:1px dashed #85c8f233;border-radius:8px;color:#b8c9dd;font-size:14px;line-height:1.8}
.study-schedule-empty strong{font-weight:500;color:#edf2fa}.study-schedule-empty p{margin:4px 0 0;font-size:13px}.study-schedule-empty button{margin-left:12px}
#study-status:empty{display:none}.study-about-heading{margin-top:56px;padding-top:28px;border-top:1px solid #85c8f222;scroll-margin-top:100px}.study-about-heading h2{font-size:22px;margin:10px 0}.study-about-heading p{color:#b8c9dd;font-size:14px}
@media(max-width:760px){.study-intro{grid-template-columns:1fr;padding:24px;gap:24px}.study-action{border-left:0;border-top:1px solid #85c8f222;padding:22px 0 0}.study-action .study-parade{margin-bottom:16px}.study-action .study-primary{max-width:360px}.study-schedule-heading{display:block}.study-schedule-heading .study-note{display:block;margin-top:8px}.study-desktop-break{display:none}.study-intro h2{font-size:26px}.study-lobby{padding:0}.study-about-heading{margin-top:40px}}
/* 8bitダンジョン: 窓・ボタン・入力欄は角丸なし、押せるものは44px角以上、入力の文字は16px以上 */
/* 管理用(.study-admin の .study-panel)は対象外にする(見た目を変えない) */
#study-dialog .study-panel,#study-dialog .study-panel *,.study-lobby :is(button,input,.study-card,.study-session,.study-schedule-empty,.study-intro,.study-msgbox,.study-gauge,.study-door-art,.study-chest-art){border-radius:0}
/* .study-secondary は管理用カレンダーの←→とも共有するため、公開側(.study-lobby・#study-dialog)にだけ限定する */
.study-primary,.study-lobby .study-secondary,#study-dialog .study-secondary,.study-back,.study-stepper button,.study-close{min-height:44px;min-width:44px}
.study-input,#study-floor-form input{font-size:16px}
.study-primary,.study-lobby .study-secondary,#study-dialog .study-secondary,.study-back{transition:transform .08s,box-shadow .2s}
.study-primary:active,.study-lobby .study-secondary:active,#study-dialog .study-secondary:active,.study-back:active,.study-close:active{transform:translateY(4px)}
.study-back{background:none;border:2px solid #85c8f266;color:#edf2fa;padding:10px 16px}
.study-nav{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.study-back{white-space:nowrap;flex:none}
.study-nav .study-next{flex:1 1 auto;max-width:min(100%,320px);text-wrap:balance}
.study-field{margin:14px 0}
.study-floor-label{font-family:'DotGothic16',monospace;color:#85c8f2;font-size:13px;letter-spacing:1px;margin:12px 0 0}
/* 場面: たいまつ・ドア・階段・宝箱のドット絵 */
.study-scene{height:120px;display:flex;align-items:center;justify-content:center;gap:16px;position:relative;overflow:hidden;background:linear-gradient(180deg,#18273c,#0c1220);border:2px solid #edf2fa;box-shadow:0 0 0 2px #0c1220,0 0 0 4px #85c8f255}
.study-scene-actor svg{width:56px;height:56px;image-rendering:pixelated}
.study-scene-doors svg{width:44px;height:66px;image-rendering:pixelated}
.study-scene-doors{display:flex;gap:8px}
.study-torch{position:relative;width:20px;height:30px;flex:none}
.study-torch-art{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.study-torch-b{opacity:0;animation:study-blink 1.6s steps(2,end) infinite}
.study-stairs{position:absolute;left:8px;bottom:6px;opacity:.55}
.study-stairs svg{width:30px;image-rendering:pixelated}
.study-door-art{width:100%;height:100%;image-rendering:pixelated}
.study-chest-art{width:56px;height:56px;image-rendering:pixelated}
/* B3F: 発表時間の+/-とHPバー風ゲージ */
.study-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.study-stepper{display:flex;align-items:center;gap:12px;margin:14px 0}
.study-stepper input{width:80px;box-sizing:border-box;padding:12px;text-align:center;background:#18273c;color:#edf2fa;border:1px solid #85c8f277}
.study-gauge{position:relative;height:20px;border:2px solid #edf2fa;background:#0c1220;background-image:repeating-linear-gradient(90deg,transparent 0 3px,#0c122099 3px 4px);overflow:hidden}
.study-gauge-fill{position:absolute;inset:0;background:#f6c453;transform-origin:left;transition:transform .15s steps(6,end)}
/* メッセージの窓: 文言は最初からDOMにあり、演出はsteps()のマスクだけ */
.study-msgbox{position:relative;margin:14px 0;padding:14px 16px;background:#0c1220;border:2px solid #edf2fa;box-shadow:0 0 0 2px #0c1220,4px 4px 0 #0c1220}
.study-msg-wrap{position:relative;overflow:hidden}
.study-msg-text{position:relative;z-index:1;margin:0;font-size:15px;line-height:1.8}
.study-veil{position:absolute;inset:0;z-index:2;background:#0c1220;transform:scaleX(0);transform-origin:right;animation:study-wipe calc(var(--n,20)*45ms) steps(var(--n,20),end);pointer-events:none}
.study-msgbox #form-error:not(:empty){margin:10px 0 0}
@keyframes study-wipe{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.study-cursor{margin-left:6px;display:inline-block;animation:study-blink 1.1s steps(2,end) infinite}
@keyframes study-blink{0%,49%{opacity:1}50%,100%{opacity:.15}}
/* 誤り: 窓が横に揺れ、キャラが首を振る */
.study-shake{animation:study-shake .4s steps(6,end)}
.study-shake-head{animation:study-shake-head .4s steps(6,end)}
@keyframes study-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}100%{transform:translateX(0)}}
@keyframes study-shake-head{25%,75%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}100%{transform:rotate(0)}}
/* 打鍵で小さく跳ねる/送信中は宝箱が揺れる/階段の昇降 */
.study-bounce{animation:study-hop .3s steps(3,end)}
.study-chest-wobble{animation:study-chest-wobble .5s steps(4,end) infinite}
@keyframes study-chest-wobble{25%,75%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}100%{transform:rotate(0)}}
.study-scene.study-descend .study-scene-actor,.study-scene.study-descend .study-scene-doors{animation:study-descend .5s steps(6,end)}
.study-scene.study-ascend .study-scene-actor,.study-scene.study-ascend .study-scene-doors{animation:study-ascend .5s steps(6,end)}
@keyframes study-descend{0%{transform:translateY(-14px);opacity:.3}100%{transform:translateY(0);opacity:1}}
@keyframes study-ascend{0%{transform:translateY(14px);opacity:.3}100%{transform:translateY(0);opacity:1}}
/* B5F: 応募ボタンが点灯 */
.study-primary.study-lit{box-shadow:0 0 0 3px #f6c45388,4px 4px 0 #846a32}
/* これからの勉強会: 部屋の窓が画面に入ると開く */
.study-session.study-open-in{animation:study-room-open .4s steps(6,end)}
@keyframes study-room-open{0%{transform:scaleY(.85);opacity:.4}100%{transform:scaleY(1);opacity:1}}
/* 入口の場面: 行進するアイコンは左右にも歩く */
.study-parade .study-avatar{animation:study-idle 2.8s steps(2,end) infinite,study-walk 4.4s steps(8,end) infinite}
@keyframes study-walk{0%,100%{translate:-6px 0}50%{translate:6px 0}}
/* ステータス窓は画面に入ったときに上下へ開く */
.study-facts{transform-origin:top;animation:study-room-open .5s steps(6,end)}
/* 漂う粒・紙吹雪の1枚のcanvas */
.study-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.study-entrance-scene{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;height:64px;margin-bottom:14px}
.study-clear-scene{position:relative}
/* 全部止められる: study の動きは .study-anim(とその中身)に集約し、prefers-reduced-motion と
   停止ボタンのどちらでも一括で止める(!important は個々の高い詳細度のアニメーションに勝つため)。
   ::after のモザイク演出だけは class を持てないので別掲。transition(ゲージ・ボタンの:active)も
   両方の条件で止める。.study-secondary は管理用カレンダーと共有するため公開側だけに限定する。 */
@media(prefers-reduced-motion:reduce){.study-anim,.study-anim *,.study-panel.study-enter::after{animation:none!important}.study-primary:active,.study-lobby .study-secondary:active,#study-dialog .study-secondary:active,.study-back:active,.study-close:active{transform:none!important}.study-gauge-fill,.study-primary,.study-lobby .study-secondary,#study-dialog .study-secondary,.study-back,.study-close{transition:none!important}}
.study-motion-paused .study-anim,.study-motion-paused .study-anim *,.study-motion-paused .study-panel.study-enter::after{animation:none!important}
.study-motion-paused .study-primary:active,.study-motion-paused .study-lobby .study-secondary:active,.study-motion-paused #study-dialog .study-secondary:active,.study-motion-paused .study-back:active,.study-motion-paused .study-close:active{transform:none!important}
.study-motion-paused .study-gauge-fill,.study-motion-paused .study-primary,.study-motion-paused .study-lobby .study-secondary,.study-motion-paused #study-dialog .study-secondary,.study-motion-paused .study-back,.study-motion-paused .study-close{transition:none!important}
/* 仕上げ2巡目: 書体・窓の縁・場面/ステータス窓の迫力・演出の抜けを直す */
/* 1. 書体はDotGothic16(管理画面の.study-panelは対象外) */
.study-lobby,#study-dialog .study-panel{font-family:var(--pixel)}
.study-lobby .study-eyebrow{font-family:var(--pixel)}
.study-lobby .study-note,#study-dialog .study-note,.study-action .study-note,.study-schedule-heading .study-note{font-size:14px;line-height:1.7}
/* 2. 窓の縁: 紙白+夜紺の2重線、角丸なし、4pxのずらし影(ぼかさない) */
#study-dialog{border-radius:0;border:2px solid #edf2fa;box-shadow:0 0 0 2px #0c1220,4px 4px 0 #0c1220}
.study-intro,.study-card,.study-session,.study-schedule-empty{border-radius:0;border:2px solid #edf2fa;box-shadow:0 0 0 2px #0c1220,4px 4px 0 #0c1220}
.study-session{background:#0f1c2e;padding:20px 22px;margin:18px 0}
.study-schedule-empty{background:#0f1c2e}

/* 公開予定と運営用入力欄 */
.study-lobby .study-schedule-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:28px;align-items:start}
.study-lobby .study-host-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 16px;font-size:14px;line-height:1.7}
.study-lobby .study-host-legend span{display:inline-flex;align-items:center;gap:6px}
.study-lobby .study-host-legend span::before{content:'';display:inline-block;width:18px;height:18px;background:var(--host-color);border:1px solid #0c1220}
.study-lobby .host-mitsuoka{--host-color:#f2879e;--host-tint:#fff1f4}
.study-lobby .host-yilmaz{--host-color:#85c8f2;--host-tint:#f0f9ff}
.study-lobby .host-taka{--host-color:#f6c453;--host-tint:#fff9e9}
.study-lobby .host-ide{--host-color:#94dcb0;--host-tint:#f0fbf4}
.study-lobby .study-session-row{display:flex;justify-content:space-between;gap:12px;margin:0 0 14px;padding:16px 18px;background:var(--host-tint);color:#0c1220;border:2px solid #0c1220;border-left:10px solid var(--host-color);box-shadow:4px 4px 0 #0c1220;overflow-wrap:anywhere}
.study-lobby .study-session-row h4{font-size:18px;line-height:1.5;margin:4px 0 8px;color:#0c1220}
.study-lobby .study-session-row p{margin:0 0 6px;color:#0c1220}
.study-lobby .study-session-date{font-size:14px;font-weight:bold}
.study-lobby .study-host-badge{display:inline-block;border:2px solid #0c1220;background:var(--host-color);color:#0c1220;padding:2px 8px;font-size:13px;font-weight:bold}
.study-lobby .study-session-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.study-lobby .study-session-actions button{background:#0c1220;color:#edf2fa;min-width:64px}
.study-lobby .study-organizer{border:2px solid #edf2fa;padding:18px;background:#14263c;min-width:0}
.study-lobby .study-organizer a{color:#85c8f2;font-size:14px}
.study-lobby .study-organizer h4{margin:0 0 14px;font-size:17px;color:#edf2fa}
.study-lobby .study-organizer label{display:block;margin:0 0 12px;font-size:14px;line-height:1.7}
.study-lobby .study-organizer input,.study-lobby .study-organizer select{display:block;width:100%;box-sizing:border-box;margin-top:4px;padding:10px;background:#edf2fa;color:#0c1220;border:2px solid #85c8f2;border-radius:0;font-size:16px;min-height:44px}
.study-lobby .study-organizer-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.study-lobby #study-organizer-error{color:#ffb6bd;font-size:14px}
@media(max-width:899px){.study-lobby .study-schedule-grid{grid-template-columns:1fr}.study-lobby .study-organizer{margin-top:8px}}
@media(max-width:560px){.study-lobby .study-session-row{display:block}.study-lobby .study-session-actions{flex-direction:row;margin-top:12px}}
/* 3. 入口の場面を大きく(扉96px以上・たいまつ48px以上) */
.study-entrance-scene{height:150px;gap:20px}
.study-entrance-scene .study-scene-doors svg{width:90px;height:135px}
.study-entrance-scene .study-torch{width:32px;height:52px}
/* 4. ステータス窓はRPGの窓1枚(2重線)にし、画面に入ると開く */
.study-facts{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border-radius:0;border:2px solid #edf2fa;box-shadow:0 0 0 2px #0c1220,4px 4px 0 #0c1220;background:#0c1220;list-style:none;animation:none}
.study-facts p{margin:0;font-size:14px;line-height:1.7;color:#edf2fa}
.study-facts.study-open-in{animation:study-room-open .5s steps(6,end)}
/* 5. 登録の場面: 床と壁のドットタイル、宝箱並みに目立つ階段、階段へ降りる動き */
.study-scene{background-color:#0c1220;background-image:linear-gradient(180deg,#18273c,#0c1220)}
.study-scene-tiles{position:absolute;inset:-20% 0;background-image:linear-gradient(0deg,transparent 0 3px,#ffffff10 3px 4px),linear-gradient(90deg,transparent 0 3px,#ffffff0a 3px 4px);background-size:8px 8px;z-index:0}
.study-scene>*:not(.study-scene-tiles):not(.study-fx){position:relative;z-index:1}
.study-stairs{opacity:1}
.study-stairs svg{width:48px}
.study-scene.study-descend .study-scene-tiles{animation:study-pan-up .55s steps(6,end)}
.study-scene.study-ascend .study-scene-tiles{animation:study-pan-down .55s steps(6,end)}
@keyframes study-pan-up{from{transform:translateY(0)}to{transform:translateY(-16px)}}
@keyframes study-pan-down{from{transform:translateY(0)}to{transform:translateY(16px)}}
@keyframes study-descend{0%{transform:translate(-8px,-16px);opacity:.3}60%{transform:translate(4px,4px);opacity:.85}100%{transform:translate(0,0);opacity:1}}
@keyframes study-ascend{0%{transform:translate(8px,16px);opacity:.3}60%{transform:translate(-4px,-4px);opacity:.85}100%{transform:translate(0,0);opacity:1}}
.study-floor-label{animation:study-tick .3s steps(3,end)}
@keyframes study-tick{0%{opacity:.2;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}
/* 6. これからの勉強会: 開催日未定の窓も同じ縁、空席の?は既存の study-blink で点滅 */
/* 7. クリアの見出し: 2行に均等に折り返し、点滅して出る */
.study-clear-title{text-wrap:balance;margin:16px 0;animation:study-flicker-in .6s steps(6,end)}
@keyframes study-flicker-in{0%{opacity:0}15%{opacity:1}30%{opacity:.25}45%{opacity:1}60%{opacity:.35}75%{opacity:1}100%{opacity:1}}
/* 8. ダイアログを開く: 扉のドットのモザイクで切り替わってB1Fに入る / B5Fのカードは枠→アイコン→名前→題目の順で組み上がる */
#study-dialog .study-panel{position:relative}
#study-dialog .study-panel::after{content:'';position:absolute;inset:0;z-index:9;pointer-events:none;opacity:0;background-image:repeating-conic-gradient(#0c1220 0% 25%,transparent 0% 50%);background-size:16px 16px}
.study-panel.study-enter::after{animation:study-mosaic .5s steps(6,end)}
@keyframes study-mosaic{from{opacity:1}to{opacity:0}}
#talk-preview .study-card{animation:study-frame-in .3s steps(4,end)}
#talk-preview .study-card svg{animation:study-part-in .25s steps(4,end) .12s both}
#talk-preview .study-card strong{animation:study-part-in .25s steps(4,end) .24s both}
#talk-preview .study-card p{animation:study-part-in .25s steps(4,end) .36s both}
#talk-preview .study-card span{animation:study-part-in .25s steps(4,end) .48s both}
@keyframes study-frame-in{from{opacity:.3;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
@keyframes study-part-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
/* 幅390pxで窓・入力欄がはみ出さないように(場面の高さ120px前後・キャラ48px以上は保つ) */
@media(max-width:420px){.study-scene{gap:10px}.study-msg-text{font-size:14px}.study-stepper input{width:64px}}
#study-availability{text-wrap:balance}
/* 説明文の直後・募集欄の手前に置く紹介動画。.act-hero imgと同じ角丸、本文と同じ最大幅 */
.study-video{max-width:740px;margin:26px 0 0}
.study-video video{display:block;width:100%;aspect-ratio:16/9;border-radius:12px;background:#0c1220;box-shadow:0 10px 30px rgba(3,6,15,.5),0 0 0 1px rgba(133,200,242,.25)}

/* The study page uses one RPG window language; shared site chrome stays untouched. */
#study{--study-window:#16203a;--study-edge:#edf2fa;--study-ink:#edf2fa}
#study .section-title{font-family:var(--pixel);font-size:clamp(25px,4vw,38px);line-height:1.5;overflow-wrap:anywhere}
#study .title-ghost{font-family:var(--pixel);font-size:clamp(48px,9vw,100px);letter-spacing:.08em;-webkit-text-stroke:2px rgba(133,200,242,.25)}
#study .act-hero,#study .act-body,#study .study-video,#study .study-intro,#study .study-schedule-list,#study .study-organizer,#study-dialog{background:var(--study-window);border:3px solid var(--study-edge);border-radius:2px;box-shadow:0 0 0 2px #0c1220,0 0 0 4px #85c8f2,5px 5px 0 4px #0c1220}
#study .act-hero{padding:6px;margin-top:32px}
#study .act-hero img{display:block;border-radius:0;box-shadow:none;image-rendering:pixelated}
#study .act-body{padding:20px 26px;color:var(--study-ink);font-family:var(--body);overflow-wrap:anywhere}
#study .act-body p{font-size:16px;line-height:1.85;margin:0 0 1em}
#study .act-body p:last-child{margin-bottom:0}
#study .study-video{padding:6px}
#study .study-video video{border-radius:0;box-shadow:none;image-rendering:pixelated}
#study .study-lobby{font-family:var(--pixel);color:var(--study-ink)}
#study .study-intro{padding:28px}
#study .study-intro h2,#study .study-schedule-heading h3,#study .study-organizer h4,#study-dialog h2,#study-dialog h3{font-family:var(--pixel);line-height:1.5;overflow-wrap:anywhere}
#study .study-intro-copy>p,#study .study-session-row h4{font-family:var(--body);font-size:16px;line-height:1.8;overflow-wrap:anywhere}
#study .study-intro-copy>p{color:var(--study-ink)}
#study .study-schedule-list{padding:18px;min-width:0}
#study .study-schedule-heading{margin-top:36px}
#study .study-schedule-list .study-schedule-heading{margin-top:28px}
#study .study-host-legend{padding:12px;background:#0c1220;border:2px solid #85c8f2;border-radius:2px}
#study .study-session-date,#study .study-host-badge,#study .study-eyebrow,#study .study-note,#study .study-facts,#study .study-schedule-empty{font-family:var(--pixel)}
#study .study-session-row{min-width:0}
#study .study-session-row h4{margin-top:6px}
#study .study-organizer{box-shadow:0 0 0 2px #0c1220,0 0 0 4px #85c8f2,5px 5px 0 4px #0c1220}
#study .study-organizer label{font-family:var(--pixel)}
#study .study-organizer input,#study .study-organizer select{font-family:var(--body)}
#study-dialog{color:#edf2fa}
#study-dialog .study-panel{font-family:var(--pixel)}
#study-dialog .study-msg-text,#study-dialog .study-card p{font-family:var(--body);font-size:16px;line-height:1.8}
#study-dialog .study-form input,#study-dialog .study-form select{font-family:var(--body);font-size:16px}
#study :is(button,.study-organizer a):not(.study-close),#study-dialog button:not(.study-close){font-family:var(--pixel);position:relative}
#study-dialog .study-close{font-family:var(--pixel)}
#study :is(.study-primary,.study-secondary,.study-session-actions button,.study-organizer a),#study-dialog :is(.study-primary,.study-secondary,.study-back){padding-left:30px;border-radius:2px}
#study :is(.study-primary,.study-secondary,.study-session-actions button,.study-organizer a)::before,#study-dialog :is(.study-primary,.study-secondary,.study-back)::before{content:'▶' / '';position:absolute;left:9px;top:50%;transform:translateY(-50%);opacity:0;pointer-events:none;font-size:12px}
#study :is(.study-primary,.study-secondary,.study-session-actions button,.study-organizer a):is(:hover,:focus-visible):not(:disabled)::before,#study-dialog :is(.study-primary,.study-secondary,.study-back):is(:hover,:focus-visible):not(:disabled)::before{opacity:1}
#study .study-organizer a{display:inline-block;padding:10px 12px 10px 30px;border:2px solid #85c8f2;background:#0c1220;min-height:44px}
#study .study-organizer a[hidden]{display:none}
#study :is(button,.study-organizer a):focus-visible,#study-dialog button:focus-visible{outline:3px solid #f6c453;outline-offset:4px}
#study button:active,#study-dialog button:active{transform:translateY(1px)}
#study .study-primary:hover:not(:active){transform:none}
@media(max-width:560px){#study .act-body{padding:18px 16px}#study .study-intro{padding:20px 16px}#study .study-schedule-list{padding:14px}#study .study-session-row{padding:14px 12px}#study .study-intro-copy>p{font-size:16px}}
@media(prefers-reduced-motion:reduce){#study button:active,#study-dialog button:active{transform:none}}
.study-motion-paused #study button:active,.study-motion-paused #study-dialog button:active{transform:none}
