:root {
  --ink: #1f1a15;
  --ink-soft: #3a2f24;
  --cream: #f4ecd9;
  --kinari: #fbf6ea;
  --red: #b03a2e;
  --red-deep: #8e2b22;
  --gold: #c9a227;
  --gold-soft: #e0bf5a;
  --text: #2a2218;
  --muted: #7a6a52;
  --disclosure-h: 48px;
  --mincho: "Zen Old Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: var(--gothic);
}

body { min-height: 100dvh; }
html.mode-3d, html.mode-3d body { height: 100%; overflow: hidden; }

h1, h2, h3 { font-family: var(--mincho); font-weight: 900; }

button { font-family: inherit; }

/* --- 開示文言バー: 常時・スクロールせずに見える位置 --- */
#disclosure-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* モーダル・パネル（z-index 2000/2100）より必ず手前に出す。
     開示文言は受入基準6により、どの画面状態でも常時見える必要がある */
  z-index: 3000;
  min-height: var(--disclosure-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--kinari);
  font-size: 0.76rem;
  line-height: 1.35;
  border-bottom: 3px solid var(--red);
}
.pr-badge {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
#disclosure-text { flex: 1 1 auto; }

/* --- 3Dキャンバス（画面いっぱい。描画バッファは JS が合わせる） --- */
/* キャンバスは開示文言バーの下から始める。バーと重ねると、一部の環境（ヘッドレスChrome等）で
   キャンバスの下端がバーの高さ分だけ描かれず、下に余白の帯が出る（第1版の不具合）。
   --bar-h は main.js がバーの実寸で上書きする */
#scene-canvas {
  position: fixed;
  top: var(--bar-h, 51px);
  left: 0;
  width: 100%;
  height: calc(100% - var(--bar-h, 51px));
  z-index: 0;
  display: none;
  touch-action: none;
  outline: none;
}
html.mode-3d #scene-canvas { display: block; }
html.mode-3d #text-layer { display: none; }
html.mode-3d #hud:not(.hidden) { display: block; }

/* --- HUD（3Dモード時のみ） --- */
#hud {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}
#hud.hidden { display: none; }

#floor-guide-btn {
  position: absolute;
  top: calc(var(--disclosure-h) + 12px);
  right: 12px;
  pointer-events: auto;
  padding: 8px 14px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: var(--ink);
  color: var(--gold-soft);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
#floor-guide-btn:hover { background: var(--ink-soft); }

#hud-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 6px 12px;
  background: rgba(31, 26, 21, 0.72);
  color: var(--kinari);
  font-size: 0.72rem;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
@media (pointer: coarse), (max-width: 600px) {
  #hud-hint { display: none; }
}

#touch-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 16px;
  pointer-events: none;
}
@media (pointer: coarse) {
  #touch-controls { display: flex; }
}
#touch-controls button {
  pointer-events: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(31, 26, 21, 0.78);
  color: var(--gold-soft);
  font-size: 1.2rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.touch-fb {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
html.ui-open #touch-controls { visibility: hidden; }

/* --- 店員の吹き出し --- */
#bubble-layer {
  position: absolute;
  top: var(--bar-h, 51px);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.staff-bubble {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px 7px;
  background: var(--kinari);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
  white-space: nowrap;
  margin-top: -14px;
  will-change: transform;
}
.staff-bubble[hidden] { display: none; }
.staff-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}
.staff-bubble-main { font-family: var(--mincho); font-weight: 900; font-size: 0.95rem; }
.staff-bubble-sub { font-size: 0.66rem; color: var(--red); margin-top: 1px; }

