/* へやいろ 新エディター(試作)— スタート画面 + 5 手順。白ベース × オレンジ。トップページ dist/index.html + landing/white-orange.css に合わせる。 */
:root {
  --ink: #25313b;
  --ink-strong: #080e18;
  --muted: #5b6670;
  --line: #ece7e2;
  --line-strong: #d9d2cb;
  --bg: #ffffff;
  --bg-soft: #f8f6f3;
  --stage-bg: #f1eeea;
  --orange: #ff651c;
  --orange-ink: #b23c00;   /* 白・淡橙の上で 4.5:1 以上になる文字用の橙 */
  --orange-soft: #fff1e7;
  --orange-line: #ffd2b8;
  --focus: #1f6feb;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 56px;
  --panel-w: 420px;
  --gutter: 20px;
  --display: "Dela Gothic One", "Noto Sans JP", sans-serif;
  --body: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 14px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* ---------- ボタンの基本 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #f25710; border-color: #f25710; }
.btn-icon { width: 36px; padding: 0; font-size: 18px; }
.btn-icon:disabled { opacity: .4; cursor: default; }

/* ---------- ヘッダー ---------- */
.ed-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: #fff; border-bottom: 2px solid var(--orange);
}
.ed-brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink-strong); text-decoration: none; flex-shrink: 0; }
.ed-brand b { font: 900 22px/1 var(--body); letter-spacing: .04em; }
.ed-brand b i { color: var(--orange); font-style: normal; font-size: 14px; vertical-align: top; margin-left: 2px; }
.ed-brand small { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--muted); }

