commit aa0828f332dc7f1ec8150fa88c0d2259321173ed
Author: Claude <noreply@anthropic.com>
Date:   Sun Nov 15 09:29:09 2026 +0900

    series8：3Dの場面を黒い面に。上に動画と説明、下に全場面の一覧（場所で絞れる）
    
    場面の動画が増えていく前提で、カードの枠をやめてセクション全面を使う形にした（E案）。
    sim_scenes.json に場面ごとの group（薬剤部・病棟・廊下）と groups を追加。
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01LevEXViyto4R9Xg5G5G5gR

diff --git a/src/components/SimScenes.astro b/src/components/SimScenes.astro
index 9aa36c0..7a6e4dd 100644
--- a/src/components/SimScenes.astro
+++ b/src/components/SimScenes.astro
@@ -2,6 +2,7 @@
 // サービスロボット導入シミュレーション（/series8）の「3Dの場面」（2026-11-13・LOG503）
 // 看護師と搬送ロボット「ハコブくん」のやり取りを、場面ごとに動画と説明のパネルで見せる。
 // 中身は src/data/sim_scenes.json。動画は R2 の /media/。
+// 黒い面に、上に大きな動画と説明、下に全場面の一覧（場所で絞れる）を置く。場面が増えても一覧が伸びるだけで形は崩れない（2026-11-15）。
 // 場面を選ぶ → 動画と説明が切り替わる。角度（本番・横から・真上）を切り替えられる。
 // 本番と真上の動画では、流れの行を押すとその時刻へ移り、再生中の行に印が付く。
 import data from '../data/sim_scenes.json';
@@ -9,21 +10,11 @@ import { media } from '../lib/media';
 const first = data.scenes[0];
 const fmt = (t: number) => `0:${String(Math.floor(t)).padStart(2, '0')}`;
 ---
-<section class="sec s-3d" id="scenes" data-ev-area="scenes"><div class="panel">
+<section class="s-3d" id="scenes" data-ev-area="scenes"><div class="sc-in">
   <h2 class="sec-h">3Dで見る現場の場面 | Scenes</h2>
   <p class="sc-lead">{data.title}</p>
   <p class="sc-note">{data.note}</p>
 
-  <div class="sc-picks" role="tablist" aria-label="3Dの場面">
-    {data.scenes.map((s, i) => (
-      <button type="button" role="tab" class="sc-pick" id={`sctab-${s.id}`} aria-selected={i === 0 ? 'true' : 'false'} aria-controls="sc-stage" data-scene={s.id} data-ev={`3Dの場面:${s.name}`}>
-        <img src={media(s.poster)} alt="" loading="lazy" />
-        <span class="sc-pick-n">{s.num}</span>
-        <b>{s.name}</b><span class="sc-pick-s">{s.short}</span>
-      </button>
-    ))}
-  </div>
-
   <div class="sc-stage" id="sc-stage" role="tabpanel">
     <div class="sc-video">
       <div class="sc-frame">
@@ -38,23 +29,37 @@ const fmt = (t: number) => `0:${String(Math.floor(t)).padStart(2, '0')}`;
     </div>
 
     <div class="sc-info">
-      <p class="sc-num" id="sc-num">場面 {first.num}</p>
       <h3 class="sc-name" id="sc-name">{first.name}</h3>
       <dl class="sc-meta">
         <div><dt>場所</dt><dd id="sc-place">{first.place}</dd></div>
         <div><dt>登場</dt><dd id="sc-who">{first.who}</dd></div>
       </dl>
       <p class="sc-sit" id="sc-sit">{first.situation}</p>
-      <p class="sc-h">流れ<span id="sc-steps-hint">（押すとその場面へ）</span></p>
+      <p class="sc-h sc-h-steps">流れ<span id="sc-steps-hint">（押すとその場面へ）</span></p>
       <ol class="sc-steps" id="sc-steps">
         {first.steps.map((st) => (
           <li><button type="button" data-t={st.t}><time>{fmt(st.t)}</time><span>{st.text}</span></button></li>
         ))}
       </ol>
-      <p class="sc-h">見どころ</p>
+      <p class="sc-h sc-h-points">見どころ</p>
       <ul class="sc-points" id="sc-points">{first.points.map((p) => <li>{p}</li>)}</ul>
     </div>
   </div>
