.hero-intro {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 22px;
  text-align: center;
}

.venue-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ============ 会場マップ全体（会場シーン + 会話UIスロットの縦積み） ============ */
.venue-map {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(169,139,255,0.28), transparent 42%),
    radial-gradient(circle at 50% 96%, rgba(255,130,189,0.12), transparent 46%),
    linear-gradient(180deg, #0a0a20 0%, #0c0c26 48%, #08081a 100%);
  box-shadow: var(--shadow);
  isolation: isolate;
}

/* 会場シーン：ステージ・ブース・NPC・情報パネルの座標基準 */
.venue-scene {
  position: relative;
  min-height: 660px;
  overflow: hidden;
}

.venue-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.venue-svg-lamp {
  animation: venueLampGlow 7s ease-in-out infinite;
  transform-origin: center;
}

.venue-svg-sweep,
.venue-svg-aisle {
  animation: venueAislePulse 9s ease-in-out infinite;
}

.venue-svg-particle {
  animation: venueSvgParticleFade 8s ease-in-out infinite;
}

/* ADV会話UI領域：会場シーンの下に独立して配置 */
.venue-dialogue-slot {
  position: relative;
  height: 150px;
  min-height: 150px;
  flex: 0 0 150px;
  padding: 18px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8,8,22,0.5), rgba(6,6,16,0.7));
}

.venue-dialogue-placeholder {
  width: min(760px, 100%);
  margin: 22px auto 0;
  color: var(--soft);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.venue-dialogue:not([hidden]) + .venue-dialogue-placeholder {
  display: none;
}

.venue-map.is-info-open .venue-dialogue-placeholder,
.venue-map.is-dialogue-open .venue-dialogue-placeholder {
  visibility: hidden;
}

/* 旧CSS床。会場背景はinline SVGへ寄せる */
.venue-floor {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200%;
  height: 56%;
  transform: translateX(-50%) perspective(540px) rotateX(62deg);
  transform-origin: bottom center;
  background:
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,0.07) 78px 80px),
    repeating-linear-gradient(0deg, transparent 0 78px, rgba(255,255,255,0.05) 78px 80px),
    linear-gradient(180deg, rgba(169,139,255,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 中央の通路スポット（会場シーン基準） */
.venue-scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  width: 34%;
  height: 74%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,226,160,0.16), rgba(255,226,160,0.02) 70%, transparent);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.venue-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,210,232,0.5) 0 1px, transparent 1.8px);
  background-size: 170px 170px, 250px 250px;
  background-position: 38px 24px, 120px 70px;
  mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.55) 42%, transparent 92%);
  animation: venueParticleDrift 9s ease-in-out infinite;
}

/* ============ メインステージ ============ */
.venue-stage {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(46%, 480px);
  z-index: 1;
}

.venue-stage-truss {
  height: 16px;
  border-radius: 6px 6px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 8px, rgba(255,255,255,0.05) 8px 18px);
  box-shadow: 0 0 18px rgba(169,139,255,0.4);
  animation: venueTrussGlow 8s ease-in-out infinite;
}

.venue-stage-screen {
  position: relative;
  border: 1px solid var(--line-strong);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 30px 18px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(169,139,255,0.30), transparent 60%),
    linear-gradient(180deg, rgba(10,10,32,0.94), rgba(6,6,18,0.94));
  box-shadow:
    inset 0 0 40px rgba(120,90,220,0.25),
    0 22px 46px rgba(0,0,0,0.5),
    0 46px 80px rgba(0,0,0,0.44);
  animation: venueStageBreathe 6s ease-in-out infinite;
}

