/* make_next.py が story.css・story_r1.css・story_r2.css をまとめた（手で直さない） */
/* AI の「1つの依頼を追う」舞台 v3（2026-11-14）。見本 45R の動き・長さを借り、絵柄は章で切り替える。名前は st-。
 * 既定（html に st-on が無い）は縦に読む記事。st-on は head の小さなスクリプトが描く前に付ける（動きを減らす設定では付けない）。 */
.st { --st-ink: #eef0ff; --st-sub: #b9bde0; --st-bg: #0d0b24; --st-accent: #8f7dff; --st-gold: #f2c46b; --st-shu: #c8432f;
  position: relative; background: var(--st-bg); color: var(--st-ink); }

/* ── 既定: 縦に読む記事 ── */
.st-stage { position: relative; }
.st-world { display: grid; gap: 28px; padding: 40px var(--side, 20px) 56px; }
.st-bgs, .st-front, .st-light, .st-dots, .st-hint, .st-prog, .st-open, .st-lens, .st-toc, .st-floor, .st-wall, .st-tool, .st-week, .st-ringcap { display: none; }
.st-panel, .st-ask { max-width: 40em; }
.st-kicker, .st-no { font-family: var(--font-en-display, sans-serif); color: var(--st-accent); letter-spacing: .12em; }
.st-no { font-weight: 200; font-size: 56px; line-height: 1; }
.st-h1 { margin-top: 8px; font-size: clamp(25px, 3vw, 40px); font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.st-h2 { margin-top: 8px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.45; }
.st-p { margin-top: 12px; font-size: 16px; line-height: 2; }
.st-notice { margin-top: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.8; border: 1px solid rgba(185, 189, 224, .4); }
.st-link { display: inline-flex; gap: 12px; padding: 6px 0; border-bottom: 2px solid var(--st-gold); color: var(--st-ink); font-weight: 700; text-decoration: none; }
.st-role { margin: 0; max-width: 420px; }
.st-role img, .st-tool img { display: block; width: 100%; height: auto; border-radius: 6px; }
.st-role figcaption { margin-top: 8px; font-size: 14px; color: var(--st-sub); }
.st-role figcaption span { margin-right: 8px; font-family: var(--font-en-display, sans-serif); color: var(--st-accent); }
.st-ring__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.st-ring__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.st-ring__cap h3 { margin-top: 8px; font-size: 17px; }
.st-ring__cap p { margin-top: 4px; font-size: 14px; line-height: 1.8; color: var(--st-sub); }
.st-room { display: grid; gap: 6px; padding: 20px; background: rgba(143, 125, 255, .12); color: var(--st-ink); text-decoration: none; border-radius: 6px; }
.st-room__t { font-size: 18px; font-weight: 700; }
.st-room__s { font-size: 14px; line-height: 1.8; color: var(--st-sub); }
.st-room__go { font-weight: 700; color: var(--st-gold); }
.st-btn { display: inline-flex; gap: 14px; align-items: center; padding: 16px 30px; border-radius: 999px; background: var(--st-gold); color: #1a1430; font-weight: 700; text-decoration: none; }
.st-ask__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; }
.st-ask__nav span { font-family: var(--font-en-display, sans-serif); color: var(--st-sub); letter-spacing: .12em; }
.st-ask__nav a { color: var(--st-ink); }

/* ── 舞台（st-on） ── */
html.st-on .st { height: var(--st-len, 6000vh); }
html.st-on .st-stage { position: sticky; top: var(--hd, 64px); height: calc(100svh - var(--hd, 64px)); overflow: hidden; overflow: clip; perspective: var(--st-persp, 1100px); perspective-origin: 50% 50%; }
html.st-on .st-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; padding: 0; display: block; transform-style: preserve-3d; will-change: transform; z-index: 2; }
html.st-on .st-obj { position: absolute; left: 0; top: 0; margin: 0; transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, opacity; opacity: 0; visibility: hidden; }