+  {data.groups && data.groups.length > 1 && (
+    <div class="sc-filter" role="group" aria-label="場所で絞る">
+      <button type="button" aria-pressed="true" data-group="">すべて</button>
+      {data.groups.map((g) => <button type="button" aria-pressed="false" data-group={g}>{g}</button>)}
+    </div>
+  )}
+  <div class="sc-picks" role="tablist" aria-label="3Dの場面">
+    {data.scenes.map((s, i) => (
+      <button type="button" role="tab" class="sc-pick" data-group={s.group} id={`sctab-${s.id}`} aria-selected={i === 0 ? 'true' : 'false'} aria-controls="sc-stage" data-scene={s.id} data-ev={`3Dの場面:${s.name}`}>
+        <img src={media(s.poster)} alt="" loading="lazy" />
+        <b>{s.name}</b>
+      </button>
+    ))}
+  </div>
+
   <a class="sc-log" href={data.log.href} data-ev="3Dの場面の記録を開く">{data.log.label} →</a>
 </div></section>
 
@@ -84,7 +89,7 @@ const fmt = (t: number) => `0:${String(Math.floor(t)).padStart(2, '0')}`;
   const setScene = (s, push) => {
     scene = s;
     picks.forEach((b) => { const on = b.dataset.scene === s.id; b.setAttribute('aria-selected', String(on)); b.tabIndex = on ? 0 : -1; });
-    $('sc-num').textContent = `場面 ${s.num}`; $('sc-name').textContent = s.name;
+    $('sc-name').textContent = s.name;
     $('sc-place').textContent = s.place; $('sc-who').textContent = s.who; $('sc-sit').textContent = s.situation;
     $('sc-points').innerHTML = s.points.map((p) => `<li>${esc(p)}</li>`).join('');
     $('sc-steps').innerHTML = s.steps.map((st) => `<li><button type="button" data-t="${st.t}"><time>${fmt(st.t)}</time><span>${esc(st.text)}</span></button></li>`).join('');
@@ -113,12 +118,24 @@ const fmt = (t: number) => `0:${String(Math.floor(t)).padStart(2, '0')}`;
   });
   picks.forEach((b, i) => {
     b.tabIndex = i === 0 ? 0 : -1;
-    b.addEventListener('click', () => setScene(scenes.find((s) => s.id === b.dataset.scene), true));
+    b.addEventListener('click', () => {
+      setScene(scenes.find((s) => s.id === b.dataset.scene), true);
+      // 一覧は動画の下にあるので、選んだら動画の位置へ戻す
+      const st = $('sc-stage'); if (st.getBoundingClientRect().top < 0) st.scrollIntoView({ behavior: 'smooth' });
+    });
     b.addEventListener('keydown', (e) => {
       const k = e.key === 'ArrowRight' ? 1 : e.key === 'ArrowLeft' ? -1 : 0; if (!k) return;
-      e.preventDefault(); const n = picks[(i + k + picks.length) % picks.length]; n.focus(); n.click();
+      e.preventDefault();
+      const vis = picks.filter((x) => !x.hidden); const j = vis.indexOf(b);
+      const n = vis[(j + k + vis.length) % vis.length]; n.focus(); n.click();
     });
   });
+  // 場所で絞る（一覧の表示だけを変える。再生中の場面はそのまま）
+  document.querySelectorAll('.sc-filter button').forEach((f) => f.addEventListener('click', () => {
+    const g = f.dataset.group;
+    document.querySelectorAll('.sc-filter button').forEach((x) => x.setAttribute('aria-pressed', String(x === f)));
+    picks.forEach((b) => { b.hidden = !!g && b.dataset.group !== g; });
+  }));
   // /series8#scene-stumble のように開くと、その場面から始まる
   const start = scenes.find((s) => location.hash === `#scene-${s.id}`);
   if (start) { setScene(start, false); $('scenes').scrollIntoView(); }
@@ -126,64 +143,69 @@ const fmt = (t: number) => `0:${String(Math.floor(t)).padStart(2, '0')}`;
 
 <style is:global>
   /* 中身を JS で入れ替えるので、global にして .s-3d の中だけに効かせる */