/* --- 読み込み中 --- */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--disclosure-h) + 16px) 16px 16px;
  background: var(--cream);
  transition: opacity 0.4s;
}
#loading-overlay.is-done { opacity: 0; pointer-events: none; }
.loading-card {
  width: min(340px, 100%);
  text-align: center;
  padding: 26px 22px 20px;
  background: var(--kinari);
  border: 2px solid var(--ink);
  outline: 4px solid var(--kinari);
  box-shadow: 0 0 0 6px var(--red);
}
.loading-title { font-family: var(--mincho); font-weight: 900; font-size: 1.5rem; margin: 0 0 6px; letter-spacing: 0.1em; }
.loading-msg { margin: 0 0 16px; font-size: 0.85rem; }
.loading-bar { height: 6px; background: #e3d8c0; border-radius: 3px; overflow: hidden; }
#loading-bar-fill { display: block; height: 100%; width: 5%; background: var(--red); transition: width 0.25s; }
.loading-sub { margin: 10px 0 0; font-size: 0.72rem; color: var(--muted); }

/* --- モーダル共通（フロア案内・店員のおすすめ） --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 14, 8, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* 開示文言バーの下に常に収まるよう、上に余白を確保する（受入基準6） */
  padding-top: calc(var(--disclosure-h) + 16px);
}
.modal.hidden { display: none; }
.modal-inner {
  position: relative;
  background: var(--kinari);
  border-top: 6px solid var(--red);
  border-radius: 4px;
  padding: 20px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100dvh - var(--disclosure-h) - 40px);
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.modal-inner h2 { margin: 0 36px 4px 0; font-size: 1.2rem; }
.modal-close, .panel-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(31,26,21,0.08);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 1;
}
#floor-modal-list { list-style: none; padding: 0; margin: 12px 0 0; }
#floor-modal-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 4px;
  border-bottom: 1px dotted #c9b995;
  font-family: var(--mincho);
}
#floor-modal-list .status-open { color: var(--red); font-weight: 700; font-family: var(--gothic); font-size: 0.85rem; }
#floor-modal-list .status-soon { color: var(--muted); font-family: var(--gothic); font-size: 0.85rem; }
.floor-select-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  cursor: pointer;
  text-align: left;
}

.staff-panel-lead { margin: 6px 0 12px; font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft); }
.staff-rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.staff-rec-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #d9caa6;
  border-left: 5px solid var(--gold);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.staff-rec-btn:hover { background: #fffaf0; border-left-color: var(--red); }
.staff-rec-name { font-family: var(--mincho); font-weight: 700; font-size: 0.92rem; }
.staff-rec-act {
  flex: 0 0 auto;
  font-size: 0.75rem;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--gold-soft);
  border-radius: 2px;
}

/* --- 商品パネル --- */
.panel {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(20, 14, 8, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* 開示文言バーの下に常に収まるよう、上に余白を確保する（受入基準6） */
  padding-top: calc(var(--disclosure-h) + 16px);
}
.panel.hidden { display: none; }
.panel-inner {
  position: relative;
  background: var(--kinari);
  border-top: 6px solid var(--red);
  border-radius: 4px;
  padding: 22px 20px 20px;
  max-width: 380px;
  width: 100%;
  max-height: calc(100dvh - var(--disclosure-h) - 40px);
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
#product-panel-canvas {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto 10px;
  background: radial-gradient(circle at 50% 40%, #fffdf6, #e6dbc2);
  border: 1px solid #d9caa6;
  border-radius: 3px;
}
#product-panel-title { margin: 4px 0; font-size: 1.12rem; line-height: 1.45; }
.panel-shelf { margin: 0 0 10px; font-size: 0.8rem; color: var(--muted); }
.photo-frame {
  border: 1px dashed #bca77a;
  border-radius: 3px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
  padding: 8px;
  background: rgba(255,255,255,0.5);
}
.photo-frame img { max-width: 100%; max-height: 160px; }
/* 写真＋出所＋「楽天で見る」のまとまり。Amazonのリンクとは別ブロックにする */
.photo-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.photo-block .photo-frame { margin-bottom: 6px; }
.photo-block[hidden] { display: none; }
.photo-caption {
  margin: 0 0 8px;
  font-size: 0.72rem;
  color: var(--muted);
}
.photo-caption.hidden { display: none; }
.rakuten-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 3px;
  background: #bf0000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}
.panel-note { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 14px; }
.amazon-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--gold-soft);
  border: 2px solid var(--gold);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
.amazon-link--disabled {
  background: #d8ceb8;
  color: #7a6c50;
  border-color: #c4b797;
  cursor: not-allowed;
}

/* --- テキスト層 --- */
#text-layer {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--disclosure-h) + 16px) 16px 40px;
}
#text-layer header { text-align: center; margin-bottom: 20px; }
#text-layer .tagline { color: var(--muted); margin-top: 4px; }
.floor-list { list-style: none; padding: 0; }
.floor-list li { padding: 4px 0; border-bottom: 1px dotted #c9bda0; }
.shelf-section { margin: 22px 0; padding: 14px; background: rgba(255,255,255,0.5); border-left: 4px solid var(--red); }
.product-list { list-style: none; padding: 0; margin: 8px 0 0; }
.product-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted #d8cca8;
}
.pick-product-btn {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
}
.product-list .note { font-size: 0.78rem; color: var(--muted); }
.fallback-note { text-align: center; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 480px) {
  #text-layer { padding-left: 12px; padding-right: 12px; }
  .shelf-section { padding: 10px; }
  #disclosure-bar { font-size: 0.7rem; }
  #floor-guide-btn { font-size: 0.78rem; padding: 6px 10px; }
}