/* 奥の景色 */
html.st-on .st-bgs { display: block; position: absolute; inset: 0; z-index: 0; }
.st-bg { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.st-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; transform-origin: 50% 50%; }
.st-bg--space { background: radial-gradient(60% 50% at 50% 55%, rgba(110, 90, 230, .32), transparent 70%), radial-gradient(40% 35% at 80% 20%, rgba(242, 196, 107, .10), transparent 70%), linear-gradient(#0a0820, #120f33 60%, #0b0a1f); }
.st-bg--space::before, .st-bg--space::after { content: ""; position: absolute; inset: -30%; background: radial-gradient(30% 22% at 30% 40%, rgba(143, 125, 255, .28), transparent 70%), radial-gradient(26% 20% at 70% 62%, rgba(80, 200, 220, .16), transparent 70%); filter: blur(30px); animation: st-aurora 18s ease-in-out infinite alternate; }
.st-bg--space::after { background: radial-gradient(28% 24% at 62% 30%, rgba(242, 196, 107, .14), transparent 70%), radial-gradient(30% 20% at 25% 75%, rgba(200, 120, 255, .18), transparent 70%); animation-duration: 23s; animation-direction: alternate-reverse; }
@keyframes st-aurora { from { transform: translate(-4%, 2%) rotate(-4deg) scale(1); } to { transform: translate(5%, -3%) rotate(5deg) scale(1.15); } }
.st-bg--hall > img { filter: saturate(1.05); }
.st-bg--hall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 55%, transparent 40%, rgba(8, 6, 26, .55)); }
.st-dawn { position: absolute; inset: 0; background: linear-gradient(#2a1d5c 0%, #8a4e7c 34%, #f0a868 55%, rgba(240, 168, 104, 0) 72%); opacity: 0; will-change: opacity; }
.st-sun { position: absolute; left: 80%; top: 62%; width: 18vmin; height: 18vmin; margin: -9vmin; border-radius: 50%; background: radial-gradient(circle, #fff7df 0 30%, #ffd78a 45%, rgba(255, 190, 110, 0) 70%); opacity: 0; will-change: transform, opacity; }
.st-streaks { position: absolute; inset: 0; }
.st-streak { position: absolute; left: -40%; height: 2px; width: 32%; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 210, 140, .95), #fff); animation: st-run linear infinite; }
.st-streak.is-stop { animation-play-state: paused; opacity: .25; filter: grayscale(1); }
@keyframes st-run { to { transform: translateX(460%); } }
.st-bg--plan { background: radial-gradient(80% 70% at 50% 40%, #12305e, #071630 70%); }
.st-plan-glow { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(120, 190, 255, .07) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(120, 190, 255, .07) 0 1px, transparent 1px 40px); }
.st-bg--gate > img { transform-origin: 50% 57%; }
.st-bg--white { background: radial-gradient(70% 60% at 50% 45%, #ffffff, #eeeaf7 70%, #e2dcf0); }
.st-bg--end { background: radial-gradient(60% 50% at 50% 55%, rgba(110, 90, 230, .3), transparent 70%), #0b0a1f; }

/* 開幕は JS を待たずに見える（動き出すと JS が濃さを上書きする） */
html.st-on .st-bg--space { opacity: 1; visibility: visible; }
html.st-on .st-open { opacity: 1; visibility: visible; }
/* 開幕 */
html.st-on .st-open { display: grid; justify-items: center; gap: 10px; width: 600px; margin: -150px 0 0 -300px; text-align: center; pointer-events: none; }
.st-open__en { font-family: var(--font-en-display, sans-serif); font-weight: 200; font-size: clamp(90px, 16vh, 150px); line-height: 1; letter-spacing: .2em; padding-left: .2em; color: #fff; }
.st-open__ja { font-size: 15px; letter-spacing: .4em; color: var(--st-sub); animation: st-rise 1.4s cubic-bezier(.2, .7, .2, 1) .8s both; }
@keyframes st-rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* 光と点 */
html.st-on .st-light { display: block; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; transform-style: preserve-3d; will-change: transform, opacity;
  background: radial-gradient(circle, #fff 0 22%, #ffe6ad 34%, rgba(242, 196, 107, .5) 52%, transparent 72%); box-shadow: 0 0 30px 10px rgba(242, 196, 107, .35), 0 0 80px 30px rgba(143, 125, 255, .25); }
html.st-on .st-light::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(242, 196, 107, .5); animation: st-pulse 2.2s ease-out infinite; }
@keyframes st-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
html.st-on .st-dots, html.st-on .st-field { display: block; position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.st-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ffe2a0; box-shadow: 0 0 8px 2px rgba(242, 196, 107, .6); opacity: 0; will-change: transform, opacity; }
.st-dot--v { background: #cfc6ff; box-shadow: 0 0 8px 2px rgba(143, 125, 255, .7); }
.st-dot--c { background: #9fe6ff; box-shadow: 0 0 8px 2px rgba(120, 200, 255, .7); }
.st-mote { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #b9b2ff; opacity: .55; box-shadow: 0 0 6px 1px rgba(143, 125, 255, .5); }
.st-tunnel .st-dot { width: 8px; height: 8px; left: -4px; top: -4px; box-shadow: none; }
.st-tring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(242, 196, 107, .7); border-width: 2px; opacity: 0; will-change: transform, opacity; }
.st-float { position: absolute; left: -110px; top: -82px; width: 220px; max-width: none; height: 165px; object-fit: cover; border-radius: 8px; opacity: 0; visibility: hidden; filter: saturate(.8); box-shadow: 0 20px 50px rgba(60, 40, 140, .18); will-change: transform, opacity; }
.st-mote--g { background: #ffe2a0; box-shadow: 0 0 6px 1px rgba(242, 196, 107, .5); }

/* 文の板 */
html.st-on .st-panel, html.st-on .st-ask { width: min(540px, 86vw); margin-left: calc(min(540px, 86vw) / -2); translate: 0 -50%; padding: 34px 38px; background: rgba(16, 13, 44, .94); border: 1px solid rgba(143, 125, 255, .35); border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
html.st-on .st-panel--lead { width: min(600px, 88vw); margin-left: calc(min(600px, 88vw) / -2); background: transparent; border: 0; box-shadow: none; padding: 0; }
html.st-on .st-panel--lead .st-h1 { font-size: clamp(28px, 4.2vh, 46px); }
html.st-on .st-panel--lead .st-p { color: var(--st-sub); }
html.st-on .st-panel--white, html.st-on .st-ask { }
html.st-on .st-panel--white { background: rgba(255, 255, 255, .92); color: #1c1a36; border-color: rgba(81, 64, 200, .25); box-shadow: 0 30px 80px rgba(60, 40, 140, .18); }
html.st-on .st-panel--white .st-notice { color: #3b3860; border-color: rgba(81, 64, 200, .3); }
html.st-on .st-ask { background: transparent; border: 0; box-shadow: none; text-align: center; }
html.st-on .st-ask__nav { justify-content: center; }

/* 役割の札・道具 */
html.st-on .st-role { width: min(340px, 74vw); margin-left: calc(min(340px, 74vw) / -2); translate: 0 -50%; padding: 10px 10px 12px; background: #17143a; border: 1px solid rgba(143, 125, 255, .35); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); --gb-c1: #f2c46b; --gb-c2: #b48cff; }
html.st-on .st-role img { aspect-ratio: 4 / 3; object-fit: contain; background: #0b0920; border-radius: 4px; }
html.st-on .st-role figcaption { font-size: 15px; color: var(--st-ink); font-weight: 700; }
html.st-on .st-role--check { width: min(400px, 80vw); margin-left: calc(min(400px, 80vw) / -2); border-color: rgba(242, 196, 107, .6); overflow: hidden; }
html.st-on .st-role--wide { width: min(720px, 90vw); margin-left: calc(min(720px, 90vw) / -2); }
html.st-on .st-role--wide img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
html.st-on .st-lens { display: block; position: absolute; left: 30%; top: 20%; width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--st-gold); box-shadow: 0 0 0 9999px rgba(10, 8, 30, .28), 0 0 30px rgba(242, 196, 107, .5); animation: st-scan 4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes st-scan { from { transform: translate(-40px, -10px); } to { transform: translate(90px, 120px); } }
html.st-on .st-tool { display: block; width: min(300px, 62vw); margin-left: calc(min(300px, 62vw) / -2); translate: 0 -50%; padding: 6px; background: #0c2244; border: 1px solid rgba(120, 190, 255, .55); border-radius: 6px; box-shadow: 0 0 24px rgba(80, 170, 255, .35); }
html.st-on .st-tool img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* 設計図の床と壁 */
html.st-on .st-floor { display: block; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; transform-origin: 50% 50%; background: repeating-linear-gradient(0deg, rgba(120, 190, 255, .22) 0 1px, transparent 1px 80px), repeating-linear-gradient(90deg, rgba(120, 190, 255, .22) 0 1px, transparent 1px 80px); opacity: .55; }
html.st-on .st-wall { display: block; width: min(900px, 120vw); height: min(540px, 70vh); margin: calc(min(540px, 70vh) / -2) 0 0 calc(min(900px, 120vw) / -2); }
.st-wall svg { width: 100%; height: 100%; overflow: visible; }
.st-wall path { fill: none; stroke: #8fd0ff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); filter: drop-shadow(0 0 4px rgba(120, 200, 255, .8)); vector-effect: non-scaling-stroke; }

/* 週の輪 */
html.st-on .st-week { display: block; width: 360px; height: 360px; margin: -180px 0 0 -180px; }
.st-week__ring { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); }
.st-week__ring li { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 220, 160, .6); color: #fff; font-weight: 700; background: rgba(20, 16, 50, .5); }
.st-week__ring li { transform: rotate(calc(var(--i) * 51.43deg)) translateY(-150px) rotate(calc(var(--i) * -51.43deg - var(--rot, 0deg))); }
.st-week__ring li:nth-child(1) { --i: 0; } .st-week__ring li:nth-child(2) { --i: 1; } .st-week__ring li:nth-child(3) { --i: 2; } .st-week__ring li:nth-child(4) { --i: 3; }
.st-week__ring li:nth-child(5) { --i: 4; } .st-week__ring li:nth-child(6) { --i: 5; } .st-week__ring li:nth-child(7) { --i: 6; }
@media (max-width: 600px) { .st-week__ring li { transform: rotate(calc(var(--i) * 51.43deg)) translateY(-112px) rotate(calc(var(--i) * -51.43deg - var(--rot, 0deg))); } }
.st-week__ring li.is-sun { background: var(--st-gold); color: #1a1430; box-shadow: 0 0 24px rgba(242, 196, 107, .8); }
.st-week__a, .st-week__b { position: absolute; display: grid; gap: 2px; justify-items: center; padding: 6px 14px; background: rgba(10, 8, 30, .6); border-radius: 4px; font-size: 15px; letter-spacing: .08em; color: #fff; text-shadow: 0 0 12px rgba(0, 0, 0, .8); white-space: nowrap; }
.st-week__a b, .st-week__b b { font-size: 20px; letter-spacing: .2em; }
.st-week__a { left: 50%; top: -86px; transform: translateX(-50%); }
.st-week__b { left: 50%; bottom: -86px; transform: translateX(-50%); }
.st-week__b b { color: var(--st-gold); }

/* 作品の輪（回る写真の輪の形を舞台で回す） */
html.st-on .st-ring { display: block; width: 0; height: 0; }
html.st-on .st-ring__track { display: block; position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateY(var(--ring, 0deg)); }
html.st-on .st-ring__item { position: absolute; left: calc(var(--rw) / -2); top: calc(var(--rw) * -0.375); width: var(--rw, 260px); transform: rotateY(var(--a)) translateZ(var(--rr)); backface-visibility: hidden; }
html.st-on .st-ring__item img { box-shadow: 0 20px 50px rgba(60, 40, 140, .25); border: 1px solid rgba(81, 64, 200, .2); }
html.st-on .st-ring__cap { display: none; }
html.st-on .st-ringcap { display: block; width: min(560px, 88vw); margin-left: calc(min(560px, 88vw) / -2); color: #1c1a36; text-align: center; }
.st-ringcap h3 { font-size: 20px; font-weight: 700; }
.st-ringcap .d { margin-top: 2px; font-size: 13px; color: #6a6790; }
.st-ringcap p { margin-top: 6px; font-size: 15px; line-height: 1.85; color: #2c2950; }
.st-ringcap .n { font-size: 13px; color: #6a6790; }
.st-ringcap .c { margin-top: 8px; font-family: var(--font-en-display, sans-serif); font-size: 13px; letter-spacing: .2em; color: #5140c8; }

/* 研究の部屋 */
html.st-on .st-rooms-h { display: block; width: min(600px, 90vw); margin-left: calc(min(600px, 90vw) / -2); text-align: center; color: #1c1a36; font-size: clamp(26px, 4vh, 40px); font-weight: 700; }
html.st-on .st-room { display: grid; gap: 12px; width: min(600px, 86vw); margin-left: calc(min(600px, 86vw) / -2); translate: 0 -50%; padding: 44px 46px; background: #fff; color: #1c1a36; border: 1px solid rgba(81, 64, 200, .25); border-radius: 12px; box-shadow: 0 30px 70px rgba(60, 40, 140, .2); }
html.st-on .st-room__s { color: #4a4770; font-size: 16px; }
html.st-on .st-room__t { font-size: clamp(24px, 3.4vh, 34px); }
.st-room__no { font-family: var(--font-en-display, sans-serif); font-weight: 200; font-size: 64px; line-height: 1; color: #5140c8; }
.st-room__no { display: none; }
html.st-on .st-room__no { display: block; }
html.st-on .st-room__go { color: #5140c8; }

/* 手前の演出 */
html.st-on .st-front { display: block; position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.st-fx { position: absolute; opacity: 0; visibility: hidden; }
.st-marquee { left: 0; right: 0; top: 14%; transform: rotate(-4deg); font-size: clamp(34px, 7.5vh, 80px); font-weight: 300; letter-spacing: .08em; color: rgba(255, 255, 255, .82); white-space: nowrap; text-shadow: 0 0 10px rgba(242, 196, 107, .25); }
.st-marquee__unit { display: flex; gap: .5em; padding-right: .5em; }
.st-marquee__unit i { font-style: normal; font-size: .5em; align-self: center; color: rgba(242, 196, 107, .8); }
/* 依頼の光の案内（開幕の2行と、章ごとの「いま依頼がどこにいるか」） */
.st-tell { left: 50%; top: calc(50% + 46px); transform: translateX(-50%); font-size: clamp(17px, 2.4vh, 22px); letter-spacing: .14em; color: #fff; white-space: nowrap; text-shadow: 0 0 14px rgba(10, 8, 30, .8); }
.st-chap { left: clamp(16px, 4vw, 48px); top: 22px; display: flex; align-items: baseline; gap: 12px; max-width: calc(100% - 200px); padding: 8px 14px; background: rgba(12, 10, 34, .62); border-left: 2px solid var(--st-gold); color: #fff; font-size: clamp(13px, 1.9vh, 16px); letter-spacing: .06em; }
.st-chap span { font-family: var(--font-en-display, sans-serif); color: var(--st-gold); letter-spacing: .14em; }
.st-chap b { font-weight: 500; }
.st-q { left: 50%; top: 22%; transform: translateX(-50%); font-size: clamp(30px, 6vh, 64px); font-weight: 700; letter-spacing: .12em; color: #fff; white-space: nowrap; text-shadow: 0 2px 30px rgba(20, 10, 50, .9); }
.st-stamp { left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; border: 8px solid var(--st-shu); border-radius: 10px; color: var(--st-shu); font: 700 52px/1 var(--font-en-display, sans-serif); background: rgba(255, 250, 240, .9); box-shadow: 0 0 0 4px rgba(255, 250, 240, .9); transform: rotate(-8deg) scale(var(--s, 1)); }
.st-flash { inset: 0; background: radial-gradient(circle at 50% 55%, #fff, #ffe9b8 40%, rgba(255, 220, 160, .6)); }
.st-burst { inset: 0; }
.st-burst i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 2px; will-change: transform, opacity; }

/* 案内・進み具合・目次 */
html.st-on .st-hint { display: block; position: absolute; left: 50%; bottom: 28px; z-index: 6; transform: translateX(-50%); font-size: 13px; letter-spacing: .3em; color: var(--st-sub); transition: opacity .6s; }
html.st-on .st-hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px auto 0; background: linear-gradient(var(--st-sub), transparent); animation: st-drop 1.6s ease-in-out infinite; }
@keyframes st-drop { from { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } to { transform: scaleY(0); transform-origin: bottom; } }
html.st-on .st-prog { display: block; position: absolute; right: 22px; top: 50%; z-index: 6; width: 2px; height: 120px; margin-top: -60px; background: rgba(185, 189, 224, .25); }
html.st-on .st-prog i { display: block; width: 100%; height: 100%; background: var(--st-gold); transform-origin: top; transform: scaleY(var(--st-done, 0)); }
html.st-on .st-toc { display: block; position: absolute; right: 14px; top: 16px; z-index: 7; }
.st-toc__btn { display: grid; grid-template-columns: repeat(3, 2px); gap: 4px; justify-items: center; padding: 8px; background: none; border: 0; color: var(--st-ink); cursor: pointer; }
.st-toc__btn i { width: 1.5px; height: 26px; background: currentColor; }
.st-toc__btn span { grid-column: 1 / -1; margin-top: 6px; writing-mode: vertical-rl; font-size: 13px; letter-spacing: .3em; }
.st-stage[data-tone="light"] .st-toc__btn, .st-stage[data-tone="light"] .st-hint { color: #2c2950; }
.st-toc__list { display: none; position: absolute; right: 0; top: 0; min-width: 250px; margin: 0; padding: 18px 22px; list-style: none; background: rgba(16, 13, 44, .97); border: 1px solid rgba(143, 125, 255, .4); border-radius: 6px; }
.st-toc.is-open .st-toc__list { display: grid; gap: 10px; }
.st-toc__list a { color: var(--st-ink); text-decoration: none; font-size: 15px; }
.st-toc__list a:hover, .st-toc__list a:focus-visible { text-decoration: underline; }

@media (max-width: 600px) {
  html.st-on .st-panel { padding: 24px 22px; }
  html.st-on .st-p { font-size: 15px; line-height: 1.9; }
  html.st-on .st-panel--lead .st-h1 { font-size: 26px; }
  html.st-on .st-prog { right: 6px; }
  .st-q { font-size: 28px; }
  .st-chap { top: 76px; left: 10px; gap: 8px; padding: 6px 10px; font-size: 12px; letter-spacing: 0; white-space: nowrap; max-width: calc(100% - 64px); }
  .st-tell { white-space: normal; width: 86vw; text-align: center; line-height: 1.7; }
  .st-week__a, .st-week__b { font-size: 13px; white-space: normal; width: 80vw; text-align: center; }
  html.st-on .st-week { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
}

/* 01 で作品の絵が出ている間の断り書き（作品の札が出る所には必ず置く・9/17） */
.st-note { left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, 92vw); padding: 8px 14px; background: rgba(10, 8, 30, .72); border: 1px solid rgba(185, 189, 224, .3); color: #dfe1f5; font-size: 12px; line-height: 1.7; text-align: center; }

/* 遠くへ飛ぶときの覆い（目次・End キー・再読み込み） */
.st-jump { inset: 0; background: radial-gradient(circle at 50% 55%, #fff, #ffe9b8 45%, rgba(40, 30, 90, .9)); }
.st-jump.is-on { animation: st-jumpcover .55s ease-out both; }
@keyframes st-jumpcover { 0% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

/* 縦に読む記事のときだけ出す断り書き（作品の絵より前に置く・舞台のときは手前の層の断り書きを使う） */
.st-fallback-note { padding: 12px 14px; font-size: 14px; line-height: 1.8; border: 1px solid rgba(185, 189, 224, .4); }
html.st-on .st-fallback-note { display: none; }

/* ── トップ用（2026-11-14） ── */
/* 開幕: 今のトップの映像。字が読めるように下を少し暗く */
.st-bg > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.st-reel-shade { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, rgba(8, 6, 26, .25), rgba(8, 6, 26, .7)); }
html.st-on .st-bg--reel { opacity: 1; visibility: visible; }
html.st-on .st-open--top { width: min(760px, 92vw); margin-left: calc(min(760px, 92vw) / -2); }
.st-open--top .st-open__en { font-size: min(18vh, 21vw, 170px); letter-spacing: .24em; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.st-open--top .st-open__ja { font-size: min(2.2vh, 3.6vw, 18px); letter-spacing: .12em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.st-credit { right: 16px; bottom: 12px; font-size: 11px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.st-fact { margin-top: 14px; font-size: 14px; color: var(--st-sub); letter-spacing: .06em; }
html.st-on .st-panel--lead .st-btn { margin-top: 18px; }
html.st-on .st-panel--lead { padding: 30px 34px; background: rgba(10, 8, 30, .62); border: 1px solid rgba(255, 255, 255, .18); }

/* 01 デザイン: デザインのページと同じ、紫・青緑・桃の宇宙 */
.st-bg--design { background:
  radial-gradient(45% 40% at 22% 30%, rgba(40, 160, 170, .35), transparent 70%),
  radial-gradient(40% 40% at 78% 70%, rgba(220, 70, 170, .32), transparent 70%),
  radial-gradient(60% 60% at 55% 50%, rgba(120, 70, 220, .35), transparent 75%),
  linear-gradient(#0b0820, #150c33 55%, #0a0618); }
.st-dot--p { background: #ffb3ea; box-shadow: 0 0 8px 2px rgba(255, 120, 210, .6); }
.st-mote--p { background: #ff9fe0; box-shadow: 0 0 6px 1px rgba(255, 120, 210, .5); }
.st-cat { left: 50%; top: 40%; transform: translateX(-50%); font-family: var(--font-en-display, sans-serif); font-weight: 200; font-size: min(14vh, 15vw, 150px); letter-spacing: .14em; color: #fff; text-shadow: 0 0 30px rgba(180, 140, 255, .6); white-space: nowrap; }
/* ガラスの札（デザインのページの SITE・LP・PRINT・LOGO） */
.st-glass { display: block; max-width: 420px; color: var(--st-ink); text-decoration: none; }
.st-glass img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.st-glass__en { display: block; margin-top: 8px; font-family: var(--font-en-display, sans-serif); font-size: 28px; letter-spacing: .14em; }
.st-glass__ja { display: block; font-size: 13px; color: var(--st-sub); }
html.st-on .st-glass { width: min(420px, 80vw); margin-left: calc(min(420px, 80vw) / -2); translate: 0 -50%; padding: 12px 12px 16px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; box-shadow: 0 30px 70px rgba(10, 4, 40, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); }
html.st-on .st-glass img { border-radius: 8px; }
html.st-on .st-glass__en { color: #fff; text-shadow: 0 0 16px rgba(200, 160, 255, .8); }
.st-items { color: var(--st-sub); font-size: 14px; }
.st-note-brand { margin-top: 10px; font-size: 13px; color: var(--st-sub); }

/* 02 ゲーム: ゲームのページと同じ黒地と、表紙の曲面の壁 */
.st-bg--game { background: radial-gradient(70% 50% at 50% 60%, rgba(60, 50, 30, .35), transparent 70%), #050505; }
html.st-on .st-cyl { display: block; width: 0; height: 0; }
.st-cyl__track { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.st-cyl__item { position: absolute; left: 0; top: 0; margin: 0; translate: -50% -50%; }
.st-cyl__item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 220, 150, .18), 0 20px 50px rgba(0, 0, 0, .6); }
.st-cat--game { font-weight: 600; letter-spacing: .1em; color: #fff; text-shadow: 0 0 24px rgba(242, 196, 107, .45); }
html.st-on .st-panel--game { background: rgba(14, 12, 8, .94); border-color: rgba(242, 196, 107, .45); }
/* 03 アプリと道具: 道具のページの開幕の画（青緑の歯車） */
.st-bg--tools { background: #0b7f76; }
.st-cat--tools { font-weight: 700; letter-spacing: .02em; color: #fff; text-shadow: 0 6px 30px rgba(0, 40, 36, .5); }
html.st-on .st-panel--tools { background: rgba(4, 52, 48, .94); border-color: rgba(190, 255, 120, .5); }
html.st-on .st-tool--t { background: #e9f6f4; border-color: rgba(190, 255, 120, .6); box-shadow: 0 24px 60px rgba(0, 40, 36, .45); }
/* 04 映像: 映像のページと同じ映像と、斜めの帯の窓 */
.st-bg--movie { background: #000; }
.st-bg--movie > video { filter: brightness(.82); }
.st-band { position: absolute; top: -10%; bottom: -10%; width: 22%; background: rgba(255, 255, 255, .06); border-left: 1px solid rgba(255, 240, 220, .55); border-right: 1px solid rgba(255, 240, 220, .25); transform: skewX(-18deg); }
.st-band--a { left: 30%; animation: st-bandmove 9s ease-in-out infinite alternate; }
.st-band--b { left: 62%; width: 9%; animation: st-bandmove 13s ease-in-out infinite alternate-reverse; }
@keyframes st-bandmove { to { translate: 6vw 0; } }
.st-cat--movie { font-family: var(--font-en-display, sans-serif); font-weight: 600; font-style: italic; letter-spacing: .04em; font-size: min(11vh, 12vw, 120px); color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
/* 05 AI */
.st-cat--ai { letter-spacing: .3em; }
/* 新着 */
html.st-on .st-newc { display: grid; gap: 6px; width: min(460px, 84vw); margin-left: calc(min(460px, 84vw) / -2); translate: 0 -50%; padding: 14px 14px 18px; background: #fff; color: #1c1a36; border: 1px solid rgba(81, 64, 200, .25); border-radius: 12px; box-shadow: 0 30px 70px rgba(60, 40, 140, .2); text-decoration: none; }
.st-newc img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #f2f1fa; }
.st-newc img.is-contain { object-fit: contain; }
.st-newc__t { font-size: 18px; font-weight: 700; line-height: 1.5; }
.st-newc__k, .st-newc__c { font-size: 13px; color: #5c5a7d; }
.st-newc { display: grid; gap: 6px; color: var(--st-ink); text-decoration: none; margin-top: 16px; }
/* 結び: 事業内容（休止中・予定は控えめに） */
.st-biz { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.st-biz b { display: block; font-size: 16px; }
.st-biz span { display: block; font-size: 13px; line-height: 1.8; color: var(--st-sub); }
.st-biz .is-quiet { opacity: .7; }
.st-biz .is-quiet b { font-size: 14px; }
.st-biz em { font-style: normal; font-size: 12px; margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(185, 189, 224, .5); border-radius: 99px; }
html.st-on .st-panel--biz { width: min(620px, 90vw); margin-left: calc(min(620px, 90vw) / -2); }
@media (max-width: 600px) { .st-biz span { display: none; } .st-biz .is-main span { display: block; } }
html.st-on .st-tool--t { width: min(380px, 70vw); margin-left: calc(min(380px, 70vw) / -2); }
/* 開幕のメッセージの板の、カテゴリ5つへの近道（レビたん: 急ぐ人の近道がバーガーしかない） */
.st-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.st-quick a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; color: #fff; text-decoration: none; font-family: var(--font-en-display, sans-serif); font-size: 13px; letter-spacing: .12em; }
.st-quick a:hover, .st-quick a:focus-visible { border-color: var(--st-gold); color: var(--st-gold); }
/* スマホでは道具の章の絵を切らずに入れる（大きな TOOLS の字がはみ出さないように） */
@media (max-width: 700px) { .st-bg--tools > img { object-fit: contain; } }
/* レビたん再点検: 断り書きは画面のいちばん下に小さく（札と重ねない）・事業内容を明るく・近道を押せる大きさに */
.st-note { bottom: 6px; width: min(980px, 96vw); padding: 4px 10px; font-size: 11px; line-height: 1.5; background: rgba(10, 8, 30, .6); }
@media (max-width: 600px) { .st-note { font-size: 10px; } }
.st-biz span { color: #cfd2ee; }
.st-quick a { padding: 9px 16px; font-size: 14px; }
/* 縦の記事のとき（JS なし・動きを減らす設定）: 表紙の壁は格子に並べる（重ねて置くのは舞台のときだけ） */
html:not(.st-on) #st { padding-top: 56px; } /* 縦の記事のとき、右上のメニューのボタン（ヘッダーは無い）と最初の見出しを重ねない */
.st-cyl__track { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-cyl__item { position: static; translate: none; margin: 0; }
html.st-on .st-cyl__track { display: block; position: absolute; left: 0; top: 0; }
html.st-on .st-cyl__item { position: absolute; translate: -50% -50%; }
.st-tool { max-width: 420px; }

/* ===== 2026-11-14 マスター赤ペン1回目（20件）の直し。make_top.py が story.css の最後に足す ===== */

/* 光: もっと輝いて見えるように（芯を大きく・十字の光芒・横に伸びる光の筋） */
html.st-on .st-light { width: 40px; height: 40px; left: -20px; top: -20px;
  background: radial-gradient(circle, #fff 0 26%, #fff3d0 36%, rgba(255, 214, 140, .75) 50%, rgba(242, 196, 107, .25) 62%, rgba(242, 196, 107, 0) 72%);
  box-shadow: 0 0 40px 16px rgba(255, 226, 160, .55), 0 0 110px 46px rgba(242, 196, 107, .28), 0 0 200px 90px rgba(143, 125, 255, .22); }
html.st-on .st-light::before { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 8deg, rgba(255, 240, 200, .55) 10deg, transparent 12deg 88deg, rgba(255, 240, 200, .55) 90deg, transparent 92deg 178deg, rgba(255, 240, 200, .55) 180deg, transparent 182deg 268deg, rgba(255, 240, 200, .55) 270deg, transparent 272deg),
    conic-gradient(from 45deg, transparent 0 9deg, rgba(200, 180, 255, .3) 10deg, transparent 11deg 89deg, rgba(200, 180, 255, .3) 90deg, transparent 91deg 179deg, rgba(200, 180, 255, .3) 180deg, transparent 181deg 269deg, rgba(200, 180, 255, .3) 270deg, transparent 271deg);
  -webkit-mask: radial-gradient(circle, #000 0 8%, rgba(0, 0, 0, .5) 30%, transparent 70%); mask: radial-gradient(circle, #000 0 8%, rgba(0, 0, 0, .5) 30%, transparent 70%);
  transform: rotate(12deg); }
html.st-on .st-light::after { inset: -30px; border-color: rgba(255, 226, 160, .7); }
@keyframes st-flare { to { transform: rotate(360deg); } }

/* 点: 大きさ・輝きのばらつき（大きさは story.js が4段で付ける） */
.st-dot--hot { background: #fff; box-shadow: 0 0 12px 4px rgba(255, 226, 160, .95), 0 0 34px 12px rgba(200, 170, 255, .35); }
.st-dot--v.st-dot--hot { box-shadow: 0 0 12px 4px rgba(207, 198, 255, .95), 0 0 34px 12px rgba(143, 125, 255, .4); }
.st-dot--tw { animation: st-tw 2.8s ease-in-out infinite; }
@keyframes st-tw { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(2.4) saturate(1.3); } }

/* 01 デザインの塔の飾り（デザインのページと同じ種類の形: 三角のかけら・線だけの立体・光る花・きらめき） */
html.st-on .st-shard, html.st-on .st-spark, html.st-on .st-bloom, html.st-on .st-poly { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; will-change: transform, opacity; }
.st-shard img { position: absolute; left: 0; top: 0; translate: -50% -50%; width: calc(34px * var(--sz)); animation: st-tumble 11s linear infinite; }
@keyframes st-tumble { to { transform: rotate3d(1, .6, .3, 360deg); } }
.st-spark::before, .st-spark::after { content: ""; position: absolute; left: calc(-22px * var(--sz)); top: -1px; width: calc(44px * var(--sz)); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff 45%, #fff 55%, transparent); box-shadow: 0 0 6px rgba(255, 240, 210, .9); animation: st-glint 3.2s ease-in-out infinite; animation-delay: inherit; }
.st-spark::after { transform: rotate(90deg); }
@keyframes st-glint { 0%, 100% { scale: .25; opacity: .3; } 45% { scale: 1; opacity: 1; } 60% { scale: .5; opacity: .6; } }
.st-bloom img { position: absolute; left: 0; top: 0; translate: -50% -50%; width: calc(84px * var(--sz)); animation: st-sway 6s ease-in-out infinite alternate; }
@keyframes st-sway { from { transform: rotate(-12deg) scale(.94); } to { transform: rotate(12deg) scale(1.06); } }
.st-poly img { position: absolute; left: 0; top: 0; translate: -50% -50%; width: calc(160px * var(--sz)); opacity: .8; animation: st-turn 26s linear infinite; }
@keyframes st-turn { to { transform: rotate3d(.4, 1, .2, 360deg); } }

/* ガラスの札: 実績の絵は暗く沈め、英字を大きく光らせる（デザインのページの札と同じ見せ方） */
html.st-on .st-glass { overflow: hidden; padding: 0; width: min(440px, 80vw); margin-left: calc(min(440px, 80vw) / -2); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(30, 16, 70, .55)); border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 30px 80px rgba(10, 4, 40, .6), 0 0 60px rgba(180, 140, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .1); }
html.st-on .st-glass img { border-radius: 0; filter: brightness(.42) saturate(1.2) contrast(1.05); aspect-ratio: 4 / 3; }
html.st-on .st-glass::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 50%, rgba(120, 90, 255, .28), transparent 70%), linear-gradient(180deg, transparent 50%, rgba(10, 6, 30, .55)); pointer-events: none; }
html.st-on .st-glass::after { content: ""; position: absolute; inset: -40%; z-index: 2; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .28) 50%, transparent 58%); animation: st-sheen 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes st-sheen { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.st-glass__k { display: none; }
html.st-on .st-glass__k { display: block; position: absolute; left: 0; right: 0; top: 30%; z-index: 3; text-align: center; font-family: var(--font-en-display, sans-serif); font-size: 13px; letter-spacing: .3em; color: rgba(255, 255, 255, .85); }
html.st-on .st-glass__en { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; z-index: 3; margin: 0; text-align: center; font-weight: 200; font-size: clamp(54px, 9vh, 86px); letter-spacing: .08em; line-height: 1; color: #fff;
  text-shadow: 0 0 10px #fff, 0 0 26px rgba(220, 190, 255, .95), 0 0 60px rgba(160, 120, 255, .8); }
html.st-on .st-glass__ja { position: absolute; left: 0; right: 0; top: 68%; z-index: 3; text-align: center; font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 0 12px rgba(200, 160, 255, .9); }

/* 02 ゲーム: 真っ暗にしない。光る格子の床・色の霧・浮かぶ光の粒 */
.st-bg--game { background: radial-gradient(70% 55% at 50% 40%, rgba(90, 60, 200, .35), transparent 70%), radial-gradient(50% 40% at 80% 80%, rgba(242, 160, 80, .22), transparent 70%), linear-gradient(#0a0720, #120a2e 55%, #1a0d33); overflow: hidden; }
.st-bg--game::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; transform: perspective(500px) rotateX(62deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(255, 140, 220, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 220, 255, .45) 1px, transparent 1px); background-size: 70px 70px;
  -webkit-mask: linear-gradient(transparent, #000 40%); mask: linear-gradient(transparent, #000 40%); animation: st-floor 2.4s linear infinite; will-change: transform; }
/* 床は背景の位置ではなく板ごと送る（毎コマの描き直しを避ける・11/14 重さ） */
@keyframes st-floor { from { transform: perspective(500px) rotateX(62deg) translateY(-70px); } to { transform: perspective(500px) rotateX(62deg) translateY(0); } }
/* 色の霧: ぼかしの効果を動かすと重いので、柔らかい色の丸を動かすだけ（11/14） */
.st-bg--game::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(34% 28% at 25% 30%, rgba(255, 90, 180, .26), transparent 70%), radial-gradient(32% 26% at 72% 26%, rgba(80, 200, 255, .24), transparent 70%), radial-gradient(36% 28% at 50% 70%, rgba(242, 196, 107, .18), transparent 70%); animation: st-aurora 12s ease-in-out infinite alternate; will-change: transform; }

/* 03 道具: 背景を動かす（ゆっくり流れる・光が横切る・浮かぶ粒） */
.st-bg--tools > img { animation: st-drift 16s ease-in-out infinite alternate; }
@keyframes st-drift { from { translate: -2.5% -1.5%; rotate: -1.2deg; } to { translate: 2.5% 1.5%; rotate: 1.2deg; } }
.st-bg--tools::before { content: ""; position: absolute; inset: -30%; z-index: 1; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .22) 48%, rgba(255, 250, 200, .3) 50%, transparent 58%); animation: st-sweep 6s ease-in-out infinite; pointer-events: none; }
@keyframes st-sweep { 0% { transform: translateX(-55%); } 70%, 100% { transform: translateX(55%); } }

/* 04 映像: 縦の短い動画5本の扇 */
html.st-on .st-reelc { display: block; margin: 0; width: min(300px, 22vw); margin-left: calc(min(300px, 22vw) / -2); translate: 0 -50%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .4); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 40px rgba(242, 196, 107, .25); background: #000; }
.st-reelc { display: none; }
.st-reelc video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { html.st-on .st-reelc { width: 34vw; margin-left: -17vw; } html.st-on .st-reelc--side { display: none; } }

/* 新着: テクノロジーとアートの景色（色の霧・細い格子・走る光）に6枚を詰めて並べる */
.st-bg--new { background: linear-gradient(140deg, #0d0b2a, #1b1046 45%, #0b2236); overflow: hidden; }
.st-new-mesh, .st-new-grid, .st-new-scan { position: absolute; inset: 0; }
.st-new-mesh { inset: -25%; background: radial-gradient(30% 26% at 20% 30%, rgba(107, 76, 255, .55), transparent 70%), radial-gradient(28% 24% at 78% 28%, rgba(22, 184, 166, .45), transparent 70%), radial-gradient(32% 26% at 55% 78%, rgba(224, 85, 154, .45), transparent 70%); filter: blur(40px); animation: st-mesh 14s ease-in-out infinite alternate; }
@keyframes st-mesh { from { transform: rotate(-6deg) scale(1); } to { transform: rotate(8deg) scale(1.12) translate(3%, -2%); } }
.st-new-grid { background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), radial-gradient(circle, rgba(160, 230, 255, .55) 0 1.5px, transparent 2px);
  background-size: 48px 48px, 48px 48px, 192px 192px; -webkit-mask: radial-gradient(90% 80% at 50% 50%, #000, transparent); mask: radial-gradient(90% 80% at 50% 50%, #000, transparent); }
.st-new-scan { background: linear-gradient(90deg, transparent, rgba(140, 230, 255, .0) 40%, rgba(140, 230, 255, .35) 50%, transparent 60%); background-size: 40% 100%; background-repeat: no-repeat; animation: st-scan 5s linear infinite; mix-blend-mode: screen; }
@keyframes st-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
html.st-on .st-rooms-h { color: #fff; text-shadow: 0 0 24px rgba(160, 130, 255, .8); letter-spacing: .2em; }
html.st-on .st-newgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(1000px, 90vw); margin-left: calc(min(1000px, 90vw) / -2); translate: 0 -50%; }
.st-newgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 16px; }
html.st-on .st-newgrid .st-newc { width: auto; margin: 0; translate: none; padding: 10px 10px 12px; gap: 4px; border-radius: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .35);
  opacity: clamp(0, calc(var(--st-new, 1) * 7 - var(--i) * 1), 1); transform: translateY(calc((1 - clamp(0, calc(var(--st-new, 1) * 7 - var(--i) * 1), 1)) * 40px)); }
html.st-on .st-newgrid .st-newc__t { font-size: 15px; line-height: 1.45; }
html.st-on .st-newgrid .st-newc__k, html.st-on .st-newgrid .st-newc__c { font-size: 12px; }
html.st-on .st-newgrid .st-newc img { aspect-ratio: 16 / 9; }
@media (max-height: 820px) { html.st-on .st-newgrid { width: min(900px, 86vw); margin-left: calc(min(900px, 86vw) / -2); } html.st-on .st-newgrid .st-newc__c { display: none; } }
@media (max-width: 700px) { html.st-on .st-newgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; width: 92vw; margin-left: -46vw; }
  html.st-on .st-newgrid .st-newc { padding: 6px 6px 8px; } html.st-on .st-newgrid .st-newc__t { font-size: 12px; } html.st-on .st-newgrid .st-newc__c { display: none; } html.st-on .st-newgrid .st-newc__k { font-size: 10.5px; } }

/* 結び: 光がたどり着いた先が開ける（--st-end 0→1 で夜明け・放射の筋・地平の光） */
.st-bg--end { background: #0b0a1f; overflow: hidden; }
.st-end-sky, .st-end-rays, .st-end-horizon, .st-end-glow { position: absolute; inset: 0; pointer-events: none; }
.st-end-sky { background: radial-gradient(120% 80% at 50% 100%, #ffcf8a 0%, #e9789a 22%, #6a45c8 46%, #1a1240 72%, #0b0a1f 100%); opacity: calc(var(--st-end, 0) * .95); }
.st-end-rays { left: 50%; top: 34%; right: auto; bottom: auto; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 190, .16) 0deg 3deg, transparent 3deg 14deg); -webkit-mask: radial-gradient(circle, #000 0 6%, rgba(0, 0, 0, .5) 22%, transparent 48%); mask: radial-gradient(circle, #000 0 6%, rgba(0, 0, 0, .5) 22%, transparent 48%);
  opacity: var(--st-end, 0); transform: scale(calc(.4 + var(--st-end, 0) * .6)); animation: st-flare 80s linear infinite; }
.st-end-horizon { top: auto; height: 46%; background: linear-gradient(transparent, rgba(255, 210, 150, .35) 60%, rgba(255, 240, 210, .6)); opacity: var(--st-end2, 0); transform: translateY(calc((1 - var(--st-end2, 0)) * 30%)); }
.st-end-glow { background: radial-gradient(40% 30% at 50% 34%, rgba(255, 250, 230, .9), rgba(255, 220, 160, .35) 40%, transparent 70%); opacity: calc(var(--st-end, 0) * (1 - var(--st-end2, 0) * .55)); }
html.st-on .st-ask { text-shadow: 0 2px 18px rgba(20, 10, 50, .65); }
html.st-on .st-ask .st-kicker { color: #fff3d6; }
html.st-on .st-ask .st-h2 { color: #fff; font-size: clamp(26px, min(5vh, 8.4vw), 46px); white-space: nowrap; }
html.st-on .st-ask .st-p { color: #fff; }

/* 最後まで来たら右上の MENU を光らせ「詳しくはこちら」 */
.st-menu-tag { display: none; }
html.st-on .st-menu-tag { display: inline-flex; align-items: center; gap: 6px; position: fixed; z-index: 1001; top: 30px; right: 150px; padding: 9px 16px; border: 0; border-radius: 99px; cursor: pointer;
  background: #f2c46b; color: #1c1440; font: 700 14px/1.2 system-ui, sans-serif; box-shadow: 0 8px 26px rgba(242, 196, 107, .5); opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .5s, transform .5s, visibility .5s; }
html.st-menu-hint .st-menu-tag { opacity: 1; visibility: visible; transform: none; animation: st-nudge 1.6s ease-in-out .6s infinite; }
@keyframes st-nudge { 50% { transform: translateX(-6px); } }
html.st-menu-hint .burger { box-shadow: 0 0 0 3px rgba(242, 196, 107, .9), 0 0 30px 8px rgba(242, 196, 107, .55); animation: st-ping 1.6s ease-out infinite; }
@keyframes st-ping { 0% { box-shadow: 0 0 0 3px rgba(242, 196, 107, .9), 0 0 0 0 rgba(242, 196, 107, .6); } 100% { box-shadow: 0 0 0 3px rgba(242, 196, 107, .9), 0 0 0 22px rgba(242, 196, 107, 0); } }
html.burger-open .st-menu-tag { opacity: 0; visibility: hidden; }
@media (max-width: 600px) { html.st-on .st-menu-tag { top: 24px; right: 118px; font-size: 13px; padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { .st-menu-tag, .burger { animation: none !important; } }

/* 02 ゲームの壁: 撮ったプレイ動画（表紙の絵と同じ形） */
.st-cyl__item video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #000; box-shadow: 0 0 0 1px rgba(255, 220, 150, .18), 0 20px 50px rgba(0, 0, 0, .6); }
/* 赤ペン2回目（2026-11-14）の直し。make_top.py が story.css の後ろに足す（本番に入れるときは story.css にまとめる） */

/* 01 デザイン・03 道具の 3D の背景（stage_gl.js）。描けたときだけ、点の螺旋と道具の絵を下げる */
.st-bg > .st-gl, .st-bg > .tw-op__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.st-gl-design .st-helix { display: none !important; }
html.st-gl-tools .st-bg--tools > img, html.st-gl-tools .st-bg--tools::before { display: none; }
/* TOOLS の字は絵に描き込まれていて、縦長の画面では左右が切れた（817 幅）。3D のときは字を別に置く。3D が無いときは絵を切らずに縮める */
.st-cat--tools { display: none; }
html.st-gl-tools .st-cat--tools { display: block; top: 34%; font-family: var(--font-en-display, sans-serif); font-size: min(17vh, 19vw, 190px); }
@media (max-aspect-ratio: 1/1) { .st-bg--tools > img { object-fit: contain; } }

/* 新着: 奥から手前へ1件ずつ流れてくる大きな札（位置と大きさは story.js が進みで決める） */
html.st-on .st-newgrid { display: block; width: 0; height: 0; margin-left: 0; translate: none; }
html.st-on .st-newgrid .st-newc { position: absolute; left: 0; top: 0; width: min(560px, 74vw, 62vh); margin-left: calc(min(560px, 74vw, 62vh) / -2); translate: 0 -46%;
  padding: 12px 12px 16px; gap: 6px; border-radius: 14px; opacity: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; }
html.st-on .st-newgrid .st-newc__t { font-size: clamp(17px, 2.3vh, 22px); line-height: 1.5; }
html.st-on .st-newgrid .st-newc__k { font-size: clamp(13px, 1.6vh, 15px); }
html.st-on .st-newgrid .st-newc__c { display: block; font-size: 12px; }
@media (max-width: 700px) { html.st-on .st-newgrid { width: 0; margin-left: 0; } html.st-on .st-newgrid .st-newc { width: 84vw; margin-left: -42vw; padding: 10px 10px 12px; } html.st-on .st-newgrid .st-newc__t { font-size: 16px; } html.st-on .st-newgrid .st-newc__k { font-size: 12.5px; } }

/* 結び（赤ペン2回目「この光の演出が AI スロップ」）: 光が1本の横線になって伸び、上下に開いて作品の映像が見える。
   --st-end: 線が左右へ伸びる（0→1）／--st-end2: 線が上下に分かれて窓が開く（0→1） */
.st-bg--end { background: #07061a; }
.st-end-win { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--st-end2, 0)) * 50%) 0 calc((1 - var(--st-end2, 0)) * 50%) 0); }
.st-end-win > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--st-end2, 0) * .08)); }
.st-end-shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(7, 6, 26, .62), rgba(7, 6, 26, .82) 70%, rgba(7, 6, 26, .92)); }
.st-end-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 196, .95) 18%, #fff 50%, rgba(255, 236, 196, .95) 82%, transparent);
  box-shadow: 0 0 12px rgba(255, 214, 140, .9), 0 0 36px rgba(242, 196, 107, .45);
  transform: translateY(calc(var(--st-end2, 0) * -50vh)) scaleX(var(--st-end, 0));
  opacity: calc(min(1, var(--st-end, 0) * 3) * (1 - var(--st-end2, 0) * .85)); }
.st-end-line--b { transform: translateY(calc(var(--st-end2, 0) * 50vh)) scaleX(var(--st-end, 0)); }

/* 結び（赤ペン2回目「ボタンとテキストが近くて窮屈」）: 文とボタンの間を空ける */
html.st-on .st-ask .st-p { margin-bottom: 0; }
html.st-on .st-ask .st-ask__btns { margin-top: clamp(30px, 5vh, 48px); }

/* 赤ペン3回目「01〜05 のタイルの透過度を少し上げて」: 説明の板を少し透かし、奥の景色が見えるように（.94 → .76。字が埋もれないよう後ろを少しぼかす） */
html.st-on .st-panel:not(.st-panel--lead):not(.st-panel--white) { background-color: rgba(16, 13, 44, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.st-on .st-panel--game { background-color: rgba(14, 12, 8, .74); }
html.st-on .st-panel--tools { background-color: rgba(4, 52, 48, .74); }

/* トップの読み込み演出（11/14）。JS が動くときだけ出る（html.st-ld）。満ちたら輪が広がって溶け、覆いが薄れる */
.st-ldr { display: none; }
html.st-ld .st-ldr { display: block; position: fixed; inset: 0; z-index: 10000; background: radial-gradient(60% 50% at 50% 47%, #141038, #07061a 70%); transition: opacity .9s ease .25s; }
html.st-ld .st-ldr.is-out { opacity: 0; }
.st-ldr canvas { position: absolute; inset: 0; }
.st-ldr__name, .st-ldr__no { position: absolute; left: 0; right: 0; text-align: center; margin: 0; font-family: var(--font-en-display, "Barlow", sans-serif); color: #fff3d6; pointer-events: none; }
.st-ldr__name { top: calc(47% - min(16vw, 16vh) - 54px); font-weight: 200; font-size: 15px; letter-spacing: .6em; text-indent: .6em; opacity: .8; }
.st-ldr__no { top: calc(47% + min(16vw, 16vh) + 30px); font-weight: 200; font-size: 13px; letter-spacing: .35em; text-indent: .35em; opacity: .7; font-variant-numeric: tabular-nums; }
html.st-ld .st-ldr.is-out .st-ldr__name, html.st-ld .st-ldr.is-out .st-ldr__no { opacity: 0; transition: opacity .4s; }

/* 赤ペン3回目で札の言葉が「作品について詳しく →」と長くなり、スマホ幅で MENU のボタンに 13px 重なった（390 幅で測定）。スマホではボタンの下に出す */
@media (max-width: 600px) { html.st-on .st-menu-tag { top: 76px; right: 16px; } }

/* ===== 2026-11-15 マスター赤ペン4回目（7件） ===== */
/* 光: 止まって見えないよう、光の筋をゆっくり回し、芯を息づかせる（大きさが揺れる。filter は毎コマ描き直しで重いので使わない） */
/* 光は飾り。見えていない間も押せる所を奪っていた（会社のメッセージが1行縮み、近道の TOOLS・MOVIE が光の位置に来た）ので押せないようにする */
html.st-on .st-light { animation: st-glow 3.4s ease-in-out infinite; pointer-events: none; }
html.st-on .st-light::before { animation: st-rays 26s linear infinite; }
@keyframes st-glow { 0%, 100% { scale: 1; } 35% { scale: 1.16; } 60% { scale: .94; } 80% { scale: 1.1; } }
@keyframes st-rays { 0% { transform: rotate(12deg) scale(.88); opacity: .85; } 25% { transform: rotate(102deg) scale(1.1); opacity: 1; } 50% { transform: rotate(192deg) scale(.94); opacity: .8; } 75% { transform: rotate(282deg) scale(1.14); opacity: 1; } 100% { transform: rotate(372deg) scale(.88); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { html.st-on .st-light, html.st-on .st-light::before { animation: none; } }

/* 会社のメッセージ: ゲームの一文を1行に（文字の間を詰める。スマホ幅は折り返す） */
html.st-on .st-panel--lead .st-p:nth-of-type(2) { font-feature-settings: "palt"; letter-spacing: 0; }
@media (min-width: 700px) { html.st-on .st-panel--lead .st-p:nth-of-type(2) { white-space: nowrap; } }

/* 道具: 画像を切り抜かず、絵ごとの比のまま全体を見せる（幅は make_top が --tw で絵ごとに決める） */
html.st-on .st-tool--t { width: min(var(--tw, 380px), 70vw); margin-left: calc(min(var(--tw, 380px), 70vw) / -2); }
html.st-on .st-tool--t img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* 結び: 言葉の切れ目でだけ折り返す */
.st-p--phr span { display: inline-block; }

/* 「作品について詳しく →」はボタンではなく、MENU を指す添え書き。塗り・枠・下線を付けず、金色の文字と矢印だけにする */
html.st-on .st-menu-tag { padding: 4px 2px; border-radius: 0; background: none; box-shadow: none; color: #f2c46b; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .8); top: 34px; }
/* スマホも MENU の左に並べる（形が小さくなり、390 幅で 8px 空いて並ぶ。矢印が MENU を指す） */
@media (max-width: 600px) { html.st-on .st-menu-tag { top: 28px; right: 145px; padding: 3px 0; font-size: 12.5px; } }

/* ===== 2026-11-15 レビたんの通しレビュー ===== */
/* 舞台が画面から抜け始めたら「作品について詳しく →」を消す（足元へ流れたとき結びの文に重なった。390 幅） */
html.st-off .st-menu-tag { opacity: 0 !important; visibility: hidden !important; animation: none !important; }
/* 04 映像の「映像（AIで生成）」の札が、断り書きの帯に重なって両方読めなかった（390 幅。測ると 320・1300・1320 幅でも重なる）。
   幅で分けず、いつも帯の上に置く。帯の高さ（折り返しで変わる）は story.js が --st-note-h に入れる */
html.st-on .st-credit--movie { bottom: calc(var(--st-note-h, 80px) + 8px); }
/* 結び: ボタンを押すと何が起きるかを1行（11/15 レビたん・マスター選択「進め方と連絡先のページへ」） */
html.st-on .st-ask__sub { margin-top: 14px; font-size: 13px; color: rgba(223, 225, 245, .78); letter-spacing: .02em; }
html.st-on .st-ask__sub span { display: inline-block; }
