/* ============================================================
   css/novel.css — 第1回（v2.0）：横送りスライド＋全画面ノベル
   ------------------------------------------------------------
   ・前半：sample（css/style.css・css/lesson.css）の ノベル／スライド用ルールを そのまま 移植
   ・後半：この講座（v1.2 の骨組み＝col-guide／sw-ID／ga-*）に 合わせた 上書き
   読み込み順：lesson.css → genai.css → novel.css（最後）
   ============================================================ */
:root{
  --font:'BIZ UDPGothic','Noto Sans JP',sans-serif;
  --cv-purple:var(--primary);
  --cv-grad:linear-gradient(135deg,var(--primary-lt) 0%,var(--mint) 100%);
  --inst-h:64px;
}
/* ── ここから sample 由来 ── */
.adjust3-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; margin: 14px 0 0;
  border-radius: 999px; border: 1px solid rgba(43,37,71,.1);
  cursor: pointer; outline: none;
}
.adjust3-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--cv-purple);
  box-shadow: 0 1px 5px rgba(43,37,71,.25); cursor: pointer;
}
.adjust3-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--cv-purple);
  box-shadow: 0 1px 5px rgba(43,37,71,.25); cursor: pointer;
}
.scene-player{
  border-radius:20px;overflow:hidden;position:relative;
  background:linear-gradient(160deg, var(--tint-2) 0%, var(--tint-1) 45%, var(--tint-3) 100%);
  margin:16px 0;
}
.sp-progress{display:flex;gap:6px;justify-content:center;padding:14px 16px 0;position:relative;z-index:2;}
.sp-progress span{width:18px;height:4px;border-radius:99px;background:rgba(255,255,255,.55);}
.sp-progress span.done{background:#fff;}
.sp-progress span.current{background:var(--cv-purple);}
.sp-stage{position:relative;min-height:280px;display:flex;flex-direction:column;justify-content:flex-end;padding:0;}
.sp-illust{position:relative;display:flex;align-items:flex-end;min-height:190px;padding:0 8px;}
.sp-illust.two{justify-content:flex-start;}
.sp-illust.one{justify-content:center;}
.sp-bust-wrap{width:150px;flex-shrink:0;opacity:.4;transition:.25s;filter:drop-shadow(0 6px 8px rgba(0,0,0,.15));}
.sp-bust-wrap.active{opacity:1;transform:scale(1.05);}
.sp-bust-wrap.two:first-child{margin-right:-24px;z-index:1;}
.sp-bust-wrap.two:last-child{z-index:2;}
.sp-bust{width:100%;display:block;border-radius:0;background:none;box-shadow:none;}
.sp-illust-empty{height:16px;}
.sp-panel{background:rgba(255,255,255,.97);border-radius:18px 18px 0 0;padding:14px 18px 18px;position:relative;margin-top:-16px;z-index:3;}
.chat-name-row{margin-bottom:6px;}
.chat-name{font-size:11px;font-weight:900;color:var(--cv-purple);}
.chat-text{font-size:15px;line-height:1.7;color:var(--text);min-height:44px;}
.send-row{display:flex;justify-content:flex-end;margin-top:12px;}
.send-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--text);color:#fff;border:none;
  padding:9px 18px;border-radius:99px;font-size:13px;font-weight:700;
  font-family:var(--font);cursor:pointer;
}
.send-btn .plane{color:var(--primary-lt);}
.celebrate{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px 32px;background:rgba(255,255,255,.88);border-radius:20px;backdrop-filter:blur(2px);margin:0 auto;max-width:90%;box-shadow:0 8px 24px rgba(0,0,0,.12);}
.celebrate .big-star{font-size:44px;color:var(--cv-purple);}
.celebrate .cel-title{color:var(--text);font-size:18px;font-weight:900;margin-top:6px;}
.celebrate .cel-sub{color:var(--text2);font-size:12px;margin-top:4px;text-align:center;}
.capture-card{background:var(--card);border-radius:14px;padding:12px;}
.capture-img-wrap{border-radius:8px;overflow:hidden;background:var(--line);}
.capture-img-wrap img{width:100%;display:block;}
.capture-note{font-size:12px;color:var(--text2);margin-top:8px;line-height:1.6;}
.capture-credit{font-size:9px;color:var(--ink3);margin-top:6px;text-align:right;}
.sp-launch-btn{
  width:100%;display:flex;align-items:center;justify-content:center;gap:10px;
  background:var(--cv-grad);color:#fff;border:none;border-radius:16px;
  padding:22px;font-size:15px;font-weight:900;font-family:var(--font);
  cursor:pointer;box-shadow:0 6px 18px rgba(123,92,250,.28);
}
.sp-launch-btn i{font-size:14px;}
.case-thumb{border-radius:16px;overflow:hidden;background:var(--card);cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.08);transition:.15s;border:1px solid var(--border);}
.case-thumb:not(.locked):hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(123,92,250,.2);}
.ct-img-wrap{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,var(--tint-1),var(--tint-3));overflow:hidden;}
.ct-img{width:100%;height:100%;object-fit:cover;display:block;}
.ct-img-placeholder{width:100%;height:100%;}
.ct-play{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.15);color:#fff;font-size:0;
}
.ct-play i{
  font-size:20px;background:rgba(255,255,255,.9);color:var(--cv-purple);
  width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.ct-body{padding:12px 14px;}
.ct-title{font-size:14px;font-weight:900;color:var(--text);}
.ct-meta{font-size:11px;color:var(--text2);margin-top:3px;}
.case-thumb.locked{cursor:default;}
.case-thumb.locked .ct-img{filter:grayscale(.6) brightness(.75);}
.ct-lock-veil{position:absolute;inset:0;background:rgba(30,20,40,.35);}
.ct-stella-flag{
  position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.95);border-radius:99px;padding:6px 14px 6px 6px;
  box-shadow:0 4px 10px rgba(0,0,0,.2);
}
.ct-stella-flag img{width:30px;height:30px;border-radius:50%;background:#eef;}
.ct-stella-flag span{font-size:12px;font-weight:900;color:var(--cv-purple);}
.case-thumb.locked .ct-title, .case-thumb.locked .ct-meta{opacity:.5;}
body.sp-lock-scroll{overflow:hidden;}
.sp-overlay{
  position:fixed;inset:0;z-index:9999;
  background:linear-gradient(160deg, var(--tint-2) 0%, var(--tint-1) 45%, var(--tint-3) 100%);
  opacity:0;transform:scale(.97);
  transition:opacity .32s ease, transform .32s ease;
  display:flex;flex-direction:column;
}
.sp-overlay.show{opacity:1;transform:scale(1);}
.sp-overlay .sp-progress{padding:calc(env(safe-area-inset-top,0px) + 18px) 16px 0;}
.sp-stage-full{flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-height:0;}
.sp-stage-full .sp-illust{flex:1;min-height:0;align-items:flex-end;padding-bottom:0;}
.sp-stage-full .sp-bust-wrap{width:auto;max-width:32%;height:auto;display:flex;align-items:flex-end;}
.sp-stage-full .sp-bust-wrap.two:first-child{margin-right:-6%;}
.sp-stage-full .sp-bust{height:auto;max-height:38vh;width:auto;max-width:100%;object-fit:contain;}
.sp-stage-full .sp-panel{padding:clamp(16px,3vw,26px) clamp(16px,3.4vw,30px) calc(env(safe-area-inset-bottom,0px) + clamp(18px,2.8vw,26px));}
.sp-stage-full .chat-name{font-size:clamp(12px,1.9vw,16px);}
.sp-stage-full .chat-text{font-size:clamp(16px,2.8vw,24px);line-height:1.8;min-height:auto;}
.sp-stage-full .send-btn{font-size:clamp(13px,1.9vw,16px);padding:clamp(10px,1.6vw,14px) clamp(16px,2.6vw,24px);}
.sp-stage-full .choice-q{font-size:clamp(14px,2.3vw,20px);}
.sp-stage-full .choice-opt{font-size:clamp(13px,2.1vw,18px);padding:clamp(11px,1.8vw,16px) clamp(12px,2vw,18px);}
.sp-stage-full .choice-feedback{font-size:clamp(13px,2.1vw,17px);}
.sp-stage-full .choice-opts{padding-right:clamp(76px,17vw,200px);}
.gauge-widget{
  position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:14px;z-index:20;
  display:flex;align-items:center;gap:clamp(6px,1.4vw,12px);
  padding:clamp(8px,1.5vw,13px) clamp(12px,2.2vw,22px);
  background:var(--card);border-radius:99px;border:1px solid var(--border);
  width:fit-content;max-width:calc(100% - 28px);box-shadow:0 6px 18px rgba(0,0,0,.14);
}
.gauge-label{font-size:clamp(11px,1.9vw,15px);font-weight:900;color:var(--text2);white-space:nowrap;}
.gauge-row{display:flex;gap:clamp(4px,1vw,7px);}
.gauge-seg{position:relative;width:clamp(26px,4.9vw,40px);height:clamp(26px,4.9vw,40px);display:inline-block;}
.gauge-seg i{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(24px,4.6vw,38px);line-height:1;}
.gauge-bg{color:var(--border);}
.gauge-fill{color:var(--cv-purple);transition:clip-path .3s ease;}
.point-burst{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:25;pointer-events:none;}
.point-burst .pb-inner{display:flex;flex-direction:column;align-items:center;gap:clamp(4px,1vw,10px);animation:pbPop .5s cubic-bezier(.2,1.3,.4,1) both;}
.point-burst.leave .pb-inner{animation:pbLeave .18s ease forwards;}
.point-burst .pb-ic{font-size:clamp(70px,17vw,130px);line-height:1;filter:drop-shadow(0 8px 16px rgba(0,0,0,.22));}
.point-burst .pb-label{font-size:clamp(26px,7vw,52px);font-weight:900;letter-spacing:.02em;}
.point-burst.is-full .pb-ic,.point-burst.is-full .pb-label{color:var(--cv-purple);}
.point-burst.is-half .pb-label{color:var(--cv-purple);}
.point-burst.is-zero .pb-ic,.point-burst.is-zero .pb-label{color:var(--text2);}
.point-burst .pb-half{position:relative;display:inline-block;width:1em;height:1em;font-size:clamp(70px,17vw,130px);line-height:1;filter:drop-shadow(0 8px 16px rgba(0,0,0,.22));}
.point-burst .pb-half i{position:absolute;left:0;top:0;font-size:inherit;line-height:1;}
.point-burst .pb-half .pb-ic-bg{color:var(--border);}
.point-burst .pb-half .pb-ic-fill{color:var(--cv-purple);clip-path:inset(0 50% 0 0);}
.gauge-fly-icon{
  position:fixed;z-index:10005;font-size:clamp(28px,5vw,38px);color:var(--cv-purple);
  pointer-events:none;
  transition:left 1.3s cubic-bezier(.2,.6,.3,1), top 1.3s cubic-bezier(.2,.6,.3,1),
             transform 1.3s ease, opacity 1.3s ease;
}
.gauge-fly-icon.is-half{color:var(--cv-purple);opacity:.75;}
.gauge-fly-icon.is-empty{color:var(--text2);}
.voice-toggle{
  position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);left:14px;z-index:20;
  width:clamp(38px,6.8vw,48px);height:clamp(38px,6.8vw,48px);border-radius:50%;
  background:var(--card);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.14);cursor:pointer;color:var(--text2);font-size:clamp(15px,2.8vw,18px);
}
.thought-tag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:99px;font-size:11px;font-weight:900;
  color:var(--primary);background:var(--primary-soft);border:1px dashed var(--line-2);vertical-align:1px;}
