
/* 公開デモ UI刷新：構造・部品・状態・画面幅を一つの定義に統合 */
:root{font-family:"BIZ UDPGothic","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;font-size:15px;color:#252523;background:#f7f7f5;--ink:#252523;--muted:#6a6a65;--line:#e5e5e0;--blue:#1675ad;--pale:#edf6fb;--green:#26734d;--amber:#986013;--surface:#fff;--soft:#f7f7f5;--shadow:0 2px 8px #25252304}
*{box-sizing:border-box}body{margin:0;line-height:1.65}button,input,select{font:inherit;line-height:1.5}button,a,select{touch-action:manipulation}button{min-height:42px;padding:9px 16px;border:1px solid #dededa;border-radius:9px;background:#fff;color:var(--ink);font-weight:500;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#f1f1ee;border-color:#bdbdb6}button:disabled{color:#999991;background:#f7f7f5;cursor:default;border-color:var(--line)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #59afe2;outline-offset:3px}.primary{background:var(--ink);border-color:var(--ink);color:#fff}.primary:hover{background:#43433e;border-color:#43433e}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);height:100dvh}.workspace{min-width:0;min-height:0;display:flex;flex-direction:column;padding:0 34px 12px;overflow:hidden}aside{min-height:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line);padding:26px 14px 16px}.brand{font-size:13px;font-weight:700;letter-spacing:.03em;padding:0 12px}.aside-title{font-size:19px;font-weight:500;margin:7px 12px 23px}nav{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto;scrollbar-width:thin}nav button{display:flex;gap:12px;align-items:center;flex-shrink:0;text-align:left;padding:8px 12px;border-color:transparent;background:transparent;font-size:13px;min-height:36px;border-radius:7px}nav button span{color:#85857c;font-size:11px;font-variant-numeric:tabular-nums;min-width:19px}nav button:hover{background:#f4f4f1;border-color:transparent}nav button[aria-current=step]{background:#eeeee9;color:#191916;font-weight:700;border-color:#e5e5df}nav button[aria-current=step] span{color:var(--blue)}.nav-section{font-size:11px;letter-spacing:.04em;color:#77776f;margin:19px 12px 5px}.aside-note{font-size:11px;color:#797970;line-height:1.8;margin:auto 12px 0;padding-top:20px}
header{min-height:62px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);font-size:12px;flex-shrink:0}.chapter-reference{display:flex;align-items:center;gap:18px;flex-wrap:wrap}#chapter{font-weight:500}#material-ref{color:var(--muted);border-left:1px solid #d8d8d2;padding-left:18px}.scope{font-size:11px;color:#62625b;background:#efefeb;border:1px solid #e1e1da;padding:4px 9px;border-radius:5px;white-space:nowrap}main{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:18px;padding:22px 2px 24px}.heading{flex-shrink:0;display:flex;flex-direction:column;gap:10px}h1{font-size:clamp(24px,2vw,30px);font-weight:500;line-height:1.4;letter-spacing:-.035em;margin:0}h2{font-size:20px;line-height:1.5;font-weight:500;margin:0 0 16px}h3{font-size:16px;font-weight:600;margin:0 0 10px}p{margin:10px 0;line-height:1.8}.role{display:inline-flex;align-items:center;gap:7px;color:#55554e;font-size:13px;font-weight:500;letter-spacing:.03em}.role:before{content:"";width:6px;height:6px;border-radius:50%;background:#85857c}.role.auto:before{background:#268ec8}.role.client:before{background:#468366}.role.other:before{background:#a0783f}#stage{display:flex;flex:1 0 auto;flex-direction:column;gap:16px;min-height:0}.panel{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;padding:24px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eeeeea;margin-bottom:19px;padding-bottom:15px}.panel-head h2{margin:0;font-size:17px}.micro{font-size:12px;color:var(--muted)}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.wide-left{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.note{padding:11px 15px;background:#f0f0ec;border-radius:8px;font-size:14px;line-height:1.8;color:#63635b}.note.blue{background:#eff7fb;color:#386680}.note.green{background:#eef6ef;color:#386449}.note.amber{background:#fbf5e9;color:#886326}.pill{display:inline-block;white-space:nowrap;font-size:11px;font-weight:500;line-height:1.5;padding:4px 8px;border:1px solid #e8e8e2;background:#f4f4f0;border-radius:5px;color:#6a6a61}.pill.green{color:#35704a;background:#f0f7f0;border-color:#daeadb}.pill.amber{color:#92641e;background:#fcf6e9;border-color:#efe3c7}.pill.blue{color:#337496;background:#edf7fc;border-color:#d5e9f4}
table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}th,td{padding:14px 11px;text-align:left;border-bottom:1px solid #ecece7;font-size:14px;line-height:1.7;overflow-wrap:anywhere;vertical-align:middle}th{font-size:11px;color:#77776f;font-weight:500;background:#fafaf8}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfcfa}.selected{background:#f3f8f1}.document-table th:nth-child(1){width:24%}.document-table th:nth-child(2){width:28%}.document-table th:nth-child(3){width:34%}.document-table th:nth-child(4){width:14%}.columns td{font-size:13px}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px}.explain{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:14px 0 0}.explain>div{border-left:3px solid #cbdbe4;padding-left:13px;min-width:0}.explain span{font-size:12px;font-weight:700;color:#566a76}.explain p{font-size:16px;line-height:1.65;margin:4px 0 0;color:#303b40}.file-stack{display:flex;gap:12px;margin-bottom:18px}.file{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:16px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px;cursor:grab}.file:before{content:"";display:block;width:20px;height:27px;flex-shrink:0;border:1px solid #b5b5aa;border-radius:3px;background:linear-gradient(#fff 65%,#eff5f7 65%)}.drop{min-height:156px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:1px dashed #9ec2d4;border-radius:11px;background:#f7fbfd;padding:26px;text-align:center;cursor:pointer}.drop strong{font-size:21px;font-weight:500;letter-spacing:-.02em}.drop span{font-size:12px;color:#618094}.drop:hover,.drop.dragover{background:#edf7fb;border-color:#1675ad}.drop.dragover{border-style:solid}.flow{display:grid;grid-template-columns:1fr 1fr 1fr 1.65fr;gap:10px}.flow>div{padding:15px;border:1px solid var(--line);border-radius:10px;background:#fafaf8;line-height:1.7;font-size:13px}.flow b{display:block;margin-bottom:8px;color:#77776e;font-size:11px;font-weight:500}.flow .active{border-color:#97c9e4;background:#f0f8fc}.flow .warn{border-color:#e4cd9c;background:#fbf6eb}.flow .branches{padding:0;border:0;background:none;display:flex;flex-direction:column;gap:8px}.branches section{padding:10px 12px;border:1px solid #dce9db;border-radius:8px;background:#f3f8ef;font-size:12px}.branches section:last-child{border-color:#eee2c9;background:#fcf7ed}.branches b{display:inline;margin-right:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat{padding:24px;text-align:left}.stat strong{display:block;font-weight:400;font-size:60px;letter-spacing:-.06em;line-height:1.2;margin:20px 0 12px;font-variant-numeric:tabular-nums}.stat span{font-size:15px}.stat.amber{background:#fffcf5}.portal{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.portal-bar{padding:18px 24px;font-size:17px;font-weight:500;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.portal-bar:before{content:"";width:8px;height:8px;background:#57a5c9;border-radius:2px}.portal-content{padding:22px 24px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px;font-size:12px;color:#858579}.tabs span{padding:0 0 11px}.tabs .active{color:#242421;border-bottom:2px solid #242421}.doc-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px;color:#77776f}.doc-row:last-child{border:0}.doc-row button{flex:1;text-align:left;border:0;padding:12px 8px;font-size:14px;color:#325d75;background:transparent;line-height:1.7}.doc-row button:hover{background:#f1f7fa}.login{max-width:660px;width:100%;margin:0 auto}.login input{max-width:100%;width:190px;padding:11px 15px;border:1px solid #c9c9c0;border-radius:8px;font-size:24px;letter-spacing:.2em;background:#fafaf8}.denied{text-align:center;padding:40px 20px}.denied h2{font-size:25px}.lock{position:relative;width:54px;height:43px;border:2px solid #a0a093;border-radius:9px;margin:29px auto 25px}.lock:before{content:"";position:absolute;left:12px;top:-26px;width:26px;height:25px;border:2px solid #a0a093;border-radius:20px 20px 0 0}.versions{display:flex;flex-direction:column;gap:9px}.versions button{text-align:left;background:#fafaf8;font-size:13px}.versions .current{background:#f0f7fb;border-color:#bad9ea;color:#356d8b}.hero{font-size:22px;line-height:1.9;font-weight:400;letter-spacing:-.025em}.roles{display:flex;gap:14px;flex-wrap:wrap;margin:24px 0}.timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.timeline .panel{padding:20px}.timeline strong{display:block;font-size:30px;font-weight:400;letter-spacing:-.04em;line-height:1.3;margin-bottom:18px;color:#a1a194}.timeline h3{font-size:14px}.timeline p{font-size:12px;color:var(--muted)}body[data-current-scene="0"] #stage>.panel{padding:32px 36px;border-radius:18px;position:relative;overflow:hidden}body[data-current-scene="0"] #stage>.panel:before{content:"";position:absolute;right:0;top:0;width:150px;height:3px;background:#8bc7e3}body[data-current-scene="0"] .actions button{padding:12px 22px}body[data-current-scene="13"] .panel>.actions:first-of-type{margin-top:0;margin-bottom:18px}body[data-current-scene="4"] .columns,body[data-current-scene="7"] .columns{grid-template-columns:1fr}
.control-dock{border:1px solid #deded7;border-radius:13px;background:#fff;flex-shrink:0;box-shadow:0 4px 20px #30302505;overflow:hidden}.caption{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px;row-gap:4px;padding:15px 20px;align-items:center;border-bottom:1px solid #eeeee8;position:relative}.live-top{display:contents}#live-mode{grid-column:1;grid-row:1;justify-self:start;font-size:10px;letter-spacing:.03em;padding:4px 7px;border:1px solid #dddeda;border-radius:5px;color:#6a6a61;background:#fafaf7;white-space:nowrap;font-weight:500}#live-result{grid-column:2;grid-row:1;font-size:15px;font-weight:600;line-height:1.5}#live-clock{grid-column:3;grid-row:1;font-size:12px;color:#79796f;text-align:right;font-variant-numeric:tabular-nums}#live-next{grid-column:2/4;grid-row:2;font-size:14px;color:#54544d;line-height:1.7}.caption[data-state=playing] #live-mode{background:#edf7fc;color:#2579a3;border-color:#c8e4f2}.caption[data-state=done] #live-mode{background:#f0f7f0;color:#3f7a4d;border-color:#d5e7d6}.caption[data-state=paused] #live-mode{background:#fcf6e9;color:#906b29;border-color:#e9ddc1}#scene-progress{grid-column:1/4;width:100%;height:3px;border:0;margin-top:7px;accent-color:var(--blue);border-radius:9px}#scene-progress[hidden]{display:none}#scene-progress::-webkit-progress-bar{background:#eff0eb;border-radius:9px}#scene-progress::-webkit-progress-value{background:#459dc9;border-radius:9px}#scene-progress::-moz-progress-bar{background:#459dc9;border-radius:9px}.controls{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#fcfcfa}.controls button{min-height:36px;padding:7px 13px;font-size:12px}.controls #reset{border-color:transparent;background:transparent;color:#7b7b70;margin-right:auto}.controls #play{min-width:104px;background:#272724;color:#fff;border-color:#272724}.controls #play:hover{background:#45453f}.controls #next.next-operation:not(:disabled){background:#eff7fb;color:#246d94;border-color:#b9d7e8}.controls label{font-size:11px;color:#727268;display:flex;align-items:center;gap:6px;margin-left:12px}.controls select{background:#fff;border:1px solid var(--line);border-radius:6px;padding:7px;font-size:11px;max-width:180px}.controls #playstatus{font-size:11px;color:#848478;margin-left:10px}.next-operation{outline:2px solid #80bad9;outline-offset:3px}footer{flex-shrink:0;font-size:10px;color:#87877b;padding-top:10px;line-height:1.6}.pulse{animation:pulse .9s ease-in-out 2}@keyframes pulse{50%{box-shadow:0 0 0 7px #61b3de25}}#pointer{position:fixed;width:20px;height:20px;border:2px solid #2b8aba;background:#edf7fbc9;border-radius:50%;pointer-events:none;z-index:30;display:none;box-shadow:0 0 0 5px #74b9dc20}#pointer.visible{display:block;transition:left .4s,top .4s}dialog{width:min(1000px,94vw);height:88dvh;max-height:94dvh;padding:0;border:1px solid #d8d8d0;border-radius:15px;background:#fafaf8;box-shadow:0 24px 80px #20201830}dialog::backdrop{background:#29292265;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 24px;background:#fff;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:16px;margin:0}.dialog-head button{font-size:12px;flex-shrink:0}iframe{width:100%;height:calc(100% - 80px);border:0;background:#fafaf8;display:block}.document-loading{padding:30px;color:var(--muted);text-align:center;font-size:14px}iframe[hidden]{display:none}body.record .shell{grid-template-columns:1fr}body.record aside,body.record .controls{display:none}body.record .workspace{padding:0 60px 20px}body.record h1{font-size:40px}
@media(min-width:1600px){.workspace{padding-left:52px;padding-right:52px}main{padding-top:34px}.panel{padding:30px}.columns{gap:24px}body[data-current-scene="4"] .columns,body[data-current-scene="7"] .columns{grid-template-columns:1.15fr 1fr}}
@media(max-width:1180px){.shell{grid-template-columns:200px minmax(0,1fr)}.workspace{padding:0 22px 10px}.columns,.wide-left{grid-template-columns:1fr}.timeline{grid-template-columns:repeat(2,1fr)}.controls #playstatus{display:none}.flow{grid-template-columns:1fr 1fr}#material-ref{font-size:10px;padding-left:10px}.chapter-reference{gap:10px}.scope{font-size:10px}main{padding-top:23px;gap:20px}}
@media(max-height:760px) and (min-width:761px){aside{padding-top:18px}.aside-title{margin-bottom:13px}nav button{min-height:31px;padding:6px 10px;font-size:12px}.nav-section{margin-top:12px}.aside-note{padding-top:10px}.caption{padding-top:11px;padding-bottom:11px}.controls{padding-top:8px;padding-bottom:8px}header{min-height:52px}main{padding-top:20px}}
@media(max-width:760px){.shell{display:flex;flex-direction:column;height:auto;min-height:100dvh}aside{padding:14px 16px 10px;border-right:0;border-bottom:1px solid var(--line);position:relative;display:grid;grid-template-columns:1fr auto;gap:8px}.brand{padding:0;font-size:11px}.aside-title{margin:0;font-size:12px}.aside-note,.nav-section{display:none}nav{grid-column:1/3;display:flex;flex-direction:row;overflow:auto;gap:5px;padding-bottom:4px}nav button{font-size:11px;white-space:nowrap;min-height:34px;gap:5px;border:1px solid #edede7}nav button span{font-size:10px;min-width:auto}.workspace{overflow:visible;padding:0 16px 14px}header{min-height:62px;gap:8px;padding:12px 0;align-items:flex-start}.chapter-reference{display:flex;flex-direction:column;align-items:flex-start;gap:2px}#chapter{font-size:11px}#material-ref{padding:0;border:0;font-size:10px}.scope{font-size:9px;white-space:normal;max-width:130px}main{overflow:visible;padding:22px 0;gap:20px;scrollbar-gutter:auto}h1{font-size:26px;letter-spacing:-.025em}.panel{padding:18px;border-radius:11px}.panel-head{gap:8px;flex-wrap:wrap}.panel-head h2{font-size:16px}h2{font-size:18px}.micro{font-size:11px}.hero{font-size:19px}.roles{gap:12px;margin:20px 0}body[data-current-scene="0"] #stage>.panel{padding:24px}.timeline{gap:10px}.timeline .panel{padding:17px}.timeline strong{font-size:25px}.file-stack{flex-direction:column;gap:8px}.file{padding:12px}.drop{min-height:140px;padding:20px}.drop strong{font-size:18px}.flow{grid-template-columns:1fr 1fr}.flow>div{font-size:12px}.stats{gap:8px}.stat{padding:16px}.stat strong{font-size:40px;margin:15px 0 8px}.stat span{font-size:12px}th,td,.columns td{font-size:11px;padding:10px 6px}th{font-size:10px}.pill{font-size:10px;padding:3px 6px}.portal-bar,.portal-content{padding:17px}.tabs{gap:16px}.doc-row{gap:6px}.doc-row button{font-size:12px;padding:9px 4px}.caption{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:14px 16px}.live-top{display:flex;align-items:center;justify-content:space-between;gap:8px}#live-mode{align-self:flex-start;font-size:10px}#live-result{font-size:14px}#live-clock{font-size:10px}#live-next{font-size:11px}.controls{flex-wrap:wrap;gap:7px;padding:12px}.controls #reset{margin:0}.controls button{flex:1;min-width:58px;white-space:nowrap;font-size:11px;padding:7px 8px}.controls #play{min-width:90px}.controls label{margin:3px 0 0;width:100%;justify-content:flex-end}.controls select{font-size:11px}.control-dock{overflow:visible}footer{font-size:9px;line-height:1.8}.dialog-head{padding:14px 16px;gap:10px}.dialog-head h2{font-size:13px}body.record .workspace{padding:0 16px 16px}body.record h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){button,#pointer.visible{transition:none}.pulse{animation:none}dialog::backdrop{backdrop-filter:none}}
@media print{aside,.control-dock,dialog{display:none}.shell{display:block;height:auto}.workspace,main{overflow:visible}.workspace{padding:20px}.panel,.portal{break-inside:avoid}}

/* 初期案内と文書の読込状態 */
[hidden]{display:none!important}.hero-kicker{font-size:11px;color:#648596;letter-spacing:.06em;margin:0 0 14px}.hero-summary{font-size:14px;line-height:1.9;color:#707066;max-width:660px;margin:14px 0 24px}#document-loading{padding:40px 24px;text-align:center;font-size:14px;color:#77776a}

/* 各場面の説明は隠さない。主体・進行・結果を実画面の上で伝える。 */
.scene-story{flex-shrink:0;position:relative;padding:20px 24px;border:1px solid #cddfe8;border-radius:14px;background:#fff;box-shadow:0 3px 12px #25506406;overflow:hidden}
.story-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.story-role{font-size:13px;font-weight:700;color:#356478}
.story-phase{font-size:12px;font-weight:700;padding:3px 10px;border-radius:5px;background:#f0f3f4;color:#52636a;border:1px solid #dde5e8}
.story-title{font-size:21px;line-height:1.5;font-weight:600;color:#202e36;margin:0 0 5px}
.story-detail{font-size:16px;line-height:1.65;color:#495b64;margin:0 0 14px}
.transfer{display:grid;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr) 36px minmax(0,1fr);align-items:center;gap:8px;margin:14px 0 10px}
.transfer-node{min-width:0;position:relative;padding:10px 12px;border:1px solid #dde5e8;border-radius:8px;background:#f7f9fa;font-size:14px;line-height:1.5;text-align:center;color:#40545f;transition:background .25s,border-color .25s,transform .25s}
.transfer-node strong,.transfer-node b{display:block;font-size:15px;font-weight:600;color:#263b46}
.transfer-node small,.transfer-node span{font-size:12px;line-height:1.5}
.transfer-arrow{position:relative;font-size:24px;line-height:1;text-align:center;color:#7c9ba9}
.story-result{font-size:14px;line-height:1.6;font-weight:500;color:#45636e;margin-top:10px;padding-top:10px;border-top:1px solid #e8eff2}
.scene-story[data-phase="running"]{border-color:#8cc6e2}
.scene-story[data-phase="running"] .story-phase{background:#e7f5fd;border-color:#a8d6ed;color:#17658f}
.scene-story[data-phase="running"] .transfer-node[data-step="1"]{background:#e8f5fc;border-color:#62aed3;box-shadow:0 0 0 3px #6ebcdd15}
.scene-story[data-phase="running"] .transfer-arrow{color:#1f82b2}
.scene-story[data-phase="running"] .transfer-arrow:after{content:"";position:absolute;width:9px;height:12px;border:1px solid #197eaf;border-radius:2px;background:#d7effc;top:50%;left:0;animation:document-travel 1.15s ease-in-out infinite}
.scene-story[data-phase="running"]:after{content:"";height:3px;width:35%;position:absolute;bottom:0;left:0;background:#4d9ec4;animation:process-sweep 1.7s ease-in-out infinite}
.scene-story[data-phase="done"]{border-color:#b7d6c3}
.scene-story[data-phase="done"] .story-phase{color:#286843;background:#ebf6ed;border-color:#c6dfcf}
.scene-story[data-phase="done"] .transfer-node:last-child{color:#286843;background:#edf7ef;border-color:#a9cfb5;animation:result-arrives .5s ease-out}
.scene-story[data-phase="done"] .story-result{color:#286843;border-top-color:#d9e8df}
.scene-story[data-phase="blocked"]{border-color:#e0c994;background:#fffdf8}
.scene-story[data-phase="blocked"] .story-phase{color:#815817;background:#fcf2dc;border-color:#ead7ac}
.scene-story[data-phase="blocked"] .story-result{color:#815817}
.scene-story[data-result="warning"]{border-color:#dfc48c;background:#fffdf8}
.scene-story[data-result="warning"] .story-phase{color:#815817;background:#fcf2dc;border-color:#ead7ac}
.scene-story[data-result="warning"] .transfer-node:last-child{color:#815817;background:#fcf2dc;border-color:#dfc48c;animation:none}
.scene-story[data-result="warning"] .story-result{color:#815817;border-top-color:#ead7ac}
.scene-story[data-result="warning"] .transfer-progress{accent-color:#a77727}
.scene-story[data-result="warning"] .transfer-progress::-webkit-progress-value{background:#a77727}
.scene-story[data-result="warning"] .transfer-progress::-moz-progress-bar{background:#a77727}
@keyframes document-travel{0%{transform:translate(0,-50%);opacity:0}20%{opacity:1}80%{opacity:1}100%{transform:translate(28px,-50%);opacity:0}}
@keyframes process-sweep{0%{transform:translateX(-100%)}100%{transform:translateX(390%)}}
@keyframes result-arrives{0%{transform:translateY(7px);background:#d2eddb}100%{transform:translateY(0)}}
@media(max-width:760px){
 main{gap:16px}.scene-story{padding:17px 16px;border-radius:11px}.story-top{gap:8px;align-items:flex-start}.story-role{font-size:12px}.story-phase{font-size:11px;white-space:nowrap}.story-title{font-size:20px}.story-detail{font-size:15px}.transfer{grid-template-columns:1fr;gap:6px;margin:12px 0}.transfer-node{padding:9px 12px;text-align:left;font-size:14px}.transfer-arrow{height:22px;transform:rotate(90deg);font-size:22px;justify-self:center;width:32px}.story-result{font-size:14px}.explain{grid-template-columns:1fr;gap:13px;padding:0 2px}.explain p{font-size:15px}.explain span{font-size:12px}#live-next{font-size:13px;color:#54544d}#live-mode,#live-clock{font-size:11px}.note{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 .scene-story:after,.scene-story .transfer-arrow:after{animation:none!important;display:none}
 .scene-story .transfer-node{animation:none!important;transition:none}
 .scene-story[data-phase="running"] .transfer-arrow{font-weight:700;color:#17658f}
}
.transfer-node small{display:block;color:#657c88;font-size:11px;margin-bottom:3px}.transfer-progress{display:block;width:100%;height:5px;border:0;border-radius:6px;accent-color:#268ab9;margin:8px 0}.transfer-progress::-webkit-progress-bar{background:#e8f0f4;border-radius:6px}.transfer-progress::-webkit-progress-value{background:#268ab9;border-radius:6px}.transfer-progress::-moz-progress-bar{background:#268ab9;border-radius:6px}#stage.result-arrived>.panel,#stage.result-arrived>.portal,#stage.result-arrived>.columns{animation:stage-result .7s ease-out}@keyframes stage-result{0%{outline:3px solid #8ac8a0;outline-offset:3px;background:#edf8f0}100%{outline:0 solid transparent;outline-offset:0}}@media(prefers-reduced-motion:reduce){#stage.result-arrived>*{animation:none!important}}

/* 補足は明示した展開欄へ。主説明・操作対象・結果を常に優先する。 */
.explain-details,.flow-details,.source-details{min-width:0;border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px 14px}
.explain-details>summary,.flow-details>summary,.source-details>summary{font-size:14px;line-height:1.6;font-weight:500;color:#365564;cursor:pointer;padding:2px 0;min-height:28px}
.explain-details[open]>summary,.flow-details[open]>summary,.source-details[open]>summary{padding-bottom:10px;border-bottom:1px solid var(--line)}
.explain-details:focus-within,.flow-details:focus-within,.source-details:focus-within{border-color:#8bb8d1}
.explain>.story-detail{grid-column:1/-1;margin:0;padding:10px 12px;background:#edf4f7;border-radius:7px;color:#365564;font-size:15px;line-height:1.6}
.flow-details .flow{margin-top:12px}
.source-details .columns{margin-top:12px}
.match-table th:nth-child(1){width:17%}.match-table th:nth-child(2){width:24%}.match-table th:nth-child(3){width:39%}.match-table th:nth-child(4){width:20%}
.match-table td{font-size:14px;padding:11px 8px;line-height:1.6}
.match-table th{font-size:12px;padding:9px 8px}
.match-table .pill{white-space:normal}
.scene-story[data-paused="true"]:after,.scene-story[data-paused="true"] .transfer-arrow:after{animation-play-state:paused}
#document[open]{display:flex;flex-direction:column}
#document iframe{flex:1;min-height:0;height:auto}
#review-confirmation{margin:0;padding:12px 22px;background:#edf6f1;border-bottom:1px solid #d5e7db;color:#325d44;font-size:15px;line-height:1.6}
#confirm-review{background:#252523;color:#fff;border-color:#252523}
#pause-document{font-size:13px}
.dialog-head{flex-wrap:wrap}
.dialog-head h2{flex:1;min-width:180px}
@media(min-width:1181px){
 .shell{grid-template-columns:200px minmax(0,1fr)}
 .workspace{padding:0 24px 10px}
 main{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:12px 20px;align-content:start;align-items:start;padding:15px 2px 22px}
 .heading{grid-column:1/3;grid-row:1;gap:3px}
 .scene-story{grid-column:1;grid-row:2;padding:14px 16px}
 .explain-details{grid-column:1;grid-row:3}
 .explain{grid-template-columns:1fr;gap:12px}
 #stage{grid-column:2;grid-row:2/4;min-width:0;align-self:start;gap:12px}
 .story-top{gap:6px;flex-wrap:wrap;margin-bottom:7px}
 .story-title{font-size:18px;line-height:1.5;margin:0 0 6px}
 .story-role{font-size:12px}.story-phase{font-size:11px;padding:3px 6px}
 .transfer{grid-template-columns:1fr;gap:3px;margin:10px 0 6px}
 .transfer-node{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:6px;text-align:left;padding:8px 9px;min-height:40px}
 .transfer-node small{margin:0;font-size:11px}.transfer-node strong{font-size:15px;line-height:1.45}
 .transfer-arrow{height:12px;width:20px;font-size:17px;line-height:12px;transform:rotate(90deg);justify-self:center}
 .story-result{font-size:15px;line-height:1.5;margin-top:7px;padding-top:7px}
 #stage .columns,#stage .wide-left,body[data-current-scene="4"] #stage .columns,body[data-current-scene="7"] #stage .columns{grid-template-columns:1fr}
 #stage .flow{grid-template-columns:1fr 1fr}
 #stage .timeline{grid-template-columns:1fr 1fr}
 #stage .panel{padding:18px}
 #stage .panel-head{padding-bottom:11px;margin-bottom:13px}
 .explain p{font-size:15px}
 body[data-current-scene="0"] #stage>.panel{padding:24px}
 .caption{padding:8px 14px;row-gap:2px}
 .controls{padding:6px 12px}.controls button{min-height:34px;padding:6px 12px}
 header{min-height:48px}h1{font-size:26px;line-height:1.35}.heading .role{font-size:12px}
 .control-dock{border-radius:10px}#live-result{font-size:14px}#live-next{font-size:13px;line-height:1.5}
 footer{padding-top:6px;font-size:10px}
 body[data-current-scene="10"] .drop{min-height:90px;padding:15px}
 body[data-current-scene="10"] .file-stack{margin-bottom:10px}
 body[data-current-scene="10"] .file{padding:10px;font-size:13px}
 body[data-current-scene="10"] .portal-content,body[data-current-scene="12"] .portal-content{padding:14px 18px}
 body[data-current-scene="10"] .portal-bar,body[data-current-scene="12"] .portal-bar{padding:12px 18px}
 body[data-current-scene="10"] .tabs,body[data-current-scene="12"] .tabs{margin-bottom:12px}
 body[data-current-scene="12"] .versions{gap:6px}
 body[data-current-scene="12"] .versions button{min-height:36px;padding:7px 11px}
}
@media(max-width:1180px) and (min-width:761px){
 .explain-details .explain{grid-template-columns:1fr 1fr}
 .match-table td{font-size:13px}
}
@media(max-width:760px){
 aside{padding-top:10px;padding-bottom:6px;gap:5px}
 header{min-height:54px;padding:9px 0}
 main{padding-top:14px;gap:12px}
 .heading{gap:3px}h1{font-size:24px;line-height:1.4}
 .heading .role{font-size:12px}
 .scene-story{padding:13px 14px}
 .story-top{margin-bottom:6px;gap:6px;align-items:center}
 .story-phase{font-size:10px;padding:3px 5px;white-space:normal;text-align:right}
 .story-title{font-size:18px;line-height:1.5;margin-bottom:5px}
 .transfer{grid-template-columns:1fr;gap:2px;margin:8px 0 5px}
 .transfer-node{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:7px;padding:7px 9px;min-height:37px}
 .transfer-node small{font-size:11px;margin:0}.transfer-node strong{font-size:15px;line-height:1.4}
 .transfer-arrow{height:10px;width:18px;font-size:15px;line-height:10px}
 .transfer-progress{margin:6px 0}
 .story-result{font-size:14px;line-height:1.5;margin:6px 0 0;padding-top:6px}
 .explain-details,.flow-details,.source-details{padding:8px 12px}
 .explain-details .explain{grid-template-columns:1fr}
 .match-table th,.match-table td{font-size:12px;padding:9px 5px}
 .match-table th:nth-child(1){width:17%}.match-table th:nth-child(2){width:29%}.match-table th:nth-child(3){width:35%}.match-table th:nth-child(4){width:19%}
 .match-table .pill{font-size:11px}
 #review-confirmation{padding:10px 14px;font-size:14px}
 #confirm-review,#pause-document{font-size:12px;min-height:36px}
 .dialog-head{gap:8px}.dialog-head h2{flex-basis:100%}
}

/* 状態と連動する図解。上段で全体像を見せ、直下で実際の操作を試す。 */
main{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.heading{gap:3px}.scene-story{display:grid;grid-template-columns:235px minmax(0,1fr);gap:12px 22px;padding:22px;background:#fff;border-color:#d7e3e9;box-shadow:0 5px 20px #17344806}
.visual-heading{align-self:center}.story-top{flex-wrap:wrap;gap:6px;margin-bottom:10px}
.story-title{font-size:23px;font-weight:700;line-height:1.55;letter-spacing:-.025em;margin:0}
.visual-canvas{min-width:0;min-height:130px;display:flex;align-items:center;position:relative}
.visual-route{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr);align-items:center;gap:5px;width:100%}
.visual-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;min-height:132px;padding:16px 10px;border:1px solid #dce6eb;border-radius:13px;background:#f7fafb;min-width:0;position:relative}
.visual-label{display:block;color:#5e7480;font-size:12px;margin-bottom:5px;line-height:1.4}
.visual-card strong{font-size:15px;color:#233f50;display:block;line-height:1.5;overflow-wrap:anywhere}
.visual-icon{width:38px;height:38px;flex-shrink:0;color:#54849c}
.visual-card.success{background:#eef8f1;border-color:#9bcbb0}.visual-card.success .visual-icon{color:#328158}
.visual-card.warning{background:#fff9ec;border-color:#dfc586}.visual-card.warning .visual-icon{color:#a67b29}
.motion-link{height:40px;position:relative;overflow:visible;color:#7b9eaf}
.motion-arrow{font-size:25px;position:absolute;right:0;top:0}
.motion-line{position:absolute;left:0;right:5px;top:20px;border-top:1px dashed #b6ceda}
.moving-paper{display:none;position:absolute;top:10px;left:0;width:12px;height:17px;border:1.5px solid #277da7;background:#fff;border-radius:2px;z-index:1}
.scene-story[data-phase="running"] .moving-paper{display:block;animation:paper-delivery 1.5s ease-in-out infinite}
@keyframes paper-delivery{0%{transform:translateX(-6px);opacity:0}15%{opacity:1}85%{opacity:1}100%{transform:translateX(25px);opacity:0}}
.paper-stack{height:57px;width:91px;position:relative}
.mini-paper{position:absolute;width:35px;height:49px;left:0;top:6px;padding:5px;background:#fff;border:1.5px solid #8dabbc;border-radius:4px;box-shadow:0 3px 6px #233f500b;transform:rotate(-9deg)}
.mini-paper:nth-child(2){left:26px;top:0;transform:rotate(0)}
.mini-paper:nth-child(3){left:52px;transform:rotate(9deg)}
.mini-paper b{font-size:10px;color:#356784;display:block}
.mini-paper i{display:block;height:2px;background:#c7dbe5;margin-top:5px}
.scene-story[data-phase="running"] .mini-paper{animation:paper-lift 1.7s ease-in-out infinite}
.scene-story[data-phase="running"] .mini-paper:nth-child(2){animation-delay:.2s}
.scene-story[data-phase="running"] .mini-paper:nth-child(3){animation-delay:.4s}
@keyframes paper-lift{50%{translate:0 -6px}}
.scene-story[data-phase="done"] .success,.review-step.finished{animation:visual-arrival .45s ease-out}
@keyframes visual-arrival{from{translate:0 7px}to{translate:0 0}}
.scene-story:after{display:none!important}
.scene-story .story-result{grid-column:1/-1;font-size:16px;line-height:1.6;margin:0;padding:12px 0 0;color:#3c5866;border-top:1px solid #e3edf1;font-weight:500}
.scene-story .transfer-progress{grid-column:1/-1;margin:0;height:3px}
.visual-steps{grid-column:2;display:flex;gap:7px;flex-wrap:wrap;font-size:11px;color:#82939b}
.visual-steps span{display:flex;align-items:center;gap:5px}
.visual-steps b{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid #dae3e7;border-radius:50%;font-size:10px}
.visual-steps .active{color:#287798}.visual-steps .active b{background:#e9f5fb;border-color:#a4cedf}
.number-comparison{position:relative;width:100%;display:grid;gap:6px;overflow:hidden}
.compare-label{display:flex;justify-content:space-between;padding:0 70px 0 12px;font-size:11px;color:#6d8290}
.number-row{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 48px;gap:6px;align-items:center;padding:8px 10px;border:1px solid #dfe8ed;border-radius:8px;background:#f8fafb}
.number-row span{font-size:10px;display:block;color:#617a88}
.number-row b{font-size:12px;font-weight:600;white-space:nowrap;letter-spacing:.015em;font-variant-numeric:tabular-nums}
.number-equal{color:#5e879b;font-size:11px;text-align:center}
.number-result{text-align:center;border-radius:4px;background:#edf1f4;padding:4px 0}
.number-row.success{background:#f1f9f3;border-color:#bedcc9}.number-row.success .number-result{background:#dcefe3;color:#25663f}
.number-row.warning{background:#fff8e9;border-color:#e5ce9d}.number-row.warning .number-result{background:#f8e6bb;color:#81591c}
.scan-beam{display:none;position:absolute;left:0;right:0;height:24px;top:15%;background:linear-gradient(transparent,#49b4df30);border-bottom:2px solid #56a6cb;pointer-events:none}
.scene-story[data-phase="running"] .scan-beam{display:block;animation:number-scan 2.5s linear infinite}
@keyframes number-scan{0%{top:10%}100%{top:85%}}
.branch-visual{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 75px minmax(0,1.5fr);align-items:center}
.branch-path{display:flex;flex-direction:column;gap:55px;font-size:12px;text-align:center;color:#3b8660}
.branch-path span:last-child{color:#997126}
.branch-dest{display:grid;gap:8px}
.branch-dest .visual-card{min-height:73px;flex-direction:row;justify-content:flex-start;text-align:left;padding:10px 13px;gap:12px}
.branch-dest .visual-icon{width:29px;height:29px}
.scene-story[data-phase="running"] .branch-path span{animation:branch-signal 1.2s ease-in-out infinite}
.scene-story[data-phase="running"] .branch-path span:last-child{animation-delay:.4s}
@keyframes branch-signal{50%{translate:5px 0;color:#206e95}}
.review-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;width:100%}
.review-step{border:1px solid #dce5e9;background:#f8fafb;border-radius:10px;padding:12px 7px;display:flex;align-items:center;flex-direction:column;gap:6px;text-align:center;position:relative}
.review-step .visual-icon{width:30px;height:30px}
.review-step b{font-size:12px;line-height:1.5}
.review-step>span:last-child{font-size:10px;color:#738893}
.step-number{font-size:10px;background:#e8eff3;border-radius:50%;width:19px;height:19px;display:grid;place-items:center}
.review-step.finished{background:#eef8f1;border-color:#9dcbb0}
.review-step.finished .step-number{background:#37845b;color:white}
.review-step.finished>span:last-child{color:#357c54}
.count-visual{display:grid;grid-template-columns:1fr 60px 1fr;gap:8px;align-items:center;text-align:center;width:100%}
.count-visual>div:not(.count-verdict){border:1px solid #dce6eb;background:#f7fafb;border-radius:12px;padding:12px}
.count-visual span{font-size:12px;color:#617f8e}
.count-visual strong{font-size:44px;font-weight:500;line-height:1.2;display:block;color:#294f63;font-variant-numeric:tabular-nums}
.count-visual small{font-size:13px;margin-left:8px}
.count-sign{font-size:18px;color:#608597}
.count-verdict{grid-column:1/-1;padding:6px;border-radius:7px;font-size:13px;background:#eef3f6;color:#567989}
.count-verdict.success{background:#eaf6ee;color:#2c7049}.count-verdict.warning{background:#fff3d7;color:#916413}
.privacy-visual{display:grid;grid-template-columns:1fr 100px 1fr;gap:12px;align-items:center;width:100%}
.access-barrier{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:#758d9a}
.access-barrier.denied-state{color:#92682c}.access-barrier.denied-state .visual-icon{color:#92682c}
.scene-story[data-paused="true"] *, .scene-story[data-paused="true"] *:after{animation-play-state:paused!important}
.scene-story[data-phase="blocked"] .visual-canvas{opacity:.5}
.scene-story[data-phase="blocked"] .story-result{color:#825e24}
.scene-story[data-result="warning"] .story-result{color:#825e24}
.explain-details{order:4}
#stage{min-width:0;flex:0 0 auto}
#stage>.flow-details{order:3}
#stage .columns,#stage .wide-left{grid-template-columns:1fr 1fr}
body[data-current-scene="4"] #stage .columns,body[data-current-scene="7"] #stage .columns{grid-template-columns:1fr 1fr}
#stage .panel{padding:20px}
body[data-current-scene="0"] #stage .intro-panel .hero,body[data-current-scene="0"] #stage .hero-summary{font-size:16px}
@media(min-width:1181px){
 main{display:flex;grid-template-columns:none;grid-template-rows:none;gap:14px}
 .scene-story{padding:20px;grid-template-columns:235px minmax(0,1fr)}
 #stage{align-self:stretch}.heading{display:flex}.story-title{font-size:23px}
 #stage .timeline{grid-template-columns:repeat(4,1fr)}
 #stage .columns,#stage .wide-left,body[data-current-scene="7"] #stage .columns{grid-template-columns:1fr 1fr}
}
@media(max-width:1180px){
 .scene-story{grid-template-columns:1fr;padding:18px;gap:12px}
 .visual-heading{display:block}.story-title{font-size:22px}.story-top{margin-bottom:6px}
 .visual-steps{grid-column:1}.visual-card{min-height:108px;padding:10px 8px;gap:7px}
 .visual-icon{width:30px;height:30px}.visual-canvas{min-height:108px}
 #stage .columns,#stage .wide-left,body[data-current-scene="7"] #stage .columns{grid-template-columns:1fr}
}
@media(max-width:760px){
 .scene-story{padding:15px 13px;gap:10px}.story-title{font-size:20px}
 .visual-route{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr) 16px minmax(0,1fr);gap:3px}
 .visual-card{min-height:120px;padding:10px 5px;border-radius:9px}
 .visual-card strong{font-size:12px}.visual-label{font-size:10px;margin-bottom:4px}.visual-icon{width:28px;height:28px}
 .motion-arrow{font-size:19px;top:5px}.moving-paper{width:9px;height:13px;top:12px}
 @keyframes paper-delivery{0%{transform:translateX(-4px);opacity:0}15%,85%{opacity:1}100%{transform:translateX(12px);opacity:0}}
 .paper-stack{width:54px;height:44px}.mini-paper{width:24px;height:35px;padding:3px;top:5px}.mini-paper:nth-child(2){left:15px}.mini-paper:nth-child(3){left:30px}.mini-paper b{font-size:8px}.mini-paper i{margin-top:4px}
 .scene-story .story-result{font-size:14px;padding-top:9px}
 .visual-steps{font-size:10px;gap:5px}.visual-steps span{flex:1;align-items:flex-start}.visual-steps b{flex-shrink:0}
 .number-row{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 38px;gap:3px;padding:7px 5px}
 .number-row b{font-size:10px;letter-spacing:-.03em}.number-row span{font-size:9px}
 .number-equal{font-size:9px}.compare-label{font-size:10px;padding:0 45px 0 5px}
 .branch-visual{grid-template-columns:85px 52px minmax(0,1fr)}.branch-path{font-size:10px;gap:58px}
 .branch-dest .visual-card{padding:8px;gap:6px;min-height:73px}.branch-dest .visual-icon{width:23px;height:23px}
 .review-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .review-step{padding:8px;display:grid;grid-template-columns:22px 25px minmax(0,1fr);gap:5px;text-align:left}
 .review-step .visual-icon{width:24px;height:24px}.review-step b{font-size:11px}.review-step>span:last-child{grid-column:2/4}
 .privacy-visual{grid-template-columns:1fr 70px 1fr;gap:7px}.access-barrier{font-size:10px}
 .count-visual{grid-template-columns:1fr 42px 1fr}.count-visual strong{font-size:36px}.count-visual span{font-size:11px}.count-sign{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 .scene-story *, .scene-story *:after{animation:none!important;transition:none!important}
 .scene-story .moving-paper,.scene-story .scan-beam{display:none!important}
}

/* 図を読んだ位置から、実際の操作対象へ移動できる。 */
.controls .jump-action{background:#eaf5fb;border-color:#9bc5dd;color:#245f80;font-weight:600;white-space:nowrap}
.controls .jump-action:hover{background:#dceff9}
@media(max-width:760px){.controls .jump-action{flex-basis:100%;order:-1;min-height:40px}}

.story-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.story-actions:empty{display:none}
.story-actions button{font-size:13px;min-height:38px;padding:8px 13px}
.story-actions #story-jump{background:#eaf5fb;border-color:#9bc5dd;color:#245f80;font-weight:600}
@media(max-width:760px){.story-actions button{flex:1;min-height:42px}}

/* 処理と連動する大きな説明図。装飾だけの反復運動は使わない。 */
.motion-theater{grid-column:1/-1;--travel:0;background:#edf6fb;border:1px solid #bed7e4;border-radius:14px;padding:16px 20px;overflow:hidden}
.motion-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.motion-heading b{font-size:17px;color:#183d52}.motion-heading span{font-size:12px;color:#466576}
.motion-stations{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.motion-stations span{padding:10px;border-radius:8px;background:white;border:1px solid #cddfe9;text-align:center;font-size:13px;font-weight:600;color:#254b60}
.motion-track{position:relative;height:94px;margin:12px 50px 0;border-bottom:3px solid #cadde7}.motion-fill{position:absolute;bottom:-3px;left:0;height:3px;width:calc(var(--travel)*100%);background:#2385b1}.motion-packet{position:absolute;left:calc(var(--travel)*(100% - 100px));top:8px;width:100px;min-height:70px;padding:8px 5px;border:2px solid #359bc5;border-radius:9px;background:white;box-shadow:0 4px 10px #21465b18;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.motion-packet .visual-icon{width:26px;height:26px}.motion-packet b{font-size:11px;color:#215670}.motion-stop{position:absolute;right:-36px;bottom:7px;font-size:11px;color:#456879}
.motion-caption{font-size:14px;line-height:1.65;color:#254e63;margin:12px 0 0}.motion-theater[data-complete="true"]{background:#edf8f1;border-color:#b5d8c1}.motion-theater[data-complete="true"] .motion-fill{background:#358357}
.scene-story[data-visual-scene="4"][data-phase="running"][data-motion-step="0"] .number-row:nth-child(2),.scene-story[data-visual-scene="4"][data-phase="running"][data-motion-step="1"] .number-row:nth-child(3),.scene-story[data-visual-scene="4"][data-phase="running"][data-motion-step="2"] .number-row:nth-child(4){outline:3px solid #359bc5;outline-offset:-3px;background:#e2f3fc}
.scene-story[data-visual-scene="11"] .motion-packet{left:calc(var(--travel)*45%);border-color:#a97531}.scene-story[data-visual-scene="11"] .motion-fill{max-width:50%;background:#a97531}
.motion-theater[data-blocked="true"]{opacity:.65}
@media(min-width:1181px){.scene-story{grid-template-columns:280px minmax(0,1fr)}.visual-canvas{min-height:170px}.visual-card{min-height:140px}.visual-icon{width:40px;height:40px}}
@media(max-width:760px){.motion-theater{padding:12px}.motion-heading{align-items:flex-start;flex-direction:column;gap:4px}.motion-heading b{font-size:15px}.motion-heading span{font-size:11px}.motion-stations{gap:5px}.motion-stations span{font-size:11px;padding:8px 4px}.motion-track{margin:10px 12px 0;height:90px}.motion-packet{width:80px;left:calc(var(--travel)*(100% - 80px))}.motion-packet b{font-size:10px}.motion-stop{right:0}.motion-caption{font-size:12px}}

/* 高さを優先した観察画面。本文は専用領域でスクロールし、操作欄と重ねない。 */
.shell{height:100dvh;min-height:0;overflow:hidden}.workspace{height:100%;min-height:0;overflow:hidden;padding:0 20px 6px}
main#main{min-height:0;overflow:auto;display:flex;gap:10px;padding:10px 2px 14px;scroll-padding:10px}
#main>.heading{display:none}
.scene-story{display:flex;flex-direction:column;gap:10px;padding:16px;overflow:visible}
.visual-heading{order:0}.motion-theater{order:1}.story-result{order:2}.story-actions{order:3}.transfer-progress{order:4}.visual-detail{order:5}.visual-steps{display:none}
.story-title{font-size:22px;line-height:1.4}.story-top{margin-bottom:5px}.story-phase{font-size:11px;padding:2px 7px}.story-role{font-size:12px}
.visual-detail{border-top:1px solid #dce6eb;padding-top:6px}.visual-detail summary{font-size:12px;color:#365564;cursor:pointer;min-height:28px;line-height:28px}.visual-detail .visual-canvas{margin-top:10px;min-height:0}
.motion-theater{padding:12px 16px}.motion-heading{margin-bottom:8px}.motion-stations span{padding:7px}.motion-track{height:76px;margin-top:5px}.motion-packet{min-height:58px;padding:5px;top:4px}.motion-packet .visual-icon{width:22px;height:22px}
.scene-story .story-result{font-size:14px;line-height:1.5;padding-top:8px}.story-actions button{min-height:36px;padding:6px 12px}
.control-dock{position:relative;flex:0 0 auto;overflow:hidden}.caption{padding:7px 12px;gap:3px 10px}#live-result{font-size:13px}#live-next{font-size:12px;line-height:1.4}.controls{padding:6px 10px}.controls #playstatus{display:none}footer{padding-top:4px;font-size:9px}
@media(max-height:800px){header{min-height:40px;padding:4px 0}.scene-story{padding:12px;gap:7px}.story-title{font-size:20px}.motion-heading b{font-size:14px}.motion-heading span{font-size:11px}.motion-theater{padding:8px 12px}.motion-track{height:65px}.motion-packet{min-height:52px}.motion-stations span{font-size:12px;padding:5px}.caption #live-next{display:none}.story-actions button{font-size:12px}.controls button{min-height:34px;padding:5px 10px}}
@media(max-width:760px){
 .shell{display:grid;grid-template-columns:1fr;grid-template-rows:58px minmax(0,1fr);height:100dvh;min-height:0}
 aside{padding:4px 10px;gap:2px;min-height:0}.brand,.aside-title{font-size:10px}nav{padding:0;gap:4px}nav button{min-height:28px;padding:3px 8px}
 .workspace{padding:0 10px 4px;overflow:hidden}header{min-height:38px;padding:4px 0}#material-ref{display:none}.chapter-reference{gap:0}.scope{font-size:9px;max-width:128px}
 main#main{overflow:auto;padding:6px 0 10px;gap:8px}.scene-story{padding:10px;gap:6px}.story-title{font-size:18px;line-height:1.4}.story-top{gap:5px}.story-phase{font-size:10px;white-space:normal}.story-role{font-size:11px}
 .motion-heading{flex-direction:row;gap:8px;margin-bottom:6px}.motion-heading b{font-size:13px}.motion-heading span{font-size:10px;max-width:48%;text-align:right}.motion-stations{gap:5px}.motion-stations span{font-size:11px;padding:5px 3px}.motion-track{height:62px;margin:4px 5px 0}.motion-packet{min-height:50px}.motion-packet .visual-icon{width:18px;height:18px}.motion-stop{display:none}
 .scene-story .story-result{font-size:12px;padding-top:6px}.story-actions{gap:5px}.story-actions button{font-size:11px;padding:5px;min-height:34px}.visual-detail summary{font-size:11px;min-height:24px;line-height:24px}
 .caption{display:grid;grid-template-columns:1fr auto;padding:5px 8px;gap:3px}.live-top{display:contents}#live-mode{grid-column:1;grid-row:1;font-size:9px;padding:2px 5px}#live-clock{grid-column:2;grid-row:1;font-size:9px}#live-result{grid-column:1/-1;grid-row:2;font-size:12px}#live-next{display:none}
 .controls{display:flex;flex-wrap:nowrap;gap:5px;padding:5px}.controls button{min-width:0;min-height:34px;padding:5px;font-size:11px;flex:1}.controls #play{min-width:90px}.controls #reset{font-size:10px}.controls label{display:none}.controls #jump-action{display:none!important}footer{font-size:8px;line-height:1.3;padding-top:3px}
}
@media(max-height:520px) and (min-width:761px){
 .workspace{padding:0 14px 3px}header{min-height:30px}main#main{padding:5px 0;gap:6px}.scene-story{padding:8px 12px;gap:4px}.visual-heading{display:flex;align-items:center;gap:14px}.story-title{font-size:17px}.story-top{margin:0;gap:6px}.motion-heading{display:none}.motion-theater{padding:6px 10px}.motion-stations span{font-size:11px;padding:3px}.motion-track{height:50px}.motion-packet{min-height:42px;top:1px;flex-direction:row}.motion-packet .visual-icon{width:16px;height:16px}.motion-packet b{font-size:10px}.scene-story .story-result{font-size:12px;padding-top:4px}.story-actions button{min-height:30px;padding:3px 10px}.visual-detail summary{min-height:22px;line-height:22px}.caption{padding:4px 8px}.controls{padding:4px 8px}footer{font-size:8px;line-height:1.2}
}

@media(max-width:760px) and (max-height:600px){
 .shell{grid-template-rows:36px minmax(0,1fr)}aside{display:flex;padding:3px 8px}.brand,.aside-title{display:none}nav{width:100%}.motion-heading{display:none}.motion-track{height:54px}.motion-packet{min-height:44px}.motion-theater{padding:7px}.story-title{font-size:17px}.story-top{margin-bottom:3px}.scene-story{gap:5px}.motion-stations span{font-size:10px;line-height:1.4}.controls button{font-size:10px}
}

/* 横幅は表示領域内で確定し、工程ナビゲーションだけを横スクロールする。 */
.visual-heading{align-self:stretch;min-width:0}
main#main,.scene-story,.story-actions,.control-dock{min-width:0}
.scene-story{flex-shrink:0}
@media(max-width:760px){.shell{grid-template-columns:minmax(0,1fr)}aside,nav{min-width:0;max-width:100%}nav{overflow-x:auto}.workspace{width:100%;min-width:0}}

/* 説明だけでなく、実際の操作・結果にも常時表示領域を割り当てる。 */
.shell{grid-template-columns:180px minmax(0,1fr)}
.workspace{padding:0 14px 5px}main#main{display:grid;grid-template-columns:290px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px;overflow:hidden;padding:8px 0}
.explanation-pane{min-width:0;min-height:0;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
.scene-story{padding:12px;gap:8px}.story-title{font-size:18px;line-height:1.5}.story-top{flex-wrap:wrap}.story-phase{font-size:10px}.story-role{font-size:11px}.motion-heading{display:none}.motion-theater{padding:9px}.motion-stations{gap:4px}.motion-stations span{font-size:10px;padding:5px 2px;overflow-wrap:anywhere}.motion-track{height:60px;margin:4px 0 0}.motion-packet{width:72px;min-height:48px;left:calc(var(--travel)*(100% - 72px));padding:4px}.motion-packet b{font-size:10px}.motion-stop{display:none}.scene-story .story-result{font-size:13px}.story-actions button{font-size:11px;padding:5px 7px;flex:1}.visual-detail summary{font-size:11px}.explain-details{font-size:12px}
.stage-pane{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #d8e2e7;border-radius:12px;background:#fff;overflow:hidden}
.stage-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:#eef4f7;border-bottom:1px solid #d8e2e7;flex-shrink:0;font-size:12px}.stage-heading span{font-size:10px;color:#5a6e79}
#stage{min-height:0;min-width:0;flex:1 1 0;overflow:auto;padding:12px;gap:10px;scrollbar-width:thin;scroll-padding:10px;overscroll-behavior:contain}
#stage .panel{padding:14px;box-shadow:none}.panel-head{margin-bottom:10px;padding-bottom:9px}.panel-head h2{font-size:16px}#stage .columns,#stage .wide-left,body[data-current-scene="7"] #stage .columns{grid-template-columns:minmax(0,1fr)}
#stage th,#stage td{padding:10px 7px;font-size:12px}#stage .note{font-size:12px;line-height:1.6;padding:10px}#stage .drop{min-height:100px;padding:16px}#stage .file{padding:10px;font-size:12px}#stage .file-stack{gap:6px;margin:8px 0}#stage .portal-bar,#stage .portal-content{padding:12px}#stage .actions{margin-top:10px;gap:6px}#stage .actions button{font-size:12px;padding:7px 10px}#stage .timeline{grid-template-columns:repeat(2,minmax(0,1fr))}#stage .hero{margin:8px 0}#stage .roles{margin:10px 0;gap:8px}#stage .intro-panel{padding:16px!important}
#stage .current-focus{outline:3px solid #258bb8;outline-offset:-3px;border-radius:5px;background-color:#eaf6fc;transition:background-color .2s}
.control-dock .caption{padding:5px 10px}.control-dock #live-next{display:none}.controls{padding:5px 8px}.controls button{min-height:34px;font-size:12px;padding:5px 9px}
@media(max-width:1100px){
 .shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:36px minmax(0,1fr)}aside{display:block;padding:3px 10px;min-width:0;min-height:0;border-right:0;border-bottom:1px solid #ddd}.brand,.aside-title,.aside-note,.nav-section{display:none}nav{display:flex;flex-direction:row;min-width:0;max-width:100%;gap:5px;overflow:auto;padding:0}nav button{font-size:11px;white-space:nowrap;min-height:28px;padding:3px 8px}nav button span{min-width:auto}
 header{min-height:34px;padding:4px 0}.workspace{padding:0 10px 4px}#material-ref{display:none}
 main#main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:7px;padding:6px 0}
 .explanation-pane{max-height:32dvh;overflow:auto}.explanation-pane>.explain-details{display:none}.scene-story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 12px;padding:10px}.visual-heading{grid-column:1;grid-row:1}.motion-theater{grid-column:2;grid-row:1/4;margin:0}.story-result{grid-column:1!important;grid-row:2}.story-actions{grid-column:1!important;grid-row:3}.transfer-progress{grid-column:1/-1!important;grid-row:4}.visual-detail{grid-column:1/-1;grid-row:5;padding-top:2px}.visual-detail summary{min-height:20px;line-height:20px}.story-title{font-size:17px}.story-top{margin-bottom:3px}.scene-story .story-result{font-size:12px;padding-top:4px}.motion-track{height:52px}.motion-packet{min-height:44px;top:2px}.stage-heading{padding:5px 10px}
}
@media(max-width:600px){
 .workspace{padding:0 6px 3px}header{min-height:30px;padding:3px 0}.scope{font-size:8px;max-width:112px}.explanation-pane{max-height:34dvh}.scene-story{padding:7px;gap:4px 7px;grid-template-columns:minmax(0,1fr) 105px}.story-title{font-size:14px;line-height:1.4}.story-role{font-size:10px}.story-phase{font-size:9px;padding:1px 3px}.story-top{gap:3px}.scene-story .story-result{font-size:11px;line-height:1.4}.motion-theater{padding:5px;display:flex;flex-direction:column;justify-content:center}.motion-stations{display:none}.motion-track{height:51px;margin:0;min-width:0}.motion-packet{width:52px;left:calc(var(--travel)*(100% - 52px));min-height:44px;gap:1px}.motion-packet b{font-size:9px}.motion-packet .visual-icon{width:16px;height:16px}.story-actions button{font-size:10px;padding:4px;min-height:28px}.visual-detail summary{font-size:10px}.stage-heading{font-size:11px}.stage-heading span{font-size:9px}#stage{padding:7px;gap:7px}#stage .panel{padding:10px}#stage .panel-head h2{font-size:14px}#stage th,#stage td{font-size:11px;padding:7px 4px}#stage .note{font-size:11px;padding:8px}#stage .actions button{font-size:11px}#stage .drop{min-height:80px;padding:10px}#stage .drop strong{font-size:16px}#stage .file-stack{flex-direction:row;flex-wrap:wrap}.caption #live-result{font-size:11px}.controls button{font-size:10px;min-height:32px}.control-dock .caption{padding:4px 7px}.controls{padding:4px}.stage-pane{border-radius:8px}
}
@media(max-height:500px) and (min-width:601px){
 main#main{grid-template-columns:250px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.explanation-pane{max-height:none}.scene-story{display:flex}.story-title{font-size:15px}.motion-track{height:45px}.scene-story .story-result{font-size:11px}.stage-heading{padding:4px 8px}.caption{padding:3px 8px}.controls{padding:3px 6px}header{min-height:27px}.scope{font-size:9px}.scene-story .visual-heading{display:block}
}

@media(max-width:600px){
 .explanation-pane{max-height:34dvh}.scene-story{grid-template-columns:80px minmax(0,1fr);gap:4px 6px}.visual-heading{grid-column:1/-1;grid-row:1}.story-top{display:none}.story-title{font-size:14px}.scene-story .story-result{grid-column:1/-1!important;grid-row:2}.motion-theater{grid-column:1;grid-row:3;padding:3px}.motion-track{height:37px}.motion-packet{min-height:32px;top:0;width:44px;left:calc(var(--travel)*(100% - 44px));padding:2px}.motion-packet .visual-icon{width:12px;height:12px}.motion-packet b{font-size:8px;white-space:nowrap}.story-actions{grid-column:2!important;grid-row:3;align-items:center}.story-actions button{min-height:32px}.transfer-progress{grid-row:4}.visual-detail{grid-row:5}.visual-detail summary{line-height:16px;min-height:16px}.stage-heading{padding:4px 7px}
 #stage .file{word-break:normal;overflow-wrap:normal;white-space:nowrap;flex:0 0 auto;font-size:11px}#stage .file-stack{flex-wrap:wrap}
}

/* 動く書類を操作画面の幅いっぱいに見せ、説明と操作結果をつなぐ。 */
#action-motion{flex:0 0 auto;min-width:0;padding:8px 12px 0;background:#f7fbfd}
#action-motion .motion-theater{display:block;margin:0;padding:8px 12px;border-radius:9px;background:#eff8fd;overflow:hidden}
#action-motion .motion-heading{display:flex;align-items:center;gap:8px;margin:0 0 6px;flex-direction:row;line-height:1.4}
#action-motion .motion-state{font-size:12px;padding:3px 8px;color:#fff;background:#276581;border-radius:4px;white-space:nowrap}
#action-motion .motion-step{font-size:12px;max-width:none;flex:1;text-align:left;color:#214e65}
#action-motion .motion-percent{font-size:13px;color:#276581;font-variant-numeric:tabular-nums}
#action-motion .motion-stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#action-motion .motion-stations span{font-size:11px;line-height:1.4;padding:4px;background:#fff;border:1px solid #c6dce8;transition:background-color .15s,color .15s}
#action-motion .motion-stations .motion-active{background:#276f94;color:white;border-color:#276f94}
#action-motion .motion-track{height:55px;margin:3px 5px 0;border-bottom:4px solid #c0dce9}
#action-motion .motion-fill{height:4px;bottom:-4px;background:#157dac}
#action-motion .motion-packet{width:104px;min-height:45px;top:3px;left:calc(var(--travel)*(100% - 104px));display:flex;flex-direction:row;padding:5px;gap:5px;border:2px solid #1685b8;box-shadow:4px 3px 0 #c5e3f1}
#action-motion .motion-packet .visual-icon{width:22px;height:22px}#action-motion .motion-packet b{font-size:11px;white-space:normal}
#action-motion .motion-theater[data-complete="true"]{background:#edf8f1;border-color:#b5d8c1}#action-motion .motion-theater[data-progress="moving"] .motion-state{background:#0876a7}#action-motion .motion-theater[data-paused="true"] .motion-state{background:#91662c}
#action-motion .motion-theater[data-progress="complete"] .motion-state{background:#28734c}
#action-motion .motion-theater[data-blocked="true"]{opacity:1}
.scene-story .transfer-progress{display:none!important}
.flow-overview{order:3;flex-shrink:0;border:1px solid #d3e0e6;background:#fafcfd;border-radius:9px;padding:10px}
.flow-overview h3{font-size:12px;margin:0 0 7px}.flow-overview .flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}.flow-overview .flow>div{padding:8px;min-height:0;font-size:11px}.flow-overview .flow .branches{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px}.flow-overview .flow .branches section{font-size:11px;padding:7px}
body[data-motion-paused="true"] #stage *,body[data-motion-paused="true"] #pointer{animation-play-state:paused!important}
@media(max-width:1100px){.scene-story{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}.visual-heading{grid-column:1;grid-row:1}.scene-story .story-result{grid-column:1!important;grid-row:2}.story-actions{grid-column:2!important;grid-row:1/3;align-items:center;max-width:230px}.visual-detail{grid-column:1/-1;grid-row:3}.explanation-pane{max-height:25dvh}}
@media(max-width:600px){.scene-story{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;padding:6px}.visual-heading{grid-column:1;grid-row:1}.scene-story .story-result{grid-column:1!important;grid-row:2}.story-actions{grid-column:1!important;grid-row:3;max-width:none}.story-actions button{min-height:26px;padding:3px}.visual-detail{grid-row:4}.explanation-pane{max-height:27dvh}#action-motion{padding:5px 6px 0}#action-motion .motion-theater{padding:5px}#action-motion .motion-heading{gap:4px;margin-bottom:3px}#action-motion .motion-state{font-size:9px;padding:2px 4px}#action-motion .motion-step{font-size:10px}#action-motion .motion-percent{font-size:10px}#action-motion .motion-stations{gap:3px}#action-motion .motion-stations span{font-size:9px;padding:3px 1px}#action-motion .motion-track{height:40px;margin:2px 1px 0}#action-motion .motion-packet{width:80px;min-height:31px;top:2px;padding:3px;left:calc(var(--travel)*(100% - 80px))}#action-motion .motion-packet b{font-size:9px}#action-motion .motion-packet .visual-icon{width:17px;height:17px}.flow-overview .flow{grid-template-columns:1fr}.flow-overview .flow .branches{grid-template-columns:1fr}.flow-overview{padding:8px}.stage-heading{padding:3px 7px}}
@media(max-height:500px) and (min-width:601px){.scene-story{display:flex}#action-motion{padding:4px 6px 0}#action-motion .motion-theater{padding:4px 8px}#action-motion .motion-heading{margin-bottom:2px}#action-motion .motion-stations{display:none}#action-motion .motion-track{height:38px}#action-motion .motion-packet{min-height:30px;top:1px}#action-motion .motion-packet .visual-icon{width:18px;height:18px}.explanation-pane{max-height:none}}

@media(min-width:601px) and (max-width:1100px) and (max-height:740px){main#main{grid-template-columns:230px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}.explanation-pane{max-height:none}.scene-story{display:flex}}
@media(max-width:600px) and (max-height:650px){.stage-heading{display:none}.visual-detail{display:none}.explanation-pane{max-height:none}.story-title{font-size:13px}#action-motion .motion-track{height:32px}#action-motion .motion-packet{min-height:27px;top:0}#action-motion .motion-packet .visual-icon{width:14px;height:14px}#action-motion .motion-theater{padding:4px}#action-motion .motion-heading{margin-bottom:2px}}
@media(max-height:500px) and (min-width:601px){.stage-heading{display:none}#action-motion .motion-track{height:30px}#action-motion .motion-packet{min-height:26px;top:0}#action-motion .motion-theater{padding:3px 7px}.control-dock .caption{padding:2px 7px}.controls{padding:2px 6px}.controls button{min-height:29px}.shell{grid-template-rows:31px minmax(0,1fr)}aside{padding:1px 10px}header{min-height:25px}}

/* スクロール枠内の文書一覧を縮めず、リンクまで確実に到達できるようにする。 */
#stage>*{flex-shrink:0}#stage .portal{flex-shrink:0;min-height:min-content}
#stage .stat{padding:10px}#stage .stat strong{font-size:30px;line-height:1.2;margin:7px 0}#stage .stat span{font-size:11px}
@media(max-width:600px) and (max-height:650px){.control-dock .caption{display:none}#action-motion{padding-top:3px}#action-motion .motion-theater{padding:3px}}
@media(max-height:500px) and (min-width:601px){.control-dock .caption{display:none}}

/* 現在の動作・結果を主表示にする。小さい画面でも省略せず読める大きさで表示。 */
.control-dock .caption{display:grid!important;grid-template-columns:minmax(0,1fr);gap:5px;padding:12px 18px;background:#edf6fb;border-left:5px solid #24769b;color:#173b4d}
.control-dock .caption .live-top{display:flex;align-items:center;justify-content:space-between;gap:10px;grid-column:1;grid-row:1}
.control-dock .caption #live-mode{font-size:14px;line-height:1.4;padding:3px 8px;grid-column:auto;grid-row:auto;font-weight:700}
.control-dock .caption #live-clock{font-size:11px;line-height:1.4;grid-column:auto;grid-row:auto}
.control-dock .caption #live-result{font-size:28px;font-weight:700;line-height:1.4;letter-spacing:.015em;grid-column:1;grid-row:2;overflow-wrap:anywhere;color:#173b4d}
.control-dock .caption[data-state="paused"]{background:#fff8eb;border-left-color:#a57525}
.control-dock .caption[data-state="done"]{background:#eef8f1;border-left-color:#32815a}
@media(max-height:740px){.control-dock .caption{padding:7px 12px;gap:3px}.control-dock .caption #live-result{font-size:22px}.control-dock .caption #live-mode{font-size:12px;padding:2px 6px}.control-dock .caption #live-clock{font-size:10px}}
@media(max-width:600px){.control-dock .caption{padding:6px 9px;gap:3px;border-left-width:4px}.control-dock .caption #live-result{font-size:19px;line-height:1.35;letter-spacing:0}.control-dock .caption #live-mode{font-size:12px;padding:2px 5px}.control-dock .caption #live-clock{font-size:9px}}
@media(max-width:600px) and (max-height:650px){.scene-story .visual-heading{display:none}.control-dock .caption #live-clock{max-width:65%;text-align:right}.control-dock .caption #live-result{font-size:18px}.control-dock .caption{padding:5px 8px}}
@media(max-height:500px) and (min-width:601px){.control-dock .caption{padding:4px 10px;gap:2px}.control-dock .caption #live-result{font-size:19px;line-height:1.3}.control-dock .caption #live-mode{font-size:11px;padding:1px 5px}#action-motion .motion-heading{display:none}}

/* 結果を読むための面積を確保し、文章が増えた場合は欄も伸ばす。 */
.control-dock .caption{min-height:128px;padding:18px 24px;gap:8px;align-content:center}
.control-dock .caption #live-result{font-size:32px;line-height:1.4}
@media(max-height:740px){.control-dock .caption{min-height:96px;padding:10px 16px;gap:4px}.control-dock .caption #live-result{font-size:24px}}
@media(max-width:600px){.control-dock .caption{min-height:88px;padding:8px 12px;gap:4px}.control-dock .caption #live-result{font-size:20px}}
@media(max-width:600px) and (max-height:650px){.control-dock .caption{min-height:80px;padding:7px 10px;gap:3px}.control-dock .caption #live-result{font-size:18px}}
@media(max-height:500px) and (min-width:601px){.control-dock .caption{min-height:70px;padding:5px 12px;gap:2px}.control-dock .caption #live-result{font-size:18px}}

@media(max-width:600px) and (max-height:650px){#action-motion .motion-stations{display:none}}
@media(max-height:500px) and (min-width:601px){.shell{grid-template-rows:28px minmax(0,1fr)}header{padding:0;min-height:24px}main#main{padding:2px 0;gap:6px}}

/* 強調対象の淡色背景でも操作名を読みやすく保つ */
#stage button.current-focus,#stage a.current-focus{color:#173f52}

#stage button.current-focus,#stage a.current-focus{background-color:#eaf6fc;transition:none}

/* 狭い画面のイラスト配置 */
/* 説明資料（PDF）と同じイラストを、左の欄の説明カードの下に表示する（静止画） */
.il-sprite{position:absolute;width:0;height:0;overflow:hidden}
.scene-illust{order:2;flex-shrink:0;position:relative;margin:0;padding:40px 8px 6px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.scene-illust:empty{display:none}
.scene-illust[data-scene="0"]{padding-top:8px}
.il-role{position:absolute;left:10px;top:9px;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 11px 2px 3px;font-size:12.5px;font-weight:700;line-height:1.3;white-space:nowrap}
.il-role svg{width:24px;height:24px;border-radius:50%;background:#fff}
.il-role.off{background:#1c1917;color:#fff}
.il-role.cli{background:#fff;color:#1c1917;box-shadow:inset 0 0 0 1.5px #1c1917}
.il-role.auto{background:var(--blue);color:#fff}
.il-role.oth{background:#f5f5f4;color:#57534e;box-shadow:inset 0 0 0 1px var(--line)}
.scene-illust .il-big{display:block;width:100%;height:auto}
.scene-illust .il-scene{aspect-ratio:320/220}
.scene-illust .il-cover{aspect-ratio:600/260}
.scene-illust .il-robot{aspect-ratio:90/104;width:auto;height:110px;margin:0 auto}
@media(max-width:1100px){.scene-illust{width:100%;max-width:420px;align-self:center}}
@media(max-width:600px){.scene-illust{padding-top:36px}.il-role{font-size:11.5px}.scene-illust .il-robot{height:96px}}

/* 狭い画面のイラスト配置：説明カードの右横に小さく置く（上下に並ぶ配置のとき） */
@media(min-width:601px) and (max-width:1100px) and (min-height:741px){
 .explanation-pane{display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:start;gap:8px}
 .explanation-pane>.scene-story{grid-column:1;grid-row:1}
 .explanation-pane>.scene-illust{grid-column:2;grid-row:1;max-width:none;padding:30px 6px 4px}
 .scene-illust .il-role{left:7px;top:6px;font-size:11px;padding:1px 9px 1px 2px;gap:5px}
 .scene-illust .il-role svg{width:22px;height:22px}
 .scene-illust .il-robot{height:100px}
 .scene-illust[data-scene="0"]{padding-top:6px}
}
@media(max-width:600px){
 .explanation-pane{display:grid;grid-template-columns:minmax(0,1fr) 118px;align-items:start;gap:6px}
 .explanation-pane>.scene-story{grid-column:1;grid-row:1}
 .explanation-pane>.scene-illust{grid-column:2;grid-row:1;max-width:none;padding:4px;border-radius:10px}
 .scene-illust .il-role{display:none}
 .scene-illust .il-robot{height:76px}
}
/* 背の低い横長画面：左の欄でイラストが切れにくいよう小さくする */
@media(min-width:1101px) and (max-height:650px){.scene-illust{width:100%;max-width:230px;align-self:center;padding:30px 6px 4px}.scene-illust .il-role{left:7px;top:6px;font-size:11px;padding:1px 9px 1px 2px;gap:5px}.scene-illust .il-role svg{width:22px;height:22px}.scene-illust .il-robot{height:88px}.scene-illust[data-scene="0"]{padding-top:6px}}
/* イラスト2：左の欄を広げ、場面の図を主役の大きさにする */
.scene-illust .il-wide{aspect-ratio:480/288}
@media(min-width:1101px) and (min-height:501px){
 main#main{grid-template-columns:clamp(380px,34vw,560px) minmax(0,1fr)}
 .scene-illust{padding:46px 10px 8px}
 .il-role{left:12px;top:11px;font-size:13px;padding:2px 12px 2px 3px}
 .il-role svg{width:26px;height:26px}
}
@media(min-width:1101px) and (max-width:1500px) and (min-height:501px){.columns,.wide-left{grid-template-columns:1fr}}
@media(min-width:1101px) and (max-height:650px) and (min-height:501px){.scene-illust{max-width:none;padding-top:36px}}
@media(min-width:601px) and (max-width:1100px) and (min-height:741px){
 .explanation-pane{grid-template-columns:minmax(0,1fr) 300px;max-height:34dvh}
}
@media(max-width:600px){.explanation-pane{grid-template-columns:minmax(0,1fr) 150px}}
/* イラスト2：狭い画面の高さ別の調整 */
@media(min-width:601px) and (max-width:1100px) and (min-height:741px) and (max-height:899px){.explanation-pane{grid-template-columns:minmax(0,1fr) 250px;max-height:25dvh}}
@media(min-width:601px) and (max-width:1100px) and (min-height:900px){.explanation-pane{grid-template-columns:minmax(0,1fr) 300px;max-height:30dvh}}
/* イラスト2：横長の画面で図の高さの上限を画面の高さから決める（切れないように・できるだけ大きく） */
@media(min-width:1101px) and (min-height:501px){.scene-illust .il-big{max-height:max(110px,calc(100dvh - 520px))}}
/* イラスト3：背の低い横長画面ではカードを詰め、図を大きく保つ */
@media(min-width:1101px) and (max-height:800px) and (min-height:501px){.scene-story{padding:10px 14px;gap:5px}.story-title{font-size:18px;line-height:1.35}.scene-story .story-result{font-size:13px;line-height:1.5;padding-top:5px}.story-actions button{min-height:32px;padding:4px 10px;font-size:12.5px}.visual-detail summary{font-size:12px;min-height:24px}.scene-illust{padding:6px}.scene-illust .il-role{display:none}.scene-illust .il-big{max-height:max(150px,calc(100dvh - 418px))}}
@media(min-width:601px) and (max-width:1100px) and (min-height:900px){.explanation-pane{max-height:27dvh}}
/* 最終修正：高さ650px以下の横長画面では「詳しい図・番号・確認手順を見る」を隠し、図の高さの上限を広げる */
@media(min-width:1101px) and (max-height:650px) and (min-height:501px){.scene-story .visual-detail{display:none}.scene-illust .il-big{max-height:max(150px,calc(100dvh - 388px))}}
/* 動き（見本：場面02・05・08）。人の操作＝押すとその場で1回変わる／自動＝1件ずつ確定。動くのは一度に1か所 */
.scene-illust .a-result,.scene-illust .a-lock,.scene-illust .a-num,.scene-illust .a-verdict,.scene-illust .a-ok{transform-box:fill-box;transform-origin:center}
#scene-illust:not([data-phase=done]) .a-result,#scene-illust .a-up,#scene-illust .a-down,#scene-illust:not([data-phase=done]) .a-lock,#scene-illust:not([data-phase=done]) .a-verdict,#scene-illust:not([data-phase=done]) .a-ok{opacity:0}
#scene-illust[data-phase=done] .a-result{animation:il-pop .5s .3s both}
#scene-illust[data-phase=done] .a-lock{animation:il-pop .5s .2s both}
#scene-illust[data-phase=done][data-rev="0"] .a-lock{opacity:0;animation:none}
#scene-illust[data-phase=done] .a-verdict{animation:il-pop .5s .2s both}
#scene-illust[data-phase=done] .a-ok{animation:il-pop .5s .5s both}
#scene-illust[data-phase=done][data-ok=false] .a-ok{opacity:0;animation:none}
#scene-illust[data-ok=false] .a-verdict rect{fill:#fbefdc}#scene-illust[data-ok=false] .a-verdict text,#scene-illust[data-ok=false] .a-sign{fill:#986013}
#scene-illust[data-phase=waiting] .a-drag{animation:il-drag 2.4s ease-in-out 3 both}
#scene-illust[data-phase=done] .a-drag{opacity:0}
#scene-illust[data-phase=running][data-step="0"] .a-src{animation:il-glow .45s ease-in-out infinite alternate}
#scene-illust[data-phase=running]:is([data-step="1"],[data-step="2"]) .a-up{opacity:1;animation:il-up .8s ease-in-out both}
#scene-illust[data-phase=running][data-step="2"] .a-down{opacity:1;animation:il-down .8s ease-in-out both}
#scene-illust[data-phase=running][data-step="0"] .a-recv,#scene-illust[data-phase=running][data-step="1"] .a-proc,#scene-illust[data-phase=running][data-step="2"] .a-sign{animation:il-pop .45s both}
@keyframes il-drag{0%{transform:translate(-46px,-40px);opacity:0}15%{opacity:1}65%{transform:translate(0,0);opacity:1}100%{transform:translate(0,0);opacity:1}}
@keyframes il-pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.12);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes il-up{from{transform:translate(0,0)}to{transform:translate(170px,-48px)}}
@keyframes il-down{from{transform:translate(0,0)}to{transform:translate(170px,72px)}}
@keyframes il-glow{to{opacity:.45}}
/* 右の模擬画面：結果の入場（操作・状態・配置は変えない） */
#stage .a-taken .file{animation:st-take .6s ease-in both}
#stage .a-taken .file:nth-child(2){animation-delay:.1s}#stage .a-taken .file:nth-child(3){animation-delay:.2s}
@keyframes st-take{from{transform:none;opacity:1}to{transform:translateY(24px) scale(.92);opacity:.35}}
#stage .a-rows tbody tr{animation:st-row .4s ease-out both}
#stage .a-rows tbody tr:nth-child(2){animation-delay:.3s}#stage .a-rows tbody tr:nth-child(3){animation-delay:.6s}
@keyframes st-row{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
#stage .a-count .stat strong{display:inline-block;animation:il-pop .5s both}
#stage .a-count .stat:nth-child(2) strong{animation-delay:.3s}#stage .a-count .stat:nth-child(3) strong{animation-delay:.6s}
/* 進み具合の帯を縮小：動く札と段階の3枠を隠し、段階名・％・細い進捗線だけにする */
#action-motion .motion-stations,#action-motion .motion-track{display:none}
#action-motion .motion-theater::after{content:"";display:block;height:4px;margin-top:6px;border-radius:2px;background:linear-gradient(90deg,#157dac calc(var(--travel,0)*100%),#c6dce8 0)}
/* 一時停止中は止める／視覚効果を減らす設定では動かさない（最終状態を表示） */
body[data-motion-paused=true] #scene-illust *,body[data-motion-paused=true] #stage [class*="a-"] *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#scene-illust *,#stage .a-taken .file,#stage .a-rows tr,#stage .a-count strong{animation:none!important}#scene-illust[data-phase=running] .a-up,#scene-illust[data-phase=running] .a-down{opacity:0}}
/* 動きの見本の調整：場面05 の元の3件 */
#scene-illust[data-phase=running]:is([data-step="1"],[data-step="2"]) .a-src,#scene-illust[data-phase=done] .a-src{opacity:.3;transition:opacity .4s}
/* 動きの展開（残り11場面） */
.scene-illust :is(.a-flow,.a-hint,.a-reach,.a-cab,.a-scanA,.a-scanB,.a-sign4,.a-bell,.a-card,.a-h1,.a-h2,.a-h3,.a-k1,.a-k3,.a-row,.a-move,.a-new1,.a-new2,.a-dragR,.a-hist,.a-code,.a-before){transform-box:fill-box;transform-origin:center}
@keyframes il-hint{0%,100%{opacity:1}50%{opacity:.15}}
@keyframes il-row{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
/* 00 全体：書類が 職員 → 自動 → 顧問先 へ渡る（最大3回） */
#scene-illust .a-flow{opacity:0}
#scene-illust:not([data-phase=done]):not([data-phase=blocked]) .a-flow{animation:il-flow 3s ease-in-out 3 both}
@keyframes il-flow{0%{transform:translate(0,0);opacity:0}10%{opacity:1}42%,55%{transform:translate(110px,-14px);opacity:1}88%{transform:translate(244px,-12px);opacity:1}100%{transform:translate(244px,-12px);opacity:0}}
/* 押す場所の点滅（01・06・09・13）。押したら消える */
#scene-illust:not([data-phase=done]) .a-hint,#scene-illust:not([data-phase=done]) .a-reach{animation:il-hint 1.2s ease-in-out 3 both}
#scene-illust[data-phase=done] .a-hint,#scene-illust[data-phase=done] .a-before{opacity:0}
/* 03 原本の保管（自動）：取り込み用が光る → 3件が保管庫へ → チェック */
#scene-illust .a-cab{opacity:0}
#scene-illust[data-phase=running]:is([data-step="1"],[data-step="2"]) .a-cab{opacity:1;animation:il-cab .8s ease-in-out both}
@keyframes il-cab{from{transform:translate(0,0)}to{transform:translate(162px,-24px) scale(.7)}}
/* 04 番号の照合（自動）：文書の番号が光る → 設定表を走査 → ＝ */
#scene-illust[data-phase=running][data-step="0"] .a-scanA{animation:il-glow .45s ease-in-out infinite alternate}
#scene-illust:not([data-phase=done]):not([data-phase=running]) .a-scanB,#scene-illust[data-phase=running][data-step="0"] .a-scanB{opacity:0}
#scene-illust[data-phase=running][data-step="1"] .a-scanB{animation:il-scan .85s ease-in-out both}
@keyframes il-scan{0%{transform:translateY(56px)}50%{transform:translateY(28px)}100%{transform:none}}
#scene-illust:not([data-phase=done]) .a-sign4{opacity:0}
#scene-illust[data-phase=running][data-step="2"] .a-sign4{opacity:1;animation:il-pop .45s both}
/* 06 要確認の通知：カードが差し込まれ、ベルが鳴る。対応後は薄く */
#scene-illust .a-card{animation:il-slide .6s .2s ease-out both}
@keyframes il-slide{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
.scene-illust .a-bell{transform-origin:50% 25%}
#scene-illust:not([data-phase=done]):not([data-res=true]) .a-bell{animation:il-ring .9s .8s ease-in-out 3 both}
@keyframes il-ring{0%,100%{transform:rotate(0)}20%{transform:rotate(-12deg)}40%{transform:rotate(10deg)}60%{transform:rotate(-6deg)}80%{transform:rotate(4deg)}}
#scene-illust[data-res=true] .a-card{animation:none;opacity:.45}
#scene-illust[data-res=true] .a-bell{opacity:.35}
/* 07 職員の振り分け：操作に合わせて ①確認 → ②1行足す → ③GHI社へ移す */
#scene-illust .a-h1,#scene-illust .a-h2,#scene-illust .a-h3{opacity:0}
#scene-illust:is([data-r="0"],[data-r="1"]) .a-h1,#scene-illust[data-r="2"] .a-h2,#scene-illust[data-r="3"] .a-h3{animation:il-hint 1.2s ease-in-out 3 both}
#scene-illust:not(:is([data-r="2"],[data-r="3"],[data-r="4"])) .a-k1{opacity:0}
#scene-illust:is([data-r="2"],[data-r="3"],[data-r="4"]) .a-k1{animation:il-pop .5s both}
#scene-illust:not(:is([data-r="3"],[data-r="4"])) .a-row{opacity:0}
#scene-illust:is([data-r="3"],[data-r="4"]) .a-row{animation:il-row .5s both}
#scene-illust[data-r="4"] .a-move{opacity:0;animation:il-file .9s ease-in-out both}
@keyframes il-file{0%{transform:none;opacity:1}80%{opacity:1}100%{transform:translate(32px,92px) scale(.55);opacity:0}}
#scene-illust:not([data-r="4"]) .a-k3{opacity:0}
#scene-illust[data-r="4"] .a-k3{animation:il-pop .5s .8s both}
/* 09 顧問先の入口：自動再生ではコードを打ち込み、入ると新着が公開件数ぶん並ぶ */
#scene-illust[data-phase=running] .a-code{animation:il-type .6s steps(6,end) both}
@keyframes il-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
#scene-illust .a-new1,#scene-illust .a-new2,#scene-illust:not([data-phase=done]) [data-k="news"]{opacity:0}
#scene-illust[data-phase=done]:is([data-news="1"],[data-news="2"]) .a-new1{opacity:1;animation:il-row .4s .2s both}
#scene-illust[data-phase=done][data-news="2"] .a-new2{opacity:1;animation:il-row .4s .5s both}
/* 10・12 書類を運ぶ動き（操作の前に最大3回） */
.scene-illust .a-dragR{--dx:116px;--dy:-4px}
body[data-current-scene="12"] .scene-illust .a-dragR{--dx:150px;--dy:-44px}
#scene-illust:not([data-phase=done]):not([data-phase=blocked]) .a-dragR{animation:il-dragR 2.4s ease-in-out 3 both}
@keyframes il-dragR{0%{transform:none;opacity:1}55%{transform:translate(var(--dx),var(--dy)) scale(.6);opacity:0}56%{transform:none;opacity:0}75%,100%{transform:none;opacity:1}}
/* 12 版の履歴：第3版が入ると旧版が1段下がる */
#scene-illust:not([data-phase=done]) .a-hist{transform:translateY(-38px)}
#scene-illust[data-phase=done] .a-hist{animation:il-shift .5s ease-out both}
@keyframes il-shift{from{transform:translateY(-38px)}to{transform:none}}
/* 13 見方のボタンは表示中の見方に追従 */
#scene-illust .a-v0,#scene-illust .a-v1,#scene-illust .a-v2{opacity:0;transition:opacity .3s}
#scene-illust[data-view="0"] .a-v0,#scene-illust[data-view="1"] .a-v1,#scene-illust[data-view="2"] .a-v2{opacity:1}
/* 右の模擬画面：結果の入場（01・03・04・06・09・10・11・12・13） */
body[data-current-scene="1"] #stage td .pill.green,body[data-current-scene="13"] #stage td .pill.green{animation:il-pop .5s both}
body[data-current-scene="1"] #stage tbody tr:nth-child(3) td .pill.green{animation-delay:.25s}
#stage .a-judge tbody tr td:nth-child(n+3){animation:st-row .4s ease-out both}
#stage .a-judge tbody tr:nth-child(2) td:nth-child(n+3){animation-delay:.3s}#stage .a-judge tbody tr:nth-child(3) td:nth-child(n+3){animation-delay:.6s}
#stage .a-slide{animation:il-slide .5s ease-out both}
#stage .a-docs .doc-row{animation:st-row .4s ease-out both}#stage .a-docs .doc-row:nth-child(2){animation-delay:.3s}
#stage .a-fade{animation:st-fade .5s ease-out both}
@keyframes st-fade{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
#stage .a-ins{animation:st-row .4s ease-out both}
body[data-motion-paused=true] #stage [class*="a-"],body[data-motion-paused=true] #stage td .pill{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){#stage [class*="a-"],#stage [class*="a-"] *,#stage td .pill{animation:none!important}#scene-illust .a-cab{opacity:0!important}}
/* 動きの調整（Fable 確認の指摘） */
/* 必須1：前提不足では押す場所・通知を動かさない */
#scene-illust[data-phase=blocked][data-phase=blocked] :is(.a-hint,.a-h1,.a-h2,.a-h3){animation:none;opacity:0}
#scene-illust[data-phase=blocked][data-phase=blocked] :is(.a-bell,.a-card){animation:none}
/* 必須2：場面06 は カードの差し込み → ベル → 押す場所 の順。右画面の差し込みは止める */
body[data-current-scene="6"] #scene-illust:not([data-phase=done]) .a-hint{animation-delay:3.5s}
#stage .a-slide{animation:none}
/* 推奨3：右画面の結果の入場は、結果を生んだ状態が変わった時・場面に入った時だけ */
#stage:not([data-fresh~="all"]):not([data-fresh~="imported"]) .a-taken .file{animation-duration:0s!important;animation-delay:0s!important}
#stage:not([data-fresh~="all"]):not([data-fresh~="archived"]):not([data-fresh~="published"]) .a-rows tbody tr{animation-duration:0s!important;animation-delay:0s!important}
#stage:not([data-fresh~="all"]):not([data-fresh~="countResult"]) .a-count .stat strong{animation-duration:0s!important;animation-delay:0s!important}
#stage:not([data-fresh~="all"]):not([data-fresh~="matchResult"]) .a-judge tbody tr td{animation-duration:0s!important;animation-delay:0s!important}
#stage:not([data-fresh~="all"]):not([data-fresh~="logged"]):not([data-fresh~="payroll"]) .a-docs .doc-row{animation-duration:0s!important;animation-delay:0s!important}
#stage:not([data-fresh~="all"]):not([data-fresh~="denied"]) .a-fade{animation-duration:0s!important;animation-delay:0s!important}
#stage:not([data-fresh~="all"]):not([data-fresh~="ruleVersion"]) .a-ins{animation-duration:0s!important;animation-delay:0s!important}
body[data-current-scene="1"] #stage:not([data-fresh~="all"]):not([data-fresh~="acquired"]) td .pill.green,body[data-current-scene="13"] #stage:not([data-fresh~="all"]):not([data-fresh~="completed"]) td .pill.green{animation-duration:0s!important;animation-delay:0s!important}
/* 推奨4：場面03 では取り込み用を薄くしない */
body[data-current-scene="3"] #scene-illust[data-phase][data-step] .a-src{opacity:1}
/* 任意6：場面00 の書類はロボットの上を通す */
@keyframes il-flow{0%{transform:translate(0,0);opacity:0}10%{opacity:1}42%,55%{transform:translate(110px,-40px);opacity:.8}88%{transform:translate(244px,-12px);opacity:1}100%{transform:translate(244px,-12px);opacity:0}}
/* 任意8：場面09 は入れる前のコードを薄く */
#scene-illust[data-phase=waiting] .a-code{opacity:.35}
/* 動きの改善（深掘り検証の指摘） */
/* 推奨2：右画面の緑枠は結果を生む状態が変わった時・場面に入った時だけ */
#stage.result-arrived:not([data-fresh~="all"]):not([data-fresh~="acquired"]):not([data-fresh~="imported"]):not([data-fresh~="archived"]):not([data-fresh~="read"]):not([data-fresh~="matchResult"]):not([data-fresh~="classified"]):not([data-fresh~="published"]):not([data-fresh~="review"]):not([data-fresh~="reviewOpened"]):not([data-fresh~="reviewConfirmed"]):not([data-fresh~="registered"]):not([data-fresh~="resolved"]):not([data-fresh~="countResult"]):not([data-fresh~="logged"]):not([data-fresh~="payroll"]):not([data-fresh~="denied"]):not([data-fresh~="ruleVersion"]):not([data-fresh~="completed"])>*{animation:none!important}
/* 推奨4：04 の走査は次の「＝」と重ならない長さに */
#scene-illust[data-phase=running][data-step="1"] .a-scanB{animation-duration:.55s}
/* 任意：00 の書類はロボットの頭の上を通す */
@keyframes il-flow{0%{transform:translate(0,0);opacity:0}10%{opacity:1}42%,55%{transform:translate(110px,-58px);opacity:.8}88%{transform:translate(244px,-12px);opacity:1}100%{transform:translate(244px,-12px);opacity:0}}
/* 任意：02 の運ぶ動きは自動再生の処理中も続ける */
#scene-illust:not([data-phase=done]):not([data-phase=blocked]) .a-drag{animation:il-drag 2.4s ease-in-out 3 both}
/* 任意：10・12 の結果は拡大しすぎず図の端で切れないように */
body:is([data-current-scene="10"],[data-current-scene="12"]) #scene-illust[data-phase=done] .a-result{animation-name:il-pop-soft}
@keyframes il-pop-soft{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
/* 推奨3：視覚効果を減らす設定でも最終状態を見せる */
@media(prefers-reduced-motion:reduce){#stage .a-taken .file{opacity:.35;transform:translateY(24px) scale(.92)}
#scene-illust:is([data-r="0"],[data-r="1"]) .a-h1,#scene-illust[data-r="2"] .a-h2,#scene-illust[data-r="3"] .a-h3{opacity:1}}
/* 運営会社のサイトへのリンク（2026-11-09） */
.head-right{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.corp-link{font-size:12px;font-weight:600;color:#325d75;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.corp-link:hover,.corp-link:focus-visible{color:#1e4357}
.brand-link{color:inherit;text-decoration:none}
.brand-link:hover,.brand-link:focus-visible{text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.head-right{flex-direction:column;align-items:flex-end;gap:4px}.corp-link{font-size:11px}}