/* ===================================================================
   第4版: フロア切り替え・屋上遊園地
   =================================================================== */
#floor-modal-list .status-go { color: var(--ink); font-family: var(--gothic); font-size: 0.85rem; font-weight: 700; }
.loading-dial {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 12px;
  border: 2px solid var(--gold);
  background: var(--ink);
  color: var(--gold-soft);
  font-family: var(--mincho);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* 屋上の部品は #hud の中（開示文言バーより下）。屋上にいる間だけ JS が置く */
#rf-ui { position: absolute; inset: 0; pointer-events: none; }
.rf-top {
  position: absolute;
  top: calc(var(--bar-h, 51px) + 12px);
  left: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - 200px);
}
.rf-chip {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: rgba(31, 26, 21, 0.82);
  color: var(--kinari);
  font-size: 0.82rem;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
.rf-chip b { color: var(--gold-soft); font-size: 1.05rem; }
.rf-ticket-icon {
  width: 22px;
  height: 14px;
  background: #f4d35e;
  border: 1px dashed #8e2b22;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px #f4d35e, inset 0 0 0 3px #b03a2e;
}
.rf-ticket.is-bump { animation: rf-bump 0.45s ease-out; }
@keyframes rf-bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rf-sound { cursor: pointer; font-family: var(--gothic); }
.rf-sound[aria-pressed="true"] { background: var(--red); }

/* 乗っている間: 左上に「降りる」、その横に状態 */
.rf-ride-bar {
  position: absolute;
  top: calc(var(--bar-h, 51px) + 64px);
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rf-ride-bar[hidden] { display: none; }
.rf-exit {
  pointer-events: auto;
  min-width: 96px;
  min-height: 48px;
  padding: 8px 18px;
  border: 2px solid #fff3c8;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.rf-status {
  margin: 0;
  padding: 6px 12px;
  background: rgba(31, 26, 21, 0.72);
  color: var(--kinari);
  font-size: 0.85rem;
  border-radius: 2px;
}

/* 近づいたときの「乗る」ボタン */
.rf-action {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: calc(100% - 24px);
}
.rf-action[hidden] { display: none; }
@media (pointer: coarse) { .rf-action { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 150px); } }
@media (max-width: 600px) { .rf-action { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 150px); } }
.rf-action-main, .rf-action-sub {
  pointer-events: auto;
  min-height: 50px;
  padding: 10px 18px;
  border-radius: 3px;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.35);
  white-space: nowrap;
}
.rf-action-main { border: 2px solid var(--gold); background: var(--red); color: #fff; }
.rf-action-sub { border: 2px solid var(--gold); background: var(--kinari); color: var(--ink); font-size: 0.9rem; }
.rf-action-main:hover { background: var(--red-deep); }
html.ui-open .rf-action { visibility: hidden; }

/* 乗っている間はフロア案内とヒントを隠す。自動で動く遊具・射的では前進・旋回のボタンも隠す */
html[data-ride] #floor-guide-btn,
html[data-ride] #hud-hint { display: none; }
html[data-ride="auto"] #touch-controls,
html[data-ride="shoot"] #touch-controls { display: none !important; }

/* 射的の照準 */
.rf-crosshair {
  position: absolute;
  left: 0;
  top: var(--bar-h, 51px);
  width: 0;
  height: 0;
  pointer-events: none;
}
.rf-crosshair[hidden] { display: none; }
.rf-crosshair::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border: 3px solid #fff3c8;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(142, 43, 34, 0.9);
  background:
    linear-gradient(#b03a2e, #b03a2e) center / 3px 16px no-repeat,
    linear-gradient(#b03a2e, #b03a2e) center / 16px 3px no-repeat;
}
.rf-crosshair.is-fire::before { animation: rf-fire 0.2s ease-out; }
@keyframes rf-fire { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }
.rf-float-layer { position: absolute; left: 0; right: 0; top: var(--bar-h, 51px); bottom: 0; pointer-events: none; overflow: hidden; }
.rf-float {
  position: absolute;
  transform: translate(-50%, -140%);
  font-family: var(--mincho);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff3c8;
  text-shadow: 0 2px 0 #8e2b22, 0 0 6px rgba(0,0,0,0.6);
  animation: rf-float 0.9s ease-out forwards;
}
@keyframes rf-float { 0% { opacity: 1; margin-top: 0; } 100% { opacity: 0; margin-top: -40px; } }

/* 券をもらった・射的の結果 */
.rf-card {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  min-width: 220px;
  padding: 16px 26px 14px;
  text-align: center;
  background: var(--kinari);
  border: 2px solid var(--ink);
  outline: 4px solid var(--kinari);
  box-shadow: 0 0 0 6px var(--red), 0 10px 26px rgba(0,0,0,0.35);
  animation: rf-pop 0.3s ease-out;
}
.rf-card[hidden] { display: none; }
@keyframes rf-pop { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.rf-card-title { margin: 0; font-family: var(--mincho); font-weight: 700; color: var(--red); letter-spacing: 0.1em; }
.rf-card-big { margin: 4px 0; font-family: var(--mincho); font-weight: 900; font-size: 2rem; color: var(--ink); }
.rf-card-sub { margin: 0; font-size: 0.8rem; color: var(--muted); }

.rf-toast {
  position: absolute;
  left: 50%;
  bottom: 120px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 14px;
  background: rgba(142, 43, 34, 0.92);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 3px;
  text-align: center;
}
.rf-toast[hidden] { display: none; }
@media (pointer: coarse), (max-width: 600px) { .rf-toast { bottom: auto; top: calc(var(--bar-h, 51px) + 120px); } }

/* 乗り降りの暗転（開示文言バーより下・HUD より下） */
#rf-fade {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: #1a140e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#rf-fade.is-on { opacity: 1; }

@media (max-width: 480px) {
  .rf-top { max-width: calc(100% - 196px); gap: 6px; }
  .rf-long { display: none; }
  .rf-chip { font-size: 0.74rem; padding: 4px 8px; min-height: 36px; }
  .rf-action-main, .rf-action-sub { font-size: 0.9rem; padding: 8px 12px; }
}

/* Amazon の商品写真（基準29）。縦横比を保った縮小のみ。写真はリンクにしない */
.amazon-photo {
  margin: 0 0 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e0d6bf;
  border-radius: 3px;
}
.amazon-photo img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.amazon-photo figcaption { margin-top: 6px; font-size: 0.72rem; color: var(--muted); }

/* --- エレベーターの演出（基準30） --- */
#floor-fade {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: #1a140e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#floor-fade.is-on { opacity: 1; }
html[data-elev] #floor-guide-btn,
html[data-elev] #hud-hint,
html[data-elev] #touch-controls,
html[data-elev] #rf-ui { display: none !important; }
#elev-ui { position: absolute; inset: 0; pointer-events: none; }
.elev-caption {
  position: absolute;
  bottom: max(26px, env(safe-area-inset-bottom));
  left: 16px;
  margin: 0;
  padding: 8px 16px;
  max-width: calc(100% - 160px);
  white-space: normal;
  background: rgba(31, 26, 21, 0.78);
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.elev-caption:empty { display: none; }
.elev-skip {
  position: absolute;
  right: 16px;
  bottom: max(20px, env(safe-area-inset-bottom));
  pointer-events: auto;
  min-width: 110px;
  min-height: 48px;
  padding: 8px 18px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  background: rgba(31, 26, 21, 0.85);
  color: var(--gold-soft);
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.elev-skip:disabled { opacity: 0.85; cursor: default; }
.shelf-where { font-size: 0.8rem; font-weight: 500; color: var(--muted); font-family: var(--gothic); margin-left: 4px; }
.floor-list a { color: var(--ink); text-decoration-color: var(--red); }

/* フロア案内の中の「文字で読む」入口（第5版） */
.floor-modal-text-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(120, 90, 40, 0.25); font-size: 14px; }
.floor-modal-text-links a { color: #8a2a1f; text-decoration: underline; text-underline-offset: 3px; }