.thought-tag i{margin-right:3px;}
.sp-panel.is-thought .chat-text{background:var(--primary-soft);border:2px dashed var(--line-2);border-radius:16px;padding:10px 14px;color:var(--ink);}
.sp-illust.thinking .sp-bust-wrap.active .sp-bust{filter:drop-shadow(0 0 10px rgba(185,166,242,.8));}
.sp-illust.thinking .sp-bust-wrap:not(.active){opacity:.35;filter:grayscale(.5);}
.sp-bg-missing{position:absolute;top:26px;left:50%;transform:translateX(-50%);z-index:1;width:min(92%,520px);pointer-events:none;}
.sp-bg-missing .img-missing{min-height:0;background:rgba(255,255,255,.9);}
.ct-img-wrap .img-missing{position:absolute;inset:10px;min-height:0;z-index:1;}
.capture-img-wrap .img-missing{min-height:200px;}
.sp-stage.dim::before{content:'';position:absolute;inset:0;z-index:0;background:rgba(24,18,48,.48);animation:dimIn .3s ease;pointer-events:none;}
.sp-stage.dim .sp-illust{z-index:2;}
.sp-stage.dim .sp-bg-missing{z-index:1;}
.sp-illust.choice-mode .sp-bust-wrap{opacity:1;transform:none;}
.sp-stage-full .sp-illust.choice-mode .sp-bust{max-height:30vh;}
.cf-head{display:flex;align-items:center;gap:10px;margin-bottom:6px;}
.cf-face{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:50% 20%;background:var(--primary-soft);border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.12);}
.cf-title{font-size:clamp(16px,2vw,20px);font-weight:900;}
.choice-feedback.t-good .cf-title{color:var(--mint);}
.choice-feedback.t-mid .cf-title{color:var(--sun-dk);}
.choice-feedback.t-low .cf-title{color:var(--primary);}
.case-thumb:not(.locked):not(.seen) .ct-play i{animation:attnBob 1.6s ease-in-out infinite, attnRing 1.6s ease-out infinite;}
.case-thumb.seen .ct-play i{opacity:.85;}
.sp-overlay .send-btn{animation:attnRing 1.8s ease-out 3.5s infinite;}
.sp-overlay .sp-progress{position:absolute;top:calc(env(safe-area-inset-top,0px) + 84px);left:50%;transform:translateX(-50%);
  z-index:15;padding:0;display:flex;align-items:center;gap:12px;pointer-events:none;max-width:calc(100% - 28px);width:max-content;}