.venue-stage-main {
  display: block;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.venue-stage-sub {
  display: block;
  margin-top: 8px;
  color: var(--pink-soft);
  font-family: var(--font-serif);
  letter-spacing: 0.16em;
  font-size: clamp(18px, 2.2vw, 30px);
  text-shadow: 0 0 18px rgba(255,130,189,0.5);
  animation: venueSignGlow 5.8s ease-in-out infinite;
}

/* ステージ両脇のスポットライト光芒（keyframes内でtransformを定義） */
.venue-stage-light {
  position: absolute;
  top: 14px;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 300px solid rgba(255,255,255,0.08);
  filter: blur(7px);
  pointer-events: none;
}

.venue-stage-light-l {
  left: -30px;
  animation: venueSpotlightLeft 6.5s ease-in-out infinite;
  animation-delay: -2s;
}

.venue-stage-light-r {
  right: -30px;
  animation: venueSpotlightRight 7.5s ease-in-out infinite;
  animation-delay: -5s;
}

/* ============ ブース（会場オブジェクト） ============ */
/* 会場シーン全体を座標基準にする（会話UIは別スロットへ分離済み） */
.venue-booths,
.venue-npcs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* NPCラベルがブースに隠れないよう、NPC層をブースより前面へ（暫定） */
.venue-npcs {
  z-index: 3;
}

.venue-booth {
  --booth-a: var(--violet);
  --booth-b: var(--pink);
  position: absolute;
  transform: translate(-50%, -50%);
  width: 132px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.venue-booth:hover,
.venue-booth:focus-visible {
  transform: translate(-50%, -50%) translateY(-6px);
  outline: none;
  filter: drop-shadow(0 0 14px var(--booth-b));
}

.venue-booth.is-active {
  filter: drop-shadow(0 0 22px var(--booth-b)) drop-shadow(0 0 42px rgba(255,255,255,0.26));
}

.venue-booth.is-active .booth-counter {
  border-color: var(--booth-b);
}

/* テント屋根 */
.booth-roof {
  display: block;
  height: 28px;
  margin: 0 -8px -2px;
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(90deg,
    var(--booth-a) 0 18px,
    rgba(255,255,255,0.85) 18px 36px);
  opacity: 0.92;
  box-shadow: 0 7px 14px rgba(0,0,0,0.46), 0 0 18px rgba(255,255,255,0.08);
}

/* カウンター本体 */
.booth-counter {
  position: relative;
  display: block;
  min-height: 58px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 8px 8px;
  text-align: center;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(18,18,44,0.95), rgba(9,9,24,0.95));
  box-shadow:
    inset 0 0 22px rgba(255,255,255,0.05),
    0 16px 30px rgba(0,0,0,0.36);
}

/* カウンター発光ライン */
.booth-counter::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--booth-b), transparent);
  box-shadow: 0 0 12px var(--booth-b);
}

/* 床影 */
.booth-counter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 105%;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.68), transparent 72%);
  pointer-events: none;
}