-  .s-3d .sc-lead { margin: -12px 0 8px; font: 600 18px/28px var(--sans); color: var(--ink); }
-  .s-3d .sc-note { margin: 0 0 24px; font: 400 14px/24px var(--sans); color: var(--ink-2); max-width: 880px; }
-  /* 場面を選ぶ列（試算のタブと同じ黒い帯） */
-  .s-3d .sc-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px; background: #111; border-radius: 12px; margin: 0 0 24px; }
-  .s-3d .sc-pick { position: relative; display: grid; gap: 2px; align-content: start; text-align: left; padding: 8px 8px 12px; border: 0; border-radius: 8px; background: #2a2a2a; color: #f5f5f0; cursor: pointer; font: inherit; }
-  .s-3d .sc-pick img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 8px; opacity: .78; transition: opacity .2s; }
-  .s-3d .sc-pick:hover img, .s-3d .sc-pick[aria-selected="true"] img { opacity: 1; }
-  .s-3d .sc-pick-n { position: absolute; top: 14px; left: 14px; padding: 1px 6px; border-radius: 4px; background: rgba(17, 17, 17, .72); color: #f5f5f0; font: 600 11px/18px var(--sans); letter-spacing: .08em; }
-  .s-3d .sc-pick b { font: 600 16px/24px var(--sans); }
-  .s-3d .sc-pick-s { font: 400 12px/18px var(--sans); color: #b8b8b0; }
-  .s-3d .sc-pick:hover { background: #3a3a3a; }
-  .s-3d .sc-pick[aria-selected="true"] { background: #f5f5f0; color: #111; }
-  .s-3d .sc-pick[aria-selected="true"] .sc-pick-s { color: #555; }
-  .s-3d .sc-pick:focus-visible { outline: 2px solid #f5f5f0; outline-offset: 2px; }
-  /* 動画（左）と説明のパネル（右） */
-  .s-3d .sc-video { position: sticky; top: 96px; }
-  .s-3d .sc-stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
-  .s-3d .sc-frame { background: #111; border-radius: 8px; overflow: hidden; }
-  .s-3d .sc-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111; }
+  /* セクションを画面の横いっぱいの黒い面にする。上に動画と説明、下に全場面の一覧（2026-11-15） */
+  .s-3d { margin: 40px 0; padding: 80px; background: #111; color: #f5f5f0; }
+  .s-3d .sc-in { max-width: 1280px; margin: 0 auto; }
+  .s-3d .sec-h { color: #f5f5f0; }
+  .s-3d .sc-lead { margin: -12px 0 8px; font: 600 18px/28px var(--sans); color: #f5f5f0; }
+  .s-3d .sc-note { margin: 0 0 40px; font: 400 14px/24px var(--sans); color: #b8b8b0; max-width: 880px; }
+  /* 動画（左）と説明（右） */
+  .s-3d .sc-stage { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; scroll-margin-top: 96px; }
+  .s-3d .sc-frame { background: #000; border-radius: 8px; overflow: hidden; }
+  .s-3d .sc-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
   .s-3d .sc-angles { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
-  .s-3d .sc-angle { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid #e6e6e6; border-radius: 4px; background: #fff; color: var(--ink); font: 500 14px/20px var(--sans); cursor: pointer; }
-  .s-3d .sc-angle i { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
-  .s-3d .sc-angle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
-  .s-3d .sc-angle[aria-pressed="true"] i { color: #c4c4c4; }
-  .s-3d .sc-angle-note { margin: 8px 0 0; font: 400 13px/22px var(--sans); color: var(--ink-2); }
-  .s-3d .sc-info { background: var(--bg); border-radius: 8px; padding: 24px; }
-  .s-3d .sc-num { margin: 0; font: 500 11px/18px var(--sans); letter-spacing: .08em; color: var(--ink-3); }
-  .s-3d .sc-name { margin: 2px 0 16px; font: 600 20px/30px var(--sans); color: var(--ink); }
+  .s-3d .sc-angle { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 0; border-radius: 4px; background: #2a2a2a; color: #f5f5f0; font: 500 14px/20px var(--sans); cursor: pointer; }
+  .s-3d .sc-angle:hover { background: #3a3a3a; }
+  .s-3d .sc-angle i { font-style: normal; font-size: 12px; color: #888; font-variant-numeric: tabular-nums; }
+  .s-3d .sc-angle[aria-pressed="true"] { background: #f5f5f0; color: #111; }
+  .s-3d .sc-angle[aria-pressed="true"] i { color: #555; }
+  .s-3d .sc-angle-note { margin: 8px 0 0; font: 400 13px/22px var(--sans); color: #b8b8b0; }
+  .s-3d .sc-name { margin: 0 0 16px; font: 600 24px/36px var(--sans); color: #f5f5f0; }
   .s-3d .sc-meta { margin: 0 0 16px; display: grid; gap: 6px; }
   .s-3d .sc-meta div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; }
-  .s-3d .sc-meta dt { font: 500 12px/22px var(--sans); color: var(--ink-3); }
-  .s-3d .sc-meta dd { margin: 0; font: 400 13px/22px var(--sans); color: var(--ink); }
-  .s-3d .sc-sit { margin: 0 0 20px; padding-top: 16px; border-top: 1px solid #e6e6e6; font: 400 14px/26px var(--sans); color: var(--ink); }
-  .s-3d .sc-h { margin: 0 0 8px; font: 600 13px/20px var(--sans); color: var(--ink); }
-  .s-3d .sc-h span { font-weight: 400; color: var(--ink-3); }
-  .s-3d .sc-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
-  .s-3d .sc-steps button { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
-  .s-3d .sc-steps button:hover { background: #fff; }
-  .s-3d .sc-steps time { font: 500 12px/22px var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
+  .s-3d .sc-meta dt { font: 500 12px/22px var(--sans); color: #888; }
+  .s-3d .sc-meta dd { margin: 0; font: 400 13px/22px var(--sans); color: #f5f5f0; }
+  .s-3d .sc-sit { margin: 0 0 24px; font: 400 14px/26px var(--sans); color: #d8d8d0; }
+  .s-3d .sc-h { margin: 0 0 8px; font: 600 13px/20px var(--sans); color: #f5f5f0; }
+  .s-3d .sc-h span { font-weight: 400; color: #888; }
+  .s-3d .sc-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
+  .s-3d .sc-steps button { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: #f5f5f0; }
+  .s-3d .sc-steps button:hover { background: #2a2a2a; }
+  .s-3d .sc-steps time { font: 500 12px/22px var(--sans); color: #888; font-variant-numeric: tabular-nums; }
   .s-3d .sc-steps span { font: 400 13px/22px var(--sans); }
-  /* 再生中の行は、行ごと黒く塗る（左の線は使わない） */
-  .s-3d .sc-steps li.now button, .s-3d .sc-steps li.now button:hover { background: var(--ink); color: #fff; }
-  .s-3d .sc-steps li.now time { color: #c4c4c4; }
+  /* 再生中の行は、行ごと白く塗る（左の線は使わない） */
+  .s-3d .sc-steps li.now button, .s-3d .sc-steps li.now button:hover { background: #f5f5f0; color: #111; }
+  .s-3d .sc-steps li.now time { color: #555; }
   .s-3d .sc-steps.off button { cursor: default; }
   .s-3d .sc-steps.off button:hover { background: transparent; }
-  .s-3d .sc-points { margin: 0; padding-left: 1.2em; font: 400 13px/24px var(--sans); color: var(--ink-2); }
-  .s-3d .sc-log { display: inline-block; margin-top: 24px; font: 500 14px/22px var(--sans); color: var(--ink); }
-  .s-3d .sc-log:hover { text-decoration: underline; }
-  @media (max-width: 1023px) { .s-3d .sc-video { position: static; } .s-3d .sc-stage { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
-  @media (max-width: 767px) { .s-3d .sc-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; } }
+  .s-3d .sc-points { margin: 0; padding-left: 1.2em; font: 400 13px/24px var(--sans); color: #d8d8d0; }
+  /* 場所で絞る（選んだものは面ごと白く塗る） */
+  .s-3d .sc-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 56px 0 20px; }
+  .s-3d .sc-filter button { padding: 10px 18px; border: 0; border-radius: 6px; background: #2a2a2a; color: #f5f5f0; font: 600 14px/20px var(--sans); cursor: pointer; }
+  .s-3d .sc-filter button:hover { background: #3a3a3a; }
+  .s-3d .sc-filter button[aria-pressed="true"] { background: #f5f5f0; color: #111; }
+  /* 全場面の一覧（増えたら行が増える） */
+  .s-3d .sc-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; }
+  .s-3d .sc-stage + .sc-picks, .s-3d .sc-stage + .sc-log { margin-top: 56px; }
+  .s-3d .sc-pick { display: block; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #2a2a2a; color: #f5f5f0; text-align: left; cursor: pointer; font: inherit; }
+  .s-3d .sc-pick[hidden] { display: none; }
+  .s-3d .sc-pick img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .72; transition: opacity .2s; }
+  .s-3d .sc-pick b { display: block; padding: 8px 10px 10px; font: 600 14px/20px var(--sans); }
+  .s-3d .sc-pick:hover { background: #3a3a3a; }
+  .s-3d .sc-pick:hover img, .s-3d .sc-pick[aria-selected="true"] img { opacity: 1; }
+  .s-3d .sc-pick[aria-selected="true"] { background: #f5f5f0; color: #111; }
+  .s-3d .sc-pick:focus-visible, .s-3d .sc-filter button:focus-visible { outline: 2px solid #f5f5f0; outline-offset: 2px; }
+  .s-3d .sc-log { display: inline-block; margin-top: 40px; font: 500 14px/22px var(--sans); color: #f5f5f0; text-decoration: underline; text-underline-offset: 3px; }
+  @media (max-width: 1023px) {
+    .s-3d { padding: 56px 24px; }
+    .s-3d .sc-stage { grid-template-columns: minmax(0, 1fr); gap: 28px; }
+    .s-3d .sc-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+  }
   @media (max-width: 599px) {
-    /* スマホでは1列にして、名前と一言を1行ずつで読めるようにする */
-    .s-3d .sc-picks { grid-template-columns: minmax(0, 1fr); }
-    .s-3d .sc-pick { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 8px; row-gap: 0; align-items: center; padding: 0; overflow: hidden; min-height: 58px; }
-    .s-3d .sc-pick img { grid-row: 1 / span 2; align-self: stretch; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0; }
-    .s-3d .sc-pick-n { display: none; }
-    .s-3d .sc-pick b { font-size: 15px; line-height: 20px; align-self: end; padding: 8px 4px 0 0; }
-    .s-3d .sc-pick-s { font-size: 11px; line-height: 16px; align-self: start; padding: 0 4px 8px 0; }
-    .s-3d .sc-info { padding: 20px 16px; }
+    .s-3d { margin: 32px 0; padding: 40px 12px; }
+    .s-3d .sc-name { font-size: 20px; line-height: 30px; }
+    .s-3d .sc-filter { margin-top: 40px; }
+    .s-3d .sc-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
+    .s-3d .sc-pick b { font-size: 13px; line-height: 18px; padding: 6px 8px 8px; }
   }
 </style>
diff --git a/src/data/sim_scenes.json b/src/data/sim_scenes.json
index 7201be2..a7038a8 100644
--- a/src/data/sim_scenes.json
+++ b/src/data/sim_scenes.json
@@ -1,11 +1,13 @@
 {
   "about": "サービスロボット導入シミュレーション（/series8）の「3Dの場面」に並べる動画と、場面ごとの説明（2026-11-13・LOG503）。動画は R2（p2m-media）の /media/。時刻は本番のカメラの動画の秒。看護師とハコブくんは実物ではなく Unity の3DCG",
+  "groups": ["薬剤部", "病棟", "廊下"],
   "title": "3Dで見る、看護師と搬送ロボットのやり取り",
   "note": "試算や病院の1日のシミュレーションでは、人とロボットは丸や四角で動きます。ここでは、その中の要所を、看護師と搬送ロボット「ハコブくん」の3DCGで短く切り取りました。薬を積む・受け取る・廊下ですれ違う、の3つの場面です。動きの速さは現場に合わせています（Unity・実物ではありません）。",
   "log": { "label": "作り方とコードの記録（LOG503）", "href": "/record/hospital-robot-nurse-3d-scenes-at-real-speed" },
   "scenes": [
     {
       "id": "load",
+      "group": "薬剤部",
       "num": "01",
       "name": "薬剤部で積む",
       "short": "番号で認証して、上から入れる",
@@ -30,6 +32,7 @@
     },
     {
       "id": "receive",
+      "group": "病棟",
       "num": "02",
       "name": "病棟で受け取る",
       "short": "カードで認証して、上から取る",
@@ -55,6 +58,7 @@
     },
     {
       "id": "pass",
+      "group": "廊下",
       "num": "03",
       "name": "廊下ですれ違う",
       "short": "すき間があれば、速さを変えない",
@@ -76,6 +80,7 @@
     },
     {
       "id": "stumble",
+      "group": "廊下",
       "num": "04",
       "name": "看護師がよろける",
       "short": "人がよろけたら、寄って止まる",