.sp-bars{display:flex;gap:6px;flex-wrap:nowrap;justify-content:center;min-width:0;}
.sp-overlay .sp-progress span{width:clamp(16px,2.2vw,30px);flex:0 1 auto;min-width:5px;height:8px;border-radius:99px;background:rgba(255,255,255,.7);
  box-shadow:0 1px 4px rgba(0,0,0,.28);}
.sp-overlay .sp-progress span.done{background:#fff;}
.sp-overlay .sp-progress span.current{background:var(--primary);transform:scaleY(1.3);}
.sp-count{font-style:normal;font-size:clamp(14px,1.6vw,18px);font-weight:900;color:#fff;white-space:nowrap;
  text-shadow:0 1px 3px rgba(0,0,0,.55),0 0 8px rgba(0,0,0,.25);}
.sp-close{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);left:14px;z-index:21;width:46px;height:46px;border-radius:50%;
  border:1px solid var(--border);background:rgba(255,255,255,.92);color:var(--text2);font-size:20px;cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.14);}
.sp-close:hover{color:var(--text);}
.sp-quit{position:absolute;top:calc(env(safe-area-inset-top,0px) + 68px);left:14px;z-index:22;background:#fff;border-radius:16px;
  padding:12px 14px;box-shadow:0 10px 24px rgba(0,0,0,.2);border:1px solid var(--border);animation:wcIn .2s ease;}
