/* へやいろ 新エディター(試作)— スタート画面 + 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; 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: 10px; 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: 13px; 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: 12px; 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: 12px; 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: 13px; 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: 12px; 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: 14px; 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: 12px; 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: 13px; 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: 13px; 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: 13px; color: var(--ink);
}
.prop-bubble button.b:hover { background: var(--bg-soft); }
.prop-bubble button.b-remove { color: #a3261b; }
.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: 11px; 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: 12px; 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: 12px; 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: 12px; 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: 13px; 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: 14px; 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: 12px; 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: 14px; 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: 11px; 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: 10px; 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; 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: 12px; 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: 12px; 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: 14px; }
.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: 12px; }
.save-list button { border: 0; background: transparent; color: var(--ink); font-weight: 700; font-size: 12px; 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: 16px; }
.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: 12px; 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: 13px; }
  .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: 12px; padding: 6px 9px; }
  .autosave { display: none; }
  .go-start { order: 2; margin-left: 4px; font-size: 13px; }
  .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: 13px; }
  /* ①〜③: プレビューを上に見せたまま選ぶ */
  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: 10px; padding: 0 6px; white-space: nowrap; }
  .proto-ribbon { font-size: 11px; 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: 12px; 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: 13px; 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: 13px; 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: 11px; 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: 10px; 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: 12px; 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: 12px; 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: 14px; 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: 12px; 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: 12.5px; font-weight: 700; color: var(--ink);
}
.shop-crumb:hover { border-color: var(--ink); }
.shop-last { margin: 0; font-size: 12px; 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: 12px; 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: 14px;
}

/* 世界の画面: 歩いて選ぶ(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: 13px; 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: 11.5px; 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; }
}

/* 世界の店の一覧(店カード 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: 11px; font-weight: 700; color: var(--muted); }
.shop-count { padding: 0 10px; font-size: 11px; 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: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: 1.25;
}
.shop-nav-btn small { font-size: 10px; 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: 12px; 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: 12px; 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: 10px; 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: 11px; color: var(--muted); }
.goods-brand { margin-top: -3px; font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--muted); } /* 名前の下のブランド名（G15） */
.goods-label { font-size: 11px; 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: 12px;
}
.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: 13.5px;
}
.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: 12.5px; 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: 11.5px; 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: 11px; 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: 15px; 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: 12px; color: var(--muted); }
.basket[data-full="true"] .basket-msg { color: var(--orange-ink); font-weight: 700; }
.basket-details summary { cursor: pointer; font-size: 12.5px; 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: 12.5px; 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: 12px; font-weight: 700; }
.basket-list .basket-empty { font-size: 12px; 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)+ 木の棚(.shelf-tier を最低 3 段) */
.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: 11px; 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: 13px; 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: 13px; 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);
}
.shelf-tier {
  flex: none; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; align-items: end;
  min-height: 132px; padding: 12px 10px 0; background: var(--wall); background-image: linear-gradient(180deg, rgba(0,0,0,.07), transparent 22px);
}
.shelf-tier::after {
  content: ""; grid-column: 1 / -1; height: 14px; margin: 0 -10px;
  background: linear-gradient(180deg, #d9ad7c 0 4px, var(--board) 4px, var(--board-dark));
  box-shadow: 0 5px 6px rgba(0,0,0,.18);
}
.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: 12px; font-weight: 700;
}
.goods-try:hover { border-color: var(--ink); }
.goods-try-svg, .goods-try-svg svg { display: block; width: 18px; height: 18px; }
.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: 12px; }
.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; }