.steps { display: flex; gap: 4px; margin: 0 auto; padding: 4px; background: var(--bg-soft); border-radius: 999px; }
.step-tab {
  border: 0; background: transparent; border-radius: 999px;
  padding: 6px 18px; min-height: 36px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.step-tab:hover { color: var(--ink); }
.step-tab[aria-selected="true"] { background: #fff; color: var(--ink-strong); box-shadow: 0 1px 0 var(--line-strong), 0 0 0 1px var(--orange) inset; }
.step-tab .num { color: var(--orange-ink); margin-right: 4px; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.go-start {
  flex-shrink: 0; border: 0; background: none; padding: 4px 2px; margin-left: -10px;
  color: var(--orange-ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.go-start:hover { color: var(--ink-strong); }
/* 全体の色(机・棚・椅子・ベッドの色をまとめて変える): ヘッダーの色見本 4 つ */
.tone-head { display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border: 1px solid var(--line); border-radius: 999px; margin-right: 4px; }
.tone-head-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.tone-head .tone-chips { display: flex; gap: 2px; }
.tone-head .tone-chip { width: 30px; min-height: 30px; padding: 0; justify-content: center; border: 0; background: none; border-radius: 50%; }
.tone-head .tone-chip .tone-sw { width: 22px; height: 22px; }
.tone-head .tone-chip:hover .tone-sw { box-shadow: inset 0 0 0 1px rgba(8,14,24,.18), 0 0 0 2px var(--orange-line); }
.tone-head .tone-chip[aria-pressed="true"] { background: none; box-shadow: 0 0 0 2px var(--orange); color: inherit; }
/* スタート画面では手順タブと道具を隠す */
body[data-step="0"] .steps, body[data-step="0"] .header-tools, body[data-step="0"] .go-start { display: none; }
.autosave { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 0 6px; white-space: nowrap; }
.autosave::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e6a; }
.autosave[data-state="saving"]::before { background: var(--orange); }

/* ---------- スタート画面(body[data-step="0"]) ---------- */
.type-filter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.type-filter-label { flex: 0 0 auto; white-space: nowrap; font-size: 13px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.type-chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; min-height: 34px; padding: 0 14px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.type-chip:hover { border-color: var(--ink); }
.type-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 描く前の完成例は淡い枠（仮の部屋の絵を「空の部屋」と見せない。editor.js が描けたら data-thumb="done"） */
@keyframes thumb-skel { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- 本体レイアウト ---------- */
.ed-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--panel-w);
  gap: 16px;
  padding: 16px var(--gutter) 16px;
  max-width: 1600px; margin: 0 auto;
  align-items: start;
}
.preview-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ステージ(16:9) */
.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--stage-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.stage canvas#preview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-overlay { position: absolute; inset: 0; pointer-events: none; }
.stage-overlay > * { pointer-events: auto; }
.guides { position: absolute; inset: 0; pointer-events: none; }
.guide-box {
  position: absolute; border: 2px dashed rgba(255,255,255,.95); outline: 1px solid rgba(8,14,24,.35);
  border-radius: 6px; padding: 6px;
}
.guide-box > span {
  display: inline-block; background: rgba(8,14,24,.68); color: #fff; font-size: 13px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
}
.stage[data-guides="off"] .guides { display: none; }

.loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(241,238,234,.85); color: var(--ink); font-weight: 700;
}

/* 照明(③): 大きいボタン */
.lighting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.lighting button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 72px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.lighting .ic { font-size: 22px; line-height: 1.2; }
.lighting button:hover { border-color: var(--orange-line); }
.lighting button[aria-checked="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.lighting button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.lighting button[aria-disabled="true"]:hover::after,
.lighting button[aria-disabled="true"]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 2;
  background: var(--ink); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}

.stage-corner { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.chip-btn {
  border: 0; border-radius: 999px; min-height: 32px; padding: 0 12px;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(8,14,24,.15);
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.chip-btn[aria-pressed="true"] .dot { color: var(--orange-ink); }
.chip-btn[aria-pressed="false"] { color: var(--muted); }

/* 選んだ小物の吹き出し */
.prop-bubble {
  position: absolute; transform: translate(-50%, calc(-100% - 14px));
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: #fff; border-radius: 999px; box-shadow: 0 6px 22px rgba(8,14,24,.22);
  white-space: nowrap; z-index: 3;
}
.prop-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff;
  transform: translateX(-50%) rotate(45deg); box-shadow: 3px 3px 6px rgba(8,14,24,.08);
}
.prop-bubble .bubble-name { font-weight: 700; font-size: 15px; padding: 0 6px 0 8px; }
.prop-bubble .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 2px; }
.prop-bubble button.b {
  border: 0; background: transparent; border-radius: 999px; min-height: 32px; padding: 0 10px;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.prop-bubble button.b:hover { background: var(--bg-soft); }
.prop-bubble button.b-remove { color: #a3261b; }
/* 前へ・後ろへ・外すの印（2026-10-27）: 文字の左に 16px の svg（currentColor なので「外す」は赤のまま） */
.prop-bubble button.b-ic { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px 0 8px; }
.prop-bubble button.b-ic[hidden] { display: none; }
.prop-bubble button.b-ic .b-svg { flex: 0 0 auto; width: 16px; height: 16px; display: block; }
.prop-target {
  position: absolute; border: 2px solid var(--orange); border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.7);
}

/* 色丸 */
.swatches { display: flex; gap: 6px; align-items: center; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong);
  background: var(--c, #ccc);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatches.small .swatch { width: 14px; height: 14px; border-width: 1px; }

/* ---------- プレビュー下: 完成例から始める近道(①〜③) ---------- */
.quick-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.quick-row p { margin: 0; flex: 1; min-width: 200px; color: var(--muted); font-size: 13px; }
.quick-go {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--orange); color: #fff; font: 900 16px/1.1 var(--body); letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(255, 101, 28, .25);
}
.quick-go small { font-size: 13px; font-weight: 700; letter-spacing: 0; opacity: .95; }
.quick-go:hover { background: #f25710; }
.quick-inline { display: none; }

.card {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px;
  border: 2px solid transparent; background: transparent; border-radius: 12px; padding: 0;
  text-align: left;
}
.card .thumb {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px;
  background: var(--stage-bg); box-shadow: 0 0 0 1px var(--line);
}
.card .label { font-size: 13px; font-weight: 700; line-height: 1.35; padding: 0 2px 2px; color: var(--ink); }
.card:hover .thumb { box-shadow: 0 0 0 2px var(--line-strong); }
.card[aria-pressed="true"] .thumb, .card[aria-current="true"] .thumb { box-shadow: 0 0 0 3px var(--orange); }
.layout-card svg { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--bg-soft); box-shadow: 0 0 0 1px var(--line); display: block; }
.layout-card[aria-pressed="true"] svg { box-shadow: 0 0 0 3px var(--orange); }

/* ④⑤の細い帯 */
.band-strip {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px 6px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.band-strip .now { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.band-strip .now b { color: var(--ink); }
.band-strip .btn { margin-left: auto; min-height: 34px; }

/* ステップごとの表示切替: 近道の 1 行は①〜③、細い帯は④⑤ */
body[data-step="1"] .band-strip, body[data-step="2"] .band-strip, body[data-step="3"] .band-strip,
body[data-step="4"] .quick-row, body[data-step="5"] .quick-row { display: none; }

/* ---------- 右パネル ---------- */
.panel {
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.panel-body { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 0; flex: 1; }
.panel h2 { margin: 0; font: 400 20px/1.3 var(--display); color: var(--ink-strong); letter-spacing: .02em; }
.panel .lead { margin: 0; color: var(--muted); font-size: 13px; }

/* ①〜③: 進み具合・大きいカード・戻る/次へ */
.step-head { display: flex; flex-direction: column; gap: 6px; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; color: var(--orange-ink); }
.progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.progress b { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 2px; }
.pick-grid .card { width: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pick-grid .card:hover { border-color: var(--line-strong); }
.pick-grid .card .label { font-size: 13px; padding: 2px 4px; }
.pick-grid .card[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.step-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.step-nav .btn { min-height: 44px; }
.step-nav .btn-back { flex: 0 0 auto; }
.step-nav .btn-primary { flex: 1; }

/* 照明(③): 時間帯の行 */
.mood-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel .mood-label { margin: 0; font-size: 15px; font-weight: 900; color: var(--ink-strong); }
.mood-empty { display: none; margin: 0; font-size: 13px; color: var(--muted); }
.mood-lighting:has(> .lighting[hidden]) .mood-empty { display: block; }
.panel-next { margin-top: auto; }

/* 窓の外(③): 景色の小さな絵で選ぶ */
.outside-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; width: 100%; }
.outside-choices button {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 4px 4px 6px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-weight: 700; font-size: 15px; color: var(--ink);
}
.outside-choices button[hidden] { display: none; }
.outside-choices img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.outside-choices button:hover { border-color: var(--orange-line); }
.outside-choices button[aria-checked="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.mood-row[hidden] { display: none; }
/* 窓まわり(③): 開ける / 遮光 / レース / ブラインド。遮光・ブラインドのときは窓の外を薄くして選べなくする */
.window-chip[hidden] { display: none; }
.window-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.window-chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.window-chip:hover { border-color: var(--orange-line); }
.window-chip[aria-checked="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.window-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.mood-outside[data-blocked="true"] .outside-choices { opacity: .45; filter: grayscale(.6); }
.outside-choices button[aria-disabled="true"] { cursor: not-allowed; }
.outside-choices button[aria-disabled="true"]:hover { border-color: var(--line-strong); }
.outside-note { margin: 0; font-size: 13px; font-weight: 700; color: #a14a12; }
.outside-note[hidden] { display: none; }

/* ④: その部屋では使えない素材（窓に合わせた絵） */
.prop-card[data-unavailable="true"] { opacity: .45; }
.prop-card[data-unavailable="true"] .thumb-btn { cursor: not-allowed; }

/* カテゴリタブ(④) — ショーケースの上枠に付いたタブ */
.cat-tabs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; /* 椅子・家具・機材・小物・壁・季節 */
  padding: 7px 8px 0; margin-bottom: -14px; /* .panel-body の gap を打ち消して棚とつなげる */
  background: linear-gradient(#d7a676, #c38d5c); border-radius: 14px 14px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.cat-tab {
  border: 0; border-radius: 10px 10px 0 0; min-height: 34px; padding: 0 2px; font-weight: 700; font-size: 15px; white-space: nowrap;
  background: rgba(255, 246, 232, .45); color: #5a3418;
}
.cat-tab:hover { background: rgba(255, 246, 232, .75); }
.cat-tab[aria-selected="true"] { background: #fff8ee; color: var(--ink-strong); box-shadow: inset 0 3px 0 var(--orange); }

/* ④ 棚・ショーケース: editor.js が n 個ずつ .shelf-row にまとめる。
   1 段 = 奥の壁(ui/shelf-wall.jpg) + 棚板(ui/shelf-board.jpg) + 棚の前板(名札と色の帯)。元絵は ui/shelf-wood.jpg */
.prop-grid {
  display: flex; flex-direction: column;
  padding: 0 8px 8px; background: linear-gradient(90deg, #c38d5c, #cf9a69 50%, #c38d5c);
  border-radius: 0 0 14px 14px; box-shadow: 0 2px 6px rgba(80, 40, 10, .18);
}
.shelf-row {
  --item-h: 92px;  /* 小物の絵の高さ */
  --board: 34px;   /* 棚板の高さ(天面 20 + 前縁 10 + 影 4) */
  --foot: 16px;    /* 絵の下端を棚板の上端からどれだけ下げるか(絵の下の透明余白ぶん) */
  --band: 58px;    /* 棚の前板(名札と色) */
  display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 4px;
  padding: 12px 6px 0;
  background:
    url(ui/shelf-board.jpg) left 0 bottom var(--band) / 100% var(--board) no-repeat,
    linear-gradient(#bf8a5a, #d2a173 18%, #cc9a6c) left bottom / 100% var(--band) no-repeat,
    url(ui/shelf-wall.jpg) left top / 100% calc(100% - var(--band) - var(--board) + 4px) no-repeat,
    #e8c39a;
  box-shadow: inset 0 10px 10px -8px rgba(80, 40, 10, .45);
}
.prop-card {
  position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0;
  height: calc(var(--item-h) + var(--board) - var(--foot) + var(--band));
}
.prop-card .thumb-btn {
  position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center;
  width: 100%; height: var(--item-h); margin-bottom: calc(var(--board) - var(--foot));
  border: 0; padding: 0; background: transparent; border-radius: 8px;
}
.prop-card .thumb-btn::after { /* 棚板に落ちる影 */
  content: ""; position: absolute; z-index: -1; left: 20%; right: 20%; bottom: 4px; height: 12px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 35, 5, .42), rgba(70, 35, 5, 0));
  transition: transform .18s ease, opacity .18s ease;
}
.prop-card .thumb-btn img {
  display: block; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: contain; object-position: center bottom;
  transform-origin: center bottom; transition: transform .18s ease, filter .18s ease;
}
/* 手に取る: 少し持ち上がる */
.prop-card .thumb-btn:hover img, .prop-card .thumb-btn:focus-visible img {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 6px 5px rgba(60, 30, 0, .28));
}
.prop-card .thumb-btn:hover::after, .prop-card .thumb-btn:focus-visible::after { transform: scale(.8); opacity: .55; }
.prop-card .name {
  order: 2; max-width: calc(100% - 2px); padding: 2px 6px; margin-top: 4px;
  font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; color: #3b2a1c;
  background: #fffaf2; border: 1px solid rgba(120, 70, 30, .25); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(60, 30, 0, .3);
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.prop-card .swatches { order: 3; margin-top: 5px; justify-content: center; gap: 5px; }
.prop-card .swatches .swatch { border-color: rgba(255, 255, 255, .9); }
.prop-card .swatches .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #3b2a1c; }
.prop-card[data-placed="true"] .name { border-color: var(--orange-line); }
.prop-card[data-selected="true"] .thumb-btn img {
  filter: drop-shadow(0 0 1.5px var(--orange)) drop-shadow(0 0 6px rgba(255, 101, 28, .8));
}
.prop-card[data-selected="true"] .thumb-btn:hover img, .prop-card[data-selected="true"] .thumb-btn:focus-visible img {
  filter: drop-shadow(0 0 1.5px var(--orange)) drop-shadow(0 0 6px rgba(255, 101, 28, .8)) drop-shadow(0 6px 5px rgba(60, 30, 0, .25));
}
.prop-card[data-selected="true"] .name { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); }
.badge-placed {
  position: absolute; z-index: 2; top: -6px; right: 0; font-size: 13px; font-weight: 700;
  background: var(--orange-soft); color: var(--orange-ink); border: 1px solid var(--orange);
  padding: 0 5px; border-radius: 999px; line-height: 16px; box-shadow: 0 1px 3px rgba(60, 30, 0, .25);
}
.prop-card:not([data-placed="true"]) .badge-placed { display: none; }
@media (prefers-reduced-motion: reduce) {
  .prop-card .thumb-btn img, .prop-card .thumb-btn::after { transition: none; }
}

details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 6px; min-height: 32px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "▸"; color: var(--muted); }
details.more[open] summary::before { content: "▾"; }
.field { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.field input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--orange); }
.field output { color: var(--muted); font-variant-numeric: tabular-nums; }
/* 机にも置く（2026-10-14）: チェック 1 つと説明 1 行 */
.field-check { grid-template-columns: 1fr; }
.field-check label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font-weight: 600; }
.field-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.field-check .field-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.xy { display: flex; gap: 8px; margin-top: 10px; }
.xy label { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.xy input { width: 64px; min-height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 6px; }

/* 書き出し(⑤) */
.export-card {
  border: 2px solid var(--orange); border-radius: var(--radius); padding: 16px;
  background: linear-gradient(#fff, #fff8f3);
  display: flex; flex-direction: column; gap: 10px;
}
.export-card h3 { margin: 0; font: 400 22px/1.3 var(--display); color: var(--ink-strong); }
.export-card h3 small { font: 700 13px/1 var(--body); color: var(--orange-ink); margin-left: 6px; }
.export-card p { margin: 0; color: var(--muted); font-size: 13px; }
.obs-steps { margin: 0; padding-left: 1.4em; font-size: 13px; color: var(--ink); display: grid; gap: 4px; }
.export-card .btn-primary { min-height: 48px; font-size: 16px; border-radius: 12px; }
.other-exports { display: grid; gap: 8px; margin-top: 10px; }
.export-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 10px 12px;
}
.export-option strong { font-size: 14px; }
.export-option span { font-size: 13px; color: var(--muted); }
.export-option:hover { border-color: var(--ink); }
.export-option:disabled { opacity: .5; cursor: default; }
.export-status { margin: 0; min-height: 1.6em; font-size: 13px; color: var(--muted); }

.named-save { display: grid; gap: 8px; }
.named-save h3 { margin: 0; font-size: 17px; }
.named-save form { display: flex; gap: 6px; }
.named-save input { flex: 1; min-width: 0; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; }
.save-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.save-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; }
.save-list .save-name { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-list time { color: var(--muted); font-size: 13px; }
.save-list button { border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; min-height: 28px; padding: 0 6px; border-radius: 6px; }
.save-list button:hover { background: var(--bg-soft); }
.save-list button.del { color: #a3261b; }

/* 状態表示 */
.status { margin: 0; color: var(--muted); font-size: 13px; min-height: 1.6em; }

/* ダイアログ */
dialog {
  border: 0; border-radius: var(--radius); padding: 0; color: var(--ink);
  box-shadow: 0 20px 60px rgba(8,14,24,.35); max-width: min(96vw, 1680px);
}
dialog::backdrop { background: rgba(8,14,24,.6); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 17px; }
.dialog-head .btn { margin-left: auto; }
#enlarge canvas { display: block; width: min(92vw, calc((92vh - 60px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; background: var(--stage-bg); }
.dialog-body { padding: 16px 18px; }

/* 試作の帯 */
.proto-ribbon {
  position: fixed; right: 12px; bottom: 12px; z-index: 30; margin: 0;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(8,14,24,.25);
}

/* ---------- 幅 1024 前後 ---------- */
@media (max-width: 1280px) {
  :root { --panel-w: 360px; --gutter: 16px; }
  .tone-head-label { display: none; }
  .tone-head { padding-left: 4px; }
  .ed-main { padding-bottom: 12px; }
  .panel { max-height: calc(100vh - var(--header-h) - 28px); }
  .ed-header { gap: 14px; }
  .step-tab { padding: 6px 12px; }
}
@media (max-width: 1100px) {
  .autosave { display: none; }
}

/* ---------- 1000px 以下: 見られれば良い ---------- */
@media (max-width: 1000px) {
  .ed-header { height: auto; flex-wrap: wrap; padding: 8px 16px; gap: 8px; position: sticky; top: 0; }
  .steps { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .steps::-webkit-scrollbar { display: none; }
  .step-tab { flex: 1 0 auto; padding: 6px 10px; font-size: 15px; }
  .header-tools { margin-left: auto; }
  .header-tools .btn-primary { padding: 0 12px; }
  .ed-main { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 64px; }
  .panel { position: static; max-height: none; }
  .prop-bubble { transform: translate(-50%, calc(-100% - 10px)) scale(.86); transform-origin: bottom center; }
  .shelf-row { --item-h: 104px; }
  /* ①〜③: 戻る/次へを画面下に固定 */
  .step-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
    background: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(8,14,24,.08);
  }
  body[data-step="1"] .ed-main, body[data-step="2"] .ed-main, body[data-step="3"] .ed-main,
  body[data-step="4"] .ed-main, body[data-step="5"] .ed-main { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  /* ヘッダー: ロゴと道具 / 全体の色 / 手順タブ の 3 段 */
  .ed-header .header-tools { display: contents; }
  .ed-header #undo { margin-left: auto; }
  .tone-head { order: 2; flex: 1 1 auto; margin: 0; padding-left: 12px; }
  .tone-head-label { display: inline; }
  .steps { order: 3; }
  .step-tab { flex: 0 0 auto; font-size: 15px; padding: 6px 9px; }
  .autosave { display: none; }
  .go-start { order: 2; margin-left: 4px; font-size: 15px; }
  .ed-header { column-gap: 6px; }
  .ed-brand b { font-size: 20px; }
  .ed-header .btn-icon { width: 36px; min-height: 36px; }
  .ed-header #go-export { padding: 0 10px; font-size: 15px; }
  /* ①〜③: プレビューを上に見せたまま選ぶ */
  body[data-step="1"] .preview-col, body[data-step="2"] .preview-col, body[data-step="3"] .preview-col { position: sticky; top: var(--hdr-h, 0px); z-index: 10; background: #fff; padding-bottom: 6px; }
  .quick-row { display: none; }
  .quick-inline {
    display: block; border: 1px dashed var(--orange); background: var(--orange-soft); color: var(--orange-ink);
    font-weight: 900; border-radius: 12px; min-height: 44px; padding: 6px 10px;
  }
  .pick-grid { gap: 10px; }
  .type-filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .type-chip { flex: 0 0 auto; }
  .guide-box > span { font-size: 12px; padding: 0 6px; white-space: nowrap; }
  .proto-ribbon { font-size: 12px; padding: 4px 10px; right: 8px; bottom: 8px; }
  .ed-brand small { display: none; }
  .shelf-row { --item-h: 88px; padding: 12px 2px 0; }
  .prop-bubble .bubble-name { display: none; }
  .prop-bubble { flex-wrap: wrap; justify-content: center; border-radius: 16px; max-width: 92vw; white-space: normal; }
}

/* カードから部屋へドラッグして置く(editor.js の dnd) */
.prop-card { -webkit-user-select: none; user-select: none; }
.prop-card .thumb-btn { cursor: grab; }
.prop-card img { -webkit-user-drag: none; -webkit-touch-callout: none; }
body[data-dragging] { cursor: grabbing; -webkit-user-select: none; user-select: none; touch-action: none; }
body[data-dragging] .prop-card, body[data-dragging] .prop-card .thumb-btn { cursor: grabbing; touch-action: none; }
.stage[data-drop-target]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  border: 3px dashed var(--orange); border-radius: inherit; background: rgba(255, 101, 28, .04);
}
.stage[data-drop-target="over"]::after { border-style: solid; background: rgba(255, 101, 28, .08); }
.dnd-ghost {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  border-radius: 10px; background: rgba(255, 255, 255, .85); box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  padding: 4px; font-size: 13px; font-weight: 700; transition: opacity .12s;
}
.dnd-ghost img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.dnd-ghost[data-over="true"] { opacity: 0; transition-duration: .1s; } /* 部屋の上では本物の絵のプレビューが出るので、指の下の影は消す(二重に見えた。2026-10-15 ユーザー) */

/* 全体の色(ヘッダーの色見本)と、机の材質・椅子の木部(④ くわしく) */
.tone-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tone-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  min-height: 36px; padding: 0 14px 0 8px; font-weight: 700; font-size: 15px; color: var(--ink);
}
.tone-chip:hover { border-color: var(--orange-line); }
.tone-chip[aria-pressed="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.tone-sw { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(8,14,24,.18); flex: none; }
.field-select { grid-template-columns: 1fr auto; }
.field-select select {
  min-height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 28px 0 10px;
  background: #fff; font: inherit; font-size: 15px; color: var(--ink);
}
.field-select select:disabled { color: var(--muted); background: var(--bg-soft); }
.swatch[aria-disabled="true"] { opacity: .3; cursor: not-allowed; box-shadow: none; }

/* ---------- 2026-10-12 修正(A/B) ---------- */
/* A4: 戻る/次へをパネルの下に固定(PC はパネルの中だけスクロール。1000px 以下は上の固定バー) */
@media (min-width: 1001px) {
  .panel-body > .step-nav {
    position: sticky; bottom: -16px; z-index: 4;
    margin: auto -16px -16px; padding: 10px 16px 14px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 14px rgba(8,14,24,.06);
  }
}
.step-nav .btn-back:only-child { flex: 1; }

/* B5: 進み具合は「1つずつ選んで作る」から来たときだけ */
body:not([data-guided="true"]) .progress { display: none; }
/* B5: 昼の絵だけの部屋の③は「次へ」を目立たせる */
#panel-step3[data-single="true"] .mood-empty { font-size: 14px; font-weight: 700; color: var(--orange-ink); }
#panel-step3[data-single="true"] .step-nav .btn-primary { min-height: 52px; font-size: 16px; box-shadow: 0 0 0 4px var(--orange-soft), 0 6px 16px rgba(255, 101, 28, .3); }

/* B1: ガイドの横の一言 */
.guide-note {
  align-self: center; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(8,14,24,.12);
  color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none;
}
.stage[data-guides="off"] .guide-note { display: none; }

/* B6: スタート画面の副ボタン(作っている部屋があるとき) */

/* B9: 1000px 以下のタップ領域(36px 以上) */
@media (max-width: 1000px) {
  .swatch { position: relative; }
  .swatch::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  .swatches.small .swatch { width: 24px; height: 24px; border-width: 2px; }
  .prop-card .swatches { flex-wrap: wrap; gap: 8px; row-gap: 8px; max-width: 100%; }
  .shelf-row { --band: 92px; }
  .prop-bubble .swatch { width: 24px; height: 24px; }
  .prop-bubble .swatches { gap: 12px; padding: 0 4px; }
  .prop-bubble button.b { min-height: 36px; }
  .tone-head .tone-chip { width: 32px; min-height: 32px; }
  .tone-head .tone-chip .tone-sw { width: 24px; height: 24px; }
  .go-start { display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; }
  .save-list button { min-height: 36px; padding: 0 10px; }
  .chip-btn { min-height: 36px; }
}
@media (max-width: 560px) {
  /* ①〜③はプレビューを上に留めるので、ヘッダーは一緒に流す(両方留めると選ぶカードの場所が狭くなる) */
  body[data-step="1"] .ed-header, body[data-step="2"] .ed-header, body[data-step="3"] .ed-header { position: static; }
  body[data-step="1"] .preview-col, body[data-step="2"] .preview-col, body[data-step="3"] .preview-col { top: 0; }
  .guide-note { font-size: 12px; padding: 2px 8px; }
}

/* ---------- 2026-10-12 壁の色(②) ---------- */
#room-list { grid-auto-flow: row dense; }
.wall-row {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.wall-row[hidden] { display: none; }
.panel .wall-label { margin: 0; font-size: 13px; font-weight: 900; color: var(--ink-strong); }
.wall-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.wall-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.wall-chip:hover { border-color: var(--orange-line); }
.wall-chip[aria-checked="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.wall-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.wall-sw { width: 20px; height: 20px; border-radius: 50%; background: var(--c, #ddd); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); flex: 0 0 auto; }
.wall-note { flex-basis: 100%; margin: 0; font-size: 13px; font-weight: 700; color: #a14a12; }
.wall-note[hidden] { display: none; }
@media (max-width: 1000px) {
  .wall-chip { min-height: 36px; padding-right: 12px; }
  .wall-sw { width: 24px; height: 24px; }
}

/* ---------- 2026-10-13 ④ お店で選ぶ / 部屋で選ぶ(editor.js の setView4・renderShop・updateBasket) ---------- */
/* 見方の切替(④の先頭) */
.view4-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.view4-tab {
  min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-weight: 900; font-size: 15px; white-space: nowrap;
}
.view4-tab:hover { color: var(--ink-strong); }
.view4-tab[aria-selected="true"] { background: #fff; color: var(--orange-ink); box-shadow: 0 1px 4px rgba(8,14,24,.12), inset 0 0 0 1px var(--orange); }
.view4-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.basket-mini { margin: -6px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.basket-mini[data-full="true"] { color: var(--orange-ink); }

/* スタート画面の近道 2 つ */

/* お店: 共通 */
.shop { display: flex; flex-direction: column; gap: 12px; }
.shop h2 { margin: 0; font: 400 20px/1.3 var(--display); color: var(--ink-strong); }
.shop h2:focus { outline: none; }
.shop-gate, .shop-street, .shop-inside { display: flex; flex-direction: column; gap: 12px; }
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-crumb {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.shop-crumb:hover { border-color: var(--ink); }
.shop-last { margin: 0; font-size: 13px; color: var(--muted); }

/* 入口: 2 つの世界(絵は後で .world-art に入れる。今は見出し帯) */
.shop-worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.world-btn {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 0 0 10px; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; text-align: left; color: var(--ink);
}
.world-btn:hover { border-color: var(--orange); }
.world-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--orange); border-color: var(--orange); }
.world-art { display: block; height: 72px; background-size: cover; background-position: center 40%; }
.shop-town { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.shop-world-art { height: 88px; border-radius: 14px; background: var(--bg-soft) center 45% / cover no-repeat; box-shadow: 0 0 0 1px var(--line); }
.shop-world-art[data-art="false"] { display: none; }
.world-art-street { background-color: #e9dcc6; background-image: repeating-linear-gradient(90deg, #d9c3a0 0 18px, #e9dcc6 18px 36px); }
.world-art-department { background-color: #e8eef4; background-image: repeating-linear-gradient(90deg, #d5e0ea 0 2px, #eef3f8 2px 40px); }
.world-name { padding: 0 12px; font: 400 18px/1.3 var(--display); color: var(--ink-strong); }
.world-lead { padding: 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.world-go {
  margin: 4px 10px 0; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--orange); color: #fff; font-weight: 900; font-size: 15px;
}

/* 世界の画面: 歩いて選ぶ(street-walk.html の iframe)/ 一覧で選ぶ(店カード) */
.walk-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.walk-tab {
  min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-weight: 800; font-size: 15px; white-space: nowrap;
}
.walk-tab:hover { color: var(--ink-strong); }
.walk-tab[aria-pressed="true"] { background: #fff; color: var(--orange-ink); box-shadow: 0 1px 4px rgba(8,14,24,.12), inset 0 0 0 1px var(--orange); }
.walk-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.shop-walk { display: flex; flex-direction: column; gap: 6px; }
.shop-walk[hidden] { display: none; }
.shop-walk-frame { display: block; width: 100%; height: 62vh; min-height: 420px; border: 0; border-radius: 14px; background: #cfe3f2; box-shadow: 0 0 0 1px var(--line); }
.shop-walk-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.shop-street[data-walk-mode="true"] .shop-world-art,
.shop-street[data-walk-mode="true"] #shop-world-lead,
.shop-street[data-walk-mode="true"] .shop-list { display: none; }
@media (max-width: 1000px) {
  .shop-walk-frame { height: 46vh; min-height: 300px; }
}
.walk-big-slot, .walk-big-note { display: none; }
/* PC(1001px 以上)で「歩いて選ぶ」の間: 通りを左の大きい領域に、部屋のプレビューは右下に小さく重ねる。
   通りと部屋を同じ格子のマスに置いて重ねる(後ろの「いまのお部屋」などは次の行へ) */
@media (min-width: 1001px) {
  body[data-step="4"][data-view4="shop"][data-walk-big="true"] .preview-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[data-step="4"][data-view4="shop"][data-walk-big="true"] .walk-big-slot { display: block; grid-row: 1; grid-column: 1; min-width: 0; }
  body[data-step="4"][data-view4="shop"][data-walk-big="true"] .walk-big-slot .shop-walk-frame { height: auto; aspect-ratio: 16 / 9; min-height: 480px; }
  /* デパート(dept-walk.html。2026-10-17): 右にエレベーターの操作盤があるので 16:9 では低い。画面の高さいっぱいに */
  body[data-step="4"][data-view4="shop"][data-walk-big="true"][data-walk-dept="true"] .walk-big-slot .shop-walk-frame { aspect-ratio: auto; height: max(560px, calc(100svh - 120px)); }
}

/* 世界の店の一覧(店カード 2 列。食品店は小さなカード) */
.shop-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-card {
  --shop-c: #eee;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 0 8px; overflow: hidden; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; text-align: left; color: var(--ink);
}
.shop-card:hover { border-color: var(--orange); }
.shop-window {
  display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 72px; padding: 6px 6px 4px; margin-bottom: 4px;
  background: var(--shop-c); border-bottom: 3px solid rgba(8,14,24,.08); font-size: 30px; color: var(--orange-ink);
}
.shop-window img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: contain; object-position: center bottom; }
.shop-name { padding: 0 10px; font-size: 15px; font-weight: 900; color: var(--ink-strong); line-height: 1.35; }
.shop-kind { padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.shop-count { padding: 0 10px; font-size: 13px; color: var(--muted); }
.shop-card-small, .shop-card-fav { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; padding: 0 10px 0 0; }
.shop-card-small .shop-window, .shop-card-fav .shop-window { width: 64px; height: 56px; flex: none; margin: 0; border-bottom: 0; padding: 4px; }
.shop-card-small .shop-window img:nth-child(n+2) { display: none; }
.shop-card-small .shop-name, .shop-card-fav .shop-name { padding: 0; font-size: 13.5px; }
.shop-card-small .shop-kind, .shop-card-small .shop-count, .shop-card-fav .shop-count { padding: 0; }
.shop-card-fav { --shop-c: var(--orange-soft); }

/* 店内: 同じ通りの別の店へ、見出し、注記 */
.shop-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.shop-nav-btn {
  flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40px; padding: 2px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: 1.25;
}
.shop-nav-btn small { font-size: 13px; font-weight: 500; color: var(--muted); }
.shop-nav-btn[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-nav-btn[aria-current="true"] small { color: rgba(255,255,255,.8); }
.shop-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.shop-kind-tag { font-size: 13px; font-weight: 700; color: var(--muted); padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); }
.shop-note { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: 13px; color: var(--muted); }
.shop-empty { margin: 0; padding: 16px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* 家族カード(商品 2 列) */
.shop-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goods-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
}
.goods-card[data-placed="true"] { border-color: var(--orange-line); }
.goods-card[data-unavailable="true"] .goods-visual img { opacity: .45; }
.goods-visual { position: relative; display: flex; justify-content: center; background: var(--bg-soft); }
.goods-thumb {
  display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 112px; padding: 8px 8px 6px;
  border: 0; background: transparent; cursor: grab; touch-action: pan-y;
}
.goods-thumb img, .goods-window .goods-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; -webkit-user-drag: none; -webkit-touch-callout: none; }
.goods-window .goods-visual { height: 112px; padding: 6px; }
.goods-card { -webkit-user-select: none; user-select: none; }
.goods-fav {
  position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #c2475e; font-size: 18px; line-height: 1; box-shadow: 0 1px 4px rgba(8,14,24,.15);
}
.goods-fav[aria-pressed="true"] { color: #e0315a; }
.goods-badge {
  position: absolute; top: 6px; left: 6px; font-size: 13px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-ink); border: 1px solid var(--orange);
}
.goods-body { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; flex: 1; }
.goods-name { margin: 0; font-size: 13px; font-weight: 900; line-height: 1.35; color: var(--ink-strong); }
.goods-place { font-size: 13px; color: var(--muted); }
.goods-brand { margin-top: -3px; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--muted); } /* 名前の下のブランド名（G15） */
.goods-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.goods-member {
  width: 100%; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 6px; background: #fff; font-size: 13px;
}
.goods-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.goods-swatches .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink-strong); }
.goods-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.goods-put {
  flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 900; font-size: 15px;
}
.goods-put:hover { filter: brightness(.96); }
.goods-put[data-mode="select"] { background: #fff; color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.goods-put:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.goods-remove { flex: 0 0 auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
.goods-targets { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.goods-target { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
.goods-target[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-ink); }
.goods-target:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.basket-details-sp { display: none; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px 6px; }
.goods-why { font-size: 13px; color: #a14a12; line-height: 1.45; }

/* いまのお部屋(カゴ。プレビューの下) */
.basket { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.basket-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.basket h2 { margin: 0; font-size: 17px; font-weight: 900; color: var(--ink-strong); }
.basket-meter { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.basket-meter b { font-size: 16px; color: var(--ink-strong); }
.basket-left { color: var(--orange-ink); }
.basket-dots { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.basket-dots i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.basket-dots i[data-on="true"] { background: var(--orange); }
.basket-msg { margin: 0; font-size: 13px; color: var(--muted); }
.basket[data-full="true"] .basket-msg { color: var(--orange-ink); font-weight: 700; }
.basket-details summary { cursor: pointer; font-size: 15px; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.basket-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.basket-list li { display: flex; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--line); }
.basket-list img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.basket-item-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-list button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; }
.basket-list .basket-empty { font-size: 13px; color: var(--muted); border: 0; }

/* カゴがいっぱいのときの 3 択 */
.basket-full { border: 0; border-radius: 18px; padding: 18px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 18px 50px rgba(8,14,24,.25); }
.basket-full::backdrop { background: rgba(8,14,24,.35); }
.basket-full-in { display: flex; gap: 14px; align-items: center; }
.basket-full-in img { width: 96px; height: 96px; object-fit: contain; flex: none; background: var(--bg-soft); border-radius: 12px; padding: 6px; }
.basket-full h2 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--ink-strong); }
.basket-full-msg { margin: 0; font-size: 13px; color: var(--ink); }
.basket-full-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.basket-full-acts .btn { min-height: 44px; justify-content: center; }
.basket-full-swap { margin-top: 12px; }

/* スマホ・タブレット(1000px 以下): お店の見方では部屋のプレビューを上に固定(①〜③と同じ仕組み) */
@media (max-width: 1000px) {
  body[data-step="4"][data-view4="shop"] .preview-col { position: sticky; top: var(--hdr-h, 0px); z-index: 10; background: #fff; padding-bottom: 6px; }
  body[data-step="4"][data-view4="shop"] .basket { padding: 6px 10px; gap: 4px; }
  body[data-step="4"][data-view4="shop"] .basket .basket-details { display: none; }
  .basket-details-sp { display: block; }
  .goods-target { min-height: 36px; }
  body[data-step="4"][data-view4="shop"] .basket-msg { display: none; }
  .world-btn .world-go, .goods-put, .goods-remove { min-height: 44px; }
}
@media (max-width: 560px) {
  body[data-step="4"][data-view4="shop"] .ed-header { position: static; }
  body[data-step="4"][data-view4="shop"] .preview-col { top: 0; }
  body[data-step="4"][data-view4="shop"] .band-strip { display: none; }
  .shop-worlds { grid-template-columns: 1fr 1fr; gap: 8px; }
  .world-name { font-size: 16px; }
  .goods-thumb { height: 96px; }
}

/* ---------- 2026-10-13 店内とテイクアウトのカゴ(editor.js の buildInside・updateTakeout) ---------- */
/* 店内: 店の色調の壁(data-tone = editor.shops.list[店].tone)。品は一覧(V 52 の規則) */
.shop-interior {
  --wall: #f4ece0; --wall2: #ece0cd; --accent: #8d5a2b; --board: #c09062; --board-dark: #8d6038; --back: rgba(255,255,255,.45);
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 12px; border-radius: 16px;
  background-color: var(--wall);
  background-image: repeating-linear-gradient(90deg, transparent 0 26px, var(--wall2) 26px 28px);
  box-shadow: inset 0 0 0 1px rgba(8,14,24,.08);
}
.shop-interior[data-tone="indigo"] { --wall: #dde4f0; --wall2: #cfd8e8; --accent: #2f3d66; }
.shop-interior[data-tone="colorful"] {
  --wall: #fcebf2; --wall2: transparent; --accent: #b1366a;
  background-image: radial-gradient(circle, #ffd36e 0 3px, transparent 4px), radial-gradient(circle, #8fd0f0 0 3px, transparent 4px), radial-gradient(circle, #b9e29a 0 3px, transparent 4px);
  background-size: 54px 54px, 54px 54px, 54px 54px; background-position: 0 0, 18px 18px, 36px 36px;
}
.shop-interior[data-tone="green"] { --wall: #e2eddd; --wall2: #d4e3cd; --accent: #35603c; }
.shop-interior[data-tone="lavender"] { --wall: #eee6f2; --wall2: #e2d6ea; --accent: #5e4a7c; }
.shop-interior[data-tone="market"] { --wall: #eef3d8; --wall2: #e1eac2; --accent: #4f6a1e; }
.shop-interior[data-tone="sky"] { --wall: #e0eef4; --wall2: #d0e4ec; --accent: #23617b; }
.shop-interior[data-tone="rose"] { --wall: #f7e4e7; --wall2: #eed3d8; --accent: #96384e; }
.interior-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.interior-sign {
  margin: 0; display: inline-flex; flex-direction: column; padding: 6px 14px 7px; border-radius: 10px;
  background: var(--accent); color: #fff; box-shadow: 0 3px 0 rgba(8,14,24,.2); line-height: 1.3;
}
.interior-sign b { font: 400 17px/1.3 var(--display); letter-spacing: .02em; }
.interior-sign small { font-size: 13px; font-weight: 700; opacity: .88; }
.interior-sign small:empty { display: none; }
.interior-tabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(8,14,24,.08); }
.interior-tab { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; font-size: 15px; white-space: nowrap; }
.interior-tab[aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(8,14,24,.14), inset 0 0 0 1px var(--accent); }
.interior-lucky {
  margin-left: auto; min-height: 40px; padding: 0 14px; border: 1px dashed var(--accent); border-radius: 999px;
  background: #fff; color: var(--accent); font-weight: 900; font-size: 15px; white-space: nowrap;
}
.interior-lucky:hover { background: var(--wall); }
/* 棚(木の枠の中に段) */
.shop-interior .shop-goods {
  display: flex; flex-direction: column; gap: 0; padding: 8px 10px 10px; border-radius: 12px;
  background: linear-gradient(180deg, var(--board) 0%, var(--board-dark) 100%);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.08), 0 8px 18px rgba(8,14,24,.14);
}
.shop-interior .shop-goods > .shop-empty { margin: 8px 0; background: rgba(255,255,255,.85); }
.shop-interior[data-special="window"] .shop-goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.shop-interior .goods-card { border-radius: 12px 12px 4px 4px; border-color: rgba(8,14,24,.1); box-shadow: 0 2px 0 rgba(8,14,24,.08); }
.shop-interior .goods-card[data-incart="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.shop-interior .goods-thumb { cursor: pointer; touch-action: auto; }
.goods-tags { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.goods-tags .goods-badge { position: static; }
.goods-badge-cart { background: var(--orange); color: #fff; border-color: var(--orange); }
.goods-try {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700;
}
.goods-try:hover { border-color: var(--ink); }
.goods-try:disabled { opacity: .4; cursor: not-allowed; }
.goods-put[data-mode="select"].goods-cart { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; }
.shop-interior .goods-put { white-space: nowrap; padding: 0 8px; min-width: 0; }
.inside-left { margin: 0; font-size: 13px; font-weight: 800; color: var(--orange-ink); }
.inside-big-note { display: none; }

/* カートの品の半透明の仮置き（showGhosts） */
.try-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.try-tag { position: absolute; top: 6px; left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; }

/* PC(1001px 以上)で店内にいる間: 店内を左の大きい領域(通りと同じマス)、部屋は右下に小さく重ねる */
.interior-slot { display: none; }
@media (min-width: 1001px) {
  body[data-step="4"][data-view4="shop"][data-shop-big="true"] .preview-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body[data-step="4"][data-view4="shop"][data-shop-big="true"] .interior-slot { display: block; grid-row: 1; grid-column: 1; min-width: 0; }
  /* 枠の高さは絵の高さ + タブの帯 + 棚の下のカゴ(固定の高さにしない。2026-10-14) */
  body[data-step="4"][data-view4="shop"][data-shop-big="true"] .interior-slot .shop-interior[data-special="window"] .shop-goods { max-height: calc(100vh - var(--header-h) - 200px); overflow-y: auto; scrollbar-width: thin; }
}

/* 画面下のカゴの帯(通りと店内) */
.takeout {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(8,14,24,.1);
  padding: 8px var(--gutter, 16px) calc(8px + env(safe-area-inset-bottom, 0px));
}
.takeout-in { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.takeout-title { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 900; color: var(--ink-strong); white-space: nowrap; flex: none; }
.takeout-icon { width: 22px; height: 22px; color: var(--orange-ink); flex: none; }
.takeout-title b { font-size: 18px; color: var(--orange-ink); }
.takeout-items { list-style: none; margin: 0; padding: 6px 4px 2px; display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; }
.takeout-item { position: relative; flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.takeout-item img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.takeout-qty { position: absolute; left: 2px; bottom: 2px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; line-height: 16px; }
.takeout-out {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 900; line-height: 1;
}
.takeout-out::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
.takeout-out:hover { border-color: var(--ink); }
.takeout-empty { align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.takeout-room { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; flex: none; }
.takeout[data-full="true"] .takeout-room { color: var(--orange-ink); }
.takeout-acts { display: flex; gap: 6px; flex: none; }
.takeout-acts .btn { min-height: 44px; }
.takeout-go { padding: 0 20px; font-weight: 900; }
.takeout-acts .btn:disabled { opacity: .45; cursor: default; }
body[data-takeout="true"] { padding-bottom: calc(var(--takeout-h, 84px) + 16px); }
@media (min-width: 1001px) {
  body[data-takeout="true"] .panel { max-height: calc(100vh - var(--header-h) - 32px - 76px); }
}
@media (max-width: 760px) {
  .takeout-in { flex-wrap: wrap; gap: 4px 8px; }
  .takeout-items { order: 4; flex-basis: 100%; padding-top: 8px; }
  .takeout-room { flex: 1; font-size: 12px; }
  .takeout-acts .btn { min-height: 40px; padding: 0 12px; }
}
@media (max-width: 560px) {
  .shop-interior { padding: 8px; }
  .shop-interior .shop-goods { padding: 6px 6px 8px; }
  .shop-interior .goods-actions { flex-wrap: wrap; }
  .shop-interior .goods-cart { flex: 1 1 100%; order: -1; }
  .shop-interior .goods-try { flex: 1 1 100%; min-height: 36px; }
  .takeout-room { display: none; }
  .takeout-acts { margin-left: auto; }
}
.basket-dots i[data-on="cart"] { background: repeating-linear-gradient(135deg, var(--orange) 0 3px, #ffd2bd 3px 6px); }

/* 値札の色の点（見るだけ）。押すのは開いたときの 24px の丸 */
.goods-dots { display: none; }
/* 棚(取り置きの棚など、絵のない店): カードの幅が足りなければ「試す」「カゴに入れる」を縦に並べる */
.goods-try[aria-pressed="true"] { border-color: var(--orange); color: var(--orange-ink); background: var(--orange-soft); }

/* ---------- 2026-10-13 テスター指摘の修正(④お店) ---------- */
/* 1: ボタンの角まで押せるように(角丸の外側も当たり判定に) */
.goods-actions .goods-try, .goods-actions .goods-put { position: relative; }
.goods-actions .goods-try::after, .goods-actions .goods-put::after { content: ""; position: absolute; inset: -1px; }
.goods-more { display: contents; }
.goods-axis { margin-top: 2px; }

/* 3: カゴが空なら帯を細いピルにたたむ */
.takeout-emptytxt { display: none; }
.takeout[data-empty="true"] {
  left: auto; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 14px rgba(8,14,24,.14);
}
.takeout[data-empty="true"] .takeout-items, .takeout[data-empty="true"] .takeout-room, .takeout[data-empty="true"] .takeout-acts,
.takeout[data-empty="true"] .takeout-title > span:not(.takeout-emptytxt), .takeout[data-empty="true"] .takeout-title > b { display: none; }
.takeout[data-empty="true"] .takeout-title > .takeout-emptytxt { display: inline; font-size: 13px; color: var(--muted); }
.takeout[data-empty="true"] .takeout-icon { width: 18px; height: 18px; color: var(--muted); }
.takeout-clear[data-armed="true"] { border-color: #c2410c; color: #c2410c; background: #fff4ec; }
.takeout-title.bump { animation: cart-bump .35s ease-out; }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* 17: カゴへ飛ぶ絵 */
.cart-fly { position: fixed; z-index: 60; pointer-events: none; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(8,14,24,.3)); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .cart-fly { display: none; } .takeout-title.bump { animation: none; } }

/* 2: 帰宅の場面の知らせ(帯の上。帯の裏に隠れない) */
.home-note {
  position: fixed; left: var(--note-x, 50%); transform: translateX(-50%); bottom: calc(var(--takeout-h, 0px) + var(--nav-h, 0px) + 14px); z-index: 32;
  display: flex; align-items: center; gap: 10px; max-width: min(calc(100vw - 24px), var(--note-w, 100vw)); padding: 8px 8px 8px 16px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 2px var(--orange), 0 12px 30px rgba(8,14,24,.22); animation: home-in .3s ease-out;
}
.home-note[hidden] { display: none; }
.home-note b { font-size: 15px; font-weight: 900; color: var(--ink-strong); white-space: nowrap; }
.home-note-icon { font-size: 20px; }
.home-note .btn { min-height: 44px; white-space: nowrap; }
@keyframes home-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .home-note { animation: none; } }
@media (max-width: 420px) { .home-note b { font-size: 13.5px; } .home-note { gap: 6px; padding-left: 12px; } }

/* 4・19(PC の小さな部屋・スマホの小窓)は 2026-10-14 に廃止。部屋は右下の「部屋を見る」→ ライトボックス(末尾の節) */
@media (max-width: 1000px) {
  /* 3: 通り(iframe)は、上の部屋と下の帯のあいだに収まる高さに(エスカレーター・エレベーターのボタンが帯の裏に隠れない) */
  body[data-step="4"][data-view4="shop"] .shop-walk-frame { height: max(300px, calc(100svh - var(--pv-h, 0px) - var(--takeout-h, 0px) - var(--nav-h, 0px) - 16px)); min-height: 300px; }
}

/* ===== 2026-10-14 お店の画面: 部屋はライトボックス(#room-lb)、カゴは棚の下(#cart)、説明は「?」(#shop-help) ===== */
/* お店の画面(通り・店内・デパート)では部屋(#stage)を出さない。帰宅の場面(data-shopping=false)では今までどおり大きく */
body[data-step="4"][data-shopping="true"] .preview-col > .stage { display: none; }
@media (max-width: 1000px) {
  body[data-step="4"][data-shopping="true"] .preview-col { position: static; padding-bottom: 0; }
  body[data-step="4"][data-shopping="true"] .preview-col > .basket,
  body[data-step="4"][data-shopping="true"] .shop .basket-details-sp { display: none; }
  /* 右の欄の見出しと同じ店名なので、店内の看板は出さない */
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign { display: none; }
  body[data-step="4"][data-shop-dock="true"] .ed-main { padding-bottom: 150px; }
  /* 通りは右下のカゴ・部屋を見るの上まで(iframe の中のボタンに重ねない) */
  body[data-step="4"][data-view4="shop"][data-shop-dock="true"] .shop-walk-frame { height: max(300px, calc(100svh - var(--pv-h, 0px) - var(--nav-h, 0px) - 16px - 70px)); }
  /* 2026-10-17: 街の枠(商店街・デパート)は、上のヘッダーの下から右下のカゴのボタンの上までに収める(一番下までスクロールしてもボタンが枠の中に重ならない) */
  body[data-step="4"][data-view4="shop"] #shop-walk-frame { height: max(300px, calc(100svh - max(var(--pv-h, 0px), var(--hdr-h, 0px)) - 16px - var(--fab-h, 0px) - var(--nav-h, 0px))); }
}
/* 「くわしく」: お店の画面では選んだ小物の項目を出さない(editor.js が残りの項目の有無で details を出し分ける) */
body[data-step="4"][data-shopping="true"] #details-more .field:has(#prop-scale),
body[data-step="4"][data-shopping="true"] #details-more .xy { display: none; }
body[data-step="4"]:not([data-shopping="true"]) #details-more .field-basket { display: none; }

/* 右の欄: 戻る 2 つ、店の切替(1 行・44px)、見出し + ? */
.shop-crumb { min-height: 44px; padding: 0 14px; font-size: 15px; }
.shop-nav { padding-bottom: 2px; }
.shop-nav-btn { flex-direction: row; gap: 5px; min-height: 44px; padding: 0 14px; font-size: 15px; }
.shop-head { position: relative; align-items: center; flex-wrap: nowrap; }
.shop-head h2 { min-width: 0; }
.shop-kind-tag { white-space: nowrap; }
.help-btn {
  position: relative; flex: none; width: 36px; height: 36px; padding: 0; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--ink-strong); font-size: 17px; font-weight: 900; line-height: 1;
}
.help-btn::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.help-btn:hover { border-color: var(--ink); }
.help-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.help-btn[data-blink="true"] { animation: help-blink .8s ease-in-out 2; }
@keyframes help-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,101,28,0); } 50% { box-shadow: 0 0 0 7px rgba(255,101,28,.45); background: var(--orange-soft); } }
@media (prefers-reduced-motion: reduce) { .help-btn[data-blink="true"] { animation: none; } }
.shop-help {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 25; padding: 12px 44px 12px 14px;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-strong), 0 14px 32px rgba(8,14,24,.2);
}
.shop-help[hidden] { display: none; }
.shop-help-title { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--ink-strong); }
.shop-help-intro { margin: 0 0 6px; font-size: 13px; color: var(--ink); }
.shop-help-ops { margin: 0; padding-left: 1.1em; font-size: 13px; color: var(--muted); line-height: 1.65; }
.shop-help-trivia { margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--orange-soft); font-size: 13px; font-weight: 700; color: var(--orange-ink); line-height: 1.5; }
.shop-help-close { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; color: var(--muted); }
.shop-help-close:hover { color: var(--ink-strong); background: var(--bg-soft); }
.basket-mini { margin: -4px 0 0; }

/* 右下(通り・デパート): カゴのボタンと「部屋を見る」。PC は左の大きい領域の右下(デパートは左下。エレベーターのボタンを覆わない) */
.shop-dock {
  position: fixed; z-index: 34; right: 16px; bottom: calc(14px + var(--nav-h, 0px) + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px;
}
.shop-dock[hidden] { display: none; }
@media (min-width: 1001px) {
  .shop-dock { right: calc(max(0px, (100vw - 1600px) / 2) + var(--gutter) + var(--panel-w) + 16px + 16px); bottom: 20px; }
  body[data-walk-dept="true"] .shop-dock { right: auto; left: calc(max(0px, (100vw - 1600px) / 2) + var(--gutter) + 16px); }
  body[data-walk-dept="true"] .cart[data-place="corner"] { right: auto; left: 0; }
}
.dock-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink-strong); font-size: 15px; font-weight: 900; white-space: nowrap;
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 20px rgba(8,14,24,.2);
}
.dock-btn svg { width: 22px; height: 22px; flex: none; }
.dock-btn:hover { box-shadow: 0 0 0 2px var(--ink), 0 8px 20px rgba(8,14,24,.2); }
.dock-room { background: var(--ink-strong); color: #fff; }
.dock-room:hover { box-shadow: 0 0 0 2px var(--orange), 0 8px 20px rgba(8,14,24,.2); }
.dock-cart { padding-left: 8px; }
.dock-icon { width: 40px; height: 40px; object-fit: contain; flex: none; }
.dock-cart b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; }
.dock-cart[data-empty="true"] b { background: var(--line-strong); color: var(--ink); }
.dock-cart[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--orange), 0 8px 20px rgba(8,14,24,.2); }

/* カゴ(G19 の 2 層。900×600 = 3:2 の共通の座標。品は 2 層の間) */
.cart { display: flex; flex-direction: row-reverse; align-items: flex-end; justify-content: flex-start; gap: 14px; }
.cart[hidden] { display: none; }
.cart-basket { position: relative; flex: none; width: 300px; aspect-ratio: 3 / 2; }
.basket-back, .basket-front { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.basket-back { z-index: 0; }
.basket-front { z-index: 2; }
.cart-items { position: absolute; inset: 0; z-index: 1; list-style: none; margin: 0; padding: 0; }
.cart-item { position: absolute; width: 25%; height: 50%; transform: rotate(var(--rot, 0deg)); transform-origin: 50% 100%; }
.cart-item[data-flying="true"] { visibility: hidden; }
.cart-out { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.cart-out img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; -webkit-user-drag: none; filter: drop-shadow(0 2px 2px rgba(40,24,10,.3)); }
.cart-out:hover img, .cart-out:focus-visible img { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px var(--orange)); }
.cart-out:focus-visible { outline: none; }
.cart-item[data-fresh="true"] img { animation: cart-fresh .6s ease-out; }
@keyframes cart-fresh { 0% { filter: drop-shadow(0 0 0 rgba(255,101,28,0)); transform: scale(1.15); } 40% { filter: drop-shadow(0 0 8px var(--orange)); } 100% { filter: drop-shadow(0 2px 2px rgba(40,24,10,.3)); transform: none; } }
.cart-out-tag { display: none; position: absolute; left: 50%; top: -4px; transform: translate(-50%, -100%) rotate(calc(-1 * var(--rot, 0deg))); padding: 1px 8px; border-radius: 999px; background: var(--ink-strong); color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; }
.cart-out[data-armed="true"] .cart-out-tag { display: block; }
.cart-out[data-armed="true"] img { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--orange)); }
/* 絵が読めないときの仮のカゴ(格子の四角、持ち手 2 本) */
.cart-draw { position: absolute; pointer-events: none; }
.cart-basket[data-art="img"] .cart-draw { display: none; }
.cart-draw-back { left: 9%; right: 9%; bottom: 8%; height: 58%; z-index: 0; border-radius: 6px 6px 12px 12px; background: #9e2d33; }
.cart-draw-back::before, .cart-draw-back::after { content: ""; position: absolute; bottom: 92%; width: 34%; height: 50%; border: 6px solid #b8383f; border-bottom: 0; border-radius: 40px 40px 0 0; }
.cart-draw-back::before { left: 14%; } .cart-draw-back::after { right: 14%; }
.cart-draw-front {
  left: 7%; right: 7%; bottom: 7%; height: 36%; z-index: 2; border-radius: 4px 4px 12px 12px; border-top: 7px solid #c8464d;
  background-color: rgba(178,52,58,.55);
  background-image: repeating-linear-gradient(90deg, transparent 0 14px, #b8383f 14px 19px), repeating-linear-gradient(0deg, transparent 0 12px, #b8383f 12px 17px);
}
.cart-side { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; flex: 1 1 auto; max-width: 300px; }
.cart-count { margin: 0; font-size: 13px; font-weight: 900; color: var(--ink-strong); }
.cart-count b { font-size: 18px; color: var(--orange-ink); margin-left: 2px; }
.cart-list { list-style: none; margin: 0; padding: 7px 7px 2px 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 92px; overflow-y: auto; scrollbar-width: thin; }
.cart-list:empty { display: none; }
.cart-row { position: relative; width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(8,14,24,.12); }
.cart-row img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cart-row-n { position: absolute; left: 1px; bottom: 1px; padding: 0 4px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; line-height: 14px; }
.cart-x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-size: 15px; font-weight: 900; line-height: 1; color: var(--ink); }
.cart-x::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.cart-go { min-height: 44px; justify-content: center; font-weight: 900; }
.cart-go:disabled { opacity: .45; cursor: default; }
.cart-side .dock-room { min-height: 44px; justify-content: center; box-shadow: none; }
.cart-clear { align-self: flex-start; min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cart-clear:disabled { opacity: .4; cursor: default; text-decoration: none; }
.cart-clear[data-armed="true"] { color: #c2410c; }
/* 店内: 棚の下(店内の床の手前) */
.cart[data-place="shelf"] {
  margin: -4px 0 0; padding: 10px 14px 8px; border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #d9bc95 0, #caa77c 100%); box-shadow: inset 0 8px 10px -8px rgba(60,36,14,.45);
}
/* 通り・デパート: 右下のカゴのボタンの上に出すポップオーバー */
.cart[data-place="corner"] {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 32px));
  flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px var(--line-strong), 0 16px 40px rgba(8,14,24,.26);
}
.cart[data-place="corner"] .cart-basket { width: 100%; }
.cart[data-place="corner"] .cart-side { max-width: none; }
@media (max-width: 560px) {
  .cart[data-place="shelf"] { padding: 8px 8px 6px; gap: 8px; }
  .cart[data-place="shelf"] .cart-basket { width: 60%; }
  .cart[data-place="shelf"] .cart-list { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 7px 7px 2px 0; }
  .cart[data-place="shelf"] .cart-row { flex: none; }
  .cart-side .dock-room { padding: 0 10px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .cart-item[data-fresh="true"] img { animation: none; } }

/* ライトボックス: 部屋を見るだけ(押せない。吹き出し・目安の枠・棚の段は出さない) */
.room-lb { padding: 0; width: min(96vw, calc((92vh - 132px) * 16 / 9 + 32px)); max-width: none; border-radius: 18px; background: #fff; }
.room-lb::backdrop { background: rgba(8,14,24,.72); }
.lb-in { display: flex; flex-direction: column; gap: 10px; padding: 10px 16px 16px; }
.lb-head { display: flex; align-items: center; gap: 10px; }
.lb-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 900; color: var(--ink-strong); }
.lb-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-soft); font-size: 22px; line-height: 1; color: var(--ink); }
.lb-close:hover { background: var(--line); }
.lb-slot .stage { width: 100%; pointer-events: none; user-select: none; }
.lb-slot .stage .stage-overlay, .lb-slot .stage .shelf-slots, .lb-slot .stage .prop-bubble, .lb-slot .stage .prop-target { display: none !important; }
@media (max-width: 560px) { .lb-in { padding: 8px 10px 12px; } .room-lb { width: calc(100vw - 16px); } }
/* 宅配: 荷物・箱の上の小さな札「押して受け取る」「押して開ける」 */
.dlv-tag {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%); padding: 2px 9px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dlv-layer[data-phase="knock"] .dlv-door .dlv-tag, .dlv-layer[data-phase="box"] .dlv-box .dlv-tag { opacity: 1; }
@media (max-width: 560px) { .dlv-tag { font-size: 12px; padding: 1px 7px; } }
/* 店ロゴ(G14): 店内の見出しは横組み、店カード・店の切替はマーク + HTML の店名。読めなければ今の HTML 表示 */
.interior-logo { display: none; }
.interior-mark { display: none; } /* 2026-10-26 Y 81: スマホの店内の見出しだけ（下の 759px 以下） */
.interior-sign[data-logo="true"] { padding: 0; background: none; box-shadow: none; }
.interior-sign[data-logo="true"] .interior-logo { display: block; width: 300px; height: auto; aspect-ratio: 600 / 160; object-fit: contain; }
.interior-sign[data-logo="true"] b, .interior-sign[data-logo="true"] small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-name-row { display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.shop-name-row .shop-name { padding: 0; }
.shop-card-mark { width: 48px; height: 48px; object-fit: contain; flex: none; margin: -12px 0 -2px -4px; }
.shop-name-row .shop-name { font-size: 14px; }
.shop-card-small .shop-name-row, .shop-card-fav .shop-name-row { padding: 0; }
.shop-card-small .shop-card-mark { width: 40px; height: 40px; margin: 0; }
.shop-nav-mark { width: 28px; height: 28px; object-fit: contain; flex: none; margin-left: -6px; }
@media (max-width: 1000px) {
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign[data-logo="true"] { display: block; }
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign[data-logo="true"] .interior-logo { width: min(300px, 100%); }
  #shop-inside:has(.interior-sign[data-logo="true"]) .shop-head h2,
  #shop-inside:has(.interior-sign[data-logo="true"]) .shop-head .shop-kind-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* 棚に並べる本: 種類は小さな絵のボタン、説明は 2 行まで */
.goods-picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 240px; }
.goods-pickm { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.goods-pickm img { width: 100%; height: 100%; object-fit: contain; }
.goods-pickm[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.goods-card[data-shelffam="true"] .goods-note { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 2026-10-14 テスター 3 回目(お店の画面) ===== */
/* 1: 「?」は PC は右の欄の外(左)に重ねる。スマホは画面下から出る幅いっぱいの板 */
.shop-help { position: fixed; right: auto; z-index: 70; width: 360px; max-height: calc(100vh - 80px); overflow-y: auto; }
@media (max-width: 1000px) {
  .shop-help {
    left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 72vh;
    padding: 18px 52px calc(18px + env(safe-area-inset-bottom, 0px)) 18px; border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(8,14,24,.3), 0 0 0 100vmax rgba(8,14,24,.28);
  }
  .shop-help-title { font-size: 17px; }
  .shop-help-intro, .shop-help-ops, .shop-help-trivia { font-size: 14px; }
}
/* 2: PC の「一覧」は左の大きい枠に大きなカードで */
@media (min-width: 1001px) {
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot { display: block; min-width: 0; }
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot .shop-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot .shop-window { height: 132px; }
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot .shop-name { font-size: 16px; }
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot .shop-card-mark { width: 56px; height: 56px; }
}
/* 3: カゴに入れた後の「カゴに ✓」(押せない) */
.goods-put.goods-cart[data-done="true"]:disabled { background: var(--orange-soft); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange-line); cursor: default; }
/* 4: PC 1280×800 で棚・カゴ・部屋を見るが 1 画面に入るよう、店内の絵の高さを抑える */
@media (min-width: 1001px) {
  .interior-slot .shop-interior { gap: 6px; padding: 10px 12px; }
  .interior-slot .cart[data-place="shelf"] .cart-basket { width: 228px; }
  .interior-slot .cart[data-place="shelf"] { padding: 6px 14px 4px; }
  .interior-slot .cart-side { gap: 4px; }
  .interior-slot .interior-sign[data-logo="true"] .interior-logo { width: 300px; }
}
/* 5: 部屋を見る(持ち帰るとこうなります)の仮置き */
.try-ghost { position: absolute; object-fit: contain; object-position: center bottom; max-width: none; opacity: .62; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px rgba(255,101,28,.8)); }
/* 9: スマホの細かい当たり */
@media (max-width: 760px) {
  .cart-x { width: 28px; height: 28px; top: -9px; right: -9px; font-size: 15px; }
  .cart-list { padding: 10px 10px 2px 0; }
  .prop-bubble .b { min-height: 36px; }
  body[data-step="4"][data-shop-dock="true"] #details-more { margin-bottom: 76px; }
}
/* 11: カゴに入った瞬間、カゴが少し沈んで揺れ、数が跳ねる */
.cart-basket[data-bump="true"] { animation: basket-sink .55s ease-out; }
@keyframes basket-sink { 0% { transform: none; } 25% { transform: translateY(5px) rotate(-1.2deg); } 50% { transform: translateY(2px) rotate(1deg); } 75% { transform: translateY(1px) rotate(-.4deg); } 100% { transform: none; } }
#cart-n[data-bump="true"], #cart-fab-n[data-bump="true"], .cart-row-n[data-bump="true"], .goods-badge-cart[data-bump="true"] { display: inline-block; animation: count-hop .45s ease-out; }
@keyframes count-hop { 0% { transform: none; } 35% { transform: translateY(-7px) scale(1.25); } 70% { transform: translateY(1px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cart-basket[data-bump="true"], #cart-n[data-bump="true"], #cart-fab-n[data-bump="true"], .cart-row-n[data-bump="true"], .goods-badge-cart[data-bump="true"] { animation: none; } }
/* 12: 帰宅の知らせは絵文字なし */
.home-note-icon[hidden] { display: none; }

/* ===== 選んだ品の欄(2026-10-14 テスター 3 回目。一覧の下に固定。2026-10-26 V 52 で棚の絵は一覧に替えた) ===== */
.pick-bar {
  display: flex; align-items: center; min-height: 64px; padding: 8px 12px; border-radius: 12px;
  background: #fffaf0; box-shadow: inset 0 0 0 1px rgba(38,56,110,.16);
}
.pick-bar[hidden] { display: none; }
.pick-empty { margin: 0 auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.pick-empty[hidden] { display: none; }
.shop-interior .pick-card {
  flex: 1; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 12px;
  border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
.shop-interior .pick-card[data-incart="true"], .shop-interior .pick-card[data-placed="true"] { border: 0; box-shadow: none; }
.pick-card .goods-visual { flex: none; width: 76px; height: 76px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pick-card .goods-thumb { height: 76px; padding: 6px; }
.pick-card .goods-fav { top: -6px; right: -6px; width: 32px; height: 32px; font-size: 16px; }
.pick-card .goods-tags { top: auto; bottom: -8px; left: -4px; }
.pick-card .goods-tags .goods-badge { white-space: nowrap; font-size: 13px; line-height: 16px; padding: 0 6px; }
.pick-card .goods-body { flex: 1; min-width: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0; }
.pick-card .goods-name { flex: 0 1 auto; font-size: 15px; color: var(--ink-strong); }
.pick-card .goods-brand, .pick-card .goods-place, .pick-card .goods-note { font-size: 13px; color: var(--muted); }
.pick-card .goods-dots { display: none; }
.pick-card .goods-label { display: none; }
.pick-card .goods-member { width: auto; max-width: 180px; min-height: 36px; }
.pick-card .goods-swatches { gap: 6px; }
.pick-card .swatch { width: 28px; height: 28px; min-width: 28px; }
.pick-card .goods-actions { margin: 0 0 0 auto; padding: 0; gap: 6px; flex: none; }
.pick-card .goods-actions .goods-put, .pick-card .goods-actions .goods-try { min-height: 40px; flex: none; padding: 0 14px; font-size: 15px; }
.pick-card .goods-why { flex-basis: 100%; }
@media (max-width: 560px) {
  .pick-bar { padding: 8px; }
  .pick-card { gap: 8px; align-items: flex-start; }
  .pick-card .goods-visual { width: 64px; height: 64px; }
  .pick-card .goods-thumb { height: 64px; }
  .pick-card .goods-actions { flex-basis: 100%; margin: 4px 0 0; }
  .pick-card .goods-actions { flex-wrap: nowrap; }
  .shop-interior .pick-card .goods-actions .goods-put, .shop-interior .pick-card .goods-actions .goods-try { flex: 1 1 0; min-width: 0; white-space: nowrap; padding: 0 8px; order: 0; min-height: 40px; }
}
/* PC 1280×800: 棚・選んだ品・カゴが 1 画面に入るよう、カゴは横 1 段に */
@media (min-width: 1001px) {
  .interior-slot .cart[data-place="shelf"] .cart-basket { width: 168px; }
  .interior-slot .cart[data-place="shelf"] .cart-side { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; gap: 6px 8px; }
  .interior-slot .cart[data-place="shelf"] .cart-count { flex: none; }
  .interior-slot .cart[data-place="shelf"] .cart-list { flex: 1 1 200px; max-height: 50px; }
  .interior-slot .cart[data-place="shelf"] .cart-go, .interior-slot .cart[data-place="shelf"] .dock-room { flex: 1 1 140px; }
  .interior-slot .cart[data-place="shelf"] .cart-clear { flex-basis: 100%; min-height: 24px; }
}

/* ===== 2026-10-14 テスター 5 回目: PC の店内の棚を幅 760px 以上に。見出しは 1 行、選んだ品の欄とカゴを横に並べる ===== */
@media (min-width: 1001px) {
  .interior-slot .shop-interior { display: grid; grid-template-columns: minmax(0, 1fr) 316px; column-gap: 8px; row-gap: 6px; align-items: stretch; }
  .interior-slot .shop-interior > .interior-head, .interior-slot .shop-interior > .shop-goods { grid-column: 1 / -1; }
  .interior-slot .shop-interior > .pick-bar { grid-column: 1; min-height: 0; }
  .interior-slot .shop-interior > .cart { grid-column: 2; }
  .interior-slot .shop-interior > .pick-bar[hidden] + .cart, .interior-slot .shop-interior > .cart:only-of-type { grid-column: 1 / -1; }
  .interior-slot .interior-head { flex-wrap: wrap; gap: 8px; } /* 2026-10-26 T 40: 文字を大きくしたので、収まらない幅では「時代」「おまかせ」を次の行へ（切らない） */
  .interior-slot .interior-head > * { flex: none; }
  .interior-slot .interior-sign[data-logo="true"] .interior-logo { width: 210px; }
  .interior-slot .interior-lucky { margin-left: auto; min-height: 36px; padding: 0 12px; font-size: 15px; }
  .interior-slot .cart[data-place="shelf"] { margin: 0; padding: 6px 10px; border-radius: 12px; gap: 8px; align-items: center; }
  .interior-slot .cart[data-place="shelf"] .cart-basket { width: 128px; }
  .interior-slot .cart[data-place="shelf"] .cart-side { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; }
  .interior-slot .cart[data-place="shelf"] .cart-list { display: none; }
  .interior-slot .cart[data-place="shelf"] .cart-go, .interior-slot .cart[data-place="shelf"] .dock-room { flex: none; min-height: 40px; font-size: 15px; padding: 0 10px; }
  .interior-slot .cart[data-place="shelf"] .cart-clear { flex-basis: auto; min-height: 22px; font-size: 15px; }
  .interior-slot .pick-card .goods-actions .goods-put, .interior-slot .pick-card .goods-actions .goods-try { padding: 0 10px; }
}

/* ===== 2026-10-14 スマホの店内・宅配 ===== */
@media (max-width: 560px) {
  /* 宅配で空のカゴは、浮かせず画面下の帯に(棚に重ねない。上の「戻る/次へ」は帯の上に乗る) */
  .takeout[data-empty="true"] { left: 0; right: 0; bottom: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 14px rgba(8,14,24,.08); }
  #panel-step4[data-delivery="true"] .shelf-row { --band: 140px; }
}

/* ===== 2026-10-14 テスター 4 回目 ===== */
/* ①〜③ではプレビュー下の帯(近道の 1 行)を出さない(完成例・おまかせはスタート画面に) */
#quick-row { display: none !important; }
/* 部屋で選ぶの操作説明は「?」へ(読み上げ用には残す) */
#prop-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* PC の通り・デパート: カゴと「部屋を見る」は通りの枠の下の行に(歩く画面の「入る」に重ねない) */
@media (min-width: 1001px) {
  body[data-dock-inline="true"] .shop-dock { position: relative; right: auto; left: auto; bottom: auto; justify-content: flex-end; z-index: 5; }
  body[data-dock-inline="true"][data-walk-dept="true"] .shop-dock { justify-content: flex-start; }
  body[data-dock-inline="true"] .cart[data-place="corner"] { bottom: calc(100% + 8px); }
}
#panel-step4 .room-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px 0 -4px; }
#panel-step4 .room-tools[hidden] { display: none; }
#panel-step4 .room-omakase { min-height: 40px; padding: 0 16px; }
/* PC の一覧: 8 軒目まで見えるよう下に余白(右下の「部屋を見る」と重ねない) */
@media (min-width: 1001px) { body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot { padding-bottom: 88px; } }
/* スマホ: 手順タブは 5 つとも見える大きさに。目安の枠の札は出さず、ガイドのボタンだけ右下に小さく */
@media (max-width: 560px) {
  .steps { gap: 2px; }
  .step-tab { padding: 5px 6px; font-size: 15px; }
  .guide-note { display: none !important; }
  .stage-corner { right: 6px; bottom: 6px; gap: 4px; }
  .stage-corner .chip-btn { min-height: 28px; padding: 0 8px; font-size: 15px; opacity: .92; }
}
/* 季節の小物の提案(小さな札) */
.season-tip { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 6px 6px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--orange), 0 6px 16px rgba(8,14,24,.12); font-size: 13.5px; font-weight: 800; color: var(--ink-strong); }
.season-tip[hidden] { display: none; }
/* 部屋の絵（ステージ）の上に重ねる（2026-10-14 テスター 5 回目） */
.stage > .season-tip { position: absolute; top: 10px; left: 10px; z-index: 8; max-width: calc(100% - 20px); }
@media (max-width: 560px) { .stage > .season-tip { top: 6px; left: 6px; font-size: 12px; padding: 4px 4px 4px 10px; } .stage > .season-tip .btn { min-height: 32px; padding: 0 10px; } .stage > .season-tip .season-tip-x { width: 32px; height: 32px; } }
.season-tip .btn { min-height: 36px; padding: 0 14px; }
.season-tip-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; color: var(--muted); }
/* レシート 2 版: × は紙の内側、No.・日付・来店、品の小さな絵、合計、へやいろの小ロゴ */
.rc-x { top: 30px !important; right: 34px !important; width: 44px !important; height: 44px !important; font-size: 22px !important; } /* 2026-10-24: 下のボタンをなくしたので × で閉じる（44px 以上） */
.rc-meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.rc-meta span[hidden] { display: none; }
.rc-name { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.rc-lines li { align-items: center; }
.rc-lines li span { flex: 1; min-width: 0; }
.rc-thumb { width: 30px; height: 30px; object-fit: contain; flex: none; }
.rc-total { display: flex; justify-content: space-between; margin: 8px 2px 0; font-size: 14px; font-weight: 800; }
.rc-brand { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13px; font-weight: 900; color: var(--orange-ink); }
.rc-brand img { width: 18px; height: 18px; }

/* ===== レジ台とレシート(2026-10-14 G24。持ち帰るときだけ) ===== */
.register-fx { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; background: rgba(8,14,24,.55); animation: reg-in .2s ease-out; }
.register-fx[hidden] { display: none; }
.reg-stage { position: relative; width: min(560px, 86vw); aspect-ratio: 900 / 500; }
.reg-counter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
/* 品は台の天板(上から 30% あたり)の上を左から右へ流れる */
.reg-items { position: absolute; left: 6%; right: 6%; top: 4%; height: 26%; z-index: 1; overflow: hidden; }
.reg-item { position: absolute; bottom: 0; left: -22%; width: 20%; height: 100%; object-fit: contain; object-position: center bottom; animation: reg-slide 1.1s cubic-bezier(.3,.6,.4,1) var(--d, 0s) both; }
@keyframes reg-slide { 0% { left: -22%; opacity: 0; } 15% { opacity: 1; } 55% { left: 40%; } 80% { left: 62%; opacity: 1; } 100% { left: 105%; opacity: 0; } }
@keyframes reg-in { from { opacity: 0; } to { opacity: 1; } }
.reg-skip { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 44px; background: #fff; }
.receipt { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; max-height: 94vh; }
.receipt::backdrop { background: rgba(8,14,24,.6); }
.rc-paper {
  position: relative; width: min(410px, 92vw); padding: 46px 52px 44px; color: #25313b; text-align: center;
  background: url(landing/img/shop/register/receipt-paper.png) center / 100% 100% no-repeat; filter: drop-shadow(0 16px 30px rgba(0,0,0,.3));
  max-height: calc(94vh - 70px); overflow-y: auto; animation: rc-print .45s ease-out;
}
@keyframes rc-print { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-x { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(8,14,24,.06); font-size: 20px; line-height: 1; }
.rc-logo { display: block; width: 240px; max-width: 100%; height: auto; margin: 4px auto 2px; }
.rc-shop { margin: 6px 0 0; font: 400 20px/1.3 var(--display); color: #26386e; }
.rc-title { margin: 8px 0 0; font-size: 17px; font-weight: 900; letter-spacing: .12em; color: #26386e; }
.rc-date { margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.rc-lines { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 14.5px; font-weight: 700; }
.rc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 2px; border-bottom: 1px dotted #d6d0c8; }
.rc-lines b { flex: none; font-weight: 900; }
.rc-rule { border: 0; border-top: 2px dashed #9aa3ab; margin: 14px 0 12px; }
.rc-free { margin: 0; font-size: 22px; font-weight: 900; color: var(--orange-ink); letter-spacing: .1em; }
.rc-thanks { margin: 8px 0 0; font-size: 14px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .register-fx, .reg-item, .rc-paper { animation: none; } }

/* 16: 店内の右上、同じ通りの店の一覧。端をぼかし、送れる向きに矢印 */
.shop-nav-wrap { position: relative; min-width: 0; }
.shop-nav-wrap[data-scroll="true"]:not([data-end="true"]) .shop-nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.shop-nav-wrap[data-scroll="true"][data-end="true"]:not([data-start="true"]) .shop-nav { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.shop-nav-wrap[data-scroll="true"]:not([data-start="true"]):not([data-end="true"]) .shop-nav { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.shop-nav-arrow {
  display: none; position: absolute; top: calc(50% - 2px); transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink-strong); font-size: 20px; font-weight: 900; line-height: 1;
  box-shadow: 0 2px 6px rgba(8,14,24,.16);
}
.shop-nav-arrow::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.shop-nav-prev { left: -4px; } .shop-nav-next { right: -4px; }
.shop-nav-wrap[data-scroll="true"]:not([data-start="true"]) .shop-nav-prev,
.shop-nav-wrap[data-scroll="true"]:not([data-end="true"]) .shop-nav-next { display: block; }

/* 3: 1000px 以下では「← 戻る / 次へ」を帯の上に重ねて固定（帯の裏に隠れない） */
@media (max-width: 1000px) {
  body[data-takeout="true"] .step-nav { bottom: var(--takeout-h, 0px); padding-bottom: 10px; }
  body[data-takeout="true"] { padding-bottom: calc(var(--takeout-h, 84px) + 16px); }
  body[data-step="4"][data-view4="shop"][data-shop-mini="true"] .basket-left { display: none; }
  body[data-step="4"][data-view4="shop"][data-shop-mini="true"] .basket-meter { white-space: nowrap; }
  body[data-step="4"][data-view4="shop"][data-shop-mini="true"] .basket-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
/* 下の固定バー（帯・戻る/次へ）と上に固定した部屋の裏へ、フォーカスやスクロールで品を送り込まない */
html { scroll-padding-top: var(--pv-h, 0px); scroll-padding-bottom: calc(var(--takeout-h, 0px) + var(--nav-h, 0px) + 8px); }

/* 時代の絞り込み（昭和 / 平成 / すべて。2026-10-13 G8） */
.era-chips { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.era-chips[hidden] { display: none; }
.era-cap { font-size: 13px; font-weight: 800; color: var(--muted); margin-right: 2px; }
.era-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 800; }
.era-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.era-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
#room-era { margin: 2px 0 6px; }
.interior-head .era-chips { background: rgba(255,255,255,.75); padding: 3px; border-radius: 999px; }
.interior-head .era-chip { min-height: 32px; border: 0; background: transparent; }
.interior-head .era-chip[aria-pressed="true"] { background: var(--accent, var(--ink)); color: #fff; }
.grid-empty { margin: 8px 0; padding: 14px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }

/* ===== 宅配(2026-10-14。部屋で選ぶ → 注文する → 届けてもらう → 玄関 → 箱 → 部屋に並ぶ) ===== */
.delivery-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.delivery-row[hidden] { display: none; }
.delivery-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px 0 10px;
  border: 1px solid var(--orange-line); border-radius: 999px; background: #fff; color: var(--orange-ink); font-size: 15px; font-weight: 800;
}
.delivery-btn:hover { border-color: var(--orange); background: var(--orange-soft); }
.delivery-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.delivery-btn[aria-pressed="true"] { background: var(--orange-soft); border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.delivery-icon { width: 18px; height: 18px; flex: none; }
.delivery-hint { min-width: 0; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-delivery="true"] .delivery-hint { color: var(--orange-ink); }

/* 棚のカードの「注文する」(宅配のときだけ。棚の前板を高くして名札・色の下に出す) */
.prop-order { display: none; }
#panel-step4[data-delivery="true"] .shelf-row { --band: 96px; }
#panel-step4[data-delivery="true"] .prop-order {
  display: block; order: 4; width: calc(100% - 4px); min-height: 30px; margin-top: auto; margin-bottom: 6px; padding: 0 4px;
  border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 800; line-height: 1.15;
  box-shadow: 0 1px 2px rgba(60, 30, 0, .3);
}
#panel-step4[data-delivery="true"] .prop-order:hover:not(:disabled) { filter: brightness(1.06); }
#panel-step4[data-delivery="true"] .prop-order:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
#panel-step4[data-delivery="true"] .prop-order[data-state="cart"] { background: #fff; color: var(--orange-ink); box-shadow: inset 0 0 0 1.5px var(--orange); }
#panel-step4[data-delivery="true"] .prop-order:disabled { background: rgba(255, 250, 242, .85); color: #6b5440; box-shadow: none; cursor: default; font-weight: 700; }
#panel-step4[data-delivery="true"] .prop-card[data-order="cart"] .thumb-btn img { filter: drop-shadow(0 0 1.5px var(--orange)) drop-shadow(0 0 5px rgba(255, 101, 28, .55)); }
@media (max-width: 1000px) { #panel-step4[data-delivery="true"] .shelf-row { --band: 130px; } }
@media (max-width: 1000px) { #panel-step4[data-delivery="true"] .prop-order { min-height: 44px; } } /* 2026-10-14: 注文するは 44px 以上 */

/* カゴの帯: 宅配でカゴが空ならピルだけ(2026-10-14 テスター指摘: 2 段に重ねない) */

/* 演出の重ね(部屋のプレビューの上。見た目だけ) */
.dlv-layer { position: absolute; inset: 0; z-index: 8; overflow: hidden; background: rgba(40, 26, 12, 0); transition: background .3s ease; }
.dlv-layer[hidden] { display: none; }
.dlv-layer[data-phase="door"], .dlv-layer[data-phase="ring"], .dlv-layer[data-phase="knock"] { background: rgba(40, 26, 12, .38); }
.dlv-door {
  position: absolute; left: 50%; bottom: 0; height: 94%; aspect-ratio: 640 / 800; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateX(-50%); animation: dlv-door-in .4s cubic-bezier(.2, .8, .25, 1) both; transition: opacity .2s ease;
}
.dlv-door:disabled { cursor: default; }
.dlv-door img, .dlv-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; }
.dlv-door img { filter: drop-shadow(0 10px 18px rgba(20, 10, 0, .35)); }
.dlv-door-knock { opacity: 0; transition: opacity .3s ease; }
.dlv-layer[data-phase="knock"] .dlv-door-knock { opacity: 1; }
.dlv-door:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 8px; }
@keyframes dlv-door-in { from { transform: translateX(120%); } to { transform: translateX(-50%); } } /* opacity は入れない(fill: both が後のフェードを上書きするため) */
.dlv-pin {
  position: absolute; top: 9%; right: 74%; padding: .2em .8em; border-radius: 999px; background: #fff; color: var(--orange-ink);
  box-shadow: 0 0 0 2px var(--orange), 0 6px 14px rgba(20, 10, 0, .25); font-size: clamp(13px, 1.5vw, 22px); font-weight: 900; white-space: nowrap;
  opacity: 0; transform: scale(.6); transform-origin: right bottom; transition: opacity .15s ease, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.dlv-pin::after { content: ""; position: absolute; right: 10px; bottom: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.dlv-layer[data-phase="ring"] .dlv-pin, .dlv-layer[data-phase="knock"] .dlv-pin { opacity: 1; transform: scale(1); }
.dlv-layer[data-phase="box"] .dlv-door, .dlv-layer[data-phase="open"] .dlv-door, .dlv-layer[data-phase="close"] .dlv-door { opacity: 0; pointer-events: none; }
/* 箱(床の手前)・手前のフラップ(品の出る瞬間の下側を隠す)は同じ位置・大きさ */
.dlv-box, .dlv-flap { position: absolute; left: 50%; bottom: 2%; width: 17%; aspect-ratio: 6 / 5; transform: translateX(-50%); }
.dlv-box { display: none; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.dlv-box:disabled { cursor: default; }
.dlv-box:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.dlv-layer[data-phase="box"] .dlv-box, .dlv-layer[data-phase="open"] .dlv-box, .dlv-layer[data-phase="close"] .dlv-box { display: block; }
.dlv-layer[data-phase="box"] .dlv-box { animation: dlv-drop .35s cubic-bezier(.3, 0, .4, 1.4) both; }
.dlv-box img { filter: drop-shadow(0 6px 6px rgba(20, 10, 0, .3)); transition: opacity .3s ease; }
.dlv-box-open { opacity: 0; }
.dlv-layer[data-phase="open"] .dlv-box-open, .dlv-layer[data-phase="close"] .dlv-box-open { opacity: 1; }
.dlv-layer[data-phase="open"] .dlv-box-closed, .dlv-layer[data-phase="close"] .dlv-box-closed { opacity: 0; }
@keyframes dlv-drop { from { transform: translate(-50%, -70%); opacity: 0; } 60% { opacity: 1; } to { transform: translate(-50%, 0); opacity: 1; } }
.dlv-items { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dlv-item { position: absolute; max-width: none; object-fit: contain; object-position: center bottom; transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(20, 10, 0, .25)); }
.dlv-flap { z-index: 4; object-fit: contain; object-position: center bottom; pointer-events: none; opacity: 0; }
.dlv-layer[data-phase="open"] .dlv-flap { opacity: 1; }
.dlv-layer[data-phase="close"] .dlv-box, .dlv-layer[data-phase="close"] .dlv-flap { opacity: 0; transition: opacity .3s ease; }
.dlv-layer[data-phase="close"] .dlv-flap { opacity: 0; }
.dlv-tip {
  position: absolute; left: 8px; top: 8px; z-index: 6; margin: 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(20, 14, 8, .72); color: #fff; font-size: 13px; font-weight: 800; pointer-events: none;
}
.dlv-tip:empty { display: none; }
/* 演出中はガイドの枠・ボタンを隠す(演出の上に出ないように) */
.stage:has(.dlv-layer:not([hidden])) .stage-overlay { visibility: hidden; }
.dlv-skip {
  position: absolute; right: 8px; top: 8px; z-index: 6; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink-strong); font-size: 15px; font-weight: 800; box-shadow: 0 2px 8px rgba(8, 14, 24, .25);
}
.dlv-skip:hover { background: #fff; box-shadow: 0 0 0 2px var(--orange), 0 2px 8px rgba(8, 14, 24, .25); }
.dlv-skip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 560px) {
  .dlv-tip { font-size: 12px; padding: 3px 9px; top: 6px; left: 6px; }
  .dlv-skip { min-height: 32px; padding: 0 10px; font-size: 15px; top: 6px; right: 6px; }
  .dlv-box, .dlv-flap { width: 22%; }
}
@media (prefers-reduced-motion: reduce) {
  .dlv-door, .dlv-layer[data-phase="box"] .dlv-box { animation: none; }
  .dlv-door-knock, .dlv-box img, .dlv-pin { transition: none; }
}

/* 知らせ(帰宅・宅配 共通): 「部屋で位置を直す」が加わったので、狭い画面では 2 段に */
.home-note[data-kind="delivery"] { box-shadow: 0 0 0 2px var(--orange), 0 12px 30px rgba(8,14,24,.22); }
.home-note .btn[hidden] { display: none; }
@media (max-width: 560px) {
  .home-note { flex-wrap: wrap; justify-content: center; border-radius: 18px; width: calc(100vw - 24px); padding: 8px 10px; row-gap: 6px; }
  .home-note b { white-space: normal; flex: 1 1 auto; text-align: left; }
  .home-note .btn { flex: 1 1 40%; min-height: 40px; padding: 0 10px; }
}

/* ===== 2026-10-14 テスター 2 回目の指摘と G10 ===== */
/* A1: スマホで通り・店内を見ている間は、下の「戻る / 次へ」を細く */
@media (max-width: 1000px) {
  body[data-step="4"][data-shopping="true"] .panel-body > .step-nav { padding-top: 5px; padding-bottom: 5px; }
  body[data-step="4"][data-shopping="true"] .panel-body > .step-nav .btn { min-height: 34px; font-size: 15px; padding: 0 12px; }
  /* A5: カゴに品があるときの「次へ」は白い控えめなボタン(主役は帯の「持ち帰る」) */
  body[data-step="4"][data-takeout="true"][data-cart="items"] .panel-body > .step-nav .btn-primary { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
}
/* A1: PC の棚の下の段が、パネル下に固定した「次へ」の裏に入らないように */
@media (min-width: 1001px) {
  #panel-step4 .prop-grid { margin-bottom: 64px; }
  .panel { scroll-padding-bottom: 80px; }
}
/* A5: スマホの帯にも置ける数を小さく(右の欄と帯の 2 か所だけに出す) */
.basket .basket-meter, .basket .basket-dots, .basket .basket-msg { display: none; }
@media (max-width: 560px) {
  .takeout:not([data-empty="true"]) .takeout-room { display: block; flex: 1; min-width: 0; font-size: 12px; white-space: normal; line-height: 1.25; }
}
/* A5: 吹き出しを品の下に出すとき */
.prop-bubble[data-below="true"] { transform: translate(-50%, 10px); }
@media (max-width: 1000px) { .prop-bubble[data-below="true"] { transform: translate(-50%, 8px) scale(.86); transform-origin: top center; } }
/* A6: 帰宅の演出中は「目安の枠は保存画像に入りません」の札を隠す */
body[data-home="true"] .guide-note { display: none; }
/* A9: 宅配のボタンは右の欄の上に固定(スクロールしても見える) */
#panel-step4 .delivery-row { position: sticky; top: -16px; z-index: 5; margin: -4px -6px 0; padding: 8px 6px; background: #fff; }
@media (max-width: 1000px) { #panel-step4 .delivery-row { top: max(var(--pv-h, 0px), var(--hdr-h, 0px)); } body[data-step="4"] .panel { overflow: visible; } }
/* A10: 持ち帰りの品が上から落ちてくる絵 */
.drop-layer { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
.drop-item { position: absolute; max-width: none; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 8px rgba(20, 10, 0, .28)); will-change: transform; }
/* A3: 宅配のドアと箱は部屋の手前(画面の下寄り)。ドアは手前に来たように少し大きく、下端をそろえる */
.dlv-door { height: 108%; bottom: -6%; }
.dlv-box, .dlv-flap { bottom: -5%; width: 22%; }
@media (max-width: 560px) { .dlv-box, .dlv-flap { width: 27%; } .dlv-slip { bottom: 26%; } }
.dlv-box img { transition: opacity .3s ease, transform .12s ease; transform-origin: 50% 100%; }
.dlv-box:not(:disabled):active img { transform: scale(.96); }
@keyframes dlv-shake { 0%, 100% { transform: translateX(-50%) rotate(0); } 20% { transform: translateX(-50%) rotate(-4deg); } 40% { transform: translateX(-50%) rotate(4deg); } 60% { transform: translateX(-50%) rotate(-3deg); } 80% { transform: translateX(-50%) rotate(3deg); } }
.dlv-layer[data-phase="shake"] .dlv-box { display: block; animation: dlv-shake .36s ease-in-out both; transform-origin: 50% 100%; }
.dlv-layer[data-phase="shake"] .dlv-door { opacity: 0; pointer-events: none; }
@keyframes dlv-flap-pop { 0% { transform: translate(-50%, 0) rotate(0); } 45% { transform: translate(-50%, -22%) rotate(-6deg); } 100% { transform: translate(-50%, 0) rotate(0); } }
.dlv-layer[data-phase="open"] .dlv-flap { animation: dlv-flap-pop .32s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dlv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.dlv-layer[data-nudge="true"] .dlv-tip { background: var(--orange); animation: dlv-blink 1s ease-in-out infinite; }
/* A11: 伝票 */
.dlv-slip {
  position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%) rotate(-3deg); z-index: 5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 9em; padding: 6px 12px 7px; border: 0; border-radius: 4px;
  background: repeating-linear-gradient(#fffdf6 0 17px, #f1e6cf 17px 18px); color: #3b2a1a; box-shadow: 0 0 0 1px #d8c6a6, 0 6px 14px rgba(20, 10, 0, .3);
  font-size: clamp(13px, 1.1vw, 14px); line-height: 1.35; text-align: left; cursor: pointer; animation: dlv-slip-in .25s ease-out both;
}
.dlv-slip[hidden] { display: none; }
.dlv-slip small { font-size: max(13px, .78em); font-weight: 900; color: var(--orange-ink); letter-spacing: .08em; }
.dlv-slip b { font-weight: 900; }
.dlv-slip em { font-style: normal; font-size: max(13px, .85em); color: #7a5a36; }
@keyframes dlv-slip-in { from { opacity: 0; transform: translate(-50%, 10px) rotate(-3deg); } to { opacity: 1; transform: translateX(-50%) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .dlv-layer[data-phase="shake"] .dlv-box, .dlv-layer[data-phase="open"] .dlv-flap, .dlv-slip, .dlv-layer[data-nudge="true"] .dlv-tip { animation: none; } }
/* 棚の札「お届け中…」 */
#panel-step4[data-delivery="true"] .prop-order[data-state="coming"] { background: #fff4ec; color: var(--orange-ink); font-weight: 800; }
/* A4: 時代チップの件数。0 件は押せない */
.era-chip:disabled { opacity: .4; cursor: not-allowed; }
.interior-head .era-cap { padding-left: 8px; }
/* A7: 床置きの段(店内は棚の手前の床、部屋で選ぶは最下段) */
.floor-cap { margin: 0; padding: 6px 8px 2px; font-size: 13px; font-weight: 900; color: #5a3613; background: #e8c39a; }
.shelf-row.floor-row { --item-h: 138px; }
@media (max-width: 1000px) { .shelf-row.floor-row { --item-h: 150px; } }
@media (max-width: 560px) { .shelf-row.floor-row { --item-h: 132px; } }
/* B2: 売場のタブ(本 / 文具)と、文具の棚の中間色の板 */
.interior-aisles { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(8,14,24,.08); }
.interior-aisles[hidden] { display: none; }
.interior-aisle { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 900; font-size: 15px; white-space: nowrap; }
.interior-aisle small { margin-left: 4px; font-size: 13px; font-weight: 800; opacity: .75; }
.interior-aisle[aria-selected="true"] { background: var(--accent, var(--ink)); color: #fff; }
.interior-aisle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* レビューで修正: 箱は画面の手前(下端で少し切れる位置)に置いて、机の上に乗って見えないように */
.dlv-box, .dlv-flap { bottom: -13%; width: 25%; }
.dlv-slip { bottom: 24%; }
@media (max-width: 560px) { .dlv-box, .dlv-flap { width: 30%; } .dlv-slip { bottom: 30%; } }
#panel-step4[data-delivery="true"] .prop-card[data-order="coming"] .badge-placed { display: none; }
body[data-shop-big="true"] #inside-left { display: none; }
/* G12: カードの用途 1 行(店内の値札・部屋で選ぶの棚) */
.goods-note { display: block; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.prop-card .card-note { order: 2; display: block; max-width: 100%; margin-top: 2px; font-size: 13px; font-weight: 700; color: #6b4a2c; line-height: 1.25; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-row:has(.card-note) { --band: 74px; }
#panel-step4[data-delivery="true"] .shelf-row:has(.card-note) { --band: 110px; }
#room-era[data-none="true"] { display: none; }
#gear-kind { margin: 2px 0 6px; }
#gear-kind[data-none="true"] { display: none; } /* 機材の段だけ（G18） */
#furn-kind { margin: 2px 0 6px; }
#furn-kind[data-none="true"] { display: none; } /* 家具の段だけ（G21） */
#season-kind { margin: 2px 0 6px; }
#season-kind[data-none="true"] { display: none; } /* 季節の段だけ（G23） */
#chair-kind { margin: 2px 0 6px; }
#chair-kind[data-none="true"] { display: none; } /* 椅子の段だけ（G24） */
.kind-sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 4px; }
.era-chip-sub { min-height: 32px; padding: 0 10px; font-size: 15px; font-weight: 700; } /* 補助の絞り込み（寝る・仕切る） */
.prop-card .card-note { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shelf-row:has(.card-note) { --band: 84px; }
@media (max-width: 1000px) { #panel-step4.panel-body { overflow: visible; } }

/* ---------- ④ 棚の容器（2026-10-14 第 1 段階）: 段のハイライト・段を選ぶボタン・棚に置く一覧・棚の中の物の吹き出し ---------- */
.stage-overlay > .shelf-slots { position: absolute; inset: 0; pointer-events: none; }
.shelf-slot {
  position: absolute; display: flex; align-items: flex-start; justify-content: center; padding: 0; margin: 0;
  border: 2px dashed rgba(255,101,28,.8); border-radius: 6px; background: rgba(255,101,28,.07);
  pointer-events: none; font: inherit; color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.5);
}
.shelf-slots[data-mode="pick"] .shelf-slot { pointer-events: auto; cursor: pointer; border-style: solid; background: rgba(255,101,28,.16); }
.shelf-slots[data-mode="pick"] .shelf-slot:hover, .shelf-slots[data-mode="pick"] .shelf-slot[aria-pressed="true"] { background: rgba(255,101,28,.32); border-color: var(--orange); }
.shelf-slots[data-mode="pick"] .shelf-slot[data-full="true"] { border-color: rgba(90,90,90,.7); background: rgba(60,60,60,.12); }
.shelf-slot span {
  margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.shelf-slot[data-full="true"] span { background: #5d5d5d; }
.shelf-slots[data-mode="hint"] .shelf-slot span { display: none; }
@media (max-width: 1000px) { .shelf-slot span { font-size: 13px; padding: 0 5px; } }

.prop-bubble button.b-shelf { color: var(--orange-ink); }
.prop-bubble:not([data-mode="child"]) .child-only { display: none; }
.prop-bubble[data-mode="child"] > :not(.child-only):not(.bubble-name) { display: none; }
.prop-bubble button.b:disabled { opacity: .4; cursor: default; }

.shelf-picker {
  border: 1px solid var(--orange-line); border-radius: var(--radius); background: #fff;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 18px rgba(8,14,24,.08);
}
.sp-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.sp-head h2 { margin: 0; font-size: 17px; }
.sp-lead { margin: 0; font-size: 13px; color: var(--muted); }
.sp-close { margin-left: auto; }
.sp-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-slot {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer;
}
.sp-slot small { margin-left: 4px; font-weight: 400; font-size: 13px; color: var(--muted); }
.sp-slot:hover { border-color: var(--orange-line); }
.sp-slot[aria-checked="true"] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-ink); box-shadow: inset 0 0 0 1px var(--orange); }
.sp-items { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 6px; }
.sp-items[aria-disabled="true"] .sp-item { opacity: .5; }
.sp-group { flex: 0 0 auto; margin: 0; padding: 6px 3px; writing-mode: vertical-rl; border-radius: 8px; background: var(--orange-soft); font-size: 13px; font-weight: 700; color: var(--orange-ink); letter-spacing: .1em; }
.sp-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  flex: 0 0 88px; min-height: 96px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); cursor: pointer; text-align: center;
}
.sp-item img { width: 60px; height: 60px; object-fit: contain; pointer-events: none; }
.sp-item:hover { border-color: var(--orange-line); background: #fff; }
.sp-note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) {
  .shelf-picker { padding: 10px; }
  .sp-item { flex-basis: 76px; min-height: 86px; font-size: 12px; }
  .sp-slot { min-height: 36px; padding: 0 9px; font-size: 13px; flex: 0 0 auto; }
  .sp-slot small { margin-left: 2px; font-size: 12px; }
  .sp-head h2 { font-size: 17px; }
  .sp-slots { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .sp-close { min-height: 32px; padding: 0 12px; }
  .sp-lead { font-size: 12px; }
  .sp-note { display: none; }
  .sp-item img { width: 50px; height: 50px; }
}
.prop-bubble:not([data-mode="shape"]) .shape-only { display: none; }
.prop-bubble[data-mode="shape"] > :not(.shape-only):not(.bubble-name) { display: none; }
.bubble-shapes { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }

/* ---------- ④ 棚の容器 2026-10-14 テスター 2 役の修正 ---------- */
/* スマホ: 棚と棚の中の物の吹き出しは部屋の下の帯（棚を隠さない） */
.bubble-dock { display: flex; justify-content: center; margin-top: -4px; }
.bubble-dock[hidden] { display: none; }
.bubble-dock > .prop-bubble[data-dock="true"] { position: static; transform: none; left: auto !important; top: auto !important; max-width: 100%; box-shadow: 0 2px 10px rgba(8,14,24,.14); border: 1px solid var(--line); }
.bubble-dock > .prop-bubble[data-dock="true"]::after { display: none; }
.bubble-dock > .prop-bubble[data-dock="true"] .bubble-name { display: inline; }
.prop-bubble button.b[data-armed="true"] { background: #a3261b; color: #fff; }
/* 棚に置く: 本 / ぬいぐるみ / 置物 の切替 */
.sp-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sp-tab { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sp-tab[aria-selected="true"] { background: var(--ink-strong, #1f2933); border-color: var(--ink-strong, #1f2933); color: #fff; }
.sp-tabs .sp-lead { margin-left: auto; }
.sp-item[hidden] { display: none; }
/* 置いた瞬間に段が光る */
.shelf-slot[data-glow="true"] { animation: slot-glow .6s ease-out; }
@keyframes slot-glow { 0% { background: rgba(255,214,120,.0); box-shadow: 0 0 0 0 rgba(255,190,80,.0); } 30% { background: rgba(255,214,120,.55); box-shadow: 0 0 14px 4px rgba(255,190,80,.8); } 100% { background: rgba(255,101,28,.16); box-shadow: 0 0 0 1px rgba(255,255,255,.5); } }
@media (prefers-reduced-motion: reduce) { .shelf-slot[data-glow="true"] { animation: none; } }
/* 指でも押しやすく: 段のボタンの当たりを少し広げる（下の段は下へも） */
.shelf-slots[data-mode="pick"] .shelf-slot::before { content: ""; position: absolute; inset: -4px -2px; }
.shelf-slots[data-mode="pick"] .shelf-slot:last-child::before { bottom: -10px; }
@media (max-width: 560px) { .sp-tabs .sp-lead { flex: 1 1 100%; margin-left: 0; } .sp-tab { min-height: 40px; } }
/* 2026-10-14 レビュー: スマホで店名の見出しを隠すと「?」が 1 行を取っていた → 戻るボタンの行の右端へ */
@media (max-width: 1000px) {
  #shop-inside:has(.interior-sign[data-logo="true"]):not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  #shop-inside:has(.interior-sign[data-logo="true"]) > * { grid-column: 1 / -1; }
  #shop-inside:has(.interior-sign[data-logo="true"]) > .shop-crumbs { grid-column: 1; grid-row: 1; }
  #shop-inside:has(.interior-sign[data-logo="true"]) > .shop-head { grid-column: 2; grid-row: 1; align-self: center; }
}
/* 2026-10-14 テスター 3 回目: 空の本棚を置いたら吹き出しの「棚に置く」を 2 回点滅。棚に置くの説明は「?」で開く */
.prop-bubble #bubble-shelf[data-blink="true"] { animation: help-blink .8s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .prop-bubble #bubble-shelf[data-blink="true"] { animation: none; } }
.sp-head .sp-help-btn + .sp-close { margin-left: 0; }
.sp-note[hidden] { display: none; }
/* 窓の外の季節（2026-10-14 G25） */
.scene-choices .scene-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.scene-chip img { width: 40px; height: 32px; object-fit: cover; border-radius: 6px; }
.stage canvas.xfade { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* キャビネットを飾っている間は部屋の絵をその棚に寄せて拡大（editor.js の zoomShelf。2026-10-14 楽しさテスト） */
#stage > canvas#preview, #stage > .stage-overlay, #stage > .drop-layer { transform-origin: 0 0; transition: transform .3s ease; }
#stage[data-zoom="true"] > canvas#preview, #stage[data-zoom="true"] > .stage-overlay, #stage[data-zoom="true"] > .drop-layer { transform: translate(var(--zx, 0), var(--zy, 0)) scale(var(--zk, 1)); }
#stage[data-zoom="true"] .guides { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { #stage > canvas#preview, #stage > .stage-overlay, #stage > .drop-layer { transition: none; } }
/* スマホ: 棚に置くの板を見ている間、部屋を上に小さく固定 */
@media (max-width: 1000px) {
  body[data-step="4"][data-shelf-picking="true"] .preview-col > .stage { position: sticky; top: var(--hdr-h, 0px); z-index: 12; }
}
/* 立ち絵の目安の仮の人影（editor.js の updateGuides。保存画像には入らない） */
.guide-dummy { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: brightness(0) invert(.25); opacity: .45; pointer-events: none; }
.guide-dummy[hidden] { display: none; }
/* ①〜⑥ の短い札: 中身の入った区画では角の小さな丸に（2026-10-14 テスター） */
.shelf-slot[data-short="true"][data-has="true"] { align-items: flex-start; justify-content: flex-start; }
.shelf-slot[data-short="true"][data-has="true"] span { margin: 2px; padding: 0 4px; font-size: 13px; line-height: 1.4; opacity: .9; }
.sp-tabs { row-gap: 6px; }
/* スマホ: 目安の枠の見出しが切れない（「コメント欄の目安」が狭い枠で切れていた） */
@media (max-width: 560px) { .guide-box > span { white-space: normal; line-height: 1.25; max-width: calc(100% - 4px); word-break: keep-all; overflow-wrap: anywhere; } }
/* カゴの札: 宅配で届けられずに残した理由（街だけ / 届かず）。2026-10-14 */
.cart-hold { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 0 5px; border-radius: 999px; background: var(--ink-strong, #1f2933); color: #fff; font-size: 13px; font-weight: 800; line-height: 15px; white-space: nowrap; pointer-events: none; }
.cart-row, .takeout-item { position: relative; }

/* ===== 部屋のドア「街へ出かける」（常設。2026-10-14）。PC は部屋の左下に重ね、1000px 以下は部屋のすぐ下の左。普段は細い茶の輪郭と控えめな影（強い光はチュートリアルの案内中だけ） ===== */
.room-door { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 1.5px solid #9a6a42; border-radius: 12px; background: linear-gradient(180deg, #fffdf8, #f6eee1); color: var(--ink-strong); font: 700 15px/1 var(--body); letter-spacing: .02em; cursor: pointer; box-shadow: 0 2px 6px rgba(70, 40, 15, .16); white-space: nowrap; }
.room-door img { width: 14px; height: 26px; object-fit: contain; display: block; }
.room-door:hover { background: linear-gradient(180deg, #fff, #f9f1e4); border-color: #7d5432; }
.room-door:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.preview-col > .stage + .room-door { display: inline-flex; align-self: flex-start; position: relative; z-index: 3; }
body[data-step="0"] .room-door, body[data-step="4"][data-shopping="true"] .room-door { display: none !important; }
@media (min-width: 1001px) { .preview-col > .stage + .room-door { margin: -72px 0 16px 16px; } }
@media (max-width: 1000px) {
  .preview-col > .stage + .room-door { margin: 0; }
  body[data-step="1"] .room-door, body[data-step="2"] .room-door, body[data-step="3"] .room-door { display: none !important; }
}
/* 「チュートリアルをもう一度」（スタート画面・? の説明の最後） */
.shop-help-tut { display: block; margin: 10px 0 0; border: 0; background: none; padding: 4px 0; color: var(--orange-ink); font: 700 15px/1.5 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rc-tut-skip { position: absolute; top: 8px; left: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-strong); font: 700 15px/1 var(--body); box-shadow: 0 2px 10px rgba(8,14,24,.22); cursor: pointer; z-index: 2; }

/* ===== 初回チュートリアル（tutorial.js。2026-10-14）: 暗幕 55%・白い枠とオレンジの光・白い吹き出し（Mochiy Pop One）・右上のスキップ・進み具合 8 点 ===== */
.tut { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.tut[hidden] { display: none; }
.tut-mask { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; pointer-events: none; }
.tut-mask path { fill: rgba(24, 20, 18, .55); }
.tut-ring { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--orange), 0 0 26px 10px rgba(255, 101, 28, .55); transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease; }
.tut-ring[hidden] { display: none; }
.tut-bubble { position: fixed; left: 0; top: 0; width: max-content; min-width: 300px; max-width: min(480px, calc(100vw - 24px)); padding: 18px 22px; border-radius: 18px; background: #fff; color: #2b2523; box-shadow: 0 12px 34px rgba(8, 6, 4, .28); pointer-events: auto; }
.tut-bubble[hidden] { display: none; }
.tut-text { margin: 0; font: 400 19px/1.65 "Mochiy Pop One", var(--body); letter-spacing: .02em; }
.tut-text .l { display: inline; }
.tut-text .l:last-child { display: block; }
.tut-sub { margin: 4px 0 0; font: 500 13px/1.6 var(--body); color: var(--muted); }
.tut-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
.tut-acts[hidden] { display: none; }
.tut-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; font: 400 15px/1 "Mochiy Pop One", var(--body); cursor: pointer; }
.tut-btn.main { border: 0; background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(255, 101, 28, .35); min-height: 56px; padding: 0 36px; font-size: 18px; max-width: 100%; } /* 2026-10-24 ユーザー: 「次へ」を大きく（スキップより明らかに目立つ） */
.tut-btn.main:hover { background: #f05510; }
.tut-btn.sub { border: 1.5px solid var(--orange-line); background: #fff; color: var(--ink-strong); }
.tut-btn.sub:hover { border-color: var(--orange); }
.tut-btn.link { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 500 15px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; }
.tut-btn:focus-visible, .tut-skip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tut-arrow { position: absolute; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); border-radius: 3px; margin: -9px 0 0 -9px; }
.tut-bubble[data-side="below"] .tut-arrow { top: 0 !important; }
.tut-bubble[data-side="above"] .tut-arrow { top: 100% !important; }
.tut-bubble[data-side="left"] .tut-arrow { left: 100% !important; }
.tut-bubble[data-side="right"] .tut-arrow { left: 0 !important; }
.tut-bubble[data-side="none"] .tut-arrow { display: none; }
/* スキップは吹き出しの中の .tut-btn.link だけ（2026-10-15 UI 第 1 段で画面端の固定のスキップを削除） */
.tut-acts .tut-skip { margin-left: auto; }
.tut-acts[data-only="link"] .tut-skip { margin-left: 0; }
/* 2026-10-26 Z 88: スキップの左に早送りの印（⏭）。下線の小さなリンクのまま、文字は 15px */
.tut-btn.tut-skip { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.tut-skip > span { text-decoration: underline; text-underline-offset: 3px; }
.tut-skip .tut-skip-ic { flex: none; display: block; }
/* 2026-10-26 Z 追加: 宅配の演出とレジの演出の「スキップ」も同じ早送りの印（14px、文字の左） */
.dlv-skip { display: inline-flex; align-items: center; gap: 5px; }
.dlv-skip .skip-ic, .reg-skip .skip-ic { flex: none; display: block; }
.reg-skip { gap: 5px; }
/* 2026-10-26 Z 87: 初回の窓で「自分でやる」→ 右上の「…」を 3 秒だけ指す（暗幕なし・押せる物なし・光らせない） */
.tut[data-mode="hint"] .tut-mask, .tut[data-mode="hint"] .tut-dimp, .tut[data-mode="hint"] .tut-here, .tut[data-mode="hint"] .tut-full, .tut[data-mode="hint"] .tut-confirm { display: none; }
.tut[data-mode="hint"] .tut-bubble { pointer-events: none; min-width: 0; }
/* 初回の「チュートリアル」の窓の「始める」と、「…」の「チュートリアル」のアイコン（▶ の丸。部屋を見る・カートと同じ inline SVG） */
.tut-ask #tut-ask-yes { gap: 8px; }
.tut-ask .ta-ic, .head-more-in .hm-ic { flex: none; display: block; }
.tut-dots { display: flex; gap: 7px; align-items: center; }
.tut-dots[hidden] { display: none; }
.tut-dots i { width: 13px; height: 13px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid rgba(255, 255, 255, .9); }
.tut-dots i.on { background: var(--orange); border-color: var(--orange); }
.tut-dots-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(40, 34, 30, .88); pointer-events: none; }
.tut-dots-in { margin-top: 12px; }
.tut-dots-in i { border-color: #cfc6bd; }
.tut-dots-in i.on { border-color: var(--orange); }
/* チュートリアル中: 案内していない場面では、歩く画面（iframe）は押せない。ドアは案内中だけ強く光る（輪は .tut-ring） */
body[data-tut="on"]:not([data-tut-frame="on"]) #shop-walk-frame { pointer-events: none; }
@media (max-width: 560px) {
  .tut-bubble { min-width: 0; max-width: none; padding: 20px 22px; border-radius: 22px; }
  .tut-text { font-size: 19px; line-height: 1.7; }
  .tut-text .l { display: block; }
}
@media (prefers-reduced-motion: reduce) { .tut-ring { transition: none; } }
/* 2026-10-25 通しの確認 B7: スマホの保存の場面は、小さめの吹き出しをボタンの下へ（「後ろ / 手前」の絵を隠さない） */
@media (max-width: 560px) {
  .tut-bubble[data-compact="true"] { padding: 14px 16px; border-radius: 18px; }
  .tut-bubble[data-compact="true"] .tut-text { font-size: 15px; line-height: 1.55; }
  .tut-bubble[data-compact="true"] .tut-acts[data-only="link"] { margin-top: 2px; }
  .tut-bubble[data-compact="true"] .tut-dots-in { margin-top: 6px; }
}
.tut-text .ph { display: inline-block; }
.tut-acts[data-only="link"] { margin-top: 6px; }
/* チュートリアル 2 回目（2026-10-14 テスター 2 役）: 確認・カゴいっぱい・右の欄の暗さ・紙吹雪・強調・一言 */
.tut-dimp { position: fixed; background: rgba(24, 20, 18, .4); border-radius: 14px; pointer-events: none; }
.tut-confirm { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, calc(100vw - 48px)); padding: 22px 22px 18px; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(8, 6, 4, .35); pointer-events: auto; text-align: center; z-index: 3; }
.tut-confirm[hidden] { display: none; }
.tut-confirm p { margin: 0; font: 400 18px/1.6 "Mochiy Pop One", var(--body); color: #2b2523; }
.tut-confirm .tut-acts { justify-content: center; }
.tut-full { position: fixed; transform: translate(-50%, -100%); padding: 8px 16px; border-radius: 999px; background: var(--orange); color: #fff; font: 400 16px/1.2 "Mochiy Pop One", var(--body); box-shadow: 0 6px 16px rgba(255, 101, 28, .4); pointer-events: none; white-space: nowrap; animation: tut-pop .25s ease-out; }
.tut-full[hidden] { display: none; }
@keyframes tut-pop { from { transform: translate(-50%, -80%) scale(.7); opacity: 0; } to { transform: translate(-50%, -100%) scale(1); opacity: 1; } }
.tut-shake { animation: tut-shake .6s ease-in-out; transform-origin: 50% 90%; }
@keyframes tut-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
.tut-ring.glow { animation: tut-glow 1.4s ease-in-out 2; }
@keyframes tut-glow { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 9px var(--orange), 0 0 46px 20px rgba(255, 180, 60, .75); } }
.tut-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2001; overflow: hidden; }
.tut-confetti i { position: fixed; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: tut-fall 1.5s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes tut-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.export-card.tut-flash { animation: tut-flash 1.2s ease-in-out 2; }
@keyframes tut-flash { 50% { box-shadow: 0 0 0 4px var(--orange), 0 0 24px 6px rgba(255, 101, 28, .45); } }
.tut-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 2002; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 14px; background: rgba(40, 34, 30, .94); color: #fff; font: 700 15px/1.5 var(--body); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
/* 場面 5: 帰宅の帯の「← 通りへ」は案内中は隠す */
body[data-tut="on"] #home-back { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tut-shake, .tut-ring.glow, .export-card.tut-flash, .tut-full { animation: none; } }
/* スマホ: 目安の札は折り返さない。コメント欄は枠の右端に揃えて左へ伸ばす（2026-10-14 テスター） */
@media (max-width: 560px) {
  .guide-box > span { white-space: nowrap; max-width: none; font-size: 12px; line-height: 1.5; padding: 0 5px; position: absolute; top: 3px; left: 3px; }
  #guide-chat span { left: auto; right: 3px; }
}
/* 棚の品をカゴまでドラッグ（2026-10-15）: 付いてくる絵・カゴが光る・画面下の受け口 */
#shop-goods .goods-thumb { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body[data-shop-drag="on"] { -webkit-user-select: none; user-select: none; cursor: grabbing; }
.shop-drag-ghost { position: fixed; left: 0; top: 0; z-index: 2100; pointer-events: none; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28)); }
.goods-card[data-dragging="true"] .goods-thumb img { opacity: .35; }
.cart-basket, #cart-fab { transition: transform .15s ease, filter .15s ease; }
.cart-basket[data-drop-hot="true"], #cart-fab[data-drop-hot="true"] { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(255, 101, 28, .85)); }
@media (prefers-reduced-motion: reduce) { .cart-basket, #cart-fab { transition: none; } }

/* ===== 2026-10-15 UI 第 1 段 ①: 選択中はいつものオレンジ #ff651c のベタ塗り・白文字（太字・14px 以上）に 1 系統で。
   店ごとの色で選択を塗らない。色見本は元の色を残し、白いチェックとオレンジの台座。計画: research/editor-ui-plan-2026-10-15.md ===== */
:root { --sel-bg: var(--orange); --sel-ink: #fff; --page-bg: #eae2d5; }
/* 明暗差（ボタン案 3〜4 回目）: 作業の画面は生成りの地に白いパネル。はじめ方の画面は白のまま */
html:has(> body:not([data-step="0"])), body:not([data-step="0"]) { background: var(--page-bg); }
.ed-header { box-shadow: 0 1px 0 rgba(8,14,24,.06); }
@media (max-width: 1000px) {
  body[data-step="4"][data-view4="shop"] .preview-col { background: var(--page-bg); }
}
@media (max-width: 560px) {
  body[data-step="1"] .preview-col, body[data-step="2"] .preview-col, body[data-step="3"] .preview-col { background: var(--page-bg); }
}
/* 文字の選択肢（タブ・チップ）: 地の大きさを 14px にそろえ、選択中はベタ塗り */
.era-chip, .interior-tab, .interior-aisle, .type-chip, .walk-tab, .sp-tab, .wall-chip, .goods-target, .delivery-btn, .shop-nav-btn, .view4-tab { font-size: 15px; }
.era-chip, .interior-tab, .interior-aisle, .type-chip, .sp-tab, .wall-chip, .cat-tab { min-height: 38px; }
.interior-head .era-chip { min-height: 36px; }
.era-chip-sub { min-height: 34px; font-size: 15px; }
.walk-tab { min-height: 40px; }
.step-tab[aria-selected="true"],
.view4-tab[aria-selected="true"],
.walk-tab[aria-pressed="true"],
.cat-tab[aria-selected="true"],
.era-chip[aria-pressed="true"],
.interior-head .era-chip[aria-pressed="true"],
.interior-tab[aria-selected="true"],
.interior-aisle[aria-selected="true"],
.type-chip[aria-pressed="true"],
.window-chip[aria-checked="true"],
.wall-chip[aria-checked="true"],
.sp-tab[aria-selected="true"],
.sp-slot[aria-checked="true"],
.goods-target[aria-pressed="true"],
.goods-try[aria-pressed="true"],
.delivery-btn[aria-pressed="true"],
.shop-nav-btn[aria-current="true"],
.lighting button[aria-checked="true"] {
  background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); box-shadow: none; font-weight: 800;
}
.step-tab[aria-selected="true"] .num, .shop-nav-btn[aria-current="true"] small, .interior-aisle[aria-selected="true"] small, .sp-slot[aria-checked="true"] small { color: rgba(255,255,255,.92); opacity: 1; }
.cat-tab[aria-selected="true"] { border-radius: 10px 10px 0 0; }
/* 絵のカード（レイアウト・部屋・窓の外・完成例）: 絵はそのまま、名札の帯を塗る */
.pick-grid .card .label { font-size: 14px; }
.pick-grid .card[aria-pressed="true"] { border-color: var(--sel-bg); background: #fff; box-shadow: 0 0 0 1px var(--sel-bg); }
.pick-grid .card[aria-pressed="true"] .label,
.outside-choices button { font-size: 15px; }
.outside-choices button[aria-checked="true"] { background: #fff; border-color: var(--sel-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sel-bg); }
.outside-choices button[aria-checked="true"] .lt { background: var(--sel-bg); color: var(--sel-ink); border-radius: 6px; font-weight: 800; }
/* 部屋の棚・店の棚の品: 選んだ品の名札を塗る（名札の大きさは第 2 段で見直す） */
.prop-card[data-selected="true"] .name { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); font-weight: 800; }
.prop-card .name { font-size: 13px; }
/* 色見本: 元の色を残し、白い縁とオレンジの台座、白いチェック */
.swatch { position: relative; }
.swatch[aria-pressed="true"],
.prop-card .swatches .swatch[aria-pressed="true"],
.goods-swatches .swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sel-bg); }
.swatch[aria-pressed="true"]::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: #fff; font: 900 12px/1 var(--body); text-shadow: 0 0 2px rgba(8,14,24,.85), 0 0 1px rgba(8,14,24,.9);
}
.swatches.small .swatch[aria-pressed="true"]::after { font-size: 9px; }
.tone-head .tone-chip { position: relative; }
.tone-head .tone-chip[aria-pressed="true"] { background: var(--sel-bg); box-shadow: none; }
.tone-head .tone-chip[aria-pressed="true"]::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: #fff; font: 900 13px/1 var(--body); text-shadow: 0 0 2px rgba(8,14,24,.85), 0 0 1px rgba(8,14,24,.9);
}
.wall-chip[aria-checked="true"] .wall-sw { box-shadow: 0 0 0 2px #fff; }
.goods-pickm[aria-pressed="true"] { border-color: var(--sel-bg); box-shadow: 0 0 0 2px var(--sel-bg); }

/* ボタンの大きさ: 主 56px・20px 太字 / 副 48px・16px（白地・はっきりした輪郭）/ 補助 44px / 種類のチップ 36〜40px */
.btn-main, .step-nav .btn-primary, .export-card .btn-primary#free-kit, .cart-go {
  min-height: 56px; padding: 0 24px; border-radius: 999px; font-size: 20px; font-weight: 900; letter-spacing: .02em;
}
.btn-sub, .step-nav .btn-back {
  min-height: 48px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink-strong); font-size: 16px; font-weight: 800;
}
.btn-sub:hover, .step-nav .btn-back:hover { background: var(--bg-soft); }
/* ④⑤ の「次へ：保存 →」は副（④の主は「街へ出かける」、⑤の主は「保存」） */
#panel-step4 .step-nav .btn-primary { min-height: 48px; font-size: 16px; background: #fff; color: var(--ink-strong); border: 1.5px solid var(--ink); }
#panel-step4 .step-nav .btn-primary:hover { background: var(--bg-soft); }
/* ヘッダーの「保存」は副（白地・輪郭）。⑤の中の「保存」が主 */
.ed-header #go-export { min-height: 40px; padding: 0 18px; background: #fff; color: var(--ink-strong); border: 1.5px solid var(--ink); }
.ed-header #go-export:hover { background: var(--bg-soft); }
/* 補助 44px: 「?」・ガイド・拡大 */
.help-btn { width: 44px; height: 44px; font-size: 18px; }
.chip-btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
#enlarge-open { min-width: 44px; padding: 0; }
@media (max-width: 560px) { .stage-corner .chip-btn { min-height: 40px; padding: 0 10px; font-size: 15px; } .stage-corner #enlarge-open { min-width: 40px; } }
/* 店の中の「選んだ品」: カゴに入れる 48px（主）、部屋で見る 48px（白地） */
.pick-card .goods-actions .goods-put, .pick-card .goods-actions .goods-try,
.interior-slot .pick-card .goods-actions .goods-put, .interior-slot .pick-card .goods-actions .goods-try { min-height: 48px; font-size: 16px; padding: 0 16px; }
.pick-card .goods-actions .goods-try { border: 1.5px solid var(--ink); color: var(--ink-strong); }
.pick-card .goods-actions .goods-try[aria-pressed="true"] { border-color: var(--sel-bg); color: var(--sel-ink); }
/* 店内のカゴ: 持ち帰る 56px・20px（主）、部屋を見る は白地の副 48px（黒ベタをやめる）。品を選んでいてカゴに入れられる間は「カゴに入れる」が主、持ち帰るは副 */
.dock-room { background: #fff; color: var(--ink-strong); box-shadow: 0 0 0 1.5px var(--ink), 0 8px 20px rgba(8,14,24,.16); }
.dock-room:hover { box-shadow: 0 0 0 2px var(--ink), 0 8px 20px rgba(8,14,24,.2); background: var(--bg-soft); }
.cart-side .dock-room, .interior-slot .cart[data-place="shelf"] .dock-room { min-height: 48px; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.interior-slot .cart[data-place="shelf"] .cart-go { min-height: 56px; font-size: 20px; padding: 0 14px; }
.shop-interior:has(.pick-card [data-goods-cart][data-mode="cart"]:not(:disabled)) .cart-go:not(:disabled) { background: #fff; color: var(--ink-strong); border: 1.5px solid var(--ink); }
/* 帰宅・宅配の知らせのボタンは副 48px */
.home-note .btn { min-height: 48px; }
/* ⑤ 保存の主ボタン */
.export-card .btn-primary#free-kit { border-radius: 999px; }
/* スマホの手順タブ: 14px のまま横に送る（今の手順は editor.js が見える位置へ） */
@media (max-width: 560px) {
  .steps { gap: 2px; }
  .step-tab { padding: 6px 12px; font-size: 15px; }
}

/* ===== 2026-10-15 UI 第 1 段 ②: 街の入口。左（スマホは上）の大きな枠に街の全景、右の欄は「どこへ行く?」と大きな 2 択（縦 2 段）だけ ===== */
.gate-view { display: none; }
body[data-step="4"][data-gate="true"] .gate-view { display: block; }
body[data-step="4"][data-gate="true"] .preview-col > .stage,
body[data-step="4"][data-gate="true"] .preview-col > .room-door,
body[data-step="4"][data-gate="true"] .preview-col > .bubble-dock,
body[data-step="4"][data-gate="true"] .preview-col > .band-strip,
body[data-step="4"][data-gate="true"] .preview-col > .basket { display: none !important; }
.gate-view .shop-town { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(8,14,24,.12); background: #cfe3f2; }
@media (max-width: 1000px) {
  body[data-step="4"][data-gate="true"] .preview-col { position: static; padding-bottom: 0; }
}
.shop-gate .shop-head h2 { font-size: 22px; }
.shop-worlds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.world-btn {
  flex-direction: row; align-items: center; gap: 14px; min-height: 96px; padding: 12px 20px 12px 12px; overflow: visible;
  border: 1.5px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink-strong); text-align: left;
  box-shadow: 0 3px 0 rgba(8,14,24,.12);
}
.world-btn:hover { border-color: var(--ink); background: var(--bg-soft); }
.world-btn[data-world="street"] { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 4px 0 #c94a0e; }
.world-btn[data-world="street"]:hover { background: #f25710; border-color: #f25710; }
.world-btn:active { transform: translateY(2px); box-shadow: none; }
.world-btn .world-art { flex: none; width: 72px; height: 72px; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.world-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.world-btn .world-name { padding: 0; font: 400 24px/1.25 var(--display); color: inherit; }
.world-btn .world-lead { padding: 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: inherit; opacity: .9; }
.world-btn .world-go { flex: none; margin: 0; min-height: 0; width: auto; padding: 0; background: none; border-radius: 0; color: inherit; font: 900 26px/1 var(--body); }
@media (max-width: 560px) {
  .shop-worlds { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .world-btn { min-height: 84px; padding: 10px 16px 10px 10px; }
  .world-btn .world-art { width: 64px; height: 64px; }
  .world-btn .world-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .world-btn:active { transform: none; } }

/* ===== 2026-10-15 UI 第 1 段 ③: 街にいる間（④の「街へ」= 入口・通り・店内・帰宅）は部屋づくりの部品を出さない ===== */
body[data-step="4"][data-view4="shop"] #panel-step4 > .step-nav,
body[data-step="4"][data-view4="shop"] #details-more,
body[data-step="4"][data-view4="shop"] #basket-mini,
body[data-step="4"][data-view4="shop"] #basket-details-sp,
body[data-step="4"][data-view4="shop"] .preview-col > .band-strip,
body[data-step="4"][data-view4="shop"] .preview-col > .basket,
body[data-step="4"][data-view4="shop"] .preview-col > .room-door,
body[data-step="4"][data-view4="shop"]:not([data-home="true"]) .preview-col > .bubble-dock { display: none !important; }
@media (max-width: 1000px) {
  body[data-step="4"][data-view4="shop"]:not([data-shop-dock="true"]) .ed-main { padding-bottom: 24px; }
}
/* 「くわしく」のカゴの色は部屋の側で選ぶ（街では「くわしく」を出さないため） */
body[data-step="4"][data-view4="room"] #details-more .field-basket { display: grid; }
/* 「部屋へ」の右上の丸: カゴの数 */
.view4-tab { position: relative; }
.tab-badge {
  position: absolute; top: -6px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--ink-strong); color: #fff; font: 900 13px/1 var(--body);
  box-shadow: 0 0 0 2px #fff;
}
.tab-badge[hidden] { display: none; }
.view4-tab[aria-selected="true"] .tab-badge { background: #fff; color: var(--orange-ink); box-shadow: 0 0 0 2px var(--orange); }
.view4-switch { padding: 4px; }
.view4-tab { min-height: 48px; font-size: 16px; }

/* ===== 2026-10-15 UI 第 1 段 ④: 部屋のすぐ下に「一つ戻す / 一つ進む」（小さく文字付き）、その下に移動の帯（主ボタン「街へ出かける」とカゴ） ===== */
.room-under { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -4px; }
.room-hist { display: flex; align-items: center; gap: 4px; }
.hist-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); font: 700 13px/1 var(--body); white-space: nowrap;
}
.hist-btn .hist-ic { font-size: 16px; line-height: 1; }
.hist-btn:hover:not(:disabled) { background: rgba(255,255,255,.7); }
.hist-btn:disabled { opacity: .36; cursor: default; }
.room-move { display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
body[data-step="4"] .room-move { display: flex; }
/* 街へ出かける: 主ボタン（オレンジのベタ・白文字 20px・56px・ドアの絵付き） */
.room-move .room-door {
  display: inline-flex; height: 56px; gap: 10px; padding: 0 26px 0 18px; border: 0; border-radius: 999px;
  background: var(--orange); color: #fff; font: 900 20px/1 var(--body); letter-spacing: .02em;
  box-shadow: 0 4px 0 #c94a0e, 0 8px 18px rgba(255,101,28,.25);
}
.room-move .room-door:hover { background: #f25710; border-color: transparent; }
.room-move .room-door:active { transform: translateY(2px); box-shadow: 0 2px 0 #c94a0e; }
.room-move .room-door img { width: 16px; height: 30px; filter: drop-shadow(0 0 1.5px rgba(255,255,255,.9)); }
.room-door-arrow { font-size: 20px; margin-left: 2px; }
/* カゴを見る: カゴの絵の上から中身が少しのぞく + 数の丸 */
.room-cart {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 18px 2px 10px; border: 1.5px solid var(--ink); border-radius: 18px;
  background: #fff; color: var(--ink-strong); font: 800 16px/1 var(--body);
}
.room-cart[hidden] { display: none; }
.room-cart:hover { background: var(--bg-soft); }
.mini-basket { position: relative; display: block; width: 56px; height: 48px; flex: none; }
.mini-basket .mb-icon { position: absolute; left: 0; bottom: -6px; width: 56px; height: 56px; object-fit: contain; z-index: 1; }
.mb-items { position: absolute; inset: 0; pointer-events: none; }
.mb-item { position: absolute; bottom: 64%; width: 48%; height: 78%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 1px 1px rgba(40,24,10,.3)); }
.mb-items[data-n="1"] .mb-item:nth-child(1) { left: 27%; transform: rotate(-6deg); }
.mb-items[data-n="2"] .mb-item:nth-child(1) { left: 10%; transform: rotate(-10deg); }
.mb-items[data-n="2"] .mb-item:nth-child(2) { left: 44%; transform: rotate(8deg); }
.mb-items[data-n="3"] .mb-item:nth-child(1) { left: 4%; transform: rotate(-12deg); }
.mb-items[data-n="3"] .mb-item:nth-child(2) { left: 26%; transform: rotate(4deg); bottom: 70%; }
.mb-items[data-n="3"] .mb-item:nth-child(3) { left: 50%; transform: rotate(12deg); }
.mb-n {
  position: absolute; right: -8px; bottom: -6px; z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--orange); color: #fff; font: 900 13px/1 var(--body); box-shadow: 0 0 0 2px #fff;
}
/* 通り・デパートの右下のカゴ: 中身がカゴの絵の上からのぞく */
.dock-cart { position: relative; }
.dock-cart .mb-items { inset: auto; left: 8px; top: 0; width: 40px; height: 30px; }
.dock-cart .mb-items { top: 4px; }
.dock-cart .mb-item { bottom: 40%; width: 52%; height: 85%; }
.dock-cart .dock-icon { position: relative; z-index: 1; }
/* 店内の棚の下のカゴ: 数の丸 */
.cart-badge {
  position: absolute; right: 4%; top: 18%; z-index: 3; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--orange); color: #fff; font: 900 15px/1 var(--body); box-shadow: 0 0 0 2px #fff; pointer-events: none;
}
.cart-badge[hidden] { display: none; }
/* 街にいる間・街の入口では部屋の下の帯も出さない（③の続き） */
body[data-step="4"][data-view4="shop"] .preview-col > .room-under .room-move,
body[data-step="4"][data-shopping="true"] .preview-col > .room-under,
body[data-step="4"][data-gate="true"] .preview-col > .room-under { display: none !important; }
@media (max-width: 1000px) {
  .room-under { margin-top: -2px; gap: 8px; }
  .room-move { width: 100%; }
  .room-move .room-door { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .ed-header #go-export { margin-left: auto; }
  .room-move .room-door { font-size: 19px; padding: 0 18px 0 14px; }
  .room-cart { padding-right: 12px; }
  .room-cart-text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .room-move .room-door:active { transform: none; } }

/* ===== 2026-10-15 UI 第 1 段 撮影後の手直し ===== */
/* カゴが空の「持ち帰る」は主に見せない（白地・薄い文字） */
.cart-go:disabled, .interior-slot .cart[data-place="shelf"] .cart-go:disabled { background: #fff; color: var(--muted); border: 1.5px solid var(--line-strong); opacity: 1; }
/* 帰宅の知らせの「← 通りへ」は副（白地）。主ボタンは置かない */
.home-note #home-back { background: #fff; color: var(--ink-strong); border: 1.5px solid var(--ink); }
.home-note #home-back:hover { background: var(--bg-soft); }
/* スマホの店内のカゴ: カゴの絵を上に、その下に「持ち帰る」（主）と「部屋を見る」を横並び（56px の文字が欄からはみ出していた） */
@media (max-width: 560px) {
  .cart[data-place="shelf"] { flex-direction: column; align-items: stretch; gap: 6px; }
  .cart[data-place="shelf"] .cart-basket { width: min(240px, 70%); align-self: center; }
  .cart[data-place="shelf"] .cart-side { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; align-items: center; }
  .cart[data-place="shelf"] .cart-count, .cart[data-place="shelf"] .cart-list, .cart[data-place="shelf"] .cart-clear { grid-column: 1 / -1; }
  .cart[data-place="shelf"] .cart-go { min-height: 56px; font-size: 18px; padding: 0 10px; white-space: nowrap; }
  .cart[data-place="shelf"] .dock-room { min-height: 56px; font-size: 15px; padding: 0 8px; }
  .cart[data-place="shelf"] .cart-clear { justify-self: start; }
  /* 手順タブは横に送れることが分かるよう端を少しぼかす */
  .steps { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent); }
}

/* ===== 2026-10-15 ペルソナ 1 回目の修正 ===== */
/* スマホ: 店内を画面幅に収める。売場・絞り込みのチップは横に送る */
.shop-interior, .interior-head { max-width: 100%; min-width: 0; }
.interior-head > * { min-width: 0; max-width: 100%; }
.interior-aisles { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.interior-aisles::-webkit-scrollbar { display: none; }
.interior-aisle { flex: none; }
#shop-inside, #shop-inside > * { min-width: 0; max-width: 100%; }
/* チュートリアルの吹き出しの文は、画面の幅で折り返す（「。」までの塊が画面より長いとき） */
.tut-text .ph { max-width: 100%; }
/* スマホ: 手順タブ 5 つを横送りなしで収める（①レイアウトの左が切れていた） */
@media (max-width: 560px) {
  .steps { gap: 0; padding: 3px; -webkit-mask-image: none; mask-image: none; }
  .step-tab { padding: 6px 7px; font-size: 15px; letter-spacing: -.02em; }
  .step-tab .num { margin-right: 1px; }
}
/* スマホ・タブレットの店内: カゴは画面の下に固定（いつも見える。チュートリアルのドロップ先） */
@media (max-width: 1000px) {
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 36; margin: 0;
    flex-direction: row; align-items: center; gap: 10px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 20px rgba(8,14,24,.18);
  }
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] .cart-basket { width: 104px; flex: none; align-self: auto; }
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] .cart-side { display: flex; flex-direction: row; flex: 1 1 auto; gap: 8px; align-items: center; max-width: none; min-width: 0; }
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] .cart-count,
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] .cart-clear { display: none; }
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] .cart-go { flex: 1 1 auto; min-width: 0; min-height: 52px; font-size: 18px; padding: 0 10px; white-space: nowrap; }
  body[data-step="4"][data-shopping="true"] .cart[data-place="shelf"] .dock-room { flex: none; min-height: 52px; padding: 0 12px; font-size: 15px; }
  body[data-step="4"][data-shopping="true"]:has(#shop-inside:not([hidden])) .ed-main { padding-bottom: 120px; }
}
html { scroll-padding-bottom: calc(var(--takeout-h, 0px) + var(--nav-h, 0px) + var(--cart-h, 0px) + 8px); }
/* 小さな知らせ（画面の下に 1 行。「もどす」付きも） */
.ed-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--cart-h, 0px) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2200;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(37,49,59,.96); color: #fff; font: 700 14px/1.4 var(--body); box-shadow: 0 10px 28px rgba(8,14,24,.28); animation: toast-in .2s ease-out;
}
.ed-toast:not(:has(.ed-toast-act)) { padding-right: 18px; }
.ed-toast-act { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink-strong); font: 800 15px/1 var(--body); white-space: nowrap; }
dialog .ed-toast { position: fixed; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .ed-toast { animation: none; } }
/* カゴの中身の一覧（カゴを押すと開く。品名 + ×）。通り・デパートのカゴは初めから一覧 */
.cart-basket { cursor: pointer; }
.cart-list { flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 4px 0; max-height: 240px; overflow-y: auto; }
.cart-list .cart-row { display: flex; align-items: center; gap: 8px; width: auto; height: auto; min-height: 48px; padding: 2px 4px 2px 2px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cart-list .cart-row img { width: 44px; height: 44px; flex: none; }
.cart-row-name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-list .cart-row-n { position: static; flex: none; font-size: 13px; line-height: 20px; padding: 0 6px; }
.cart-list .cart-x { position: static; flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 16px; }
.cart-list .cart-x::before { inset: 0; }
.cart-list .cart-hold { position: static; transform: none; flex: none; }
.cart[data-place="shelf"] { position: relative; }
.cart[data-place="shelf"] .cart-list,
.interior-slot .cart[data-place="shelf"] .cart-list { display: none; }
.cart[data-place="shelf"][data-list="open"] .cart-list,
.interior-slot .cart[data-place="shelf"][data-list="open"] .cart-list {
  display: flex; position: absolute; right: 8px; bottom: calc(100% + 8px); z-index: 40; width: min(340px, calc(100vw - 32px)); max-height: 320px;
  padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 14px 32px rgba(8,14,24,.24);
}
.cart[data-place="corner"] .cart-list { display: flex; max-height: 200px; }
.cart-list:empty { display: none !important; }
/* 店の一覧（2026-10-15）: 食品店・取り置きのカードもほかの店と同じ大きさに。PC の一覧ではカゴのボタンを画面の下に付けたまま */
.shop-list .shop-card-small, .shop-list .shop-card-fav { grid-column: auto; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 0 8px; }
.shop-list .shop-card-small .shop-window, .shop-list .shop-card-fav .shop-window { width: auto; height: 72px; margin-bottom: 4px; padding: 6px 6px 4px; border-bottom: 3px solid rgba(8,14,24,.08); }
.shop-list .shop-card-small .shop-window img:nth-child(n+2) { display: block; }
.shop-list .shop-card-small .shop-name-row, .shop-list .shop-card-fav .shop-name-row { padding: 0 10px; }
.shop-list .shop-card-small .shop-name, .shop-list .shop-card-fav .shop-name { padding: 0 10px; font-size: 15px; }
.shop-list .shop-card-small .shop-name-row .shop-name, .shop-list .shop-card-fav .shop-name-row .shop-name { padding: 0; }
.shop-list .shop-card-small .shop-kind, .shop-list .shop-card-small .shop-count, .shop-list .shop-card-fav .shop-count { padding: 0 10px; }
.shop-list .shop-card-small .shop-card-mark { width: 48px; height: 48px; margin: -12px 0 -2px -4px; }
@media (min-width: 1001px) {
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot .shop-card-small .shop-window,
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot .shop-card-fav .shop-window { height: 132px; }
  body[data-step="4"][data-view4="shop"][data-list-big="true"] .walk-big-slot { padding-bottom: 12px; }
  body[data-list-big="true"][data-dock-inline="true"] .shop-dock { position: sticky; bottom: 16px; }
}
/* 街の全景の建物（アーチ・デパート）も押せる（2026-10-15）。見た目は絵のまま、指を置くと薄く光る */
.gate-view { position: relative; }
.town-spot { position: absolute; padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; }
.town-spot:hover, .town-spot:focus-visible { background: rgba(255,255,255,.18); box-shadow: 0 0 0 3px rgba(255,101,28,.85); }
.town-spot-street { left: 9%; top: 26%; width: 27%; height: 72%; }
.town-spot-dept { left: 60%; top: 4%; width: 39%; height: 64%; }
/* 「?」を開いた状態も、選択中と同じオレンジのベタ + 白文字 */
.help-btn[aria-expanded="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
/* スタート画面（2026-10-15）: 主 1 つ + 副 3 つ、ほかは「…」の中 */
/* ⑤ 保存（2026-10-15）: 主ボタンを先に、入れ方は「? 配信ソフトへの入れ方」の中。名前を付けて残すの入力が下の「← 飾る」に隠れない */
.obs-how > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.obs-how > summary::-webkit-details-marker { display: none; }
.obs-how-q { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 900; font-size: 14px; }
.obs-how[open] .obs-how-q { background: var(--orange); border-color: var(--orange); color: #fff; }
.obs-how .obs-steps { margin-top: 6px; }
#panel-step5 .named-save { padding-bottom: 24px; }
#panel-step5 { scroll-padding-bottom: 96px; }
@media (max-width: 1000px) { body[data-step="5"] .ed-main { padding-bottom: 120px; } }
@media (max-width: 560px) { body[data-step="5"] .band-strip { display: none; } }
/* ===== 2026-10-15 みんなに見せる・アプリとして追加（heyairo-app.js） ===== */
/* ヘッダーの「…」 */
.head-more { position: relative; flex: none; }
.head-more > summary { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; list-style: none; cursor: pointer; font-weight: 900; font-size: 18px; line-height: 1; color: var(--ink-strong); border: 1.5px solid var(--line-strong); background: #fff; }
.head-more > summary::-webkit-details-marker { display: none; }
.head-more > summary:hover { border-color: var(--ink); background: var(--bg-soft); }
.head-more[open] > summary { background: var(--sel-bg, var(--orange)); border-color: var(--sel-bg, var(--orange)); color: #fff; }
.head-more-in { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; display: flex; flex-direction: column; gap: 8px; min-width: 210px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(8,14,24,.16); }
.head-more-in .btn { width: 100%; }
.head-more-in .btn[hidden], .lb-save .b-sub[hidden] { display: none; }
@media (max-width: 560px) { .ed-header .go-start { order: 1; } .head-more { order: 1; } .head-more > summary { width: 36px; height: 36px; } } /* 1 段目: ロゴ・保存・はじめから・… */
/* ⑤ 配信用に保存できた後 */
/* レシート */
/* 2026-10-20 品を保存: 「品を保存(N 点)」（緑 = 保存）と「閉じる」の 2 つ並び。スマホも横に 2 つ */
/* PC など共有画面の無い端末の小さなメニュー */
.app-share { border: 0; padding: 0; border-radius: 20px; background: #fff; color: var(--ink); width: min(320px, calc(100vw - 32px)); box-shadow: 0 20px 48px rgba(8,14,24,.28); }
.app-share::backdrop { background: rgba(8,14,24,.36); }
.app-share-in { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 12px; }
.app-share-title { margin: 0 0 4px; font: 900 18px/1.4 var(--body); color: var(--ink-strong); text-align: center; }
.app-share .btn { width: 100%; gap: 10px; text-decoration: none; }
.app-share .btn svg { width: 20px; height: 20px; flex: none; }
.app-share-close { align-self: center; min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--muted); font: 700 15px/1 var(--body); cursor: pointer; }
.app-share-close:hover { color: var(--ink); }
.app-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2200; max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: rgba(37,49,59,.96); color: #fff; font: 700 14px/1.4 var(--body); }
.app-toast[hidden] { display: none; }
/* ===== 2026-10-15 ペルソナ 1 回目の残り: スマホ・タブレットの店内は、品を選ぶまで「選んだ品」の欄を畳む（高さを取らない） ===== */
@media (max-width: 1000px) { .shop-interior .pick-bar:not(:has(.pick-card)) { display: none; } }

/* ===== 2026-10-15 まるごとコーデ（デパート 1F の右。完成例のセット売り場）と店名の見出し ===== */
/* 店名の見出しだけ、カナが読みやすい Mochiy Pop One（Dela Gothic One では「ポケロボ堂」が「ポクロボ堂」、「スワリバ」が「ヌワリバ」に見えた）。ロゴは Dela のまま */
/* 2026-10-15 追加: 売り場・街の見出し(どこへ行く?・商店街・デパート・世界の 2 択の名前)も同じ書体に。Dela では「デパート」が「ヂパート」に見えた */
#shop-title, .interior-sign b, .rc-shop, .shop h2, .world-name, .world-btn .world-name { font-family: "Mochiy Pop One", var(--body); font-weight: 400; letter-spacing: .01em; }
/* ===== まるごとコーデの売り場(2026-10-15 デザイン r3: style-tests/design-coord-floor-2026-10-15/r3) =====
   生成りの壁・木の展示棚に部屋を額のように並べる。PC 3 列・スマホ 1 列。説明文なし。カゴは PC は右の欄、スマホは画面下 */
.shop-interior[data-special="coord"] { --wall: #f6ead9; --wall2: #efdfca; --accent: #a4532a; --frame: #c99a6b; --frame-d: #a8794b; --board: #d9b183; --board-d: #b98d5f; }
.shop-interior[data-special="coord"] .interior-head { display: none; }
.shop-interior[data-special="coord"] .shop-goods { display: flex; flex-direction: column; gap: 0; padding: 18px 22px 0; border-radius: 18px;
  background: repeating-linear-gradient(90deg, rgba(160,120,80,0) 0 calc(33.333% - 1px), rgba(160,120,80,.13) calc(33.333% - 1px) 33.333%), linear-gradient(#f8eddf, #f3e5d2); box-shadow: inset 0 0 0 1px rgba(120,80,40,.12); }
.coord-head { position: sticky; top: 0; z-index: 3; padding: 0 0 14px; background: linear-gradient(#f8eddf 80%, rgba(248,237,223,0)); }
.coord-types { display: flex; gap: 8px; flex-wrap: wrap; }
.coord-type, .coord-era { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-color: #e3d2bd; font-size: 15px; font-weight: 800; color: var(--ink-strong); }
.coord-type small, .coord-era small { font-size: 13px; font-weight: 700; color: var(--muted); }
.coord-type[aria-pressed="true"], .coord-era[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.coord-type[aria-pressed="true"] small, .coord-era[aria-pressed="true"] small { color: rgba(255,255,255,.9); }
.coord-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; row-gap: 46px; padding: 16px 0 36px; }
.coord-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; padding: 0 0 14px; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; }
/* 額の上の壁を照らす小さな明かり(額の外。部屋の絵の色は変えない) */
.coord-card::before { content: ""; position: absolute; left: 50%; top: -34px; width: 78%; height: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,226,170,.75), rgba(255,226,170,0)); pointer-events: none; }
/* 棚板: 名前の下に通しで(隣の札の棚板とつながる) */
.coord-card::after { content: ""; position: absolute; left: -7px; right: -7px; bottom: 0; height: 9px; border-radius: 2px; background: linear-gradient(var(--board), var(--board-d)); box-shadow: 0 4px 6px rgba(90,60,30,.22); pointer-events: none; }
.coord-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border: 5px solid var(--frame); border-radius: 10px; overflow: hidden; background: var(--stage-bg);
  box-shadow: inset 0 0 0 1px rgba(90,60,30,.25), 0 0 0 1px var(--frame-d), 0 8px 14px rgba(90,60,30,.22); transition: transform .15s, box-shadow .15s; }
.coord-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coord-card:not([data-thumb="done"]) .coord-thumb img[data-fallback="true"] { filter: saturate(.5) opacity(.7); } /* 2026-10-15: 前もって描いた絵(style7-thumbs/coord)はそのまま。淡くするのは部屋の背景だけの仮の絵 */
.coord-card:hover .coord-thumb, .coord-card:focus-visible .coord-thumb { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--orange), 0 10px 18px rgba(90,60,30,.26); }
.coord-card:focus-visible { outline: none; }
.coord-count { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 6px; background: #fff; color: var(--ink-strong); font: 800 13px/1.6 var(--body); box-shadow: 0 1px 3px rgba(8,14,24,.2); }
.coord-hanger { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--orange); box-shadow: 0 2px 6px rgba(8,14,24,.22); }
.coord-hanger svg { width: 24px; height: 24px; }
.coord-name { font: 800 17px/1.35 var(--body); color: var(--ink-strong); padding: 0 2px; word-break: keep-all; overflow-wrap: anywhere; }
.coord-tag { position: absolute; right: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: #fff; color: var(--ink-strong); font: 800 13px/1.5 var(--body); box-shadow: 0 1px 4px rgba(8,14,24,.2); }
.coord-tag[hidden] { display: none; }
.coord-tag[data-kind="cart"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--orange); vertical-align: 1px; }
.coord-new { position: absolute; left: 8px; top: 8px; z-index: 1; }
/* 15: 「NEW！」の札(ポップに: 黄 #ffe17c・少し傾ける・角丸・太字)。売り場のセット・スタート画面のカード・部屋の下の札で共通 */
.new-pop { display: inline-block; padding: 2px 9px 3px; border-radius: 7px; background: #ffe17c; color: #3a2400; font: 900 13px/1.3 var(--body); letter-spacing: .04em; transform: rotate(-6deg);
  box-shadow: 0 2px 0 #e6b93c, 0 3px 8px rgba(80,50,0,.2); text-decoration: none; white-space: nowrap; }
.new-pop[hidden] { display: none; }
@media (max-width: 1000px) {
  .coord-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 560px) {
  .shop-interior[data-special="coord"] .shop-goods { padding: 10px 10px 0; background: linear-gradient(#f8eddf, #f3e5d2); }
  .coord-head { padding-bottom: 8px; }
  .coord-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px 2px; }
  .coord-types::-webkit-scrollbar { display: none; }
  .coord-type, .coord-era { flex: 0 0 auto; }
  .coord-grid { grid-template-columns: minmax(0, 1fr); row-gap: 30px; padding-top: 10px; }
  .coord-card::after { left: -10px; right: -10px; }
}
@media (min-width: 1001px) {
  body[data-step="4"][data-view4="shop"][data-shop-big="true"] .interior-slot .shop-interior[data-special="coord"] .shop-goods { max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; scrollbar-width: thin; }
}
/* 右の欄(まるごとコーデの売り場の中): 「← 百貨店」と売り場の切替を 1 行に。店の列・見出しは出さない */
body[data-coord-floor="true"] #shop-inside .shop-nav-wrap, body[data-coord-floor="true"] #shop-inside .shop-head { display: none; }
body[data-coord-floor="true"] #shop-inside .shop-crumbs { display: flex; align-items: center; gap: 0; min-height: 46px; margin-top: 12px; padding: 0 6px 0 0; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; }
body[data-coord-floor="true"] #shop-inside .shop-crumb { flex: none; border: 0; background: none; min-height: 42px; padding: 0 14px; font-size: 15px; }
.coord-switch-wrap { flex: 1; min-width: 0; display: flex; }
.coord-switch-wrap[hidden] { display: none; }
.coord-switch { flex: 1; min-width: 0; min-height: 42px; padding: 0 34px 0 10px; border: 0; border-radius: 999px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231f2933' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
  appearance: none; -webkit-appearance: none; font: 800 17px/1.2 var(--body); color: var(--ink-strong); text-align: center; text-align-last: center; cursor: pointer; }
.coord-switch:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* PC: カゴは右の欄(#cart[data-place="panel"])。カゴの絵は空のときだけ大きく。セットは 1 行(絵・名前・N アイテム)、下に合計と「持ち帰る」 */
#cart[data-place="panel"] { display: flex; flex-direction: column; margin-top: 16px; padding: 18px 20px 20px; border-radius: 18px; background: #fffdf9; box-shadow: 0 0 0 1px var(--line); min-height: calc(100vh - var(--header-h) - 300px); }
#cart[data-place="panel"] .cart-basket { display: none; }
#cart[data-place="panel"][data-empty="true"] .cart-basket { display: block; order: 2; width: 70%; margin: 24px auto; pointer-events: none; }
#cart[data-place="panel"] .cart-side { display: flex; flex-direction: column; flex: 1; gap: 0; width: 100%; }
#cart[data-place="panel"] .cart-count { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 900 20px/1 var(--body); color: var(--ink-strong); }
#cart[data-place="panel"] .cart-count::before { content: ""; width: 38px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 30'%3E%3Cg fill='none' stroke='%231f2933' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 11h34l-4 17H6z'/%3E%3Cpath d='M10 11 15 3m13 8-5-8M13 15v9m6-9v9m6-9v9'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
#cart[data-place="panel"] #cart-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--bg-soft, #f1ebe3); font-size: 15px; }
#cart[data-place="panel"] .cart-list { display: flex !important; flex-direction: column; gap: 10px; max-height: none; flex: 1; overflow-y: auto; margin: 0; padding: 0; }
#cart[data-place="panel"] .cart-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 0; background: none; border: 0; }
#cart[data-place="panel"] .cart-row img { flex: none; width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
#cart[data-place="panel"] .cart-set-row img.cart-set-thumb { width: 132px; height: 74px; object-fit: cover; border-radius: 4px; box-shadow: none; }
#cart[data-place="panel"] .cart-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font: 800 15px/1.35 var(--body); color: var(--ink-strong); white-space: normal; }
#cart[data-place="panel"] .cart-row-name small { font-size: 14px; font-weight: 700; color: var(--muted); }
#cart[data-place="panel"] .cart-x { flex: none; width: 30px; height: 30px; border-radius: 50%; opacity: .55; }
#cart[data-place="panel"] .cart-x:hover, #cart[data-place="panel"] .cart-x:focus-visible { opacity: 1; }
#cart[data-place="panel"] .cart-sum { display: flex; justify-content: space-between; margin: 14px 0 0; padding: 0 2px 12px; border-bottom: 1px solid var(--line); font: 900 16px/1.4 var(--body); color: var(--ink-strong); }
#cart[data-place="panel"] .cart-sum[hidden], .cart-sum[hidden], #cart[data-place="panel"] .cart-sum b[hidden] { display: none; }
.cart-sum { display: none; }
#cart[data-place="panel"] .cart-go { order: 9; width: 100%; min-height: 54px; margin-top: 16px; border-radius: 999px; font-size: 18px; }
#cart[data-place="panel"] .cart-go:disabled { background: #f3d7c8; border-color: transparent; color: #fff; opacity: 1; }
#cart[data-place="panel"] .cart-clear { order: 10; align-self: center; margin-top: 8px; }
/* セットの行(スマホ・店内の一覧でも 1 行) */
.cart-set-row .cart-row-name { display: flex; flex-direction: column; }
.cart-set-row .cart-row-name small { font-weight: 700; color: var(--muted); }
.cart-set-row img.cart-set-thumb { object-fit: cover; }
/* 部屋の下の文字リンク「デパート 1F に まるごとコーデ →」。初めて見るまで「新しい」の札（黄は点の 1 色だけ） */
.room-coord { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--orange-ink); font: 800 14.5px/1.3 var(--body); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.room-coord:hover { color: var(--ink-strong); }
.room-coord[hidden] { display: none; }
.room-coord-new { margin-right: 2px; }
/* 部屋で見る（セット）: PC は大きなダイアログ、スマホは全画面で主ボタンを下に固定 */
.coord-try { padding: 0; width: min(96vw, 1360px); max-width: none; max-height: 94vh; border: 0; border-radius: 18px; background: #fff; color: var(--ink); }
.coord-try::backdrop { background: rgba(8,14,24,.72); }
.ct-in { display: flex; flex-direction: column; gap: 10px; padding: 10px 18px 16px; max-height: 94vh; }
.ct-head { display: flex; align-items: center; gap: 10px; }
.ct-head h2 { margin: 0; min-width: 0; font: 400 21px/1.3 "Mochiy Pop One", var(--body); color: var(--ink-strong); }
.ct-type { padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.ct-head .lb-close { margin-left: auto; }
.ct-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; min-height: 0; overflow: auto; }
.ct-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ct-pic { position: relative; border-radius: 12px; overflow: hidden; background: var(--stage-bg); box-shadow: 0 0 0 1px rgba(8,14,24,.08); }
.ct-pic canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ct-loading { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 13px; font-weight: 700; }
.ct-look { display: flex; align-items: center; gap: 14px; }
.ct-switch { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange-line); cursor: pointer; }
.ct-switch input { position: absolute; left: 14px; top: 50%; opacity: 0; width: 1px; height: 1px; }
.ct-knob { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #c9c2bb; transition: background .15s; }
.ct-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.ct-switch input:checked + .ct-knob { background: var(--orange); }
.ct-switch input:checked + .ct-knob::after { transform: translateX(22px); }
.ct-switch input:focus-visible + .ct-knob { outline: 3px solid var(--focus); outline-offset: 2px; }
.ct-switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-switch-text b { font-size: 15.5px; font-weight: 900; color: var(--ink-strong); }
.ct-switch-text small { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.ct-alt { flex: none; margin: 0; width: 168px; }
.ct-alt canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; box-shadow: 0 0 0 1px rgba(8,14,24,.12); }
.ct-alt figcaption { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.ct-changes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-ch-cap { font-size: 13px; font-weight: 800; color: var(--muted); align-self: center; }
.ct-ch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; }
.ct-chair { min-height: 30px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; }
.ct-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-items-title { margin: 0; font-size: 17px; font-weight: 900; color: var(--ink-strong); }
.ct-items-title b { font-weight: 900; color: var(--orange-ink); }
.ct-band { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fff6d6; box-shadow: inset 0 0 0 1px #f2d98a; font-size: 13px; font-weight: 700; line-height: 1.5; }
.ct-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; overflow: auto; max-height: calc(94vh - 220px); padding: 2px; }
.ct-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 104px; padding: 8px 6px 6px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; }
.ct-item img { width: 100%; height: 56px; object-fit: contain; }
.ct-item[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.ct-item[aria-pressed="false"]:not(:disabled) img { opacity: .35; filter: grayscale(.8); }
.ct-item[aria-pressed="false"]:not(:disabled) .ct-name { color: var(--muted); text-decoration: line-through; }
.ct-item:disabled { cursor: default; background: var(--bg-soft); }
.ct-item:disabled img { opacity: .5; }
.ct-check { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font: 900 13px/1 var(--body); }
.ct-check:empty { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ct-item:disabled .ct-check { display: none; }
.ct-why { font-size: 13px; color: var(--muted); }
.ct-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.ct-acts .btn { min-height: 48px; padding: 0 18px; }
.ct-acts .btn-main { min-width: 220px; font-size: 16px; }
.ct-acts .btn:disabled { opacity: .45; cursor: default; }
.ct-acts #coord-try-back { margin-right: auto; }
@media (max-width: 1000px) {
  .ct-body { grid-template-columns: minmax(0, 1fr); }
  .ct-items { max-height: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .coord-try { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .ct-in { height: 100%; max-height: none; padding: 8px 12px 0; gap: 8px; }
  .ct-head h2 { font-size: 17px; }
  .ct-look { flex-direction: column; align-items: stretch; gap: 8px; }
  .ct-alt { display: none; }
  .ct-switch-text b { font-size: 14.5px; }
  .ct-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-acts { position: sticky; bottom: 0; margin: 0 -12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 14px rgba(8,14,24,.08); }
  .ct-acts .btn { flex: 1 1 40%; padding: 0 10px; font-size: 15px; }
  .ct-acts .btn-main { flex: 1 1 100%; order: -1; min-width: 0; font-size: 16px; }
  .ct-acts #coord-try-back { margin-right: 0; }
}
/* レシートの「お部屋の模様替え 0 円」 */
.rc-lines li.rc-extra { color: var(--orange-ink); }
.rc-lines li.rc-extra .rc-thumb { visibility: hidden; }
.rc-lines li span.rc-thumb { flex: none; } /* 2026-10-27 93: 絵の無い行（サービス・模様替え・売った品）の空の枠が「li span」の flex: 1 で伸び、名前が細く折り返していた */
/* チュートリアルのサービスの行（93）: 名前が長いので空の絵の枠は置かず（下の「合計」と同じ左端）、折り返すときは「（」の前だけ */
.rc-lines li.rc-svc .rc-thumb { display: none; }
.rc-lines li.rc-svc span { word-break: keep-all; overflow-wrap: anywhere; }
.rc-lines li.rc-svc b { white-space: nowrap; }
@media (min-width: 1001px) { .ct-left { width: 100%; max-width: calc((94vh - 380px) * 16 / 9); justify-self: center; } }

/* ---------- スタート画面(body[data-step="0"]。2026-10-15 A 案「ホーム画面型」) ----------
   壁(生成り)と床(木目)の部屋の真ん中に、いまの部屋の絵を舞台として置き、主ボタンを絵の下辺に重ねる。行き先 3 枚は床の上。
   モック: style-tests/start-screen-2026-10-15/A-home.html。色・書体は research/design-guide-2026-10-14.md(オレンジ基調、黄は「新しい」の点 1 か所) */
.start {
  --sh-cream: #fbf7f2; --sh-cream-2: #f6efe5; --sh-wood-1: #e7c49a; --sh-wood-2: #dcb488; --sh-wood-line: #c9996a;
  --sh-ink: #1f1a17; --sh-sub: #6b625c; --sh-line: #ece4da; --sh-orange-dark: #e4530f; --sh-yellow: #ffe17c;
  --sh-pop: "Mochiy Pop One", "Noto Sans JP", sans-serif;
  background: var(--sh-cream);
}
.sh-home {
  position: relative; min-height: calc(100vh - var(--hdr-h, 56px)); display: flex; flex-direction: column; align-items: center; padding: 22px 32px 30px; overflow: hidden;
  background:
    radial-gradient(ellipse 45% 55% at 82% 8%, rgba(255,226,170,.55), transparent 70%),
    linear-gradient(var(--sh-cream) 0 calc(100% - 250px), #ead2b2 calc(100% - 250px) calc(100% - 244px), transparent calc(100% - 244px)),
    repeating-linear-gradient(90deg, var(--sh-wood-1) 0 178px, var(--sh-wood-line) 178px 180px, var(--sh-wood-2) 180px 358px, var(--sh-wood-line) 358px 360px);
}

/* 舞台: いまの部屋の絵。描けるまでは figure の背景(部屋の背景だけ)を見せ、描けたら絵をふわっと重ねる。
   2026-10-15: 見出しを無くした分、上に詰めて大きく(高さの低い画面では床のカードが収まる大きさまで) */
.sh-stage { position: relative; z-index: 1; width: min(800px, 100%, calc((100vh - var(--hdr-h, 56px) - 400px) * 16 / 9)); min-width: min(560px, 100%); margin-top: 34px; }
.sh-room { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 20px; border: 6px solid #fff; background: var(--sh-cream-2) center / cover no-repeat; box-shadow: 0 0 0 3px var(--orange), 0 22px 44px rgba(80,44,16,.20); transition: transform .3s ease, opacity .3s ease; }
.sh-room > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; opacity: 1; transition: opacity .25s ease; }
.sh-room > img[data-ready="false"] { opacity: 0; }
/* 「部屋に入る」を押したら 0.3 秒、絵がふわっと広がる */
.sh-room.sh-enter { transform: scale(1.12); opacity: .2; }
/* 2026-10-25: 絵の全体が「部屋に入る」と同じ。押せると分かるようにカーソルと hover でほんの少し明るく */
#start-fig { cursor: pointer; }
#start-fig > img { transition: opacity .25s ease, filter .15s ease; }
#start-fig:hover > img { filter: brightness(1.03); }
@media (prefers-reduced-motion: reduce) { .sh-room, .sh-room > img { transition: none; } .sh-room.sh-enter { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #start-fig > img { transition: none; } }

/* 主ボタン(絵の下辺に重ねる。#ff651c のベタ + 白い太字) */
.sh-go { position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; padding: 0 40px 0 48px; border: 0; border-radius: 999px; background: var(--orange); color: #fff; font: 900 26px/1 var(--body); letter-spacing: .06em; box-shadow: 0 6px 0 var(--sh-orange-dark), 0 16px 30px rgba(228,83,15,.28); white-space: nowrap; transition: transform .15s, background .15s; }
.sh-go:hover { background: var(--sh-orange-dark); transform: translateX(-50%) translateY(-2px); }
.sh-go-arw { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--orange); font-size: 22px; }

/* 行き先カード(絵 + 名前 + 一言 + →) */
.sh-cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(1180px, 100%); margin-top: 66px; }
.sh-card { position: relative; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--sh-ink); text-align: left; box-shadow: 0 0 0 2px var(--sh-line), 0 10px 22px rgba(80,44,16,.10); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.sh-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--orange), 0 14px 26px rgba(80,44,16,.14); }
.sh-pic { position: relative; display: block; aspect-ratio: 16 / 6.6; overflow: hidden; background: var(--sh-cream-2); }
.sh-cover { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.sh-txt { position: relative; display: block; padding: 14px 64px 16px 20px; }
.sh-txt b { display: block; font: 400 22px/1.35 var(--sh-pop); color: var(--sh-ink); white-space: nowrap; }
.sh-txt small { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--sh-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-arw { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; font-size: 18px; }
.sh-new { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 3px 11px 4px; font-size: 15px; } /* 見た目は .new-pop（NEW！。2026-10-15 直しリスト 15） */
/* コーデの絵: 部屋の写真 3 枚を白い縁で少し傾けて重ねる */
.sh-fan-bg { background: linear-gradient(#fff 0 62%, var(--sh-wood-1) 62% 100%); }
.sh-fan { position: absolute; inset: 0; }
.sh-fan img { position: absolute; width: 58%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid #fff; border-radius: 8px; box-shadow: 0 6px 14px rgba(60,30,10,.22); }
.sh-fan img:nth-child(1) { left: 4%; top: 18%; transform: rotate(-6deg); }
.sh-fan img:nth-child(2) { right: 4%; top: 12%; transform: rotate(5deg); }
.sh-fan img:nth-child(3) { left: 21%; top: 34%; transform: rotate(-1deg); z-index: 1; }
/* おまかせの絵: ぼかした部屋のモザイク + サイコロ 2 つ */
.sh-dice-bg { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sh-dice-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) blur(1.5px); opacity: .75; }
.sh-dice { position: absolute; z-index: 1; filter: drop-shadow(0 8px 10px rgba(60,30,10,.30)); }
.sh-d1 { width: 34%; left: 18%; top: 22%; transform: rotate(-14deg); }
.sh-d2 { width: 28%; left: 52%; top: 34%; transform: rotate(12deg); }

/* 右上: 「チュートリアルをもう一度」と「…」 */
.sh-corner { position: absolute; z-index: 4; right: 24px; top: 18px; }
.sh-tut { position: absolute; z-index: 3; right: 80px; top: 26px; border: 0; background: none; padding: 6px 2px; color: var(--sh-ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.sh-tut::after { content: " →"; color: var(--orange); }
.sh-tut:hover { color: var(--orange-ink); }
.start-more { position: relative; }
.start-more > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--sh-sub); font-weight: 900; font-size: 20px; list-style: none; cursor: pointer; box-shadow: 0 0 0 1.5px var(--sh-line); }
.start-more > summary::-webkit-details-marker { display: none; }
.start-more > summary:hover, .start-more[open] > summary { color: var(--orange-ink); box-shadow: 0 0 0 2px var(--orange); }
.start-more-in { position: absolute; right: 0; top: 52px; width: 300px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--sh-line), 0 16px 34px rgba(80,44,16,.18); }
.start-more-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--sh-ink); text-align: left; }
.start-more-item b { font-size: 15px; font-weight: 900; }
.start-more-item span { font-size: 13px; color: var(--sh-sub); }
.start-more-item:hover { background: var(--orange-soft); }
.start-more-item:hover b { color: var(--orange-ink); }
.start-back { position: relative; z-index: 1; margin-top: 14px; border: 0; background: none; padding: 4px 0; color: var(--orange-ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.start-status { position: relative; z-index: 1; margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--sh-ink); text-align: center; }
.start-status:empty { display: none; }

/* スマホ: 主ボタンは画面の下に固定、カードは横長 3 段 */
@media (max-width: 760px) {
  .sh-home { padding: 18px 16px 118px;
    background:
      radial-gradient(ellipse 70% 30% at 90% 0%, rgba(255,226,170,.6), transparent 70%),
      linear-gradient(var(--sh-cream) 0 52%, #ead2b2 52% calc(52% + 5px), transparent calc(52% + 5px)),
      repeating-linear-gradient(90deg, var(--sh-wood-1) 0 88px, var(--sh-wood-line) 88px 90px, var(--sh-wood-2) 90px 178px, var(--sh-wood-line) 178px 180px); }
  .sh-corner { right: 12px; top: 12px; }
  .sh-stage { width: 100%; min-width: 0; margin-top: 58px; z-index: auto; }
  .sh-room { border-width: 4px; border-radius: 14px; }
  .sh-room > img { border-radius: 10px; }
  .sh-go { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; z-index: 12; min-height: 68px; font-size: 23px; padding: 0 24px; }
  .sh-go:hover { transform: none; }
  .sh-cards { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .sh-card { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .sh-pic { flex: none; width: 120px; aspect-ratio: auto; min-height: 76px; }
  .sh-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 10px 52px 10px 14px; }
  .sh-txt b { font-size: 18px; }
  .sh-txt small { font-size: 13px; line-height: 1.45; white-space: normal; overflow: visible; word-break: auto-phrase; }
  .sh-arw { right: 12px; width: 32px; height: 32px; font-size: 15px; }
  .sh-new { left: 6px; top: 6px; font-size: 15px; padding: 2px 8px 3px; }
  .sh-tut { position: static; margin: 14px auto 0; }
  /* 下に固定した主ボタンの裏に、うすい生成りのぼかし */
  body[data-step="0"]::after { content: ""; position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; height: 112px; background: linear-gradient(rgba(251,247,242,0), rgba(251,247,242,.92) 38%, #fbf7f2); pointer-events: none; }
}

/* ===== 2026-10-15 直しリスト(使いやすさ・遊び心チェック) ===== */
/* 7: 選んだ品の値札は名前を全部見せる(隣の値札の上に出る) */
@media (max-width: 1000px) {
  /* 7: スマホの「選んだ品」はカゴの帯のすぐ上に留める(押してもページを動かさない)。ボタンは欄の中に収める */
  .shop-interior .pick-bar:has(.pick-card) { position: sticky; bottom: calc(var(--cart-h, 0px) + 6px); z-index: 6; }
  .shop-interior .pick-card .goods-actions { flex: 0 0 100%; min-width: 0; margin: 4px 0 0; }
  .shop-interior .pick-card .goods-actions .goods-put, .shop-interior .pick-card .goods-actions .goods-try,
  .interior-slot .pick-card .goods-actions .goods-put, .interior-slot .pick-card .goods-actions .goods-try { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 15px; }
}
/* 8: スマホの部屋の下の帯は「部屋 …」「レイアウト …」の 2 行にする(1 行に詰めて「レイアウ…」と切れていた) */
@media (max-width: 760px) {
  .band-strip .now { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
  .band-strip .now-sep { display: none; }
  .band-strip .now-i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* 13: おまかせのサイコロ(0.5 秒転がって止まる)。14: 置いた瞬間の反応の絵は落下の絵と同じ層 */
.omk-dice { position: absolute; left: 50%; top: 46%; z-index: 3; width: 76px; height: 76px; padding: 13px; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5px;
  border-radius: 18px; background: #fff; box-shadow: inset 0 -5px 0 rgba(38, 56, 110, .12), 0 10px 22px rgba(20, 10, 0, .28); transform: translate(-50%, -50%); }
.omk-dice i { display: block; border-radius: 50%; }
.omk-dice i[data-on="true"] { background: var(--orange, #ff651c); }
.react-item { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .omk-dice { display: none; } }
/* 17 の続き: 売り場の外枠は 1 枚だけ(店内の枠の二重をやめる)。右の欄のカゴは見出し → 一覧(空ならカゴの絵) → 合計 → 持ち帰る の順 */
.shop-interior[data-special="coord"] { padding: 0; background: none; box-shadow: none; border: 0; }
#cart[data-place="panel"] .cart-side { display: contents; }
#cart[data-place="panel"] { align-items: stretch; justify-content: flex-start; gap: 0; }
#cart[data-place="panel"] .cart-count { justify-content: flex-start; }
#cart[data-place="panel"] .cart-row::before, #cart[data-place="panel"] .cart-row::after { display: none; }
#cart[data-place="panel"] .cart-row { box-shadow: none; border-radius: 0; }
#cart[data-place="panel"] .cart-row + .cart-row { padding-top: 10px; border-top: 1px solid var(--line); }
#cart[data-place="panel"] .cart-count { order: 1; }
#cart[data-place="panel"] .cart-list { order: 3; }
#cart[data-place="panel"] .cart-sum { order: 4; }
#cart[data-place="panel"][data-empty="true"] .cart-clear { visibility: hidden; }
/* スマホ: 最初の部屋が上から 260px 以内に見えるよう、売り場の中では上の積み重ねを詰める(デザイン r3: 切替 30px・戻る行・チップ 38px)。カゴは画面下 */
@media (max-width: 1000px) {
  body[data-coord-floor="true"] .ed-main { padding: 2px 8px 64px; gap: 0; }
  body[data-coord-floor="true"] .panel { border: 0; box-shadow: none; background: transparent; }
  body[data-coord-floor="true"] #panel-step4 { padding: 0; gap: 2px; }
  body[data-coord-floor="true"] #shop-inside { gap: 2px; }
  body[data-coord-floor="true"] .view4-switch { padding: 2px; margin: 0; }
  body[data-coord-floor="true"] .view4-switch button { min-height: 24px; height: 24px; padding-top: 0; padding-bottom: 0; font-size: 15px; }
  body[data-coord-floor="true"] #shop-inside .shop-crumbs { margin: 0; min-height: 26px; padding: 0; border: 0; background: none; }
  body[data-coord-floor="true"] #shop-inside .shop-crumb { min-height: 26px; padding: 0 8px 0 2px; }
  body[data-coord-floor="true"] .coord-switch { min-height: 26px; font-size: 16px; }
  body[data-coord-floor="true"] .shop-interior[data-special="coord"] { margin-top: 0; }
  body[data-coord-floor="true"] .shop-interior[data-special="coord"] .shop-goods { padding: 0 8px; border-radius: 12px; }
  body[data-coord-floor="true"] .coord-head { padding: 0 0 2px; }
  body[data-coord-floor="true"] .coord-grid { padding-top: 0; }
  body[data-coord-floor="true"] .coord-card::before { top: -10px; height: 30px; }
  body[data-coord-floor="true"] #cart .cart-count { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 15px/1 var(--body); color: var(--ink-strong); }
}
/* 17 レビュー後: スマホの画面下のカゴ(デザイン r3: 生成りの帯・線のカゴ・「カゴ n」・持ち帰る)。PC の名前は 15.5px */
@media (min-width: 1001px) { .coord-name { font-size: 15.5px; } }
@media (max-width: 1000px) {
  body[data-coord-floor="true"] #cart[data-place="shelf"] { background: #fffaf3; border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(8,14,24,.1); padding-left: 16px; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-basket { display: none; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-count { flex: none; gap: 8px; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-count::before { content: ""; width: 40px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 30'%3E%3Cg fill='none' stroke='%231f2933' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 11h34l-4 17H6z'/%3E%3Cpath d='M10 11 15 3m13 8-5-8M13 15v9m6-9v9m6-9v9'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] #cart-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; background: var(--bg-soft, #f1ebe3); color: var(--ink-strong); font-size: 14px; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-side { justify-content: space-between; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-list { display: none; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-go { flex: 0 1 170px; margin-left: auto; border-radius: 999px; }
  body[data-coord-floor="true"] #cart[data-place="shelf"] .cart-go:disabled { background: #ebe6df; border-color: transparent; color: #fff; opacity: 1; }
}

/* 2026-10-15: スマホ(390px)の②で「次へ：照明を決める →」が右端で切れていた。文言はそのまま、幅と余白で収める */
@media (max-width: 560px) {
  .step-nav .btn { min-width: 0; white-space: nowrap; }
  .step-nav .btn-back { padding: 0 12px; font-size: 15px; }
  .step-nav .btn-primary { flex: 1 1 0; padding: 0 12px; font-size: clamp(15px, 4.3vw, 20px); letter-spacing: 0; }
}
@media (max-width: 374px) {
  .step-nav { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .step-nav .btn-back { padding: 0 10px; font-size: 15px; }
}
/* 店員さん(2026-10-15 第 1 段)。PC は右の欄の店名の下に丸い顔+1 行の吹き出し。1000px 以下は店内の看板の右上に小さな顔、吹き出しは顔の左に 1 行 */
.keeper { position: relative; display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; min-height: 96px; }
.keeper[hidden] { display: none; }
.keeper-face { position: relative; flex: none; width: 96px; height: 96px; padding: 0; border: 3px solid var(--keeper-ring, #f1e4d3); border-radius: 50%; background: var(--keeper-ring, #f1e4d3); cursor: pointer; box-shadow: 0 2px 8px rgba(8,14,24,.12); }
.keeper-face:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.keeper-img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.keeper-bell { position: absolute; top: -6px; right: -8px; width: 28px; height: 28px; transform-origin: 50% 12%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.keeper-bell[hidden] { display: none; }
.keeper-say { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; padding: 8px 14px 9px; border: 2px solid var(--ink-strong); border-radius: 16px; background: #fff; color: var(--ink-strong); line-height: 1.35; }
.keeper-say[hidden] { display: none; }
.keeper-say::before { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #fff; border-left: 2px solid var(--ink-strong); border-bottom: 2px solid var(--ink-strong); transform: rotate(45deg); }
.keeper-name { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.keeper-line { display: block; font-size: 15px; font-weight: 800; }
.keeper[data-arrive="true"] .keeper-face { animation: keeper-in .3s ease-out both; }
.keeper[data-arrive="true"] .keeper-say { animation: keeper-say-in .3s ease-out .15s both; }
.keeper[data-arrive="true"] .keeper-bell { animation: keeper-bell .9s ease-in-out .3s 1; }
@keyframes keeper-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes keeper-say-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes keeper-bell { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(22deg); } 35% { transform: rotate(-18deg); } 55% { transform: rotate(12deg); } 75% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .keeper[data-arrive="true"] .keeper-face, .keeper[data-arrive="true"] .keeper-say, .keeper[data-arrive="true"] .keeper-bell { animation: none; } }
/* 1000px 以下: 店内の枠の右上に重ねる(棚と品の一覧には重ねない。看板の行の右端を空ける) */
.keeper[data-place="sign"] { position: absolute; top: 6px; right: 6px; z-index: 6; flex-direction: row-reverse; gap: 8px; min-height: 0; margin: 0; max-width: calc(100% - 12px); pointer-events: none; }
.keeper[data-place="sign"] .keeper-face { width: 44px; height: 44px; border-width: 2px; pointer-events: auto; }
.keeper[data-place="sign"] .keeper-bell { width: 18px; height: 18px; top: -4px; right: auto; left: -6px; }
.keeper[data-place="sign"] .keeper-say { flex: 0 1 auto; padding: 5px 11px; border-width: 1.5px; border-radius: 12px; box-shadow: 0 2px 6px rgba(8,14,24,.12); }
.keeper[data-place="sign"] .keeper-say::before { left: auto; right: -7px; width: 10px; height: 10px; margin-top: -5px; border-left: 0; border-bottom: 0; border-right: 1.5px solid var(--ink-strong); border-top: 1.5px solid var(--ink-strong); }
.keeper[data-place="sign"] .keeper-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.keeper[data-place="sign"] .keeper-line { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-interior:has(> .keeper[data-place="sign"]:not([hidden]):not([data-over="flow"])) .interior-head { padding-right: 52px; }
/* まるごとコーデ(1000px 以下): 顔と吹き出しは種類のチップの上に 1 行(2026-10-16 テスター 5 回目: 顔がチップに、吹き出しが最初の札にかかっていた) */
.shop-interior[data-special="coord"] > .keeper[data-place="sign"] .keeper-face { width: 40px; height: 40px; }
/* 2026-10-15 直し(1000px 以下): 吹き出しが看板の文字・種類のチップを隠さないように。
   店内の絵のある店(2026-10-26 V 52): 店内の絵(.shop-photo)の右上に顔、その左に吹き出し(editor.js の updateKeeper が絵の中へ移す)
   まるごとコーデ: 枠の右上の顔の下に吹き出し(最初の札の上端に少しかかる) */
.shop-interior[data-special="coord"] > .keeper[data-place="sign"] { position: relative; top: auto; right: auto; flex-direction: row-reverse; align-items: center; gap: 8px; height: 44px; margin: 0 0 8px; max-width: none; }
.shop-interior[data-special="coord"] > .keeper[data-place="sign"] .keeper-say { max-width: calc(100% - 52px); }
.keeper[data-place="sign"][data-over="flow"] { position: relative; top: auto; right: auto; max-width: none; margin: -2px 2px -2px 0; }
/* 2026-10-15: チュートリアル中は絵の右下の「ガイド」「拡大」を出さない(スマホで持ち帰った品がその下に置かれると、品をタップしたつもりで目安の枠が消えていた) */
body[data-tut="on"] .stage-corner { display: none; }

/* 2026-10-16 テスター 5 回目: 全体の色が効かない部屋(机・椅子なしで色の変わる物が無い)ではボタンを薄くして押せなくする */
.tone-chip:disabled { opacity: .35; cursor: not-allowed; }
.tone-chip:disabled:hover .tone-sw { box-shadow: none; }
.tone-head[data-off="true"] .tone-head-label { opacity: .5; }

/* 2026-10-16 時代に「令和」を足して 4 つになった。スマホでは 1 行に収める */
@media (max-width: 480px) { .era-chip { padding: 0 9px; } .era-chips { gap: 2px; } .interior-head .era-cap { padding-left: 6px; } }

/* ===== 2026-10-16 テスター 5 回目(お店で探しやすく) ===== */
/* 1: 種類のチップ(品が 40 を超える店)。時代の絞り込みと同じ見た目で、1 行の横スクロール */
.kind-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 6px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.75); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.kind-row::-webkit-scrollbar { display: none; }
.kind-row[hidden] { display: none; }
.kind-row .era-chip { flex: none; min-height: 36px; border: 0; background: transparent; white-space: nowrap; }
.kind-row .era-chip[aria-pressed="true"] { background: var(--accent, var(--ink)); color: #fff; }
.era-chip[hidden] { display: none; }
@media (min-width: 1001px) {
  .interior-slot .shop-interior > .genre-row { grid-column: 1 / -1; } /* 2026-10-26 Y 77: 種類のチップ・売場のタブはジャンルの行（#interior-genre）の中 */
}
/* 4: スマホの「選んだ品」の欄を閉じる × */
@media (max-width: 560px) { .shop-interior .pick-bar:has(.pick-card) .pick-card .goods-actions { margin-right: -36px; } } /* ボタンの行(2 行目)は横いっぱい */
.pick-close { display: none; }
@media (max-width: 1000px) {
  /* 2026-10-17 ux-tester: 名前の後ろの札(棚に並べる など)も × にかからないよう、1 行目全体を × の分だけ左で折り返す。ボタンの行は横いっぱいのまま */
  .shop-interior .pick-bar:has(.pick-card) .pick-card .goods-body { padding-right: 36px; }
  .shop-interior .pick-bar:has(.pick-card) .pick-close { display: grid; place-items: center; position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-strong); font-size: 20px; font-weight: 800; line-height: 1; }
  .shop-interior .pick-bar:has(.pick-card) .pick-close::before { content: ""; position: absolute; inset: -4px; }
}
/* スマホの「選んだ品」の欄はカゴの帯にぴったり付ける */
@media (max-width: 1000px) { .shop-interior .pick-bar:has(.pick-card) { bottom: var(--cart-h, 0px); } }
/* 6: 小さいボタンは見た目そのまま、押せる範囲を 44px に */
.goods-fav::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.pick-card .goods-fav::before { inset: -6px; }
.tone-head .tone-chip::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }

/* まるごとコーデ: 種類のチップの横に時代(昭和・平成・令和)。種類との間を少しあける(2026-10-16) */
.coord-type + .coord-era { margin-left: 8px; }

/* ===== 2026-10-16 r5b: 種類のチップ ===== */
/* 種類のチップ: 見出しの下の 1 行。スマホ・タブレットは画面幅いっぱい。続きのある側の端をぼかす */
.kind-row { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.kind-row[data-more-l="true"] { --fl: 28px; }
.kind-row[data-more-r="true"] { --fr: 36px; }
/* ===== 店員さんのおまけ(2026-10-16 第 2 段) ===== */
/* 取り置きの棚: もらったおまけは ♡ の代わりに手渡した店員さんの小さな顔 */
.goods-giver { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: #f1e4d3; object-fit: cover; box-shadow: 0 1px 4px rgba(8,14,24,.2); pointer-events: none; }
.pick-card .goods-giver { top: -6px; right: -6px; width: 34px; height: 34px; }
/* レシート: おまけの行は品の絵を出す・2 枚目のハンコ */
.rc-lines li.rc-extra.rc-gift .rc-thumb { visibility: visible; }
.rc-stamps { position: relative; height: 0; }
.rc-stamps[hidden] { display: none; }
.rc-stamp { position: absolute; top: 2px; right: calc(-14px + var(--i, 0) * 62px); width: 76px; height: 76px; transform: rotate(calc(-14deg + var(--i, 0) * 10deg)); opacity: .9; pointer-events: none; }
/* 手渡しの画面 */
.gift { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; max-width: none; max-height: none; }
.gift::backdrop { background: rgba(8,14,24,.6); }
.gift-card { box-sizing: border-box; width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px 22px 18px; border-radius: 24px; background: #fff; color: var(--ink-strong); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.gift-stage { display: grid; grid-template-columns: 41% 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }
.gift-keeper { grid-row: 1 / 3; grid-column: 1; display: block; width: 100%; height: auto; aspect-ratio: 420 / 614; object-fit: contain; align-self: end; }
.gift-say { position: relative; grid-column: 2; margin: 6px 0 0; padding: 10px 14px 11px; border: 2px solid var(--ink-strong); border-radius: 16px; background: #fff; line-height: 1.4; }
.gift-say::before { content: ""; position: absolute; left: -9px; top: 26px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--ink-strong); border-bottom: 2px solid var(--ink-strong); transform: rotate(45deg); }
.gift-who { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.gift-line { display: block; font-size: 17px; font-weight: 800; overflow-wrap: anywhere; word-break: auto-phrase; text-wrap: balance; }
.gift-item { grid-column: 2; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 0; }
.gift-plate { position: relative; display: block; width: min(210px, 100%); aspect-ratio: 1; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 58%, #fff 0 34%, var(--keeper-ring, #f1e4d3) 35% 100%); }
.gift-img { position: absolute; inset: 13%; display: block; width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(8,14,24,.18)); }
.gift-img[hidden] { display: none; }
.gift[data-place="floor"] .gift-img { inset: 8%; width: 84%; height: 84%; }
.gift-name { margin: 0; font-size: 15px; font-weight: 900; text-align: center; overflow-wrap: anywhere; word-break: auto-phrase; text-wrap: balance; }
.gift-acts { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.gift-acts .btn { min-height: 48px; padding: 0 22px; font-size: 15.5px; }
.gift[data-anim="true"] .gift-keeper { animation: gift-keeper-in .4s ease-out both; }
.gift[data-anim="true"] .gift-say { animation: keeper-say-in .3s ease-out .2s both; }
.gift[data-anim="true"] .gift-plate { animation: gift-pop .45s cubic-bezier(.3,1.5,.5,1) .3s both; }
@keyframes gift-keeper-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes gift-pop { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gift[data-anim="true"] .gift-keeper, .gift[data-anim="true"] .gift-say, .gift[data-anim="true"] .gift-plate { animation: none; } }
/* スマホ(320〜480): 絵は左に小さく、吹き出しと品は右。ボタンは横幅いっぱい */
@media (max-width: 480px) {
  .gift-card { padding: 14px 14px 14px; border-radius: 20px; }
  /* 吹き出しは上に横幅いっぱい(しっぽは下の店員さんへ)、その下に店員さんと品を並べる */
  .gift-stage { grid-template-columns: 46% 1fr; grid-template-rows: auto auto; column-gap: 8px; }
  .gift-say { grid-column: 1 / -1; grid-row: 1; margin: 0 0 12px; padding: 8px 12px 9px; border-radius: 14px; }
  .gift-say::before { top: auto; bottom: -9px; left: 22%; border-left: 0; border-bottom: 2px solid var(--ink-strong); border-right: 2px solid var(--ink-strong); }
  .gift-keeper { grid-row: 2; grid-column: 1; align-self: end; }
  .gift-item { grid-row: 2; grid-column: 2; margin-top: 0; }
  .gift-line { font-size: 14.5px; }
  .gift-who { font-size: 12px; }
  .gift-item { margin-top: 10px; gap: 6px; }
  .gift-name { font-size: 13.5px; }
  .gift-acts { flex-direction: column; gap: 8px; margin-top: 12px; }
  .gift-acts .btn { width: 100%; }
}
/* 売場のタブ(すべて・食べもの・駄菓子・雑貨 / 本・文具): 見出しの下の 1 行(種類のチップと同じ。2026-10-16 まめそら商店の見出しのはみ出し) */
.genre-row > .interior-aisles { display: flex; flex-wrap: nowrap; width: fit-content; max-width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.genre-row > .interior-aisles::-webkit-scrollbar { display: none; }
.genre-row > .interior-aisles[hidden] { display: none; }
.genre-row > .interior-aisles .interior-aisle { flex: none; }

/* 2026-10-16 ux-r6: 選んだ品を指で動かしている間はステージでスクロールしない（途中で止まらないように） */
#stage[data-grab="true"] { touch-action: none; }

/* 2026-10-16 ux-r6: 状態の一行のトースト（短く出て消える。押せない） */
.status-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 14px; background: rgba(35, 39, 40, .92); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.status-toast[data-on="true"] { opacity: 1; transform: translate(-50%, 0); }
body[data-step="0"] .status-toast { display: none; }
@media (max-width: 560px) { .status-toast { font-size: 13px; padding: 8px 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .status-toast { transition: none; } }

/* 2026-10-16 ux-r6: 「ガイド」と拡大は絵の外、「一つ戻す / 一つ進む」の行の右端へ（部屋の右下の小物を隠さない） */
.room-under .room-hist { align-self: stretch; }
.room-hist .stage-corner { position: static; margin-left: auto; display: flex; gap: 6px; }
.room-hist .stage-corner .chip-btn { box-shadow: none; border: 1px solid var(--line-strong); background: #fff; min-height: 40px; }
@media (max-width: 560px) { .room-hist .stage-corner .chip-btn { min-height: 32px; padding: 0 9px; font-size: 15px; } .room-hist .stage-corner #enlarge-open { min-width: 32px; } }

/* 2026-10-16 ux-r6: PC の②で「次へ：照明を決める →」が右の欄から 19px はみ出していた。文言はそのまま、幅と字の大きさで欄に収める */
@media (min-width: 561px) {
  .step-nav .btn { min-width: 0; }
  .step-nav .btn-primary { flex: 1 1 0; padding: 0 16px; letter-spacing: 0; font-size: clamp(15px, 1.32vw, 20px); }
}
/* 2026-10-16 ux-r6: 360px 幅で手順タブの「⑤保存」が欠けていた → 小さい画面ではタブを詰めて全部収める */
@media (max-width: 400px) {
  .steps { overflow: visible; gap: 0; justify-content: space-between; }
  .step-tab { flex: 1 1 auto; min-width: 0; padding: 6px 4px; font-size: 15px; letter-spacing: -.02em; }
  .step-tab .num { margin-right: 1px; }
}

/* 2026-10-16 ux-r6: 押せる範囲を 44px に（見た目の大きさはそのまま、見えない当たりを広げる）。吹き出しのボタン・色の点・手順タブ・全体の色 */
.prop-bubble button.b, .prop-bubble .swatch, .step-tab, .tone-head .tone-chip { position: relative; }
.prop-bubble button.b::after, .prop-bubble .swatch::after, .step-tab::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); border-radius: 12px;
}
.tone-head .tone-chip::before { inset: auto; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
/* 吹き出しの −／＋ */
.prop-bubble .bubble-size { display: inline-flex; gap: 2px; }
.prop-bubble .bubble-size[hidden] { display: none; }
.prop-bubble button.b-size { min-width: 34px; font-size: 18px; line-height: 1; padding: 0 8px; }
.prop-bubble button.b-size:disabled { opacity: .35; cursor: default; }


/* =====================================================================
   2026-10-16 大幅リニューアル（案 D + ユーザーの直し 4 点）
   ・最上位は「おうち / 街」。おうちは右（スマホは下）の欄のタブ「部屋 / 配置 / 窓と照明」。段の番号・「次へ」は無し
   ・色は役割で分ける（指示書 I）: オレンジ = 進む・決める / 墨 = 選んでいる物 / 青 = サブの操作 / 緑 = 保存と状態 / 赤 = 消す
   ・動きは style-tests/motion-2026-10-16/index.html の :root をそのまま（ユーザー確認済み）
   ===================================================================== */
:root {
  /* 色（役割） */
  --c-go: #ff651c;                      /* 進む・決める */
  --c-pick: #2f2d2a;                    /* 選んでいる物 */
  --c-sub: #3f6b9a; --c-sub-bg: #eaf1f8; --c-sub-tx: #2f557d; --c-sub-line: #c9d8e9; /* サブの操作 */
  --c-ok: #3f8f6a;                      /* 保存・状態 */
  --c-del: #c8473b;                     /* 消す・注意 */
  --c-paper: #fff; --c-bg: #f4f1ec; --c-line: #e3ded8;

  /* ---- 動き（試しのページ motion-2026-10-16 の :root をそのまま） ---- */
  --tab-slide-dur: 620ms;
  --tab-slide-ease: cubic-bezier(.3, 1.12, .4, 1);
  --pane-dur: 300ms; --pane-shift: 4px; --pane-ease: cubic-bezier(.25, .7, .3, 1);
  --state-dur: 150ms;
  --place-dur: 300ms; --place-lift: 12px; --place-ease: cubic-bezier(.25, .8, .35, 1);
  --save-hold: 2000ms;
  --pop-dur: 460ms; --pop-ease: var(--tab-slide-ease); --pop-from-scale: .2;
  --pop-out-dur: 240ms; --pop-out-ease: cubic-bezier(.45, 0, .8, .4);
  --scrim-in-dur: 420ms; --scrim-out-dur: 300ms;
  --sheet-dur: 500ms; --sheet-back-dur: 460ms; --sheet-close-dist: 90px; --drawer-dur: 500ms;
  --row-dur: 180ms; --row-step: 30ms; --row-total: 300ms; --row-shift: 6px; --row-fold-dur: 200ms;
  --lift-dur: 160ms; --lift-y: 8px; --lift-shadow: .8;
  --toast-in-dur: 260ms; --toast-shift: 16px; --toast-hold: 1600ms; --toast-out-dur: 400ms;
  --room-swap-dur: 500ms; --light-dur: 800ms;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --tab-slide-ease: linear(0, 0.028, 0.099, 0.195, 0.303, 0.413, 0.519, 0.617, 0.704, 0.778, 0.841, 0.892, 0.932, 0.964, 0.987, 1.003, 1.014, 1.021, 1.024, 1.025, 1.025, 1.023, 1.021, 1.018, 1.015, 1.012, 1.01, 1.008, 1.006, 1.004, 1); }
}
@media (prefers-reduced-motion: reduce) {
  :root { --tab-slide-dur: 0ms; --pane-dur: 0ms; --state-dur: 0ms; --place-dur: 0ms; --pop-dur: 0ms; --pop-out-dur: 0ms; --scrim-in-dur: 0ms; --scrim-out-dur: 0ms;
    --sheet-dur: 0ms; --sheet-back-dur: 0ms; --drawer-dur: 0ms; --row-dur: 0ms; --row-step: 0ms; --row-fold-dur: 0ms; --lift-dur: 0ms; --toast-in-dur: 0ms; --toast-out-dur: 0ms; --room-swap-dur: 0ms; --light-dur: 0ms; }
}

/* ---------- ボタンの役割 ---------- */
.b-sub, .b-main, .b-save, .b-green, .x, .ico, .sw, .chip, .tab, .place-tab,
.pick-grid .card, .lighting button, .window-chip, .wall-chip, .outside-choices button, .tone-chip, .type-chip, .era-chip, .cat-tab, .interior-tab {
  transition: background-color var(--state-dur), border-color var(--state-dur), color var(--state-dur), box-shadow var(--state-dur);
}
.b-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--c-sub-bg); color: var(--c-sub-tx); border: 1.5px solid var(--c-sub-line);
  font-weight: 700; font-size: 16px;
}
.b-sub:hover { border-color: var(--c-sub); }
.b-sub:disabled { opacity: .45; cursor: default; }
.b-main {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--c-go); color: #fff; font-weight: 800; font-size: 18px;
}
.b-main:hover { background: #f25710; }
.b-main:disabled { opacity: .5; cursor: default; }
.b-green { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--c-ok); color: #fff; font-weight: 800; font-size: 18px; min-height: 48px; padding: 0 24px; }
.b-green:hover { background: #357b5a; }
.b-main.xl, .b-green.xl { width: 100%; min-height: 56px; font-size: 20px; }
.b-save {
  position: relative; display: inline-grid; place-items: center; min-width: 96px; height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--c-ok); color: #fff; font-weight: 800; font-size: 20px;
}
.b-save:hover { background: #357b5a; }
.b-save > span { grid-area: 1 / 1; }
.x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #ece8e3; color: var(--c-pick); font-size: 24px; line-height: 1;
}
.x:hover { background: #e1dcd5; }
.ico {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c-line); border-radius: 50%; background: #fff; color: var(--c-pick); font-size: 20px; line-height: 1;
}
.ico:hover { border-color: var(--c-pick); }
.ico:disabled { opacity: .4; cursor: default; }
/* マウスで押したあとの青い枠は出さない（キーボードだけ） */
button:focus:not(:focus-visible) { outline: none; }

/* スイッチ「目安を表示」+ 下に小さく「(配信時)」 */
.sw-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.sw-wrap small { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1; }
.sw {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 16px; border-radius: 999px;
  background: var(--c-sub-bg); color: var(--c-sub-tx); border: 1.5px solid var(--c-sub-line); font-weight: 700; font-size: 16px; white-space: nowrap;
}
.sw i { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #b9c9da; transition: background-color var(--state-dur); }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform var(--state-dur) ease; }
.sw[aria-checked="true"] i { background: var(--c-sub); }
.sw[aria-checked="true"] i::after { transform: translateX(18px); }

/* ---------- ヘッダー ---------- */
.ed-header { height: 64px; gap: 12px; border-bottom: 1px solid var(--c-line); }
:root { --header-h: 64px; }
.ed-header .ed-brand { margin-right: auto; }
.place-sw {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: #efebe6; overflow: hidden;
}
.place-tab {
  position: relative; z-index: 1; min-width: 104px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--c-pick); font-weight: 800; font-size: 18px; white-space: nowrap;
}
.header-tools { gap: 8px; margin-left: auto; }
.cart-btn .n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--c-sub); color: #fff; font-size: 14px; }
.cart-btn .cart-btn-ic { width: 26px; height: 26px; object-fit: contain; }
.cart-btn[data-empty="true"] .n { background: #b9c9da; }
.head-omakase .dice { font-size: 18px; line-height: 1; }
.head-more > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); list-style: none; cursor: pointer; font-weight: 900; }
.head-more > summary::-webkit-details-marker { display: none; }
body[data-step="0"] .place-sw { display: none; }

/* 墨の下地: 前のタブから滑って移る（文字は下地が重なった所から白くなる） */
.tab-ink {
  position: absolute; top: 5px; left: 0; width: 0; height: 44px; border-radius: 999px; background: var(--c-pick);
  transform: translateX(0); overflow: hidden; z-index: 2; pointer-events: none;
  transition: transform var(--tab-slide-dur) var(--tab-slide-ease), width var(--tab-slide-dur) var(--tab-slide-ease);
}
.ink-row { position: absolute; left: 0; top: 0; transform: translateX(0); transition: transform var(--tab-slide-dur) var(--tab-slide-ease); }
.ink-row span { position: absolute; top: 0; display: grid; place-items: center; font-weight: inherit; font-size: inherit; color: #fff; white-space: nowrap; }
.still .tab-ink, .still .ink-row { transition: none; }
.place-sw .ink-row span { font-weight: 800; font-size: 18px; }

/* ---------- 部屋の下の道具 ---------- */
.room-under .room-hist { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.room-under .tools-gap { flex: 1; }
.room-under .stage-corner { position: static; display: flex; align-items: center; gap: 8px; }
.open-shelf[aria-pressed="true"] { background: var(--c-pick); border-color: var(--c-pick); color: #fff; }
body[data-place="town"] .room-under .open-shelf, body[data-place="town"] .room-under .sw-wrap { display: none; }
/* 2026-10-27 94: 「アイテム」のボタンに箱のアイコン（16px・文字の左。「部屋を見る」の目と同じ作り） */
.open-shelf { gap: 6px; }
.open-shelf .os-ic { flex: none; display: block; width: 16px; height: 16px; }

/* ---------- 右の欄: タブ・見出し ---------- */
.panel { background: #fff; }
.panel-top { padding: 14px 14px 10px; border-bottom: 1px solid var(--c-line); flex: none; }
.panel-top .tabs.steps {
  position: relative; display: flex; gap: 6px; margin: 0; padding: 5px; width: auto;
  background: #efebe6; border-radius: 999px; overflow: hidden;
}
.panel-top .step-tab {
  position: relative; z-index: 1; flex: 1; min-height: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; color: var(--c-pick); font-weight: 700; font-size: 17px; white-space: nowrap;
}
.panel-top .step-tab[aria-selected="true"] { background: transparent; box-shadow: none; color: var(--c-pick); }
.panel-top .ink-row span { font-weight: 700; font-size: 17px; }
.pane-head { display: flex; align-items: center; gap: 10px; }
.pane-head h2 { flex: 1; margin: 0; font: 800 20px/1.3 var(--body); color: var(--c-pick); letter-spacing: 0; }
.panel h3.wall-label, .panel .mood-label { font-size: 18px; font-weight: 800; color: var(--c-pick); }

/* 選んでいる物は墨（オレンジの枠・選択色をやめる） */
.pick-grid .card[aria-pressed="true"] { border-color: var(--c-pick); background: #fff; box-shadow: 0 0 0 2px var(--c-pick); }
.card[aria-pressed="true"] .thumb, .layout-card[aria-pressed="true"] svg { box-shadow: 0 0 0 1px var(--line); }
.pick-grid .card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--c-pick); color: #fff; font-size: 15px; display: grid; place-items: center; }
.pick-grid .card .label { font-size: 15px; }
.lighting button[aria-checked="true"], .window-chip[aria-checked="true"], .wall-chip[aria-checked="true"], .outside-choices button[aria-checked="true"],
.tone-chip[aria-pressed="true"], .era-chip[aria-pressed="true"], .type-chip[aria-pressed="true"] {
  background: var(--c-pick); border-color: var(--c-pick); color: #fff; box-shadow: none;
}
.lighting button:hover, .window-chip:hover, .wall-chip:hover, .outside-choices button:hover, .tone-chip:hover { border-color: var(--c-pick); }
.window-chip, .wall-chip, .tone-chip { min-height: 44px; font-size: 16px; }
.cat-tab[aria-selected="true"] { box-shadow: inset 0 3px 0 var(--c-pick); }
.prop-target { border-color: var(--c-pick); }
.prop-card[data-selected="true"] .name { background: var(--c-pick); border-color: var(--c-pick); color: #fff; }
.prop-card[data-selected="true"] .thumb-btn img { filter: drop-shadow(0 0 1.5px var(--c-pick)) drop-shadow(0 0 5px rgba(47, 45, 42, .5)); }
.badge-placed { background: #e6f2ec; color: #2c6b4e; border-color: var(--c-ok); }
.prop-card[data-placed="true"] .name { border-color: #b9d9c8; }
.help-btn { background: var(--c-sub-bg) !important; color: var(--c-sub-tx) !important; border-color: var(--c-sub-line) !important; }
.prop-bubble button.b-remove { color: var(--c-del); }

/* 家具の色 */
.tone-row { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; margin: 0; }
.tone-row .tone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-row .tone-chip { width: auto; padding: 0 16px 0 10px; border-radius: 999px; border: 1.5px solid var(--c-line); background: #fff; }
.tone-row .tone-sw { width: 20px; height: 20px; }
.tone-row[hidden] { display: none; }

/* 棚の見出し（家具・小物）とまるごとコーデ */
#panel-step4 > .pane-head { margin-bottom: -4px; }
.pane-coord { gap: 12px; }
.coord-pane .coord-head { margin-bottom: 10px; }
.coord-pane .coord-types { display: flex; gap: 6px; flex-wrap: wrap; }
.coord-pane .coord-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coord-pane .coord-card { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid var(--c-line); border-radius: 14px; background: #fff; text-align: left; color: var(--c-pick); }
.coord-pane .coord-card:hover { border-color: var(--c-pick); }
.coord-pane .coord-thumb { position: relative; display: block; }
.coord-pane .coord-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.coord-pane .coord-count, .coord-pane .coord-hanger { display: none; }
.coord-pane .coord-new { position: absolute; top: 6px; left: 6px; }
.coord-pane .coord-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; background: #e6f2ec; color: #2c6b4e; font-size: 13px; font-weight: 700; }
.coord-pane .coord-tag[data-kind="cart"] { background: var(--c-sub-bg); color: var(--c-sub-tx); }
.coord-pane .coord-name { font-size: 15px; font-weight: 700; padding: 2px 4px; }

/* カゴの品の仮置き（おうち） */
.try-ghost { opacity: .5; filter: saturate(.8); pointer-events: none; }

/* ---------- 重ねる画面（dialog.ov）: ポップアップ・引き出し・スマホのシート ---------- */
dialog.ov {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; color: var(--ink);
  width: min(560px, calc(100vw - 32px)); height: fit-content; max-height: calc(100dvh - 48px); max-width: none;
  border-radius: 20px; background: #fff; box-shadow: 0 10px 40px #0003; overflow: hidden;
  flex-direction: column;
}
dialog.ov[open] { display: flex; }
dialog.ov::backdrop { background: rgba(31, 26, 23, .4); animation: ov-scrim var(--scrim-in-dur) ease both; }
dialog.ov.ov-out::backdrop { animation: ov-scrim-out var(--scrim-out-dur) ease both; }
@keyframes ov-scrim { from { opacity: 0; } to { opacity: 1; } }
@keyframes ov-scrim-out { from { opacity: 1; } to { opacity: 0; } }
dialog.ov.drawer { inset: 12px 12px 12px auto; margin: 0; width: min(500px, calc(100vw - 24px)); height: auto; max-height: none; }
dialog.save-sheet { width: min(640px, calc(100vw - 32px)); }
.ov-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 18px 10px 24px; flex: none; }
.ov-head h2 { flex: 1; margin: 0; font: 900 22px/1.3 var(--body); color: var(--c-pick); }
.ov .grab { display: none; }
.ov-body { padding: 0 24px 24px; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.ov .acts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ov .acts .b-sub { justify-content: center; }

/* まるごとコーデのセット */
.coord-try .ct-pic { position: relative; }
.coord-try .ct-pic canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--c-line); background: var(--stage-bg); }
.coord-try .ct-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 700; color: var(--muted); }
.coord-try .ct-line { margin: 0; font-size: 16px; font-weight: 700; text-align: center; color: var(--c-pick); }

/* 家具の色の確認 */
.tone-confirm { width: min(460px, calc(100vw - 32px)); }
.tone-confirm .tc-text { flex: 1; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; color: var(--c-pick); }
.tone-confirm .tc-skip { display: inline-flex; align-items: center; gap: 8px; align-self: center; min-height: 44px; font-size: 16px; font-weight: 700; cursor: pointer; }
.tone-confirm .tc-skip input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-pick); }

/* 保存のシート */
.save-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.save-prev figure { margin: 0; }
.save-prev canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--c-line); background: var(--stage-bg); }
.save-prev .fg { display: block; border-radius: 10px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.save-prev .fg canvas { background: transparent; }
.save-prev figcaption { margin-top: 6px; font-size: 15px; font-weight: 700; text-align: center; color: var(--c-pick); }
.lb-more details.more summary, .lb-more .obs-how summary { min-height: 44px; color: var(--c-sub-tx); font-size: 16px; }
.save-sheet .named-save h3 { font-size: 17px; }

/* カゴ（通販のカートの一覧） */
.cart-sheet .cart-sec { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 18px; font-weight: 800; color: var(--c-pick); }
.cart-sheet .cart-sec span { padding: 0 10px; border-radius: 999px; background: #efebe6; font-size: 15px; }
.cart-sheet .row-wrap { overflow: hidden; }
.cart-sheet .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0ece7; }
.cart-sheet .row > img { flex: none; width: 60px; height: 60px; object-fit: contain; border-radius: 12px; background: #f6f3ef; }
.cart-sheet .row > img.cs-wrap { background: #eef2f7; padding: 4px; }
.cart-sheet .row .t { flex: 1; min-width: 0; }
.cart-sheet .row .t b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-sheet .cs-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.cart-sheet .cs-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px #0002; }
.cart-sheet .row .b-sub { padding: 0 12px; font-size: 15px; }
.cart-sheet .row .b-main { min-height: 44px; padding: 0 18px; font-size: 17px; }
.cart-sheet .cs-here { font-size: 15px; font-weight: 700; color: var(--c-ok); white-space: nowrap; }
.cart-sheet .all { margin: 4px 0 8px; }
.cart-sheet .ov-body { gap: 0; }

/* 短いお知らせ: 下からすっと出て、ふっと消える */
.ed-toast { animation: toast-in var(--toast-in-dur) var(--pane-ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, var(--toast-shift)); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 置いた物の着地（持ち帰り・カゴから置く）: 12px 上から静かに */

/* ---------- おまけ（包みのまま → 開ける） ---------- */
.gift-card { position: relative; }
.gift-x { position: absolute; top: 12px; right: 12px; z-index: 3; }
.gift-plate { overflow: visible; }
.gift-wrap, .gift-wrap-open { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; transition: opacity 200ms ease, transform 300ms var(--pop-ease); }
.gift-wrap-open { opacity: 0; }
.gift[data-phase="wrapped"] .gift-img { opacity: 0; }
.gift[data-phase="wrapped"] .gift-name { visibility: hidden; }
.gift[data-phase="open"] .gift-wrap { opacity: 0; transform: scale(.9); }
.gift[data-phase="open"] .gift-wrap-open { opacity: .35; transform: translateY(18%) scale(.9); }
.gift .gift-img { transition: opacity 260ms ease, transform 420ms var(--pop-ease); }
.gift[data-phase="open"] .gift-img { opacity: 1; transform: translateY(-6%); }
.gift[data-phase="open"] .gift-card { cursor: pointer; }
.gift-acts .b-main, .gift-acts .b-sub { min-height: 52px; min-width: 150px; }
.gift-acts .b-main { font-size: 20px; }
.gift-confetti { position: absolute; left: 70%; top: 58%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.gift-confetti .cf { position: absolute; left: -5px; top: -4px; width: 10px; height: 7px; border-radius: 2px; opacity: 0; animation: cf-burst 900ms cubic-bezier(.15, .7, .3, 1) var(--d, 0ms) both; }
@keyframes cf-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--r)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .gift-confetti { display: none; } .gift-wrap, .gift-wrap-open, .gift .gift-img { transition: none; } }
@media (max-width: 560px) { .gift-confetti { left: 74%; top: 62%; } .gift-acts .b-main, .gift-acts .b-sub { width: 100%; } }

/* ---------- 消した物（段の番号・「次へ」・部屋の下の移動の帯・右下の固定） ---------- */
.progress, .step-nav, .room-move, .quick-row, .band-strip, .view4-switch, .basket-mini, .shop-dock { display: none !important; }

/* ---------- スマホ（759px 以下）: 部屋と道具とタブを上に貼り付け、欄はその下で縦に流す ---------- */
@media (max-width: 759px) {
  :root { --header-h: 56px; }
  .ed-header { height: 56px; flex-wrap: nowrap; padding: 0 12px; gap: 6px; position: sticky; top: 0; }
  .ed-header .header-tools { display: flex; gap: 6px; }
  .ed-brand small { display: none; }
  .ed-brand b { font-size: 18px; }
  .place-sw { position: static; transform: none; padding: 4px; margin: 0 auto 0 4px; }
  .place-tab { min-width: 0; height: 40px; padding: 0 12px; font-size: 16px; }
  .place-sw .tab-ink { top: 4px; height: 40px; }
  .place-sw .ink-row span { font-size: 16px; }
  .head-omakase { width: 44px; padding: 0; }
  .head-omakase .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .head-coord { padding: 0 12px; font-size: 15px; }
  .b-save { min-width: 64px; height: 44px; padding: 0 14px; font-size: 17px; }
  .head-more { display: none; }
  .cart-btn { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; height: 56px; padding: 0 20px; font-size: 17px; background: #fff; box-shadow: 0 4px 14px #0003; }
  body[data-step="0"] .cart-btn { display: none; }
  .ed-main { padding: 0 16px 110px; }
  body[data-place="home"] .preview-col { position: sticky; top: var(--hdr-h, 56px); z-index: 10; background: var(--page-bg, #fff); margin: 0 -16px; padding: 10px 16px 6px; }
  body[data-step="1"] .ed-header, body[data-step="2"] .ed-header, body[data-step="3"] .ed-header { position: sticky; }
  body[data-step="1"] .preview-col, body[data-step="2"] .preview-col, body[data-step="3"] .preview-col { top: var(--hdr-h, 56px); }
  .room-under .room-hist { gap: 6px; }
  .room-under .open-shelf { padding: 0 14px; }
  .panel { border: 0; background: transparent; overflow: visible; }
  .panel-top { position: sticky; top: calc(var(--pv-h, 0px)); z-index: 9; padding: 6px 0 8px; border: 0; background: var(--page-bg, #fff); }
  .panel-top .tabs.steps { padding: 4px; gap: 2px; }
  .panel-top .tab-ink { top: 4px; }
  .panel-top .step-tab { padding: 0 6px; font-size: 16px; }
  .panel-top .ink-row span { font-size: 16px; }
  .panel-body { padding: 4px 0 16px; overflow: visible; }
  .mobile-sw { display: flex; justify-content: center; padding: 8px 0 4px; }
  /* 下からのシート。行き過ぎても下に隙間が出ないよう、下に同じ色を伸ばす */
  dialog.ov, dialog.ov.drawer, dialog.save-sheet, dialog.tone-confirm {
    inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; height: auto; max-height: 80dvh; border-radius: 22px 22px 0 0; overflow: visible;
  }
  dialog.ov::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 80px; background: #fff; }
  .ov-head { touch-action: none; padding: 22px 12px 8px 18px; }
  .ov .grab { display: block; position: absolute; left: 50%; top: 8px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #d9d2cb; }
  .ov-body { padding: 0 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .cart-sheet .row .t b { font-size: 15px; }
  .cart-sheet .row > img { width: 48px; height: 48px; }
  .cart-sheet .row .b-sub { padding: 0 10px; font-size: 15px; }
  .coord-pane .coord-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .ed-brand b { font-size: 16px; }
  .place-tab { padding: 0 9px; font-size: 15px; }
  .place-sw .ink-row span { font-size: 15px; }
  .head-coord { padding: 0 9px; font-size: 15px; }
  .b-save { min-width: 56px; padding: 0 10px; font-size: 16px; }
}

/* 2026-10-16 リニューアル: 選んでいる物は墨（旧 --sel-bg はオレンジ）。ヘッダーの「保存」は緑の塗り */
:root { --sel-bg: var(--c-pick); --sel-ink: #fff; }
.ed-header #go-export.b-save { min-height: 48px; height: 48px; padding: 0 26px; background: var(--c-ok); color: #fff; border: 0; font-size: 20px; }
.ed-header #go-export.b-save:hover { background: #357b5a; }
.panel-body > .mood-row:first-of-type, #panel-step3 > .mood-row.mood-lighting { border-top: 0; padding-top: 0; }
.tone-row { align-items: flex-start; }
.tone-row .tone-chip[aria-pressed="true"] { background: var(--c-pick); border-color: var(--c-pick); color: #fff; }
.tone-row .tone-chip[aria-pressed="true"] .tone-sw { box-shadow: 0 0 0 2px #fff; }
.tone-row .tone-chip::after, .tone-row .tone-chip[aria-pressed="true"]::after { content: none; }
.gift-say { margin-right: 40px; }
/* 「ひとこと」のお礼（2026-10-17）: 店員さんの絵と台詞なし。包みと品だけを真ん中に */
.gift[data-fb="true"] .gift-keeper, .gift[data-fb="true"] .gift-say { display: none; }
.gift[data-fb="true"] .gift-card { width: min(380px, calc(100vw - 24px)); }
.gift[data-fb="true"] .gift-stage { grid-template-columns: 1fr; grid-template-rows: auto; }
.gift[data-fb="true"] .gift-item { grid-column: 1; grid-row: auto; margin-top: 8px; }
/* 「ひとこと」のお礼の一言（2026-10-25 統括の確定文「お礼に、ひとつどうぞ。」）。ふつうのおまけでは出さない */
.gift-fb-note { display: none; }
.gift[data-fb="true"] .gift-fb-note { display: block; margin: 6px 44px 0; color: var(--ink-strong); font: 900 18px/1.4 var(--body); text-align: center; }
.gift[data-phase="open"] .gift-wrap-open { opacity: 1; transform: translateY(24%) scale(.72); }
.gift[data-phase="open"] .gift-img { opacity: 1; transform: translateY(-12%) scale(.86); z-index: 2; }
@media (max-width: 759px) {
  .ed-header #go-export.b-save { min-width: 64px; height: 44px; min-height: 44px; padding: 0 14px; font-size: 17px; }
}
@media (max-width: 380px) { .ed-header #go-export.b-save { min-width: 56px; padding: 0 10px; font-size: 16px; } }
.ov-body > * { flex-shrink: 0; }
@media (max-width: 759px) {
  .ed-header, body[data-step] .ed-header { position: sticky !important; top: 0; }
  .ed-header .ed-brand { margin-right: 0; }
  .place-sw { margin: 0 auto; flex: none; }
  .room-under .room-hist .ico { width: 40px; height: 40px; font-size: 18px; }
  .room-under .room-hist .head-omakase { width: 40px; min-height: 40px; height: 40px; padding: 0; }
  .room-under .room-hist .head-coord { min-height: 40px; padding: 0 12px; font-size: 15px; }
  .room-under .room-hist .open-shelf { min-height: 40px; padding: 0 12px; font-size: 15px; }
  .room-under .tools-gap { display: none; }
  .room-under .room-hist #redo { margin-right: auto; }
  .room-under #enlarge-open { display: none; }
  body[data-place="town"] .mobile-sw, body[data-place="town"] .room-under .head-omakase, body[data-place="town"] .room-under .head-coord { display: none; }
}
dialog.ov[data-tut="true"] { z-index: 1500; }
/* 2026-10-16 N: カゴはオレンジの塗り・白文字。数字の丸は白地にオレンジ文字（買い物の主役。保存は緑のまま、ほかのサブは青のまま） */
.cart-btn, .ed-header .cart-btn { background: var(--c-go); border-color: var(--c-go); color: #fff; font-weight: 800; }
.cart-btn:hover { background: #f25710; border-color: #f25710; }
.cart-btn .n, .cart-btn[data-empty="true"] .n { background: #fff; color: #d4500f; font-weight: 900; }
.cart-btn .cart-btn-ic { background: #fff; border-radius: 50%; padding: 3px; width: 28px; height: 28px; }
@media (max-width: 759px) { .cart-btn, .ed-header .cart-btn { background: var(--c-go); box-shadow: 0 4px 14px rgba(255, 101, 28, .35); } }
.tone-row .tone-chip { min-height: 44px; height: 44px; justify-content: flex-start; gap: 8px; font-size: 16px; }
.tone-row .tone-chip::before { content: none; }
@media (max-width: 759px) {
  .head-more { display: block; }
  .head-more > summary { width: 40px; height: 40px; }
  .head-more .head-more-in { right: 0; }
}
@media (max-width: 759px) {
  body:not([data-step="0"]) .ed-toast, body:not([data-step="0"]) .status-toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}
.status-toast { transform: translate(-50%, var(--toast-shift)); transition: opacity var(--toast-out-dur) ease, transform var(--toast-in-dur) var(--pane-ease); }
.status-toast[data-on="true"] { transition: opacity var(--toast-in-dur) ease, transform var(--toast-in-dur) var(--pane-ease); }
/* 中身の欄はふわっと入れ替わる（タブを替えたとき。editor.js の setStep） */
/* 保存できたら「配信用に保存」の文字の前に ✓（2026-10-26 Y 79: 文字は消さない。✓ は下の 46 の .lbl::before） */
#free-kit { position: relative; }
/* スマホのお知らせは 2 行までに収まる大きさで */
@media (max-width: 759px) { .ed-toast { font-size: 13px; padding: 8px 8px 8px 14px; gap: 8px; } .ed-toast-act { min-height: 36px; padding: 0 12px; } }
/* スマホの店の中は、店のカゴ（左下・持ち帰る）があるので右下のカゴは出さない（重ねない） */
@media (max-width: 759px) { body:has(#cart[data-place="shelf"]:not([hidden])) .cart-btn { display: none; } }
/* 2026-10-16 ロゴ確定（05「青みのグレー」）: ヘッダーの文字のロゴを SVG に */
.ed-brand .ed-logo { display: block; height: 34px; width: auto; }
@media (max-width: 759px) { .ed-brand .ed-logo { height: 26px; } }
@media (max-width: 380px) { .ed-brand .ed-logo { height: 22px; } }
/* 2026-10-17 ux-tester: スマホのおうち(部屋・配置・窓と照明・まるごと・棚)は、右下に浮かぶカゴのボタンの高さ分を下に空け、最後の選択肢までスクロールで出す */
@media (max-width: 1000px) { body[data-place="home"] .ed-main { padding-bottom: max(96px, calc(var(--fab-h, 76px) + 28px)); } }
/* 2026-10-17 ux-tester: カゴが 0 のときの「持ち帰る」は、押せないと分かるよう薄く */
.cart-go:disabled, .interior-slot .cart[data-place="shelf"] .cart-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* 2026-10-17 部屋の下の「街へお買い物に行く」: 進むボタン(オレンジ)。おうちだけ。弾ませない */
.room-under .town-go { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.town-go-note { margin: 0; font-size: 15px; font-weight: 700; color: #5b5048; }
.town-go-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 360px; min-height: 64px; padding: 0 34px; border: 0; border-radius: 999px; background: #ff651c; color: #fff; font: inherit; font-size: 21px; font-weight: 800; letter-spacing: .02em; cursor: pointer; box-shadow: 0 5px 0 #c4470d, 0 12px 24px rgba(214, 78, 16, .26); transition: translate .18s ease, box-shadow .18s ease; }
.town-go-btn > span { font-size: 22px; }
.town-go-btn:hover { translate: 0 -2px; box-shadow: 0 7px 0 #c4470d, 0 16px 28px rgba(214, 78, 16, .3); }
.town-go-btn:active { translate: 0 3px; box-shadow: 0 2px 0 #c4470d, 0 6px 14px rgba(214, 78, 16, .24); }
.town-go-btn:focus-visible { outline: 3px solid #2b2f33; outline-offset: 4px; }
body[data-place="town"] .room-under .town-go, body[data-tut] .room-under .town-go { display: none; }
@media (max-width: 759px) {
  .room-under .town-go { align-self: stretch; margin-top: 4px; gap: 6px; }
  .town-go-note { font-size: 13px; }
  .town-go-btn { width: 100%; min-width: 0; min-height: 56px; font-size: 18px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .town-go-btn { transition: none; } .town-go-btn:hover, .town-go-btn:active { translate: none; } }

/* 2026-10-17 ロゴの右に「ベータ版」(トップと同じ札。ロゴのリンクの外) */
.ed-header .ed-brand { margin-right: 0; }
.ed-beta { flex: none; margin-right: auto; font-size: 13px; line-height: 1.6; font-weight: 700; letter-spacing: .04em; color: #c2410c; background: #fff; border: 1px solid #ff651c; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
@media (max-width: 759px) {
  /* スマホ: 横に並べる幅が無いので、ロゴの下に小さく重ねる(おうち/街・保存を押し出さない) */
  .ed-header { position: sticky; }
  .ed-header .ed-brand { align-self: flex-start; margin-top: 7px; }
  .ed-beta { position: absolute; left: 12px; bottom: 3px; margin: 0; font-size: 12px; line-height: 1.35; padding: 0 4px; border-radius: 4px; pointer-events: none; }
}
/* 2026-10-17 「ベータ版につき、全部無料!!」: 2 行になるときは読点のあとで折る */
.rc-free { letter-spacing: .04em; line-height: 1.45; text-wrap: balance; }
.rc-free > span { display: inline-block; }

/* 2026-10-17 置くのを待っている品(棚のいちばん上の列。見出しなし、背景の色の差と細い線で分ける) */
.wait-row { flex-shrink: 0; display: flex; gap: 10px; overflow-x: auto; padding: 10px 10px 12px; margin: 0 0 12px; background: #fff3e8; border: 1px solid #ffd9bf; border-radius: 14px; scrollbar-width: thin; }
.wait-row[hidden] { display: none; }
body[data-tut] .wait-row { display: none; }
.wait-item { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; padding: 6px 4px 6px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--ink-strong, #25313b); font: inherit; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: translate .16s ease, box-shadow .16s ease; }
.wait-item img { width: 64px; height: 64px; object-fit: contain; }
.wait-item .wait-wrap { width: 58px; height: 58px; margin: 3px 0; }
.wait-name { font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wait-q { position: absolute; right: 6px; top: 4px; font-size: 13px; font-weight: 900; color: #d4500f; }
.wait-item:hover { translate: 0 -2px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); border-color: #ffb88a; }
.wait-item:focus-visible { outline: 3px solid var(--c-pick, #2b2f33); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .wait-item { transition: none; } .wait-item:hover { translate: none; } }
/* 「＋ 家具・小物」: 待っている品があるときはオレンジ(進む色)で少し大きく、右上に数の丸(ヘッダーのカゴの数と同じ作り) */
.room-under .open-shelf { position: relative; overflow: visible; }
.room-under .open-shelf[data-wait]:not([data-wait=""]) { background: var(--c-go); border-color: var(--c-go); color: #fff; font-weight: 800; }
.room-under .open-shelf[data-wait]:not([data-wait=""])::after { content: attr(data-wait); position: absolute; right: -8px; top: -9px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #d4500f; border: 2px solid var(--c-go); font-size: 13px; font-weight: 900; line-height: 1; box-sizing: border-box; pointer-events: none; }
@media (min-width: 760px) { .room-under .open-shelf[data-wait]:not([data-wait=""]) { min-height: 50px; padding: 0 22px; font-size: 17px; } }
@media (max-width: 759px) { .wait-row { margin: 0 0 10px; } .wait-item { width: 84px; } .wait-item img { width: 56px; height: 56px; } }

/* 2026-10-17 「カゴ」→「カート」: ヘッダーのボタンはカートの形の SVG(白い丸の中にオレンジ) */
.cart-btn .cart-btn-svg { box-sizing: border-box; color: #d4500f; overflow: visible; }

/* 2026-10-20 バグ探し 1: 820〜1399px で「おうち/街」が右のボタンに重なっていた(絶対位置の中央寄せ)。
   中央に置く余裕のない幅は流し込み: 1100〜1759 は 1 行で間に、760〜1099 はロゴとボタンの下の 2 行目の中央
   （2026-10-25 L 31: 右のボタンに残高と「部屋を見る」が入って長くなったので、流し込みを 1759px まで。1760px〜 は真ん中） */
@media (min-width: 760px) and (max-width: 1759px) {
  .ed-header .place-sw { position: relative; left: auto; transform: none; margin: 0 auto; flex: none; } /* relative: 墨の下地（.tab-ink）の基準を切替の中に保つ（幅をまたいでも位置がずれない） */
  .ed-header .ed-beta { margin-right: 0; }
  .ed-header .header-tools { margin-left: 0; }
}
@media (max-width: 759px) { .ed-header .place-sw { position: relative; left: auto; } }
@media (min-width: 760px) and (max-width: 1099px) {
  .ed-header { height: auto; min-height: 64px; flex-wrap: wrap; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .ed-header .ed-beta { margin-right: auto; }
  .ed-header .header-tools { order: 1; }
  .ed-header::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .ed-header .place-sw { order: 3; }
}
@media (min-width: 760px) and (max-width: 879px) {
  /* 2 行に収めるため「おまかせ」は絵だけ(名前は aria-label) */
  .ed-header .head-omakase { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .ed-header .head-omakase .t { display: none; }
}
/* 2026-10-20 バグ探し 6: スマホの「選んだ品」の帯で「置いてみる」「カートに入れる」が切れていた。
   ボタンの行は絵の列の下まで横いっぱいに広げ、字は 14px に */
@media (max-width: 560px) {
  .shop-interior .pick-bar:has(.pick-card) .pick-card .goods-visual { width: 64px; flex: 0 0 64px; align-self: flex-start; margin-top: 0; }
  .shop-interior .pick-bar:has(.pick-card) .pick-card .goods-actions { margin-left: -72px; flex: 0 0 calc(100% + 108px); max-width: none; width: auto; gap: 6px; margin-top: 12px; }
  .shop-interior .pick-card .goods-actions .goods-put, .shop-interior .pick-card .goods-actions .goods-try { font-size: 15px; padding: 0 6px; letter-spacing: 0; }
}
/* 2026-10-20 バグ探し 11: 下に出る知らせが「街へお買い物に行く」に重なるときは、ボタンより上へ(editor.js の liftToasts) */
html[data-toast-avoid] .ed-toast, html[data-toast-avoid] .status-toast, html[data-toast-avoid] .home-note { bottom: var(--toast-avoid) !important; }
html[data-toast-avoid] .tut-toast { bottom: calc(var(--toast-avoid) + 72px) !important; }
/* 2026-10-20 バグ探し 17: 確かめるポップアップ(名前を付けて残した配置の上書き・削除)。消すときは赤 */
.site-confirm .b-main.is-del { background: var(--c-del); border-color: var(--c-del); }
.site-confirm .b-main.is-del:hover { background: #b23c31; border-color: #b23c31; }
/* 2026-10-20 バグ探し 19: スマホの押せる範囲を 44px に(見た目はそのまま、見えない当たりを広げる)。
   ヘッダーの「おうち / 街」・おまかせ・「…」、元に戻す / やり直す。棚の色の丸は隣の丸と取り合わないよう、高さだけ 44px(幅は丸の間隔まで) */
@media (max-width: 1000px) {
  .ed-header .place-tab, .head-omakase, .head-coord, .ed-header .head-more > summary, .hist-btn { position: relative; }
  .ed-header .place-tab::after, .head-omakase::after, .head-coord::after, .ed-header .head-more > summary::after, .hist-btn::after { /* 2026-10-24: おまかせを出さないので「まるごと」も 44px（bugfix-1020 の 19） */
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); border-radius: 12px;
  }
  .prop-card .swatch::before { inset: -12px -6px; border-radius: 12px; } /* 枠線 2px の内側から測るので -12px で 44px */
}
/* 2026-10-20 バグ探し 12: レシートの前に出す知らせは、レシートのボタンの下(画面の下の端)に。カートの丸ボタンは暗幕の下なので避けなくてよい */
body dialog.receipt .status-toast, body dialog.receipt .ed-toast { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
/* 2026-10-20 バグ探し 20: スマホのおうちでは、右下に浮かぶカートのボタンの高さ分をスクロールの余白にも(キーボードで進めたとき・選んだ物へ送るときに、ボタンの下に隠さない)。
   一番下まで送れば最後の棚・部屋カードがボタンに掛からないのは .ed-main の下の余白(2026-10-17)で済んでいる */
@media (max-width: 1000px) { html:has(body[data-place="home"]) { scroll-padding-bottom: calc(var(--fab-h, 76px) + 24px); } }

/* ---------- 部屋の品を保存（2026-10-20。保存のシートの青いサブのボタン → 品の一覧とチェック。一覧の中だけスクロール） ---------- */
.lb-more .ri-open { width: 100%; min-height: 48px; }
dialog.room-items { width: min(520px, calc(100vw - 32px)); }
@media (max-width: 759px) { dialog.room-items { width: 100%; } } /* スマホは下からの全幅のシート（ほかの重ねる画面と同じ） */
.room-items .ov-body { overflow: hidden; }
.ri-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; max-height: min(56vh, 520px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid #f0ece7; }
.ri-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 4px; border-bottom: 1px solid #f0ece7; cursor: pointer; }
.ri-row input { flex: none; width: 22px; height: 22px; margin: 0 2px; accent-color: var(--c-pick); cursor: pointer; }
.ri-thumb { flex: none; width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #f6f3ef; }
.ri-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ri-t b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ri-t span { font-size: 14px; font-weight: 700; color: var(--muted); }
.room-items .acts { flex: none; }
.room-items .b-green:disabled { opacity: .45; cursor: default; }
.room-items .b-green[aria-busy="true"] { cursor: progress; opacity: .7; }

/* ---------- お財布（2026-10-24 ベータ版の 10 万円。残高の札は状態の色 = 緑。ボタンは弾ませない） ---------- */
.wallet { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-left: 10px; padding: 0 11px 0 5px; border: 1.5px solid #bfdccd; border-radius: 999px; background: #eef7f2; color: #2f6f52; font-weight: 900; font-size: 15px; white-space: nowrap; cursor: pointer; }
.wallet:hover { border-color: var(--c-ok); }
.wallet:focus-visible { outline: 3px solid var(--c-pick); outline-offset: 2px; }
.wallet-ic { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-left: 2px; border-radius: 50%; } /* 金色のコイン（2026-10-27 95。前は緑の丸に「¥」） */
.wallet-ic svg { display: block; width: 100%; height: 100%; }
.wallet-yen { font-variant-numeric: tabular-nums; letter-spacing: -.03em; } /* 95: 「コイン」で長くなった分を少し詰める */
body[data-step="0"] .wallet { display: none; }
/* 「ベータ版」の右に置くので、ベータ版の右の余白（margin-right: auto）は札の右へ */
.ed-header .ed-beta { margin-right: 0; }
.ed-header .wallet { margin-right: auto; }
@media (min-width: 1100px) and (max-width: 1399px) {
  /* 1 行に収めるため「おまかせ」は絵だけ（名前は aria-label）・札は少し小さく */
  .ed-header .head-omakase { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .ed-header .head-omakase .t { display: none; }
  .ed-header .wallet { min-height: 36px; padding: 0 8px 0 4px; font-size: 15px; } /* T 40: 15px にした分、左右の余白を詰める（1100px でも 1 行） */
  .ed-header .wallet .wallet-ic { width: 16px; height: 16px; margin-left: 0; }
  .ed-header .wallet { gap: 3px; padding: 0 3px; } /* 95: 「コイン」で長くなった分、すき間と右の余白を詰めて 1100px でも 1 行（7 桁の幅はそのまま） */
}
@media (min-width: 760px) and (max-width: 1099px) {
  /* 2 行の幅: 札は 2 行目の左（1 行目はロゴ・ベータ版・ボタン、2 行目の真ん中は「おうち / 街」） */
  .ed-header .wallet { position: absolute; left: 16px; bottom: 15px; margin: 0; min-height: 36px; padding: 0 10px 0 5px; font-size: 15px; }
  .ed-header .wallet .wallet-ic { width: 18px; height: 18px; }
  .ed-header .ed-beta { margin-right: auto; }
}
@media (max-width: 759px) {
  /* スマホ: ヘッダーに横の余裕が無いので、ヘッダーのすぐ下の右に小さく浮かせる（押すと説明） */
  .ed-header .wallet { position: fixed; right: 12px; top: calc(var(--hdr-h, 56px) + 6px); z-index: 30; margin: 0; min-height: 0; height: 26px; padding: 0 9px 0 3px; gap: 4px; font-size: 15px; background: rgba(238, 247, 242, .96); box-shadow: 0 2px 8px rgba(8, 14, 24, .12); }
  .ed-header .wallet::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
  .ed-header .wallet-ic { width: 16px; height: 16px; margin-left: 2px; }
  body[data-tut] .ed-header .wallet { z-index: 5; }
}
.wallet-info .tc-text, .wallet-short .tc-text { font-size: 16px; line-height: 1.7; }
.wallet-short .acts { display: flex; flex-direction: row; gap: 10px; flex-wrap: wrap; }
.wallet-short .acts .b-sub { flex: 1 1 140px; min-height: 48px; height: auto; }
/* 確かめる窓の内訳（模様替え・おまかせ・古いカートのそろえるセット） */
.sc-list { list-style: none; margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: #f6f3ef; font-size: 14px; font-weight: 700; }
.sc-list[hidden] { display: none; }
.sc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sc-list li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 模様替えの「今の品は持ち物に戻ります。」（2026-10-25） */
.sc-note { margin: -4px 0 14px; font-size: 14px; font-weight: 700; color: var(--ink, #3b2a1c); }
.sc-note[hidden] { display: none; }
/* 値札・棚のカード・カートの値段 */
.goods-price { font-size: 13px; font-weight: 900; color: var(--ink-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.goods-price s { margin-right: 6px; font-weight: 700; font-size: max(13px, .85em); color: var(--muted); }
.goods-price[data-sale="true"] b { color: #c8473b; }
/* 棚の札は 1 行のまま（2 段にすると下の段の品の絵に隠れる）。値段は選んだ品の欄に出し、札には日替わりセールの品だけ名前の右に元の値段と割引の値段 */
.pick-card .goods-price { font-size: 15px; }
.prop-card .card-price { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--item-h) + 1px); font-size: 13px; font-weight: 800; line-height: 1.2; color: #5b4330; font-variant-numeric: tabular-nums; text-align: center; pointer-events: none; } /* 棚板の前面に（カードの高さは変えない） */
.cart-sheet .cs-yen { margin-left: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-sheet .cs-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; margin: 10px 2px 4px; font-size: 15px; font-weight: 800; flex-wrap: wrap; }
.cart-sheet .cs-total b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cart-sheet .cs-off { margin-right: auto; font-size: 13px; color: var(--muted); }
.cart-yen { margin: 6px 0 0; font-size: 14px; font-weight: 900; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.cart-yen[hidden] { display: none; }
.takeout-yen { margin: 0; font-size: 13px; font-weight: 800; color: var(--ink-strong); white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.takeout-yen[hidden], .takeout[data-empty="true"] .takeout-yen { display: none; }
@media (max-width: 759px) { .takeout-yen { font-size: 12px; } }
.coord-yen { display: block; padding: 0 2px; font-size: 14px; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; }
.dlv-slip-yen { font-size: max(13px, .85em); font-weight: 800; }
/* レシートの値段・合計・残り */
.rc-lines li .rc-yen { flex: none; min-width: 5.5em; font-style: normal; font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.rc-total { gap: 10px; }
.rc-total:has(.rc-yen-total:not(:empty)) { justify-content: flex-start; }
.rc-total .rc-yen-total { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.rc-total .rc-yen-total:empty { display: none; }
.rc-left { display: flex; justify-content: space-between; margin: 4px 2px 0; font-size: 14px; font-weight: 800; color: #2f6f52; }
.rc-left b { font-variant-numeric: tabular-nums; }
.rc-left[hidden] { display: none; }
/* スタート画面: 作っている部屋があるときの「はじめる」（新しい部屋）。PC は主ボタンの右、スマホは絵の下 */
.sh-new-room { position: absolute; right: 0; bottom: -30px; z-index: 2; }
.sh-new-room[hidden] { display: none; }
@media (max-width: 760px) { .sh-new-room { position: static; display: flex; margin: 14px auto 0; } }
/* お金を使う・売る前の確かめ（2026-10-24）。家具の色の確認と同じ作り。売るときは「売る」が赤、「やめる」は文字だけ */
.pay-confirm .pc-text { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.6; color: var(--c-pick); }
.pay-confirm .pc-lines { list-style: none; margin: -4px 0 0; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--muted); }
.pay-confirm .pc-lines[hidden] { display: none; }
.pay-confirm .b-main.is-del { background: var(--c-del); border-color: var(--c-del); }
.pay-confirm .b-main.is-del:hover { background: #b23c31; border-color: #b23c31; }
.pay-confirm .pc-no { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 700 16px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 2026-10-24 スタート画面の札の見出し「2 つの楽しみ方から選べる」（左寄せ・墨。「はじめる」より小さく、札の名前より少し大きい）。札は 2 枚で幅を整え、small が 2 行でも高さをそろえる */
.sh-cards-h { position: relative; z-index: 1; width: min(860px, 100%); margin: 50px 0 0; text-align: left; font: 400 24px/1.4 var(--sh-pop); color: var(--sh-ink); }
.sh-cards-h + .sh-cards { margin-top: 10px; }
.sh-cards[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(860px, 100%); }
.sh-cards[data-n="2"] .sh-pic { aspect-ratio: 16 / 5.4; }
.sh-card { height: 100%; }
.sh-card .sh-txt { flex: 1 1 auto; }
.sh-txt small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.45; word-break: auto-phrase; } /* 2 行になっても札の高さは grid でそろう */
@media (max-width: 760px) {
  .sh-cards-h { margin-top: 22px; font-size: 20px; }
  .sh-cards-h + .sh-cards { margin-top: 10px; }
  .sh-cards[data-n="2"] { grid-template-columns: 1fr; }
}
/* 2026-10-24 チュートリアルの「ここをクリック / ここをタップ」の札（輪の真下か真上。吹き出しと重ならない側。小さな三角で輪を指す） */
.tut-here { position: fixed; left: 0; top: 0; padding: 6px 12px; border-radius: 10px; background: var(--orange); color: #fff; font: 700 14px/1.2 var(--body); white-space: nowrap; pointer-events: none; box-shadow: 0 4px 12px rgba(255, 101, 28, .35); animation: tut-here-bob 1.2s ease-in-out infinite; }
.tut-here[hidden] { display: none; }
.tut-here::before { content: ""; position: absolute; left: var(--ax, 50%); width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; }
.tut-here[data-side="below"]::before { bottom: 100%; border-bottom-color: var(--orange); border-top-width: 0; }
.tut-here[data-side="above"]::before { top: 100%; border-top-color: var(--orange); border-bottom-width: 0; }
@keyframes tut-here-bob { 50% { transform: translateY(4px); } }
.tut-here[data-side="above"] { animation-name: tut-here-bob-up; }
@keyframes tut-here-bob-up { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .tut-here { animation: none; } }
/* 2026-10-24 棚は「持ち物」と「宅配で注文」の 2 段。「宅配で注文」は一段またぐので、サブの青を濃くしたベタ塗り・白文字・トラック */
#panel-step4 .delivery-row { display: block; }
#panel-step4 .delivery-row[hidden] { display: none; }
#panel-step4 .delivery-btn { display: flex; width: 100%; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--c-sub); color: #fff; font-size: 17px; font-weight: 800; box-shadow: 0 4px 12px rgba(63, 107, 154, .28); }
#panel-step4 .delivery-btn:hover { background: #335a84; }
#panel-step4 .delivery-btn .delivery-icon { width: 24px; height: 24px; }
#panel-step4[data-delivery="true"] .delivery-btn { display: none; }
#panel-step4 .dlv-band { display: none; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--c-sub); color: #fff; font-size: 15px; font-weight: 800; }
#panel-step4[data-delivery="true"] .dlv-band { display: flex; }
#panel-step4 .dlv-band .dlv-back { min-height: 40px; padding: 0 14px; font-size: 15px; }
/* 持ち物: 値段・時代と種類の絞りは出さない。空のときは 1 行だけ */
#panel-step4[data-own="true"] .card-price, #panel-step4[data-own="true"] .era-chips { display: none !important; }
#panel-step4[data-own-empty="true"] .cat-tabs, #panel-step4[data-own-empty="true"] #prop-hint { display: none !important; }
.cat-tab[data-own-none="true"] { display: none; }
/* 持ち物のカードにも「置いてみる」「部屋にあります」（宅配で注文と同じ見た目。2026-10-24） */
#panel-step4[data-own="true"] .shelf-row { --band: 96px; }
#panel-step4[data-own="true"] .prop-order {
  display: block; order: 4; width: calc(100% - 4px); min-height: 30px; margin-top: auto; margin-bottom: 6px; padding: 0 4px;
  border: 0; border-radius: 999px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 800; line-height: 1.15;
  box-shadow: 0 1px 2px rgba(60, 30, 0, .3);
}
#panel-step4[data-own="true"] .prop-order:hover:not(:disabled) { filter: brightness(1.06); }
#panel-step4[data-own="true"] .prop-order:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
#panel-step4[data-own="true"] .prop-order:disabled { background: rgba(255, 250, 242, .85); color: #6b5440; box-shadow: none; cursor: default; font-weight: 700; }
@media (max-width: 1000px) { #panel-step4[data-own="true"] .shelf-row { --band: 130px; } #panel-step4[data-own="true"] .prop-order { min-height: 44px; } }
/* 持ち物の「○ 円で売る」（2026-10-25 売るのはユーザーが決める）: 「置いてみる」/「部屋にあります」の下。文字だけ赤（吹き出しの「外す」と同じ） */
.prop-sell { display: none; }
#panel-step4[data-own="true"] .shelf-row:has(.prop-sell) { --band: 132px; }
#panel-step4[data-own="true"] .prop-sell {
  display: block; order: 5; width: calc(100% - 4px); min-height: 30px; margin-bottom: 6px; padding: 0 4px;
  border: 0; border-radius: 999px; background: rgba(255, 250, 242, .92); color: var(--c-del); font-size: 15px; font-weight: 800; line-height: 1.15;
  box-shadow: 0 1px 2px rgba(60, 30, 0, .3);
  white-space: nowrap; overflow: hidden; /* 折り返さない（2026-10-25 統括）。狭いカードは字を小さく・余白を詰める */
  font-size: 15px; padding: 0 2px; letter-spacing: -.01em;
}
#panel-step4[data-own="true"] .prop-card:has(.prop-sell) { container-type: inline-size; }
#panel-step4[data-own="true"] .prop-sell:hover { background: #fff; }
#panel-step4[data-own="true"] .prop-sell:focus-visible { outline: 2px solid var(--c-del); outline-offset: -3px; }
#panel-step4[data-own="true"] .prop-order + .prop-sell { margin-top: 0; }
#panel-step4[data-own="true"] .prop-order:has(+ .prop-sell) { margin-bottom: 4px; }
@media (max-width: 1000px) { #panel-step4[data-own="true"] .shelf-row:has(.prop-sell) { --band: 182px; } #panel-step4[data-own="true"] .prop-sell { min-height: 44px; } }
/* 2026-10-24 街の入口: 歩く枠の場所に大きな札 2 枚（スタート画面の札と同じ見た目・矢印）。スマホは縦 */
.gate-view { --sh-ink: #1f1a17; --sh-sub: #6b625c; --sh-line: #ece4da; --sh-cream-2: #f6efe5; --sh-pop: "Mochiy Pop One", "Noto Sans JP", sans-serif; }
.gate-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.gate-card .sh-pic { aspect-ratio: 16 / 10; }
.gate-card .sh-cover { object-position: 50% 50%; }
.gate-card .sh-txt b { font-size: 24px; }
.gate-card .sh-txt small { white-space: normal; }
@media (max-width: 1000px) { .gate-cards { grid-template-columns: 1fr; gap: 12px; } .gate-card .sh-pic { aspect-ratio: 16 / 7; } .gate-card .sh-txt b { font-size: 20px; } }
.shop-head .town-back { min-height: 40px; padding: 0 14px; font-size: 15px; margin-left: auto; }
.shop-head .town-back + .help-btn { margin-left: 0; }
@media (max-width: 759px) { body[data-step="4"][data-gate="true"] .gate-view { padding-top: 40px; } } /* スマホ: ヘッダーの下の残高の札に札の矢印が隠れないように（2026-10-24） */
/* ---------- 2026-10-25 通しの確認の直し（research/walkthrough-fixes-2026-10-25.md） ---------- */
/* D18: 保存のシートの「手前」に何も無いときは、絵の代わりに灰色の文字 */
.save-prev .fg[hidden] { display: none; }
.save-prev .sv-none { display: grid; place-items: center; margin: 0; aspect-ratio: 16 / 9; padding: 8px; border-radius: 10px; border: 1px solid var(--c-line); background: #f6f3ef; color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; line-height: 1.5; }
.save-prev .sv-none[hidden] { display: none; }
/* C9: スマホで棚（持ち物・宅配で注文）が開いている間は、右下に浮かぶオレンジのカートを出さない（下の帯と 2 つに見えた・分類のタブを隠した） */
@media (max-width: 759px) { body[data-shelf="true"] .cart-btn { display: none; } }
/* C11: スマホの宅配の「飛ばす」は、ヘッダーの下の残高の札とぶつからない部屋の右下へ */
@media (max-width: 759px) { .dlv-skip { top: auto; bottom: 6px; right: 6px; } }
/* C13: スマホの街の入口は、見出し「街」と「?」を札の上に（残高の札の下から） */
@media (max-width: 759px) {
  body[data-step="4"][data-gate="true"] .panel { order: -1; padding-top: 36px; }
  body[data-step="4"][data-gate="true"] .gate-view { padding-top: 0; }
}

/* ---------- 2026-10-25 ux-fix（research/ux-fixes-2026-10-25.md） ---------- */
/* 6: まるごとのセットの画面の値段と残り（足りないときは赤） */
.coord-try .ct-yen { margin: -6px 0 0; font-size: 15px; font-weight: 800; text-align: center; color: var(--c-pick); }
.coord-try .ct-yen:empty { display: none; }
.coord-try .ct-yen[data-short="true"] { color: #c8473b; }
/* 10: 部屋の椅子を押したときの小さなメニュー（「椅子を替える」だけ） */
.prop-bubble:not([data-mode="chair"]) .chair-only { display: none; }
.prop-bubble[data-mode="chair"] > :not(.chair-only):not(.bubble-name) { display: none; }
/* 11: 保存のシートの見出し「残した部屋」と各行の残高 */

.save-list .save-yen { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
/* 14: 金額「○ 円」は途中で改行しない。持ち物の棚の名札は 1 行（はみ出しは「…」） */
.yen-nw { white-space: nowrap; }
.prop-card .name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
@media (max-width: 759px) {
  /* 13: 持ち物の「宅配で注文」の帯は固定しない（カードと一緒にスクロール。後ろの白い帯も出さない） */
  #panel-step4 .delivery-row { position: static; top: auto; background: transparent; }
  /* 15: ヘッダーの「おうち / 街」は 44px 以上 */
  .place-tab { min-width: 44px; height: 44px; }
  .place-sw .tab-ink { height: 44px; }
}
/* 19: 名前と値段の行（.goods-line）。セールの品は赤い「セール」の札、元の値段に線 + 赤い字のセール値段（選んだ品の欄）。一覧のカードでは値段は値札のシール（V 52） */
.goods-line { display: contents; }
.goods-sale-tag { display: none; }
/* 9: ボタン付きの知らせ（「持ち物を見る」など）が狭い画面で縦に細くならないように（left: 50% の幅の半分で折り返していた） */
.ed-toast { width: max-content; }
.ed-toast > span { min-width: 0; }
@media (max-width: 759px) { .ed-toast:has(.ed-toast-act) { border-radius: 22px; } }
/* 21: 隠しイベント「やりくり上手のはんこ」（保存の札・案内の「できた!」の札の右上。少し遅れてポンと押す。条件は画面に書かない） */
.yarikuri {
  position: absolute; top: -18px; right: -8px; z-index: 2; width: 86px; height: 86px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 3px solid #c8473b; background: rgba(255, 250, 246, .92); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px rgba(200, 71, 59, .55);
  color: #c8473b; font: 400 13px/1.2 "Mochiy Pop One", var(--body); letter-spacing: .02em; text-align: center; white-space: nowrap;
  transform: rotate(-14deg); pointer-events: none; animation: yarikuri-pon .34s cubic-bezier(.3, 1.45, .5, 1) .5s both;
}
@keyframes yarikuri-pon { from { opacity: 0; transform: rotate(-14deg) scale(1.9); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .yarikuri { animation: none; } }
@media (max-width: 759px) { .yarikuri { width: 74px; height: 74px; font-size: 12px; top: -14px; right: -4px; } }
/* 23（2026-10-25 午後）: 持ち物のカードの名札は 2 行まで（高さを 2 行分取る。入らないときだけ「…」）。棚の前板もその分高く */
#panel-step4[data-own="true"] .prop-card .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; text-overflow: ellipsis; overflow: hidden; min-height: calc(2.6em + 6px); max-height: calc(2.6em + 6px); line-height: 1.3; word-break: auto-phrase; overflow-wrap: anywhere; }
#panel-step4[data-own="true"] .shelf-row { --band: 112px; }
#panel-step4[data-own="true"] .shelf-row:has(.prop-sell) { --band: 150px; }
@media (max-width: 1000px) { #panel-step4[data-own="true"] .shelf-row { --band: 146px; } #panel-step4[data-own="true"] .shelf-row:has(.prop-sell) { --band: 200px; } }
/* 25（2026-10-25 夕 ユーザー「棚でも値段が欲しい」）: 値札のシール。一覧のカード（.shop-item）だけで出す（V 52 の規則） */
.goods-sticker { display: none; }

/* ---------- 2026-10-25 K 27〜30（research/ux-fixes-2026-10-25.md の K。「保存」は 1 押しのセーブ・「部屋を見る」をヘッダー左に） ---------- */
/* 27: 画面の中央の「保存しました。」（押せない。0.2 秒で出て 1.2 秒止まり 0.5 秒で消える。はんこ付きは 2.5 秒止まる） */
:root { --flash-dur: 1900ms; --flash-long: 3200ms; }
.save-flash { position: fixed; left: 50%; top: 50%; z-index: 2300; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; }
.save-flash[hidden] { display: none; }
.save-flash * { pointer-events: none; }
.save-flash .sf-text { margin: 0; padding: 14px 30px; border-radius: 16px; background: #fff; color: #2b2523; font: 400 19px/1.5 "Mochiy Pop One", var(--body); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 6px 22px rgba(8, 6, 4, .16), 0 0 0 1px rgba(8, 6, 4, .05); }
.save-flash.on { animation: save-flash var(--flash-dur) ease both; }
.save-flash.on[data-stamp="true"] { animation-name: save-flash-long; animation-duration: var(--flash-long); }
@keyframes save-flash { 0% { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); } 10.5% { opacity: 1; transform: translate(-50%, -50%); } 73.7% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
@keyframes save-flash-long { 0% { opacity: 0; transform: translate(-50%, calc(-50% + 6px)); } 6.25% { opacity: 1; transform: translate(-50%, -50%); } 84.4% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .save-flash.on, .save-flash.on[data-stamp="true"] { animation: none; opacity: 1; } }
/* やりくり上手のはんこ（21 の移し先）: 札の右上に小さめ（PC 64px・スマホ 56px）。文字ははんこの下に入れない */
.save-flash[data-stamp="true"] .sf-text { padding-right: 58px; }
.save-flash .yarikuri { width: 64px; height: 64px; top: -30px; right: -24px; border-width: 2.5px; font-size: 13px; line-height: 1.2; }
@media (max-width: 759px) {
  .save-flash .sf-text { font-size: 17px; padding: 12px 24px; }
  .save-flash[data-stamp="true"] .sf-text { padding-right: 48px; }
  .save-flash .yarikuri { width: 56px; height: 56px; top: -26px; right: -16px; font-size: 12px; }
}

/* 28: ヘッダーの「部屋を見る」（白いサブのボタン。目のアイコン + 文字。スタート画面では出さない） */
.ed-header .room-view { flex: none; min-height: 40px; height: 40px; padding: 0 14px 0 11px; gap: 6px; font-size: 15px; background: #fff; margin-right: auto; }
.ed-header .room-view .rv-ic { flex: none; display: block; }
.ed-header .wallet { margin-right: 0; }
body[data-step="0"] .ed-header .room-view { display: none; }
@media (min-width: 1100px) and (max-width: 1399px) {
  .ed-header .room-view { min-height: 36px; height: 36px; padding: 0 10px 0 8px; gap: 4px; font-size: 15px; }
  .ed-header .room-view .rv-ic { width: 20px; height: 20px; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  /* 1 行に収める（「部屋を見る」の分）: ロゴを少し小さく、間を詰める */
  .ed-header { gap: 6px; }
  .ed-header .header-tools { gap: 6px; }
  .ed-header .ed-brand .ed-logo { height: 27px; }
  .ed-header .room-view { padding: 0 8px 0 6px; font-size: 15px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  /* 2 行の幅: 1 行目のベータ版の右（札は 2 行目の左のまま） */
  .ed-header .ed-beta { margin-right: 0; }
  .ed-header .room-view { min-height: 40px; height: 40px; padding: 0 12px 0 9px; gap: 5px; font-size: 15px; margin-right: auto; }
}
/* スマホ（759px 以下）と 1 行目に文字まで入らない幅（760〜819px）: アイコンだけ（40px。名前は aria-label） */
@media (max-width: 819px) {
  .ed-header .room-view { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
  .ed-header .room-view .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 759px) {
  /* ロゴと「おうち / 街」の間に */
  .ed-header .room-view { height: 40px; min-height: 40px; margin: 0; }
}
@media (max-width: 419px) {
  /* 380px 前後でも 1 行に（ロゴを少し縮め、間を詰める。380px 以下の決まりと同じ大きさ） */
  .ed-header { gap: 4px; }
  .ed-header .header-tools { gap: 4px; }
  .ed-brand .ed-logo { height: 22px; }
  .ed-header .place-tab { padding: 0 9px; font-size: 15px; }
  .ed-header .place-sw .ink-row span { font-size: 15px; }
  .ed-header #go-export.b-save { min-width: 56px; padding: 0 10px; font-size: 16px; }
}
@media (max-width: 374px) {
  .ed-brand .ed-logo { height: 18px; }
  .ed-header .room-view { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
  .ed-header .room-view .rv-ic { width: 20px; height: 20px; }
}

/* 28: 部屋を見る（#room-lb）の下の操作の帯と「ほかの形式・配信ソフトへの入れ方」 */
.room-lb { width: min(96vw, calc((92vh - 200px) * 16 / 9 + 32px)); }
.lb-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-save #free-kit { min-height: 52px; padding: 0 30px; font-size: 18px; }
.lb-save .b-sub { min-height: 48px; background: #fff; }
.room-lb .export-status { margin: 0; min-height: 0; font-size: 14px; }
.room-lb .export-status:empty { display: none; }
.lb-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--c-sub-tx); }
.lb-more > summary::-webkit-details-marker { display: none; }
.lb-more > summary::before { content: "▸"; display: inline-block; font-size: 12px; transition: transform var(--state-dur, .15s); }
.lb-more[open] > summary::before { transform: rotate(90deg); }
.lb-more-in { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; }
.lb-more .save-prev { max-width: 560px; }
/* この窓の中の知らせは帯のすぐ下（窓の下端で切れない。下に 16px 以上の余白） */
.lb-toast-slot { display: flex; justify-content: center; }
.lb-toast-slot:empty { display: none; }
.lb-toast-slot .ed-toast, body dialog .lb-toast-slot .ed-toast { position: static; left: auto; bottom: auto !important; transform: none; max-width: 100%; animation-name: lb-toast-in; }
@keyframes lb-toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .lb-save > * { flex: 1 1 40%; }
  .lb-save #free-kit { flex-basis: 100%; }
}

/* 31（2026-10-25 L）: ヘッダーの右は「まるごと・残高・カート・部屋を見る・保存・…」（残高と「部屋を見る」は .header-tools の中）。
   「部屋を見る」はカート・保存と同じ格の青のベタ塗り（ベタ塗りの青はこれ 1 つ。まるごと・おまかせは薄い青のまま） */
.ed-header .wallet { margin: 0; }
.ed-header .ed-beta { margin-right: 0; }
.ed-header .room-view { margin: 0; min-height: 44px; height: 44px; padding: 0 18px 0 14px; gap: 7px; font-size: 16px; font-weight: 800; background: var(--c-sub); border-color: var(--c-sub); color: #fff; }
.ed-header .room-view:hover { background: #345b85; border-color: #345b85; }
.ed-header .room-view .rv-ic { width: 22px; height: 22px; }
@media (min-width: 1100px) and (max-width: 1399px) {
  .ed-header .room-view { padding: 0 14px 0 11px; gap: 5px; font-size: 15px; }
  .ed-header .room-view .rv-ic { width: 20px; height: 20px; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  /* 1 行に収める（残高が右へ来た分）: まるごと・カート・部屋を見るの左右の余白を少し詰める */
  .ed-header .head-coord { padding: 0 14px; }
  .ed-header .cart-btn { padding: 0 14px; }
  .ed-header .room-view { padding: 0 12px 0 10px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  /* 2 段: 1 段目は ロゴ・ベータ版・（まるごと・カート・部屋を見る・保存・…）、2 段目は 残高（左）と「おうち / 街」（真ん中） */
  .ed-header .ed-beta { margin-right: auto; }
  .ed-header .room-view { padding: 0 14px 0 11px; gap: 5px; font-size: 15px; }
}
/* 1 段目に文字まで入らない幅（760〜819px）とスマホ: 目のアイコンだけ（44px 四方・青のベタ塗りのまま。名前は aria-label） */
@media (max-width: 819px) {
  .ed-header .room-view { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .ed-header .room-view .rv-ic { width: 22px; height: 22px; }
}
/* 375px 前後（〜379px）: 「部屋を見る」が 44px になった分、「おうち / 街」の左右の余白を少し詰めて 1 行に収める */
@media (max-width: 379px) {
  .ed-header .place-tab { padding: 0 7px; }
}
/* 31 の続き（2026-10-25 統括決定）: PC（760px〜）はカート・部屋を見る・保存の 3 つを同じ高さ 48px に（保存に合わせる）。スマホ（〜759px）は 44px のまま */
@media (min-width: 760px) {
  .ed-header .cart-btn, .ed-header .room-view { min-height: 48px; height: 48px; }
}
@media (min-width: 760px) and (max-width: 819px) {
  .ed-header .room-view { width: 48px; min-width: 48px; }
}
/* 2026-10-25 ユーザー「ずれてる」: 部屋の下の行（PC）の「＋ 家具・小物」・「目安を表示」・拡大の縦の中心をそろえる。
   「(配信時)」はトグルの箱の外（真下）に置き、行の高さに含めない。文言・大きさ・色はそのまま。スマホはこの行の並びが違うので変えない */
@media (min-width: 760px) {
  .room-under .room-hist { align-items: center; }
  .room-under .sw-wrap { position: relative; display: inline-flex; }
  .room-under .sw-wrap small { position: absolute; left: 50%; top: 100%; margin-top: 2px; transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
}


/* ---------- 2026-10-25 T 43: 320〜359px でヘッダーが横にはみ出していた（道具が 348px まで出てページ幅が 350px）。
   ロゴ 16px・「おうち/街」の左右の余白を詰める・部屋を見る 40px・保存 40px（文字 15px のまま）・… 36px・間と左右の余白を詰める ---------- */
@media (max-width: 359px) {
  .ed-header { padding-left: 8px; padding-right: 8px; gap: 3px; }
  .ed-header .header-tools { gap: 3px; }
  .ed-brand .ed-logo { height: 16px; }
  .ed-header .place-tab { padding: 0 5px; }
  .ed-header .room-view { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
  .ed-header .room-view .rv-ic { width: 20px; height: 20px; }
  .ed-header #go-export.b-save { min-width: 40px; width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 15px; }
  .ed-header .head-more > summary { width: 36px; height: 36px; }
  /* 部屋の下の行: 見えない「目安の枠は…」(sr-only)を入れた右端の箱が 320px では画面の外に出て、横に 6px 送れていた */
  /* 「↶ ↷ まるごと ＋ 家具・小物」も 1 行に収める（文字は 15px のまま。左右の余白だけ詰める） */
  .room-hist { position: relative; overflow-x: clip; }
  .room-hist #marugoto, .room-hist #view4-room { padding-left: 8px; padding-right: 8px; }
}

/* 2026-10-26 T 41: 棚のカードの状態は札（ボタンにしない）。「お届け中…」「宅配できません」「今の椅子」 */
.prop-order[hidden] { display: none !important; }
#panel-step4[data-delivery="true"] .prop-order.prop-state, #panel-step4[data-own="true"] .prop-order.prop-state { display: flex; align-items: center; justify-content: center; background: rgba(255, 250, 242, .85); color: #6b5440; box-shadow: none; cursor: default; font-weight: 700; text-align: center; }

/* ---------- 2026-10-26 指示書 U・W（research/ux-fixes-2026-10-25.md の 45〜68） ---------- */
/* 68: スマホ（599px 以下）の目安の札は「立ち絵」「コメント欄」（「の目安」を隠す。重ならないように） */
.guide-box .g-tail { padding: 0; background: none; }
@media (max-width: 599px) { .guide-box .g-tail { display: none; } }
/* 66: 色違いの丸は持ち物・店の欄とも 24px 以上・すき間 8px（PC も。前は 14px） */
.prop-card .swatches .swatch, .goods-swatches .swatch { min-width: 24px; min-height: 24px; border-width: 2px; }
.prop-card .swatches, .goods-swatches, .pick-card .goods-swatches { gap: 8px; flex-wrap: wrap; row-gap: 8px; }
/* 67: 文字の底の残り。ヘッダーの「カート」の数 15px・店の切り替えの業種 15px・「ほかの形式」の各ボタン 15px・「カートを空にする」とスマホのロゴは押せる高さ 44px */
.cart-btn .n { font-size: 15px; }
.shop-nav-btn small { font-size: 15px; }
.export-option strong, .export-option span { font-size: 15px; }
.cart-clear { position: relative; }
.cart-clear::before { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
@media (max-width: 759px) {
  .ed-header .ed-brand { position: relative; }
  .ed-header .ed-brand::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
}
/* 51・62: 残高の札。文字 15px・7 桁（1,000,000 円）が入る幅を最初から取る（桁が増えても並びがずれない）。
   スマホ（759px 以下）は部屋の絵に重ねず、ヘッダーと絵のあいだの行（おうちの部屋の上に 1 行分あける）に置く */
.wallet-yen { display: inline-block; min-width: 7.9em; text-align: right; } /* 95: 単位が「コイン」（3 文字）になった分を広げる（字間 -.03em で 1,000,000 コインが入る幅） */
.ed-header .wallet { font-size: 15px; }
@media (max-width: 759px) {
  body[data-place="home"]:not([data-step="0"]) .preview-col { padding-top: 40px; }
  .ed-header .wallet { top: calc(var(--hdr-h, 56px) + 7px); }
}
/* 62・63: 案内の最中は窓が modal にならず暗幕（::backdrop）が出ない（tutorial.js の吹き出しを上に重ねるため）。
   確かめる窓（お会計・最初から・お金の説明など）だけは、ほかの窓と同じ色の暗幕を窓の影として出す（窓は z-index 1500 なので、ヘッダーの残高の札もその下になる） */
dialog.ov.tone-confirm[data-tut="true"][open] { box-shadow: 0 10px 40px #0003, 0 0 0 200vmax rgba(31, 26, 23, .4); }
dialog.ov.tone-confirm[data-tut="true"].ov-out { box-shadow: 0 10px 40px #0003; }
@media (min-width: 1100px) and (max-width: 1199px) { .ed-header .room-view { padding: 0 7px 0 6px; } .ed-header .header-tools { gap: 4px; } } /* 62: 札の幅（7 桁）を取った分、1100px でも 1 行に収める（左右の余白の内側に） */
/* 46: 「保存」「配信用に保存」を押した直後は文字を残したまま、文字の前に ✓（2 秒。--save-hold）。✓ は文字の左の余白に出すのでボタンの幅は変わらない */
#go-export .lbl, #free-kit .lbl { position: relative; }
#go-export.done .lbl::before, #free-kit.done .lbl::before { content: "✓"; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: .25em; font-size: .9em; line-height: 1; }
@media (max-width: 759px) { #go-export.done .lbl::before { content: none; } } /* 2026-10-26 Y 82: スマホはヘッダーの「保存」に ✓ を出さない（左隣の「部屋を見る」に重なっていた。中央の「保存しました。」で足りる） */
/* 64: レシートの下の「閉じる」（× と同じ動き。44px） */
.receipt .rc-close { display: flex; margin: 14px auto 0; min-height: 44px; min-width: 140px; padding: 0 24px; font-size: 15px; }
/* 65: 保存した部屋の一覧の「開く」「消す」は高さ 44px */
.save-list button { min-height: 44px; padding: 0 12px; }
/* 63: お会計の確かめの窓の買う品の行（合計の上） */
.pay-confirm .pc-items { margin: 0 0 -6px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.pay-confirm .pc-items[hidden] { display: none; }
/* 56: 部屋の下の「持ち物」の数の札は出さない（ヘッダーのカートの数と同じ数だったため）。置く物があるときのオレンジは残す */
.room-under .open-shelf[data-wait]:not([data-wait=""])::after { content: none; display: none; }
/* 57: スマホで「持ち物」を開いている間は、部屋とボタンの列を上に固定しない（品の絵とボタンが同時に見えるように。閉じたら元の固定に戻る） */
@media (max-width: 759px) {
  body[data-place="home"][data-step="4"][data-view4="room"]:not([data-shelf-picking="true"]):not([data-tut]) .preview-col { position: relative; top: auto; }
  /* 残高の札（ヘッダーの下に固定）の行は、ヘッダーの影として地の色の帯を敷く（下を流れる欄に札が重ならない。editor.js の ownScroll は欄の頭をこの帯の下に止める） */
  body[data-place="home"][data-step="4"][data-view4="room"]:not([data-shelf-picking="true"]):not([data-tut]) .ed-header { box-shadow: 0 1px 0 rgba(8,14,24,.06), 0 38px 0 0 var(--page-bg, #eae2d5); }
}

/* ---------- 2026-10-26 V 52（research/ux-fixes-2026-10-25.md の 52。ユーザー決定「B 一覧に替える」）: 店の品は通販のような一覧（カードの格子） ----------
   格子は 168px 以上のカード（PC 1280 の店内で 4 列）・すき間 12px、599px 以下は 2 列。PC は店内の枠を画面の高さに収めて、一覧だけを縦にスクロール。
   カード: 白・角丸 12px・全体が押せる（editor.js の shopClick）。絵の箱 120px（スマホ 104px）。値札のシールは左上、札（カートにあります・カートに n 点・部屋にあります・今の椅子）は右上
   （同じ高さ。入らないときは値札の下の行へ折り返す）、♡ は右下。名前は 15px の太字で 2 行まで。色違いの丸 24px は名前の下。選んでいるカードは墨の枠 */
.shop-interior .shop-goods[data-grid="true"] {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-auto-rows: max-content; gap: 12px; align-content: start; align-items: stretch;
  padding: 2px; border-radius: 0; background: none; box-shadow: none;
}
@media (max-width: 599px) { .shop-interior .shop-goods[data-grid="true"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shop-interior .shop-item {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(8,14,24,.12); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 rgba(8,14,24,.06);
  transition: border-color .15s, box-shadow .15s;
}
.shop-interior .shop-item[data-incart="true"], .shop-interior .shop-item[data-placed="true"] { border-color: rgba(8,14,24,.12); box-shadow: 0 2px 0 rgba(8,14,24,.06); }
@media (hover: hover) { .shop-interior .shop-item:hover { border-color: rgba(8,14,24,.32); box-shadow: 0 4px 12px rgba(8,14,24,.12); } }
.shop-interior .shop-item[data-open="true"] { border-color: var(--ink-strong); box-shadow: 0 0 0 2px var(--ink-strong); }
.shop-interior .shop-item[data-dragging="true"] { opacity: .55; }
.shop-item .goods-visual { position: relative; flex: none; height: 120px; background: #f6efe3; }
.shop-item .goods-thumb { position: absolute; inset: 0; width: 100%; height: 100%; padding: 28px 12px 8px; display: flex; align-items: center; justify-content: center; border-radius: 0; }
.shop-item .goods-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.shop-item .goods-thumb:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: 11px 11px 0 0; }
/* 上の行: 値札のシール（左）と札（右）。幅が足りなければ札は次の行（値札の下）へ */
.shop-item .goods-top { position: absolute; top: 6px; left: 6px; right: 6px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; pointer-events: none; }
.shop-item .goods-sticker {
  display: flex; align-items: baseline; gap: 4px; padding: 0 7px; border-radius: 6px; background: #fff; color: #3b2a1c;
  box-shadow: 0 1px 2px rgba(40, 25, 10, .3), inset 0 0 0 1px rgba(120, 80, 40, .18);
  font-size: 14px; font-weight: 800; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.shop-item .goods-sticker[data-sale="true"] { background: #c8473b; color: #fff; box-shadow: 0 1px 2px rgba(60, 20, 10, .4); }
.shop-item .goods-sticker s { font-size: 13px; font-weight: 700; opacity: .85; }
.shop-item .goods-tags { position: static; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.shop-item .goods-badge { position: static; font-size: 13px; line-height: 19px; padding: 0 7px; white-space: nowrap; }
/* 「セール」の札は値札のシールのすぐ下（左上） */
.shop-item .goods-body { position: static; }
.shop-item .goods-sale-tag { display: block; position: absolute; top: 33px; left: 6px; z-index: 2; padding: 0 6px; border-radius: 6px; background: #c8473b; color: #fff; font-size: 13px; font-weight: 900; line-height: 1.5; white-space: nowrap; pointer-events: none; }
.shop-item .goods-fav { top: auto; bottom: 6px; right: 6px; width: 32px; height: 32px; font-size: 17px; z-index: 2; }
.shop-item .goods-fav::before { inset: -6px; }
.shop-item .goods-giver { top: auto; bottom: 6px; right: 6px; width: 30px; height: 30px; }
.shop-item .goods-body { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; flex: 1; }
.shop-item .goods-name {
  margin: 0; font-size: 15px; font-weight: 800; line-height: 1.35; color: var(--ink-strong); font-feature-settings: "palt";
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; word-break: auto-phrase; overflow-wrap: anywhere;
}
.shop-item .goods-brand { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.shop-item .goods-price, .shop-item .goods-place, .shop-item .goods-note, .shop-item .goods-more { display: none; }
.shop-item .goods-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 2px; }
.shop-item .goods-dot { position: relative; flex: none; width: 24px; height: 24px; min-width: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--c, #ccc); box-shadow: 0 0 0 1px rgba(8,14,24,.35); cursor: pointer; }
.shop-item .goods-dot::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.shop-item .goods-dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink-strong); }
.shop-item .goods-dot[aria-disabled="true"] { cursor: not-allowed; opacity: .6; }
.shop-item .goods-dot:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.shop-item[data-unavailable="true"] .goods-visual img { opacity: .45; }
@media (max-width: 599px) {
  .shop-item .goods-visual { height: 104px; }
  .shop-item .goods-thumb { padding: 26px 10px 6px; }
  .shop-item .goods-sticker { font-size: 13px; }
  .shop-item .goods-sticker s { font-size: 12px; }
  .shop-item .goods-sale-tag { top: 31px; font-size: 12px; }
  .shop-item .goods-badge { font-size: 12px; padding: 0 6px; }
  .shop-item .goods-body { padding: 8px 8px 10px; }
}
/* PC: 店内の枠を画面の高さに収め、一覧だけが縦にスクロール（見出し・売場・種類のチップ・選んだ品の欄とカートは動かない） */
@media (min-width: 1001px) {
  .interior-slot .shop-interior:has(> .shop-goods[data-grid="true"]) { height: calc(100vh - var(--hdr-h, 64px) - 32px); min-height: 540px; grid-template-rows: auto auto auto minmax(0, 1fr) auto; row-gap: 0; }
  .interior-slot .shop-interior:has(> .shop-goods[data-grid="true"]) > .interior-head { grid-row: 1; }
  .interior-slot .shop-interior:has(> .shop-goods[data-grid="true"]) > .genre-row { grid-row: 2; }
  .interior-slot .shop-interior:has(> .shop-goods[data-grid="true"]) > .shop-goods { grid-row: 4; }
  .interior-slot .shop-interior:has(> .shop-goods[data-grid="true"]) > .pick-bar, .interior-slot .shop-interior:has(> .shop-goods[data-grid="true"]) > .cart { grid-row: 5; }
  .interior-slot .shop-interior > .shop-goods[data-grid="true"] { min-height: 0; margin: 8px 0; padding: 2px 8px 6px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
/* 店内の絵（今までの棚の背景の絵）: PC は右の欄の店員さんの上（幅いっぱい・高さ 110px）、それより狭い幅は店の名前の下（高さ 90px。店員さんは右上に重ねる） */
.shop-photo { position: relative; height: 110px; margin: 12px 0 0; border-radius: 12px; background: #e9e0d2; }
.shop-photo[hidden] { display: none; }
.shop-photo-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(8,14,24,.08); -webkit-user-drag: none; }
.shop-photo[data-place="sign"] { flex: 1 1 100%; width: 100%; height: 90px; margin: 0; }

/* ---------- 2026-10-26 Y 76〜82（research/ux-fixes-2026-10-25.md） ---------- */
/* 77・81: ジャンルの行（売場のタブか種類のチップ）。「おまかせで 3 点」が見出しの行に収まらないときはこの行の右端（editor.js の placeLucky）。
   チップの列は詰めずに収まらなければ縮めて横にスクロール（右端をぼかす） */
.genre-row { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.genre-row[hidden] { display: none; }
.genre-row > .interior-aisles, .genre-row > .kind-row { flex: 0 1 auto; min-width: 0; margin: 0; }
.genre-row > .interior-lucky { flex: none; margin-left: auto; }
@media (max-width: 1000px) { .genre-row { margin: 8px 0 6px; } .genre-row > .kind-row { flex: 1 1 auto; } }
/* 81: スマホ（759px 以下）の店の中: ページの先頭で最初のカードの値札と絵の上半分が見えるように詰める
   店名の行はロゴ（絵のアイコン + 名前）の高さ 36px で 1 行、店内の絵は 64px（店員さんの顔と台詞は絵の中のまま）、行と行のすき間は 8px */
@media (max-width: 759px) {
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign[data-logo="true"] { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; }
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign[data-logo="true"] .interior-logo { display: none; }
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign[data-logo="true"] .interior-mark:not([hidden]) { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; }
  body[data-step="4"][data-shopping="true"] #shop-inside .interior-sign[data-logo="true"] b { position: static; width: auto; height: auto; overflow: hidden; clip: auto; min-width: 0; font: 900 22px/36px var(--body); letter-spacing: .02em; color: var(--accent); text-overflow: ellipsis; white-space: nowrap; }
  #shop-inside .shop-photo[data-place="sign"] { height: 64px; }
  #shop-inside .shop-interior { gap: 8px; }
  #shop-inside .interior-head { gap: 8px; }
  #shop-inside .genre-row { margin: 0; }
}
/* 76: スマホの店の中の残高の札（editor.js の placeWallet が body の直下へ移す）。ヘッダーの下の行の右に置いたまま、ページと一緒に流れる（追従しない）。
   ヘッダー（z-index 20）より下に重ねるので、スクロールするとヘッダーの下へ隠れる。札の行のぶん、戻るボタンの行を下げる（「?」に重ならない） */
@media (max-width: 759px) {
  body > #wallet { position: absolute; right: 12px; top: calc(var(--hdr-h, 56px) + 7px); z-index: 15; margin: 0; min-height: 0; height: 26px; padding: 0 9px 0 3px; gap: 4px; font-size: 15px; background: rgba(238, 247, 242, .96); box-shadow: 0 2px 8px rgba(8, 14, 24, .12); }
  body > #wallet::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
  body > #wallet .wallet-ic { width: 16px; height: 16px; margin-left: 2px; }
  body[data-tut] > #wallet { z-index: 5; }
  body[data-wallet-flow="true"] #shop-inside { padding-top: 20px; }
}

/* ---------- 2026-10-27 96: 初回だけの同意の窓（#terms-ask）と「…」の規約のリンク ---------- */
.terms-ask .tm-list { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--c-pick); }
.terms-ask .tm-list li::marker { color: var(--orange); }
.terms-ask .tm-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: -2px 0 0; font-size: 15px; font-weight: 700; }
.terms-ask .tm-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.terms-ask .tm-links a:hover { color: var(--orange); }
.head-more-in a.btn { text-decoration: none; }
a.start-more-item { text-decoration: none; }