.sp-quit[hidden]{display:none;}
.sp-quit-q{font-size:15px;font-weight:900;color:var(--text);}
.sp-quit-q i{color:var(--primary);margin-right:4px;}
.sp-quit-q small{display:block;font-size:12px;font-weight:700;color:var(--text2);margin-top:2px;}
.sp-quit-btns{display:flex;gap:8px;margin-top:10px;justify-content:flex-end;}
.sp-quit-btns button{font:inherit;font-size:14px;font-weight:900;border-radius:99px;padding:7px 16px;cursor:pointer;border:2px solid var(--border);background:#fff;color:var(--text);}
.sp-quit-btns .sp-quit-yes{background:var(--text);border-color:var(--text);color:#fff;}
@media (prefers-reduced-motion: reduce){.case-thumb .ct-play i,.sp-overlay .send-btn,.act-next,.slide-nav-btn.ready{animation:none !important;}}
.sp-illust.chat-mode{align-items:center !important;justify-content:center !important;padding:112px 12px 26px !important;}
.nc-head{flex:0 0 auto;font-size:clamp(14px,1.6vw,17px);font-weight:900;color:#fff;background:linear-gradient(90deg,var(--primary),var(--primary-lt));padding:9px 16px;}
.nc-head i{margin-right:6px;}
.nc-log{flex:1;min-height:0;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;}
.nc-row{display:flex;align-items:flex-start;gap:10px;}
.nc-row.me{flex-direction:row-reverse;}
.nc-row.new,.nc-sys.new{animation:ncIn .35s ease var(--d,0s) both;}
.nc-ic{position:relative;flex-shrink:0;width:46px;height:46px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:900;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);}
.nc-ic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.nc-bw{display:flex;flex-direction:column;max-width:80%;}
.nc-name{font-size:13px;font-weight:800;color:var(--text2);margin:0 0 3px 6px;}
.nc-bubble{font-size:clamp(16px,1.9vw,20px);line-height:1.6;background:#fff;border-radius:16px 16px 16px 4px;padding:9px 14px;box-shadow:0 1px 3px rgba(0,0,0,.06);color:var(--text);}
.nc-sys{align-self:center;font-size:13px;font-weight:800;color:var(--text2);background:var(--line);border-radius:99px;padding:4px 14px;}
.sp-illust.rewind .novel-chat{animation:rewindIn .7s ease;}
.nc-photo{display:block;margin-top:8px;width:min(260px,100%);border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.12);}
.nc-bubble .img-missing{margin-top:8px;min-height:90px;width:min(260px,100%);}
body.slide-mode #progress-veil{display:none !important;}
body.slide-mode .step-card.is-dimmed,
body.slide-mode .sec-wrap.is-dimmed{opacity:1 !important;filter:none !important;transform:none !important;}
body.slide-mode .step-card.is-current::before{content:none !important;}
body.slide-mode .step-card.is-current{border-color:var(--border2) !important;box-shadow:none !important;}
body.slide-mode .app{padding-bottom:var(--inst-h,64px);}
body.slide-mode .guide-panel{overflow:hidden;}
body.slide-mode .guide-sticky{flex:0 0 auto;}
body.slide-mode .guide-content{
  flex:1 1 auto;min-height:0;
  
  max-width:none !important;width:100%;margin:0 !important;padding:0 !important;
  display:flex;flex-direction:column;overflow:hidden;
}
body.slide-mode .slide-viewport{flex:1 1 auto;min-height:0;overflow:hidden;}
body.slide-mode .slide-track{height:100%;}
.slide-viewport{overflow:hidden;width:100%;}
.slide-track{display:flex;transition:transform .38s cubic-bezier(.4,0,.2,1);will-change:transform;}
.slide-track > .slide{
  flex:0 0 100%;width:100%;min-width:0;box-sizing:border-box;
  height:100%;overflow-y:auto;overflow-x:hidden;
  padding:12px clamp(12px,2.4vw,22px) 16px;
}
body.slide-mode .slide > .sec-wrap,
body.slide-mode .slide > .intro-block{max-width:1040px;margin-left:auto;margin-right:auto;}
body.slide-mode .sec-wrap{margin:0;}
body.slide-mode .intro-block{margin:0;}
body.slide-mode .sec-header{margin-bottom:12px;}
body.slide-mode .step-card{margin:12px 0 0;}
body.slide-mode .step-card:first-of-type{margin-top:0;}
body.slide-mode .slide img{max-width:100%;height:auto;}
body.slide-mode .slide .step-img{max-width:100%;}
body.slide-mode .img-side{flex-direction:column;align-items:stretch;gap:10px;}
body.slide-mode .img-side-img{max-width:100% !important;}
body.slide-mode .img-side-img .step-img{max-width:min(320px,80%) !important;margin:0 auto;display:block;}
body.slide-mode .img-side-noshadow{flex-direction:row !important;align-items:center !important;gap:clamp(16px,3vw,32px) !important;}
body.slide-mode .img-side-noshadow .img-side-text{flex:1 1 auto;min-width:0;}
body.slide-mode .img-side-noshadow .img-side-img{flex:0 0 auto;width:clamp(180px,26vw,260px);max-width:34% !important;align-self:center !important;}
body.slide-mode .img-side-noshadow .img-side-img .step-img{width:100% !important;max-width:260px !important;margin:0 auto !important;}
@media(max-width:640px){body.slide-mode .img-side-noshadow{flex-direction:column !important;align-items:stretch !important;}
body.slide-mode .img-side-noshadow .img-side-img{width:auto;max-width:60% !important;align-self:center !important;}}
body.slide-mode .img-2col-arrow{flex-direction:column;align-items:center;gap:8px;}
body.slide-mode .img-2col-arrow .img-arrow-icon{transform:rotate(90deg);}
body.slide-mode .sec-header{flex-wrap:wrap;}
body.slide-mode .chat-name,body.slide-mode .cl-bubble,body.slide-mode .box-text{overflow-wrap:anywhere;}
body.slide-mode .case-thumb{max-width:min(100%, max(420px, calc((100vh - 470px) * 16 / 9)));margin-left:auto;margin-right:auto;}
body.slide-mode .case-thumb .ct-img-wrap{aspect-ratio:16/9;height:auto;}
body.slide-mode .case-thumb .ct-img-placeholder{background:linear-gradient(135deg,var(--primary-soft) 0%,var(--primary-soft) 55%,var(--tint-3) 100%);}
body.slide-mode .case-thumb .ct-body{padding:10px 14px;}
body.slide-mode .scene-player{margin:0;background:none;}
body.slide-mode .capture-img-wrap{max-height:40vh;display:flex;align-items:center;justify-content:center;}
body.slide-mode .capture-img-wrap img{max-height:40vh;width:auto;}
.slide-nav{
  flex:0 0 auto;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border-top:1px solid var(--border);
  box-shadow:0 -4px 14px rgba(43,37,71,.06);
  padding:10px clamp(14px,3vw,32px);
}
.slide-nav-btn{
  display:inline-flex;align-items:center;gap:7px;border:none;border-radius:99px;
  padding:11px 20px;font-family:var(--font);font-weight:900;font-size:14px;cursor:pointer;
  background:var(--text);color:#fff;white-space:nowrap;
}
.slide-nav-btn.ghost{background:var(--card);color:var(--text2);border:2px solid var(--border);}
.slide-nav-btn:disabled{opacity:.32;cursor:default;}
.slide-nav-btn.pending{background:var(--line-2);color:#fff;}
.slide-nav-btn.ready{background:var(--primary);animation:attnRing 1.6s ease-out infinite;}
.slide-dots{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center;}
.slide-dot{width:12px;height:12px;border-radius:50%;background:var(--border);border:none;
  cursor:pointer;padding:0;transition:.15s;}
.slide-dot.done{background:var(--cv-purple);}
.slide-dot.current{background:var(--cv-purple);outline:3px solid rgba(123,92,250,.32);}
@media(max-width:540px){.slide-nav-btn{padding:10px 14px;font-size:13px;}
.slide-dot{width:10px;height:10px;}}
.sp-overlay .sp-illust:has(> .celebrate){align-items:center !important;justify-content:center !important;padding-bottom:0;}
.sp-overlay .celebrate{
  margin:0;max-width:min(560px,90%);
  padding:clamp(22px,4vw,44px) clamp(26px,5vw,56px);
  border-radius:26px;box-shadow:0 18px 50px rgba(43,37,71,.20);
  animation:celIn .45s cubic-bezier(.2,1.25,.4,1) both;
}
.sp-overlay .celebrate .big-star{
  font-size:clamp(68px,13vw,136px);line-height:1;
  filter:drop-shadow(0 8px 18px rgba(123,92,250,.35));
  animation:celStar .7s cubic-bezier(.2,1.4,.4,1) both;
}
.sp-overlay .celebrate .cel-title{font-size:clamp(23px,4.4vw,42px);margin-top:10px;line-height:1.25;}
.sp-overlay .celebrate .cel-sub{font-size:clamp(13px,2.3vw,19px);margin-top:9px;line-height:1.6;}
body.slide-mode .sec-header{padding:15px 20px;}
body.slide-mode .sec-text .sec-name{font-size:18px;}
body.slide-mode .step-card{padding:18px 20px;}
body.slide-mode .chara-line .cl-bubble{font-size:14.5px;line-height:1.85;}
body.slide-mode .step-desc{line-height:1.95;}
body.slide-mode .case-thumb .ct-title{font-size:16px;}
body.slide-mode .case-thumb .ct-play i{width:60px;height:60px;font-size:22px;}
.meter-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:34px;height:34px;border-radius:50%;
  background:#fff;border:3px solid var(--c,var(--primary));box-shadow:0 3px 9px rgba(0,0,0,.2);cursor:pointer;}
.sp-illust.screen-mode{flex-direction:column;align-items:center !important;justify-content:center !important;gap:10px;padding:112px 12px 26px !important;}
.scr-bar{font-size:clamp(13px,1.5vw,15px);font-weight:900;color:#fff;background:linear-gradient(90deg,#3D8BE0,var(--primary));padding:8px 14px;}
.scr-bar i{margin-right:6px;}
.scr-game{padding:18px 16px;background:repeating-linear-gradient(135deg,var(--ink),var(--ink) 14px,var(--ink) 14px,var(--ink) 28px);}
.scr-pop{position:relative;background:#fff;border-radius:16px;padding:18px 18px 16px;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.35);}
.tone-prize .scr-pop{background:linear-gradient(180deg,var(--sun-soft),#FFFFFF 60%);border:3px solid var(--sun);}
.tone-warn .scr-pop{background:linear-gradient(180deg,var(--coral-soft),#FFFFFF 60%);border:3px solid var(--coral);}
.scr-x{position:absolute;top:6px;right:10px;font-size:18px;font-weight:900;color:var(--ink3);}
.scr-pop .sp-icon{font-size:clamp(30px,5vw,42px);color:var(--sun);}
.tone-warn .scr-pop .sp-icon{color:var(--coral);}
.scr .sp-title{font-size:clamp(17px,2.4vw,22px);font-weight:900;margin:4px 0 6px;line-height:1.4;}
.tone-warn .sp-title{color:var(--coral-dk);}
.scr .sp-text{font-size:clamp(14px,1.8vw,17px);}
.scr-btns{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px;}
.scr-btn{display:inline-block;border-radius:99px;padding:8px 18px;font-weight:900;font-size:14px;background:var(--paper-2);color:var(--text2);}
.scr-btn.main{background:#FF6B35;color:#fff;box-shadow:0 3px 0 var(--sun-ink);}
.scr-mailbody{padding:12px 16px 16px;}
.scr-req{display:flex;gap:12px;align-items:center;padding:16px;}
.scr-req + .scr-btns{padding:0 16px 16px;margin-top:0;}
.scr-url{display:flex;align-items:center;gap:8px;margin:10px 12px 0;padding:7px 14px;border-radius:99px;background:var(--paper-2);
  font-family:Consolas,'Courier New',monospace;font-size:clamp(13px,1.6vw,16px);overflow-wrap:anywhere;}
.scr-browser .scr-url .fa-triangle-exclamation{color:var(--sun-dk);}
.scr-page{padding:12px 16px 16px;}
.scr-oya-note{width:min(100%,560px);background:var(--sun-soft);border:2px solid var(--sun);border-radius:14px;padding:8px 14px;font-size:clamp(14px,1.7vw,16px);
  font-weight:800;color:var(--sun-ink);line-height:1.6;animation:wcIn .3s ease .2s both;}
.scr-oya-note i{color:var(--sun-dk);margin-right:4px;}
.scr .sp-text{white-space:pre-line;}
.act-oh.done .scr-btn.oh-danger.reveal::after,.act-oh.done .sm-link.oh-danger.reveal::after{content:'おさない！';position:absolute;top:-12px;right:-10px;
  font-size:10px;font-weight:900;color:#fff;background:var(--coral);border-radius:99px;padding:0 6px;line-height:1.6;white-space:nowrap;}
.sp-back{font:inherit;display:inline-flex;align-items:center;gap:6px;margin-right:auto;border:2px solid var(--border);background:#fff;color:var(--text2);
  border-radius:99px;padding:9px 18px;font-size:14px;font-weight:900;cursor:pointer;}
.sp-back:hover{border-color:var(--line-2);color:var(--text);}
.sp-back .plane{font-size:11px;}
.send-row.back-only{justify-content:flex-start;}
.sp-progress .sp-bars span.jump{cursor:pointer;}
.sp-progress .sp-bars span.jump:hover{transform:scaleY(1.8);background:var(--primary-lt);}
.sp-progress .sp-bars span.seen{background:var(--tint-1);}
.sp-overlay .sp-progress .sp-bars span:not(.done):not(.current):not(.seen){opacity:.55;}
.sp-resume{position:absolute;top:calc(env(safe-area-inset-top,0px) + 140px);left:50%;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:10px;
  background:#fff;border-radius:99px;padding:6px 8px 6px 16px;font-size:14px;font-weight:900;color:var(--text);
  box-shadow:0 6px 18px rgba(0,0,0,.2);animation:wcIn .3s ease;transition:opacity .4s;}
.sp-resume i{color:var(--cv-purple);}
.sp-resume.hide{opacity:0;pointer-events:none;}
.sp-resume-top{font:inherit;font-size:13px;font-weight:900;border:none;border-radius:99px;padding:6px 12px;cursor:pointer;background:var(--primary-soft);color:var(--primary-dk);}
.sp-overlay .sp-progress span.jump{pointer-events:auto;position:relative;}
.sp-overlay .sp-progress span.jump::after{content:'';position:absolute;inset:-9px -3px;}
.scr-feed{padding:10px 12px 4px;background:var(--paper-2);display:flex;flex-direction:column;gap:10px;}
.scr-post{background:#fff;border-radius:14px;padding:10px 12px 12px;box-shadow:0 1px 0 rgba(43,37,71,.08);}
.pp-head{display:flex;align-items:center;gap:10px;}
.pp-ic{position:relative;flex:0 0 auto;width:36px;height:36px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;}
.pp-ic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.pp-who{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35;}
.pp-who b{font-size:clamp(14px,1.7vw,16px);}
.pp-meta{font-size:12.5px;color:var(--text2);font-weight:700;}
.pp-meta i{color:var(--coral);}
.pp-scope{flex:0 0 auto;font-size:12px;font-weight:900;color:var(--primary);background:var(--primary-soft);border-radius:99px;padding:3px 10px;}
.pp-text{margin-top:8px;font-size:clamp(14px,1.8vw,17px);font-weight:700;line-height:1.7;white-space:pre-line;}
.pp-photo{margin-top:8px;display:flex;gap:10px;align-items:center;border-radius:12px;padding:14px;background:linear-gradient(135deg,#E9F4FF,var(--primary-soft));
  border:2px dashed var(--line-2);font-size:clamp(13px,1.6vw,15px);font-weight:700;color:var(--ink);line-height:1.6;}
.pp-photo > i{font-size:26px;color:var(--primary);flex:0 0 auto;}
.scr-prof{padding:12px 16px 4px;}
.scr-btns-pad{padding:4px 16px 16px;}
.sp-bg-old{position:absolute;inset:0;z-index:0;pointer-events:none;background-size:cover;background-position:center;opacity:1;transition:opacity .7s ease;}
.sp-bg-old.go{opacity:0;}
.sp-place{position:absolute;inset:0;z-index:40;pointer-events:all;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--ink) 0%,var(--ink) 55%,#2C6E7E 100%);clip-path:inset(0 100% 0 0);transition:clip-path .45s cubic-bezier(.7,0,.3,1);}
.sp-place.in{clip-path:inset(0 0 0 0);}
.sp-place.out{clip-path:inset(0 0 0 100%);}
.sp-place-card{display:flex;flex-direction:column;align-items:center;gap:6px;color:#fff;opacity:0;transform:translateY(10px);transition:all .35s ease;}
.sp-place.show .sp-place-card{opacity:1;transform:none;}
.sp-place-card i{font-size:clamp(24px,3.4vw,34px);color:var(--tint-1);}
.sp-place-t{font-size:clamp(26px,4.6vw,46px);font-weight:900;letter-spacing:.08em;text-shadow:0 3px 12px rgba(0,0,0,.35);}
.sp-place-s{font-size:clamp(14px,2vw,20px);font-weight:700;opacity:.85;}
.sp-bust-wrap.enter{animation:bustIn .45s cubic-bezier(.2,.9,.3,1.1) both;}
.sp-bust-wrap.enter.two:nth-child(2){animation-delay:.08s;}
.sp-stage.sp-shake{animation:spShake .55s cubic-bezier(.36,.07,.19,.97);}
@media (prefers-reduced-motion: reduce){.sp-bust-wrap.enter,.sp-stage.sp-shake{animation:none;}
.sp-place,.sp-bg-old{transition-duration:.01s;}}
.pd-feed .pp-text,.pd-feed .pp-photo{cursor:pointer;}
.pp-img{margin-top:8px;border-radius:12px;overflow:hidden;background:var(--paper-2);line-height:0;}
.pp-img img{width:100%;max-height:min(42vh,360px);object-fit:contain;display:block;}
.pp-photo[hidden]{display:none !important;}
.scr-btn.main.pressable{cursor:pointer;animation:scrPress 1.4s ease-in-out infinite;}
.scr-btn.main.pressable.nudge{animation:scrPress 1.4s ease-in-out infinite, ohShake .4s;}
.scr-btn.main.done{background:var(--mint);box-shadow:0 3px 0 var(--mint-dk);}
.send-btn.wait{background:var(--paper-2);color:var(--text2);box-shadow:none;}
.late .chat-name-row,.late .chat-text,.late .send-row{animation:lateIn .4s ease var(--late,700ms) both;}
.late .chat-text{animation-name:lateInText;}
.late .chat-text{border-radius:8px;}
.pp-img{position:relative;}
.pp-zoom{position:absolute;right:8px;bottom:8px;font:inherit;font-size:13px;font-weight:900;line-height:1.2;color:#fff;background:rgba(43,37,71,.72);border:none;border-radius:99px;padding:6px 12px;cursor:pointer;}
.pp-zoom:hover{background:rgba(43,37,71,.9);}
.pp-modal{z-index:10050;}
.pp-modal-in{display:flex;flex-direction:column;align-items:flex-end;gap:8px;max-width:min(96vw,1100px);}
.pp-modal-in img{display:block;max-width:100%;max-height:calc(100vh - 100px);object-fit:contain;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.5);background:#fff;}
.nc-pw{position:relative;display:block;width:min(260px,100%);margin-top:8px;}
.nc-pw .nc-photo{margin-top:0;width:100%;}
.nc-pw .pp-zoom{right:6px;bottom:6px;font-size:12px;padding:4px 10px;}
.pp-likes{margin-top:6px;font-size:13px;font-weight:900;color:var(--primary-dk);}
.pp-likes i{margin-right:2px;}
.pp-removed{margin-top:8px;border-radius:10px;padding:8px 12px;background:var(--paper-2);color:var(--ink2);font-size:13px;font-weight:800;line-height:1.6;}
.pp-removed i{color:var(--coral-dk);margin-right:4px;}
.nc-icw{display:flex;flex-direction:column;align-items:center;gap:3px;flex-shrink:0;}
.nc-read{font-size:11px;font-weight:800;color:var(--ink3);line-height:1;letter-spacing:.05em;}
.scr .sp-text .fa-rules-img{display:block;max-height:min(56vh,520px);width:auto;max-width:100%;margin:0 auto;border-radius:10px;}
.pp-likes.up{position:relative;display:inline-block;}
.pp-likes.up b{display:inline-block;min-width:1.5em;}
.pp-likes.pop i{animation:likePop .3s ease;}
.pp-like-fly{position:absolute;bottom:100%;font-size:13px;font-weight:900;color:var(--primary-dk);pointer-events:none;animation:likeFly .9s ease-out forwards;}
.tl-think .pp-ic{width:34px;height:34px;}
.tl-post .pp-ic{width:30px;height:30px;font-size:13px;}
.tl-post .pp-text{font-size:14px;margin-top:6px;}
.tl-cm .pp-ic,.tl-cic{width:22px !important;height:22px !important;font-size:10px !important;}
@keyframes pbPop{0%{transform:scale(0) rotate(-25deg);opacity:0}60%{transform:scale(1.2) rotate(8deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@keyframes pbLeave{to{transform:scale(.4);opacity:0}}
@keyframes wcIn{from{opacity:0;transform:translateY(10px) scale(.97);}to{opacity:1;transform:none;}}
@keyframes dimIn{from{opacity:0;}to{opacity:1;}}
@keyframes attnRing{0%{box-shadow:0 0 0 0 rgba(123,92,250,.6);}70%{box-shadow:0 0 0 16px rgba(123,92,250,0);}100%{box-shadow:0 0 0 0 rgba(123,92,250,0);}}
@keyframes attnBob{0%,100%{transform:scale(1);}50%{transform:scale(1.1);}}
@keyframes ncIn{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
@keyframes rewindIn{0%{filter:sepia(1) blur(3px);transform:scale(.96);}100%{filter:none;transform:none;}}
@keyframes celIn{0%{opacity:0;transform:scale(.62)}100%{opacity:1;transform:scale(1)}}
@keyframes celStar{0%{transform:scale(0) rotate(-40deg)}60%{transform:scale(1.22) rotate(12deg)}100%{transform:scale(1) rotate(0)}}
@keyframes bustIn{from{opacity:0;transform:translateY(24px) scale(.96);}to{opacity:1;transform:none;}}
@keyframes spShake{10%,90%{transform:translateX(-2px);}20%,80%{transform:translateX(4px);}30%,50%,70%{transform:translateX(-7px);}40%,60%{transform:translateX(7px);}}
@keyframes ohShake{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes scrPress{0%,100%{box-shadow:0 3px 0 var(--sun-ink),0 0 0 0 rgba(255,107,53,.55)}50%{box-shadow:0 3px 0 var(--sun-ink),0 0 0 10px rgba(255,107,53,0)}}
@keyframes lateIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes lateInText{0%{opacity:0;transform:translateY(6px)}60%{opacity:1;transform:none;background:rgba(255,201,60,.35)}100%{opacity:1;background:transparent}}
@keyframes likePop{40%{transform:scale(1.5)}}
@keyframes likeFly{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-26px)}}
/* ============================================================
   ここから：この講座用の上書き（v1.2 の DOM に合わせる）
   ============================================================ */
/* 縦スクロール前提の演出は止める（ベール・ロック表示） */
body.slide-mode #progress-veil,
body.slide-mode .veil-edge,
body.slide-mode .veil-edge-label{display:none !important;}
body.slide-mode .sec-wrap.locked{opacity:1 !important;}
body.slide-mode .guide-scroll{overflow:hidden !important;display:flex;flex-direction:column;min-height:0;}
body.slide-mode .guide-content > .ga-spacer{display:none;}
body.slide-mode .slide > .sec-wrap{margin:0 auto;}
body.slide-mode .col-guide{min-width:0;}
/* ノベルだけで進む節は、「わかった！」を 隠す（ノベルが おわると 自動で 進む） */
body.slide-mode .sec-wrap.ga-auto .done-btn,
body.slide-mode .sec-wrap.ga-auto .done-prompt{display:none !important;}
/* 起動カード（▶）を 中央に */
.ga-novel{margin:6px auto 4px;}
.ga-novel .case-thumb{max-width:min(100%,560px);margin-left:auto;margin-right:auto;}
body.slide-mode .ga-novel .case-thumb{max-width:min(100%,560px);}
.ga-novel .case-thumb .ct-img-placeholder{background:linear-gradient(135deg,var(--primary-soft) 0%,var(--primary-soft) 55%,var(--tint-3) 100%);}
.ga-novel .case-thumb .ct-title{font-size:18px;}
.ga-novel .case-thumb.seen .ct-play{opacity:.85;}
/* 場面の中の 活動（えらぶ・なかまわけ など） */
.sp-panel .ga-act-host{width:100%;max-height:min(46vh,420px);overflow-y:auto;text-align:left;padding:2px 2px 6px;}
.sp-panel .ga-act-host .ga-act{margin:6px 0 8px;}
.sp-panel .ga-act-host .ga-mock{margin:0 0 8px;}
.sp-panel .ga-act-host .promise-cards{margin:4px 0;}
.sp-panel .ga-act-host .ga-plan{margin:6px 0 4px;}
.sp-panel .send-btn:disabled{opacity:.45;cursor:default;}
.sp-panel .send-btn.ready{animation:gaReadyPulse 1.6s ease-in-out infinite;}
@keyframes gaReadyPulse{0%,100%{box-shadow:0 0 0 0 rgba(123,92,250,.45);}50%{box-shadow:0 0 0 8px rgba(123,92,250,0);}}
/* アーティが ほどけて きえる */
.sp-bust-wrap.dissolve .sp-bust{animation:gaDissolve 1.8s ease forwards;}
@keyframes gaDissolve{0%{opacity:1;filter:blur(0);transform:none;}60%{opacity:.5;filter:blur(2px);}100%{opacity:0;filter:blur(8px);transform:translateY(-14px) scale(.96);}}
/* g1：どうぐ が ひらいている あいだは スライドを 少し せまく見せる（既存の .tool-open に まかせる） */
body.slide-mode .layout.tool-open .slide > .sec-wrap{max-width:100%;}
/* スライドの ナビ：押せない「つぎへ」は うすく */
.slide-nav-btn:disabled{opacity:.4;cursor:default;box-shadow:none;}
.slide-dot.locked{opacity:.35;cursor:default;}
@media (prefers-reduced-motion: reduce){
  .sp-bust-wrap.dissolve .sp-bust{animation:none;opacity:0;}
  .sp-panel .send-btn.ready{animation:none;}
}

/* ── 見た目の調整（実機確認ぶん） ── */
body.slide-mode .guide-top-link{display:none !important;}              /* 「TOPにもどる」は もくじ（☰）に あるので スライドでは 隠す */
.ga-novel .case-thumb .ct-img-wrap,
body.slide-mode .ga-novel .case-thumb .ct-img-wrap{aspect-ratio:16/6;max-height:190px;}                         /* 「つぎへ」と かさならない 高さへ */
/* 活動の 場面：立ち絵を ちいさく して、操作の ひろさを 確保 */
.sp-illust.act-mode{flex:0 0 auto;max-height:20vh;overflow:hidden;}
.sp-illust.act-mode .sp-bust-wrap{height:19vh;}
.sp-illust.act-mode .sp-bust{height:100%;width:auto;max-height:19vh;}
.sp-panel .ga-act-host{max-height:min(58vh,520px);}
/* 活動ボタンの 文字色（lesson.css の .quiz-btn.correct が 白字なので、うすい 地に 白字に ならないよう 固定） */
.sp-panel{color:var(--text);}
.ga-act .quiz-btn,.ga-q .quiz-btn{color:var(--ink);}
.ga-act .quiz-btn.correct,.ga-q .quiz-btn.correct{color:var(--mint-dk);background:var(--mint-soft);border-color:var(--mint);transform:none;margin-left:0;margin-right:0;width:100%;box-sizing:border-box;}
.ga-act .quiz-btn.wrong,.ga-q .quiz-btn.wrong{color:var(--coral-dk);background:var(--coral-soft);border-color:var(--coral);}
.ga-act .quiz-btn.on{color:var(--ink);}
.ga-act .quiz-btn,.ga-q .quiz-btn{box-sizing:border-box;}
.sp-illust.act-mode{padding-top:34px;box-sizing:border-box;max-height:calc(20vh + 34px);}

/* 第1回 v2.3：場面が 多い セクション（19）でも 進行ドットが 左上の ステラの アイコンに かぶらない ように、せまい 画面では 右へ よせて ちぢめる */
@media (max-width:480px){.sp-overlay .sp-progress{left:calc(50% + 34px);max-width:calc(100% - 92px);gap:8px;}.sp-bars{gap:4px;}.sp-overlay .sp-progress span{min-width:4px;}}

/* 第1回 v2.4：立ち絵は 最大3人（天・あい・ステラ／アーティ）。ならびは いつも 同じ */
.sp-bust-wrap.two:not(:first-child):not(:last-child){margin-right:-24px;z-index:1;}
.sp-stage-full .sp-bust-wrap.two:not(:last-child){margin-right:-6%;}
.sp-illust.three .sp-bust-wrap{max-width:31%;}
.sp-bust-wrap.enter.two:nth-child(3){animation-delay:.16s;}

/* 第1回 v2.5：活動（選択肢・なかまわけ・入力）が 広い 画面で 横長に なりすぎない／ホバーで 拡大して 枠に 切られない */
.sp-panel .ga-act-host{max-width:min(100%,840px);margin-left:auto;margin-right:auto;overflow-x:hidden;}
.ga-act .quiz-btn,.ga-q .quiz-btn{transform:none !important;transition:background .15s,border-color .15s,box-shadow .15s;}
.ga-act .quiz-btn:hover:not(:disabled):not(.correct):not(.wrong),.ga-q .quiz-btn:hover:not(:disabled):not(.correct):not(.wrong){background:var(--primary-soft);border-color:var(--primary);color:var(--ink);box-shadow:0 3px 10px rgba(123,92,250,.22);}
.ga-act .quiz-btn.correct:hover,.ga-q .quiz-btn.correct:hover{color:var(--mint-dk);}
.ga-act .quiz-btn.wrong:hover,.ga-q .quiz-btn.wrong:hover{color:var(--coral-dk);}
/* 第1回 v2.6：ノベルの「えらぶ場面」（engine の choice）。i1 の「AIは どんな もの」で 使う。
   見た目は sample の えらぶ場面と おなじ つくり。ホバーは 拡大せず うすい むらさき（v2.5 の 決まり）。
   正解の ない 場面（neutral）は ほめ文字も ばつも 出さず、えらんだ ものへの ひとことだけ。 */
.sp-panel .choice-q,.sp-panel .choice-opts,.sp-panel .choice-feedback{max-width:min(100%,840px);margin-left:auto;margin-right:auto;box-sizing:border-box;}
.sp-panel .choice-opts{padding-right:0;}
.choice-q{display:flex;align-items:flex-start;gap:10px;font-size:clamp(16px,2.2vw,21px);font-weight:900;color:var(--ink);line-height:1.6;margin-bottom:14px;}
.cq-badge{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#FF6FA5,#8E7CF0);color:#fff;font-size:16px;box-shadow:0 3px 8px rgba(142,124,240,.35);}
.cq-text{padding-top:3px;}
.choice-opts{display:flex;flex-direction:column;gap:8px;}
.choice-opt{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;text-align:left;font:inherit;font-size:clamp(14px,1.7vw,18px);line-height:1.5;color:var(--ink);padding:9px 14px;border-radius:16px;border:2px solid #E6E1F7;background:#fff;box-shadow:0 2px 0 #E6E1F7;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;}
.choice-opt:hover:not(:disabled){background:var(--primary-soft);border-color:#B9A6F2;}
.co-key{flex:0 0 auto;width:30px;height:30px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:15px;color:#7C5CD6;background:#F1ECFF;}
.co-label{flex:1;}
.choice-opt:disabled{cursor:default;}
.choice-opt:disabled:not(.picked){opacity:.45;}
.choice-opt.picked.t-good{border-color:#3CB97A;background:#F1FBF5;}
.choice-opt.picked.t-good .co-key{background:#3CB97A;color:#fff;}
.choice-opt.picked.t-mid{border-color:#F5B31E;background:#FFFAEB;}
.choice-opt.picked.t-mid .co-key{background:#F5B31E;color:#fff;}
.choice-opt.picked.t-low,.choice-opt.picked.t-neutral{border-color:#B9A6F2;background:#F7F4FF;}
.choice-opt.picked.t-low .co-key,.choice-opt.picked.t-neutral .co-key{background:#8E7CF0;color:#fff;}
.choice-opt.is-best{border-style:dashed;border-color:#3CB97A;}
.choice-feedback{margin-top:10px;padding:10px 14px;border-radius:16px;background:#fff;border:2px solid #E6E1F7;font-size:clamp(15px,1.9vw,18px);line-height:1.7;color:var(--ink);animation:wcIn .3s ease;}
.choice-feedback.t-good{border-color:#3CB97A;background:#F1FBF5;}
.choice-feedback.t-mid{border-color:#F5B31E;background:#FFFAEB;}
.choice-feedback.t-low,.choice-feedback.t-neutral{border-color:#B9A6F2;background:#F7F4FF;}
.choice-feedback.t-neutral{display:flex !important;align-items:center;gap:12px;}   /* engine が display:block を 直接 書くので !important */
.choice-feedback.t-neutral .cf-face{width:44px;height:44px;}
.choice-feedback.t-neutral .cf-head{margin-bottom:0;flex:0 0 auto;}
.choice-feedback.t-neutral .cf-text{flex:1;}

/* v2.7：ノベル内の 選択肢（やりなおし）。まちがえた ボタンは うすく して もう一度 えらべる */
.choice-opt.is-wrong { opacity: .42; text-decoration: none; background: var(--paper-2, #f4f2fb); }
.choice-opt.is-wrong .co-key { background: var(--ink3, #aaa); }
.choice-feedback.t-low .cf-text { color: var(--ink); }
.ga-mock { margin: 0 0 10px; }

/* ── プロローグ（テロップが 1行ずつ 出る） v2.25 ── */
.sp-overlay .sp-illust:has(> .telop){align-items:center !important;justify-content:center !important;padding-bottom:0;}
.telop{display:flex;flex-direction:column;gap:clamp(10px,2.4vh,22px);align-items:center;text-align:center;padding:24px clamp(16px,5vw,60px);max-width:92%;margin:0 auto;cursor:pointer;
  background:rgba(20,16,44,.55);border-radius:22px;backdrop-filter:blur(2px);}
.telop-l{margin:0;color:#fff;font-weight:800;line-height:1.9;letter-spacing:.06em;font-size:clamp(18px,3.1vw,32px);text-shadow:0 2px 10px rgba(0,0,0,.5);opacity:0;transform:translateY(8px);animation:telopIn .9s ease forwards;}
.telop.all .telop-l{animation:none;opacity:1;transform:none;}
@keyframes telopIn{to{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){.telop-l{animation:none;opacity:1;transform:none;}}

/* セリフの 1文字ずつ 表示 v2.26 */
.chat-text .tw{opacity:0;animation:twIn .14s ease-out forwards;}
@keyframes twIn{from{opacity:0;transform:translateY(3px);}to{opacity:1;transform:none;}}