/* 試す: 部屋に 2 秒だけ重ねる絵 */
.try-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.try-img { position: absolute; object-fit: contain; object-position: center bottom; max-width: none; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px rgba(255,101,28,.85)); animation: try-pop .25s ease-out; }
.try-tag { position: absolute; top: 6px; left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 900; }
@keyframes try-pop { from { opacity: 0; transform: translateY(-6%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .try-img { animation: none; } }

/* 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: 14px; 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: 10px; 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: 12px; 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: 12px; color: var(--muted); white-space: nowrap; }
.takeout-room { margin: 0; font-size: 12px; 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: 11px; }
  .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; }
  .shelf-tier { gap: 8px; padding: 10px 6px 0; }
  .shelf-tier::after { margin: 0 -6px; }
  .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); }

/* ---------- 2026-10-13 G5 店の絵の棚(editor.js の buildScene): 背景と商品を同じ 1920×900 の座標で一緒に縮める ---------- */
.shop-interior .shop-goods[data-scene="true"] { display: block; padding: 0; background: none; box-shadow: none; }
.scene-wrap { position: relative; }
.scene-scroll { overflow-x: auto; border-radius: 12px; scrollbar-width: thin; box-shadow: 0 8px 18px rgba(8,14,24,.14); }
.scene-stage { position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1920 / 900; }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
/* 商品: 白いカードなし。置き場所(棚板の y・枠の中心)はインラインの left/top/width */
.shop-interior .scene-item {
  position: absolute; display: block; height: 0; overflow: visible; transform: translateX(-50%);
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.shop-interior .scene-item[hidden] { display: none; }
.shop-interior .scene-item[data-placed="true"], .shop-interior .scene-item[data-incart="true"] { border: 0; box-shadow: none; }
.scene-item .goods-visual { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: none; overflow: visible; }
/* 接地影は商品の直下に短い楕円 1 つ(左上の光なので少し右下) */
.scene-item .goods-visual::before {
  content: ""; position: absolute; left: 50%; bottom: -.32cqw; width: var(--shadow-w, 6cqw); height: .7cqw; transform: translateX(-42%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(74,56,40,.34), rgba(74,56,40,0)); pointer-events: none;
}
.shop-interior .scene-item .goods-thumb {
  position: absolute; left: 0; right: 0; bottom: 0; height: auto; padding: 0; display: flex; justify-content: center; align-items: flex-end;
  background: none; border: 0; cursor: pointer; overflow: visible;
}
.scene-item .goods-thumb img { width: auto; height: 5cqw; max-width: none; object-fit: fill; transition: filter .15s; }
.scene-item:hover .goods-thumb img, .scene-item[data-open="true"] .goods-thumb img { filter: drop-shadow(0 0 .2cqw #fff) drop-shadow(0 0 .45cqw rgba(255,101,28,.7)); }
.scene-item .goods-thumb:focus-visible { outline: none; }
.scene-item .goods-thumb:focus-visible img { filter: drop-shadow(0 0 .2cqw #fff) drop-shadow(0 0 .5cqw var(--orange)); }
.scene-item[data-unavailable="true"] .goods-visual img { opacity: .5; }
/* ♡ と札(カゴに ×n・部屋にあります)は常に。商品の絵の左上・右上に小さく(--vis-h / --vis-w は editor.js の fitSceneImg) */
.scene-item .goods-fav { top: auto; bottom: calc(var(--vis-h, 4.6cqw) + 2px); right: max(0px, calc(50% - var(--vis-w, 6cqw) / 2 - 10px)); width: 24px; height: 24px; font-size: 14px; z-index: 2; }
.scene-item .goods-tags { top: auto; bottom: calc(var(--vis-h, 4.6cqw) - 10px); left: max(-6px, calc(50% - var(--vis-w, 6cqw) / 2 - 8px)); z-index: 2; pointer-events: none; }
.scene-item .goods-badge { font-size: 10px; line-height: 16px; padding: 0 5px; white-space: nowrap; }
/* 値札: 生成りの紙・角を少し折った形・藍の文字。棚板の前縁から下げる */
.scene-item .goods-body {
  position: absolute; top: .35cqw; left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 8px 3px 6px;
  color: #26386e; isolation: isolate;
}
/* 値札の紙は ::before に(本体に clip-path を掛けると、開いたときの操作 .goods-more まで切れるため) */
.scene-item .goods-body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(225deg, #d8cbae 0 5px, #f7f0de 5px);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  border-radius: 1px; filter: drop-shadow(0 1px 1px rgba(60,44,28,.25));
}
.scene-item .goods-name { font-size: clamp(9.5px, .62cqw, 12px); line-height: 1.25; font-weight: 800; color: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scene-item .goods-place { display: none; }
.scene-item .goods-brand { margin-top: 0; font-size: clamp(8px, .5cqw, 10px); line-height: 1.1; font-weight: 700; color: #5a6a94; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 値札の色の点（見るだけ）。押すのは開いたときの 24px の丸 */
.goods-dots { display: none; }
.scene-item .goods-dots { display: flex; gap: 2px; pointer-events: none; }
.scene-item .goods-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #ccc); box-shadow: 0 0 0 1px rgba(38,56,110,.35); }
.scene-item .goods-dots i[data-on="true"] { box-shadow: 0 0 0 1.5px #26386e; }
/* 開いたときの操作（形・種類の選択、色、「部屋で見る」「カゴに入れる」）: 値札の真下に吹き出しで出す。
   値札の列（隣の名札）にはかぶらない。棚の外にはみ出すときは editor.js の clampOpen が --shift と data-flip で収める */
.scene-item .goods-more { display: none; }
/* 2026-10-14 テスター 3 回目: 小窓は押したときだけ（ホバー・フォーカスでは出さない。周りの品を隠さない） */
.scene-item[data-open="true"] { z-index: 6; }
.scene-item[data-open="true"] .goods-more {
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: absolute; z-index: 2;
  top: calc(100% + 4px); left: 50%; transform: translateX(calc(-50% + var(--shift, 0px))); width: max-content; max-width: 260px;
  padding: 7px 9px 8px; border-radius: 12px; background: #fffaf0; color: var(--ink-strong);
  box-shadow: 0 0 0 1px rgba(38,56,110,.18), 0 8px 18px rgba(8,14,24,.22);
}
.scene-item[data-flip="up"] .goods-more { top: auto; bottom: calc(100% + 4px); }
.scene-item .goods-more .goods-label { display: block; margin: 0; font-size: 11px; font-weight: 800; color: var(--ink); }
.scene-item .goods-more .goods-member { display: block; min-height: 36px; font-size: 12px; max-width: 220px; }
.scene-item .goods-more .goods-why { display: block; font-size: 10.5px; max-width: 200px; }
.scene-item .goods-more .goods-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 230px; }
.scene-item .goods-more .swatch { position: relative; width: 24px; height: 24px; min-width: 24px; border-width: 2px; }
.scene-item .goods-more .swatch::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
.scene-item .goods-more .goods-actions { display: flex; gap: 6px; margin: 2px 0 0; padding: 0; position: relative; z-index: 1; }
.scene-item .goods-actions .goods-try, .scene-item .goods-actions .goods-put { min-height: 36px; font-size: 12px; padding: 0 10px; }
.scene-item .goods-actions .goods-try-svg, .scene-item .goods-actions .goods-try-svg svg { width: 15px; height: 15px; }
/* 横送り */
.scene-arrow {
  position: absolute; top: calc(50% - 22px); width: 40px; height: 44px; border: 0; border-radius: 12px; z-index: 8;
  background: rgba(255,255,255,.92); color: var(--ink-strong); font-size: 26px; font-weight: 900; line-height: 1; box-shadow: 0 2px 8px rgba(8,14,24,.2);
}
.scene-arrow-prev { left: 6px; } .scene-arrow-next { right: 6px; }
.scene-arrow:disabled { opacity: .35; cursor: default; }
.scene-page { margin: 6px 0 0; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; }
/* スマホ: 棚の絵は横スクロール(商品が小さくなりすぎないよう最小幅) */
@media (max-width: 760px) {
  .scene-stage { width: 760px; }
  .scene-arrow { top: auto; bottom: 34px; }
}
/* ♡ は合わせたとき・取り置き中だけ(棚が ♡ だらけにならないように) */
.scene-item .goods-fav { opacity: 0; pointer-events: none; transition: opacity .12s; }
.scene-item:hover .goods-fav, .scene-item:focus-within .goods-fav, .scene-item[data-open="true"] .goods-fav, .scene-item .goods-fav[aria-pressed="true"] { opacity: 1; pointer-events: auto; }
@media (hover: none) { .scene-item .goods-fav[aria-pressed="false"] { opacity: 0; } .scene-item[data-open="true"] .goods-fav { opacity: 1; } }
/* 棚(取り置きの棚など、絵のない店): カードの幅が足りなければ「試す」「カゴに入れる」を縦に並べる */
.shelf-tier .goods-card { container-type: inline-size; }
@container (max-width: 190px) {
  .shelf-tier .goods-actions { flex-direction: column; align-items: stretch; }
  .shelf-tier .goods-actions .goods-try, .shelf-tier .goods-actions .goods-put { width: 100%; }
}
.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)); }
}
/* 「くわしく」: お店の画面では選んだ小物の項目を出さない(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: 13px; }
.shop-nav { padding-bottom: 2px; }
.shop-nav-btn { flex-direction: row; gap: 5px; min-height: 44px; padding: 0 14px; font-size: 13px; }
.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: 14px; 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: 12.5px; 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: 12.5px; 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: 14px; 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: 12.5px; }
.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: 11px; 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: 9.5px; 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: 11px; 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: 12px; 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: 13px; }
}
@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: 16px; 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; }
.lb-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.lb-acts .btn { min-height: 44px; }
@media (max-width: 560px) { .lb-in { padding: 8px 10px 12px; } .room-lb { width: calc(100vw - 16px); } .lb-acts .btn { flex: 1 1 40%; justify-content: center; } }
/* 宅配: 荷物・箱の上の小さな札「押して受け取る」「押して開ける」 */
.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: 12px; 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: 10.5px; padding: 1px 7px; } }
/* 店ロゴ(G14): 店内の見出しは横組み、店カード・店の切替はマーク + HTML の店名。読めなければ今の HTML 表示 */
.interior-logo { display: none; }
.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: 16px; }
  .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 .scene-stage { width: min(100%, calc((100vh - 486px) * 1920 / 900)); min-width: 560px; margin: 0 auto; }
  .interior-slot .shop-interior { gap: 6px; padding: 10px 12px; }
  .interior-slot .scene-page { margin-top: 2px; }
  .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) {
  .scene-wrap { padding-bottom: 0; }
  .scene-arrow { top: auto; bottom: 0; width: 44px; height: 40px; font-size: 24px; box-shadow: 0 0 0 1px var(--line-strong); }
  .scene-page { min-height: 40px; display: flex; align-items: center; justify-content: center; margin: 4px 48px 0; }
  .cart-x { width: 28px; height: 28px; top: -9px; right: -9px; font-size: 13px; }
  .cart-list { padding: 10px 10px 2px 0; }
  .scene-item .goods-more .swatch { width: 28px; height: 28px; min-width: 28px; }
  .scene-item .goods-actions .goods-try, .scene-item .goods-actions .goods-put { min-height: 40px; }
  .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 回目。棚の絵の中に小窓を出さず、棚のすぐ下に固定) ===== */
.scene-item .goods-more, .scene-item[data-open="true"] .goods-more { display: none !important; }
/* 押した品は棚の上で枠で示す(名札は隠さない) */
.scene-item[data-open="true"] .goods-visual::after {
  content: ""; position: absolute; left: 50%; bottom: -.2cqw; transform: translateX(-50%); pointer-events: none;
  width: calc(var(--vis-w, 6cqw) + 1.2cqw); height: calc(var(--vis-h, 4.6cqw) + 1cqw);
  border: 2.5px solid var(--orange); border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.85);
}
.scene-item[data-open="true"] .goods-body::before { background: linear-gradient(225deg, #f3b48f 0 5px, #ffe7d6 5px); }
.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: 10px; 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: 11.5px; 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: 13px; }
.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 .scene-stage { width: min(100%, calc((100vh - 540px) * 1920 / 900)); }
  .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: nowrap; gap: 8px; }
  .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: 12.5px; }
  .interior-slot .scene-stage { width: min(100%, max(760px, calc((100vh - 520px) * 1920 / 900))); }
  .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: 13px; padding: 0 10px; }
  .interior-slot .cart[data-place="shelf"] .cart-clear { flex-basis: auto; min-height: 22px; font-size: 11px; }
  .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) {
  /* 棚の絵は横に送れる幅にして、品の押せる幅を 72px 以上に(名札も読める) */
  .scene-stage { width: 940px; }
  .scene-item .goods-name { font-size: 10.5px; }
  /* 宅配で空のカゴは、浮かせず画面下の帯に(棚に重ねない。上の「戻る/次へ」は帯の上に乗る) */
  .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: 11px; }
  .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: 11px; 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: 34px !important; right: 38px !important; width: 36px !important; height: 36px !important; }