.booth-kind {
  display: block;
  color: var(--booth-b);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.booth-name {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ブースごとの配置と色 */
.booth-about      { left: 28%; top: 42%; --booth-a: #6e58ff; --booth-b: #a98bff; }
.booth-game       { left: 72%; top: 42%; --booth-a: #c64f86; --booth-b: #ff82bd; }
.booth-characters { left: 18%; top: 60%; --booth-a: #2ba98e; --booth-b: #6be8c8; }
.booth-music      { left: 82%; top: 60%; --booth-a: #3f8fd6; --booth-b: #a9f5ff; }
.booth-novel      { left: 24%; top: 78%; --booth-a: #b8862f; --booth-b: #ffe2a0; }
.booth-news       { left: 76%; top: 78%; --booth-a: #8d57c8; --booth-b: #d6b6ff; }

/* ============ NPC（人型シルエット） ============ */
.venue-npc {
  --npc-color: #ffe2a0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 84px;
  padding: 6px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  text-align: center;
}

.npc-avatar {
  position: relative;
  display: block;
  width: 30px;
  height: 42px;
  margin: 16px auto 14px;
  border-radius: 42% 42% 30% 30% / 55% 55% 30% 30%;
  background: linear-gradient(180deg, var(--npc-color), rgba(0,0,0,0.4));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
  animation: npcBreath 3.2s ease-in-out infinite;
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* 頭 */
.npc-avatar::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--npc-color), rgba(0,0,0,0.25));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
}

/* 足元の影 */
.npc-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 44px;
  height: 13px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.78), transparent 72%);
}

.npc-label {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(6, 6, 18, 0.72);
}

.venue-npc:hover .npc-avatar,
.venue-npc:focus-visible .npc-avatar {
  filter: drop-shadow(0 0 12px var(--npc-color)) drop-shadow(0 0 22px var(--npc-color));
  transform: translateY(-3px);
}

.venue-npc:focus-visible {
  outline: 2px solid var(--npc-color);
  outline-offset: 4px;
  border-radius: 12px;
}

.venue-npc:hover .npc-label,
.venue-npc:focus-visible .npc-label {
  color: var(--text);
}

.npc-fan      { left: 38%; top: 76%; --npc-color: #ff9ac0; }
.npc-staff    { left: 50%; top: 84%; --npc-color: #a9f5ff; }
.npc-industry { left: 62%; top: 76%; --npc-color: #ffe2a0; }

.npc-fan .npc-avatar { animation-delay: -0.6s; }
.npc-staff .npc-avatar { animation-delay: -2.1s; }
.npc-industry .npc-avatar { animation-delay: -3.4s; }

/* ============ 会話ボックス（ADV専用スロット内に通常フロー配置） ============ */
/* 画面固定には戻さない。.venue-dialogue-slot 内に収め、会場オブジェクトを隠さない */
.venue-dialogue {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 20px 18px;
  background: linear-gradient(180deg, rgba(14,14,38,0.97), rgba(7,7,20,0.97));
  box-shadow: 0 22px 50px rgba(0,0,0,0.5);
}

.venue-dialogue[hidden],
.venue-info-panel[hidden] {
  display: none;
}

.venue-dialogue-name {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.venue-dialogue-window {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.venue-dialogue-text {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.venue-dialogue-hint {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ============ ブース情報パネル（会場マップ内 右側に浮かぶUI） ============ */
/* position:absolute で .venue-map に属させ、ページスクロールに追従させない */
.venue-info-panel {
  position: absolute;
  left: var(--panel-left, 24px);
  top: var(--panel-top, 120px);
  right: auto;
  bottom: auto;
  z-index: 20;
  width: var(--panel-width, min(360px, calc(100% - 48px)));
  transform: none;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, rgba(22,22,54,0.98), rgba(8,8,24,0.98));
  box-shadow: 0 26px 60px rgba(0,0,0,0.55);
}

.venue-info-label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.venue-info-title {
  margin: 0 0 10px;
}

.venue-info-body {
  margin: 0 0 18px;
  color: var(--muted);
}

.venue-info-panel .btn {
  width: 100%;
}

.venue-overlay-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.venue-overlay-close:hover,
.venue-overlay-close:focus-visible {
  background: rgba(255,255,255,0.18);
  outline: none;
}

/* ============ レスポンシブ：縮小ゲーム画面（カード化は廃止） ============ */
/* スマホでも .venue-scene / .venue-booths / .venue-npcs / .venue-booth / .venue-npc は
   absolute 配置を維持。会話UIは .venue-dialogue-slot 側に出るため、
   会場シーンを縦に伸ばしすぎない。 */
@media (max-width: 900px) {
  /* 会場シーンは1画面に収まる高さに抑える */
  .venue-scene {
    min-height: 620px;
  }

  /* ステージは上部中央の絶対配置を維持しつつ小型化 */
  .venue-stage {
    position: absolute;
    top: 5%;
    left: 50%;
    width: 74%;
    transform: translateX(-50%);
  }
  .venue-stage-screen { padding: 20px 12px 24px; }
  .venue-stage-sub { font-size: clamp(16px, 4vw, 24px); }

  /* 会場シーン620px前提の座標 */
  .booth-about      { left: 30%; top: 35%; }
  .booth-game       { left: 70%; top: 35%; }
  .booth-characters { left: 30%; top: 50%; }
  .booth-music      { left: 70%; top: 50%; }
  .booth-novel      { left: 30%; top: 65%; }
  .booth-news       { left: 70%; top: 65%; }

  .npc-fan      { left: 28%; top: 80%; }
  .npc-staff    { left: 50%; top: 84%; }
  .npc-industry { left: 72%; top: 80%; }

  /* ブースをさらに小型の会場オブジェクトに */
  .venue-booth { width: 96px; }
  .booth-roof { height: 18px; }
  .booth-counter { min-height: 42px; padding: 7px 6px 8px; }
  .booth-kind { font-size: 6px; }
  .booth-name { font-size: 9px; }

  /* NPCは人型のままコンパクトに */
  .npc-avatar { width: 22px; height: 32px; }
  .npc-label { font-size: 9px; padding: 2px 6px; }

  .venue-dialogue-slot {
    height: 150px;
    min-height: 150px;
    flex: 0 0 150px;
  }
}

@media (max-width: 560px) {
  .venue-scene {
    min-height: 590px;
  }

  .venue-stage {
    top: 5%;
    width: 82%;
  }

  .booth-about      { left: 28%; top: 33%; }
  .booth-game       { left: 72%; top: 33%; }
  .booth-characters { left: 28%; top: 48%; }
  .booth-music      { left: 72%; top: 48%; }
  .booth-novel      { left: 28%; top: 63%; }
  .booth-news       { left: 72%; top: 63%; }

  .npc-fan      { left: 25%; top: 80%; }
  .npc-staff    { left: 50%; top: 84%; }
  .npc-industry { left: 75%; top: 80%; }

  .venue-booth { width: 82px; }
  .booth-roof { height: 15px; }
  .booth-counter { min-height: 36px; padding: 6px 4px 7px; }
  .booth-kind { font-size: 5.5px; }
  .booth-name { font-size: 8px; }

  .npc-avatar { width: 20px; height: 30px; }
  .npc-label { font-size: 8.5px; }

  .venue-dialogue-slot {
    height: 150px;
    min-height: 150px;
    flex: 0 0 150px;
  }
}

@keyframes venueSpotlightLeft {
  0%, 100% {
    opacity: 0.28;
    filter: blur(7px);
    transform: rotate(8deg);
  }
  50% {
    opacity: 0.86;
    filter: blur(10px);
    transform: rotate(22deg);
  }
}

@keyframes venueSpotlightRight {
  0%, 100% {
    opacity: 0.30;
    filter: blur(7px);
    transform: rotate(-8deg);
  }
  50% {
    opacity: 0.84;
    filter: blur(10px);
    transform: rotate(-22deg);
  }
}

@keyframes venueStageBreathe {
  0%, 100% {
    box-shadow:
      inset 0 0 58px rgba(120,90,220,0.38),
      0 22px 50px rgba(0,0,0,0.52),
      0 48px 92px rgba(169,139,255,0.3);
  }
  50% {
    box-shadow:
      inset 0 0 84px rgba(255,130,189,0.5),
      0 24px 58px rgba(0,0,0,0.54),
      0 54px 112px rgba(169,139,255,0.48);
  }
}

@keyframes venueTrussGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(169,139,255,0.45);
  }
  50% {
    box-shadow: 0 0 32px rgba(255,210,232,0.55);
  }
}

@keyframes venueSignGlow {
  0%, 100% {
    color: var(--pink-soft);
    text-shadow:
      0 0 16px rgba(255,130,189,0.7),
      0 0 30px rgba(169,139,255,0.28);
  }
  50% {
    color: #fff1cf;
    text-shadow:
      0 0 30px rgba(255,226,160,0.9),
      0 0 54px rgba(255,130,189,0.62),
      0 0 72px rgba(169,139,255,0.42);
  }
}

@keyframes npcBreath {
  0%, 100% {
    transform: translateY(0) scaleY(1);
  }
  45% {
    transform: translateY(-6px) scaleY(1.045);
  }
  60% {
    transform: translateY(-5px) scaleY(1.035);
  }
}

@keyframes venueParticleDrift {
  0%, 100% {
    opacity: 0.22;
    background-position: 32px 28px, 128px 64px;
  }
  50% {
    opacity: 0.68;
    background-position: 76px 2px, 82px 108px;
  }
}

@keyframes venueLampGlow {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.62; }
}

@keyframes venueAislePulse {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 0.58; }
}

@keyframes venueSvgParticleFade {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .venue-booth,
  .venue-booth:hover,
  .venue-booth:focus-visible,
  .venue-stage-light,
  .venue-stage-screen,
  .venue-stage-truss,
  .venue-stage-sub,
  .venue-scene::after,
  .venue-svg-lamp,
  .venue-svg-sweep,
  .venue-svg-aisle,
  .venue-svg-particle,
  .npc-avatar,
  .venue-npc:hover .npc-avatar,
  .venue-npc:focus-visible .npc-avatar {
    animation: none !important;
    transition: none !important;
  }
}