.rc-meta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; font-size: 12px; 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: 12.5px; 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(380px, 90vw); 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: 12px; 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; }
.rc-acts { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.rc-acts .btn { min-height: 44px; }
@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; }
/* 開いた操作は、同じ品の ♡・札より手前に */
.scene-item[data-open="true"] .goods-body { z-index: 3; }
/* 品を開いている間は棚の送りボタンを隠す（狭い画面で操作にかぶらないように。閉じれば戻る） */
.scene-wrap:has(.scene-item[data-open="true"]) .scene-arrow { visibility: hidden; }

/* 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: 12px; 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: 12.5px; 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: 13px; 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: 12px; 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: 12px; 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(12px, 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: 12.5px; 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: 12.5px; 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: 11px; padding: 3px 9px; top: 6px; left: 6px; }
  .dlv-skip { min-height: 32px; padding: 0 10px; font-size: 11.5px; 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: 13px; 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: 10.5px; 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(10px, 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: .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: .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: 床置きの段(店内は棚の手前の床、部屋で選ぶは最下段) */
.scene-floor-tag {
  position: absolute; z-index: 1; transform: translate(0, -4px); padding: 1px 8px; border-radius: 999px; background: rgba(60, 40, 20, .72); color: #fff;
  font-size: clamp(9px, .62cqw, 12px); font-weight: 800; pointer-events: none;
}
.floor-cap { margin: 0; padding: 6px 8px 2px; font-size: 12px; 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: 13.5px; white-space: nowrap; }
.interior-aisle small { margin-left: 4px; font-size: 11px; 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; }
.scene-band { position: absolute; z-index: 0; border-radius: .6cqw; background: linear-gradient(rgba(120, 104, 88, .42), rgba(98, 84, 70, .5)); box-shadow: inset 0 0 0 .1cqw rgba(255,255,255,.18); pointer-events: none; }
.scene-wrap[data-aisle="stationery"] .scene-page { font-size: 13px; color: var(--ink); }
/* A5: スマホの店内は 1 段 3 品。棚の絵を少し狭くして、横に送らずに見える幅へ */
@media (max-width: 560px) { .scene-stage { width: 760px; } } /* PC と同じ 1 段の数（面の数もそろう）。横に送って見る */
/* レビューで修正: 箱は画面の手前(下端で少し切れる位置)に置いて、机の上に乗って見えないように */
.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: 10.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.scene-item .goods-note { font-size: clamp(8.5px, .52cqw, 10.5px); color: inherit; opacity: .8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-card .card-note { order: 2; display: block; max-width: 100%; margin-top: 2px; font-size: 10px; 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: 12px; 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: 12px; 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: 10px; 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: 16px; }
.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: 12px; 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: 12px; 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: 12px; 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: 12px; color: var(--muted); }
@media (max-width: 560px) {
  .shelf-picker { padding: 10px; }
  .sp-item { flex-basis: 76px; min-height: 86px; font-size: 11px; }
  .sp-slot { min-height: 36px; padding: 0 9px; font-size: 13px; flex: 0 0 auto; }
  .sp-slot small { margin-left: 2px; font-size: 11px; }
  .sp-head h2 { font-size: 15px; }
  .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: 13px; 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"] .stage-corner, #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: 10px; 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: 9.5px; 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 14.5px/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 13px/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 14px/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: 46px; padding: 0 22px; font-size: 16px; }
.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 14px/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; }
.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; } }
.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: 9.5px; 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: 14px; }
.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: 13px; }
.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: 14px; }
.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: 12px; }
.scene-item[data-open="true"] .goods-body { color: var(--sel-ink); }
.scene-item[data-open="true"] .goods-body::before { background: var(--sel-bg); }
.scene-item[data-open="true"] .goods-brand { color: rgba(255,255,255,.9); }
/* 色見本: 元の色を残し、白い縁とオレンジの台座、白いチェック */
.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: 14px; }
#enlarge-open { min-width: 44px; padding: 0; }
@media (max-width: 560px) { .stage-corner .chip-btn { min-height: 40px; padding: 0 10px; font-size: 13px; } .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: 14px; }
}

/* ===== 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 12.5px/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 > *, .scene-wrap, .scene-scroll { 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: 14px; 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: 14px; }
  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); }
/* 部屋で見るの拡大画面（2026-10-15）: 「← お店に戻る」（副）と「カゴに入れる」（主） */
.lb-acts { align-items: center; }
.lb-acts .btn-sub { min-height: 48px; }
.lb-acts .btn-main { min-height: 56px; font-size: 20px; padding: 0 28px; }
/* 小さな知らせ（画面の下に 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 14px/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: 12px; 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], .export-after .btn[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 段目: ロゴ・保存・はじめから・… */
/* ⑤ 配信用に保存できた後 */
.export-after { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; }
.export-after[hidden] { display: none; }
.export-after .btn { flex: 1 1 180px; }
/* レシート */
.rc-acts { flex-wrap: wrap; }
.rc-acts .btn-sub { min-height: 48px; }
@media (max-width: 560px) { .rc-acts .btn { flex: 1 1 40%; } .rc-acts .btn-primary { flex-basis: 100%; } }
/* 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 14px/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 { 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 { font-size: 13px; font-weight: 700; color: var(--muted); }
.coord-type[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.coord-type[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 { filter: saturate(.5) opacity(.7); }
.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 12px/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 12px/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 { 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: 13px; }
.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; }
#cart[data-place="panel"] #room-peek { display: none; }
/* セットの行(スマホ・店内の一覧でも 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: 12px; 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: 12px; 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: 12px; 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: 11.5px; 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: 12px; 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: 12.5px; font-weight: 700; }
.ct-chair { min-height: 30px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; }
.ct-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-items-title { margin: 0; font-size: 15px; 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: 12px; 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: 10.5px; 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: 14px; }
  .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; }
@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; }
@media (prefers-reduced-motion: reduce) { .sh-room, .sh-room > img { transition: none; } .sh-room.sh-enter { transform: none; opacity: 1; } }

/* 主ボタン(絵の下辺に重ねる。#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: 14px; } /* 見た目は .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: 14px; 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: 12px; 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; 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: 12px; 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: 選んだ品の値札は名前を全部見せる(隣の値札の上に出る) */
.scene-item[data-open="true"] .goods-body { max-width: none; transform: translateX(calc(-50% + var(--tag-shift, 0px))); }
.scene-item[data-open="true"] .goods-name, .scene-item[data-open="true"] .goods-brand { max-width: none; overflow: visible; text-overflow: clip; }
@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; }
}
/* 9: PC のお店の値札(品名)と「床置き」の札を 12px 前後に(9.5px・9px で読みにくかった) */
.scene-item .goods-name { font-size: clamp(12px, .8cqw, 13px); }
.scene-item .goods-brand { font-size: clamp(10px, .62cqw, 11px); }
.scene-floor-tag { font-size: clamp(12px, .8cqw, 13px); }
@media (max-width: 560px) { .scene-item .goods-name { font-size: 10.5px; } }
/* 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: 14px; }
  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); }
  body[data-coord-floor="true"] #cart #room-peek { display: none; }
}
/* 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; }
}
