/* gx.css — 3d-playable-homepage 基本設計体系
   DOM-first：生HTMLでは全文が表示状態。隠す（gx-locked）のは has-js が付いてから */

:root {
  --gx-bg: #14110C;
  --gx-ink: #EDE8DE;
  --gx-sub: #A89E8D;
  --gx-key: #D8BC8E;
  --gx-max: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* ★横スクロールを構造的に起こさせない。
   `.gx-stage` は `position: fixed; inset: 0` なので、**古典的なスクロールバーが出ている環境では
   スクロールバーの幅ぶんだけ本文より広くなる**。中のキャンバスは width:100% なので一緒に広がり、
   ページに横スクロールバーが出る（2026-08-31 実測：本文588px に対しキャンバス594px＝6px はみ出し）。
   ★これは `qa_play` では**構造的に見つけられない**——検品は `--hide-scrollbars` で走らせているので
   スクロールバーの幅が0になり、この差が生まれない。だから検査で拾うのではなく、CSSで塞ぐ。
   `hidden` ではなく `clip` を使う：`overflow-x: hidden` は html をスクロール容器にしてしまい、
   縦の進行（scrollY）を読んでいる gx-state が壊れる。`clip` は容器を作らない */
html { overflow-x: clip; }
body {
  background: var(--gx-bg);
  color: var(--gx-ink);
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  line-height: 1.9;
  word-break: auto-phrase;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; }

/* ---- 3D舞台（固定レイヤー） ---- */
.gx-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gx-stage canvas { display: block; width: 100%; height: 100%; }
.no-3d .gx-stage { display: none; }
/* WebGL不可のときの静的背景（縮退の絵） */
.no-3d body, .no-3d .gx-shell {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(201, 168, 124, .18), transparent 70%),
    var(--gx-bg);
}

/* ---- 本文シェル ---- */
.gx-shell { position: relative; z-index: 1; }
.gx-station {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 12svh 6vw;
}
.gx-station__inner { max-width: var(--gx-max); margin: 0 auto; width: 100%; }
.gx-meta { font-size: .78rem; letter-spacing: .14em; color: var(--gx-sub); }
.gx-station h2 { font-size: clamp(1.6rem, 4.2vw, 2.8rem); line-height: 1.5; margin: .4em 0; }
.gx-station p { max-width: 40em; }

/* ---- 画面に出す文字は「見出し＋一行」だけ（2026-08-10 内田FB） ----
   本文は窓（gx-modal）へ逃がす。ここが増えると、どれだけ絵を作っても画面が読み物に見える */
.gx-sub {
  font-size: clamp(.92rem, 1.9vw, 1.06rem);
  color: #DCD5C8; margin: .2em 0 1.4em;
  max-width: 26em;
}
/* 「くわしく」＝窓を開くだけの小さな導線。押すところ（ホットスポット）とは見た目を変える */
.gx-more {
  min-height: 44px; padding: 8px 0;
  border: 0; background: none; color: var(--gx-sub);
  font: inherit; font-size: .82rem; letter-spacing: .06em;
  text-decoration: underline; text-underline-offset: 5px; cursor: pointer;
}
.gx-more:hover, .gx-more:focus-visible { color: var(--gx-ink); }
/* 生HTML・no-3d・tour では窓を使わないので、この導線自体を出さない */
html:not(.has-3d) .gx-more, .is-tour .gx-more { display: none; }

/* 文字の背後に暗いベール（3Dの上でも読める。webgl-quality pitfalls §8） */
.has-3d .gx-station__inner {
  position: relative;
}
.has-3d .gx-station__inner::before {
  content: "";
  position: absolute; inset: -6% -8%;
  background: radial-gradient(80% 80% at 40% 50%, rgba(14, 12, 9, .62), transparent 75%);
  z-index: -1;
  border-radius: 24px;
}

/* ---- 解錠状態（JS起動後だけ有効。生HTMLでは全文可視） ---- */
.has-js .gx-locked {
  opacity: .14;
  filter: blur(2px) grayscale(.4);
  pointer-events: none;
  user-select: none;
  transition: opacity .8s ease, filter .8s ease;
}

/* ---- ホットスポット（DOM実体。ヒット44px以上） ---- */
.gx-hotspot {
  min-width: 44px; min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(201, 168, 124, .55);
  border-radius: 999px;
  background: rgba(201, 168, 124, .08);
  color: var(--gx-key);
  font: inherit; font-size: .92rem; letter-spacing: .08em;
  cursor: pointer;
}
.gx-hotspot:hover, .gx-hotspot:focus-visible { background: rgba(201, 168, 124, .2); }
.gx-hotspot.is-hint { animation: gx-pulse 1.2s ease-in-out infinite; }
@keyframes gx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, .45); }
  50%      { box-shadow: 0 0 0 12px rgba(201, 168, 124, 0); }
}

/* 印・窓・ロゴの色（このサイトの --gx-key に合わせる）。 夕方の琥珀（--gx-key #D8BC8E） */
:root {
  --gx-mk-rgb: 247, 236, 214;        /* 印の輪・線 */
  --gx-mk-hi-rgb: 255, 248, 232;     /* 触れたときの芯 */
  --gx-mk-dim-rgb: 201, 168, 124;   /* にじみ・窓の縁 */
  --gx-mk-ink: #FFF6E6;       /* 印のラベルの文字 */
  --gx-pad-rgb: 20, 17, 12;      /* ラベルの座布団 */
  --gx-pad2-rgb: 26, 20, 12;
  --gx-panel-rgb: 24, 20, 15;  /* 窓の地色 */
  --gx-sub-rgb: 168, 158, 141;
}

/* ============================================================
   押すところを3Dの物の上に出す（gx-marker.js が --mx/--my/--ms を書く）
   2026-08-10 内田「動作が非常に分かりづらい。押すとこはちゃんと分かりやすく示す」
   DOMは動かさない。position と transform だけで見える位置を移す
   ============================================================ */
.gx-hotspot.is-pinned {
  position: fixed; left: 0; top: 0; z-index: 20;
  margin: 0; padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transform: translate(-50%, -50%) translate(var(--mx, 50vw), var(--my, 50vh)) scale(var(--ms, 1));
  color: var(--gx-mk-ink);
  filter: drop-shadow(0 2px 10px rgba(var(--gx-pad-rgb), .9));
}
/* 輪。物の上に乗っている「印」に見せる。中心の点が的になる */
.gx-hotspot.is-pinned::before {
  content: "";
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(var(--gx-mk-rgb), .95);
  background:
    radial-gradient(circle, rgba(var(--gx-mk-rgb), .95) 0 3.5px, rgba(var(--gx-mk-rgb), 0) 4px),
    radial-gradient(circle, rgba(var(--gx-mk-dim-rgb), .30), rgba(var(--gx-mk-dim-rgb), .04) 72%);
  animation: gx-ring 2.1s cubic-bezier(.2, .7, .3, 1) infinite;
}
/* ラベルは暗い座布団に載せる。3Dの上に素の白文字を置くと、明るい面で消える。
   ボタン自身の文字は font-size:0 で伏せ、::after で出し直す
   （textContent は消さない＝読み上げと検品はそのまま通る） */
.gx-hotspot.is-pinned { font-size: 0; letter-spacing: 0; line-height: 1.2; }
.gx-hotspot.is-pinned::after {
  content: attr(data-label);
  font-size: .82rem; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(var(--gx-pad-rgb), .74);
  border: 1px solid rgba(var(--gx-mk-rgb), .28);
  white-space: nowrap;
}
/* ★浮いている印は「見えているところ」だけで押しを受ける。
   印の箱は 輪＋すきま＋札 の縦並びで、狭い画面では 124px にもなる。その箱ごと当たり判定に
   すると、透明なすきまが**本文に残っている別のボタン**のクリックを飲む。
   （2026-08-31 スマホ実測：hs-bottle の印(36,226)79x124 が、本文の hs-fridge(23,295)126x50 の
     中心を覆っていた。輪も札もそこには無く、見た目には何も重なっていない）
   ボタン本体を透過にし、輪と札だけで受ける。押しは元のボタンに届く（疑似要素の当たりは
   親の要素に返るため、tabindex も読み上げも変わらない） */
.gx-hotspot.is-pinned { pointer-events: none; }
.gx-hotspot.is-pinned::before,
.gx-hotspot.is-pinned::after { pointer-events: auto; }

.gx-hotspot.is-pinned:hover::before,
.gx-hotspot.is-pinned:focus-visible::before {
  background:
    radial-gradient(circle, rgba(var(--gx-mk-hi-rgb), 1) 0 5px, rgba(var(--gx-mk-rgb), 0) 5.5px),
    radial-gradient(circle, rgba(var(--gx-mk-dim-rgb), .55), rgba(var(--gx-mk-dim-rgb), .08) 72%);
  transform: scale(1.12);
}
.gx-hotspot.is-pinned:hover::after,
.gx-hotspot.is-pinned:focus-visible::after { background: rgba(var(--gx-pad2-rgb), .92); }
@keyframes gx-ring {
  0%   { box-shadow: 0 0 0 0 rgba(var(--gx-mk-rgb), .55); }
  70%  { box-shadow: 0 0 0 22px rgba(var(--gx-mk-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--gx-mk-rgb), 0); }
}
/* 見つけたあと。消さずに「済んだ印」として残す（どこを押したかが分かる） */
.gx-hotspot.is-pinned.is-found::before {
  border-color: rgba(var(--gx-mk-rgb), .55);
  background: radial-gradient(circle, rgba(var(--gx-mk-rgb), .55) 0 6px, rgba(var(--gx-mk-rgb), .05) 7px);
  animation: none;
}
.gx-hotspot.is-pinned.is-found { opacity: .5; }

/* なぞる課題（drag）だけは形を変える。丸い的では「横になぞる」が伝わらない。
   --q は tasks/drag.js が書く溜まり具合。指の動きが目に見えて返る */
.gx-hotspot.is-pinned[data-marker="drag"]::before {
  width: 190px; height: 52px; border-radius: 999px;
  border: 2px solid rgba(var(--gx-mk-rgb), .95);
  background:
    linear-gradient(90deg, rgba(var(--gx-mk-rgb), .55) calc(var(--q, 0) * 100%),
                            rgba(var(--gx-mk-dim-rgb), .10) calc(var(--q, 0) * 100%));
  animation: gx-swipe 1.8s ease-in-out infinite;
}
.gx-hotspot.is-pinned[data-marker="drag"]::after {
  content: "← " attr(data-label) " →";
  letter-spacing: .12em;
}
@keyframes gx-swipe {
  0%, 100% { box-shadow: inset 26px 0 26px -26px rgba(var(--gx-mk-hi-rgb), .9); }
  50%      { box-shadow: inset -26px 0 26px -26px rgba(var(--gx-mk-hi-rgb), .9); }
}

/* ============================================================
   文章の窓（gx-modal.js）。非modalなので背後は触れたまま
   ============================================================ */
.gx-modal {
  position: fixed; z-index: 60;
  inset: auto 3vw 12vh auto;          /* 右下寄り。画面中央の見せ場を隠さない */
  width: min(400px, 88vw);
  max-height: 62svh; overflow-y: auto;
  margin: 0; padding: 20px 22px 24px;
  border: 1px solid rgba(var(--gx-mk-dim-rgb), .34);
  border-radius: 16px;
  background: rgba(var(--gx-panel-rgb), .93);
  color: var(--gx-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
}
.gx-modal.is-in { opacity: 1; transform: none; }
.gx-modal::backdrop { background: none; }
.gx-modal__head { display: flex; align-items: flex-start; gap: 12px; }
.gx-modal__title {
  margin: 0; flex: 1;
  font-size: .82rem; letter-spacing: .14em; color: var(--gx-key);
}
.gx-modal__close {
  flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0;
  border: 0; background: none; color: var(--gx-sub);
  font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.gx-modal__close:hover { color: var(--gx-ink); }
.gx-modal__body p { margin: .5em 0 0; max-width: none; font-size: .95rem; }
/* 窓が出ているあいだは HUD の目標文を伏せる（窓の本文と二重に読ませない） */
html.gx-doc-open .gx-hud__objective { visibility: hidden; }

/* 狭い画面では、見出しを下へ寄せて上半分を3Dに明け渡す。
   真ん中にあると、物の上に出る印（gx-marker）と必ずぶつかる */
@media (max-width: 700px) {
  .has-3d .gx-station { align-items: flex-end; padding-bottom: 13svh; }
}

@media (max-width: 640px) {
  /* スマホは下から出す帯。右下カードのままだと親指の可動域から外れる */
  .gx-modal { inset: auto 0 0 0; width: auto; max-height: 46svh;
              border-radius: 16px 16px 0 0; border-width: 1px 0 0; }
  /* 帯が画面の下いっぱいに出るので、HUDごと伏せる（重なりを作らない） */
  html.gx-doc-open .gx-hud { opacity: 0; pointer-events: none; }
}

/* ============================================================
   ロゴ（左上・常設）。押すと全体像へ引く
   ============================================================ */
.gx-logo {
  position: fixed; top: 0; left: 0; z-index: 35;
  display: flex; align-items: center; gap: 11px;
  margin: 0; padding: 16px 22px;
  border: 0; background: none; color: var(--gx-ink);
  font: inherit; cursor: pointer;
  text-align: left;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .85));
}
.gx-logo__mark { width: 38px; height: 38px; flex: none; overflow: visible; }
.gx-logo__sun { fill: var(--gx-key); }
/* 屋根の2枚は、触れると外へ滑る＝「押すと開く／引く」の予告 */
.gx-logo__roof-l, .gx-logo__roof-r { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.gx-logo:hover .gx-logo__roof-l, .gx-logo:focus-visible .gx-logo__roof-l { transform: translateX(-2.6px); }
.gx-logo:hover .gx-logo__roof-r, .gx-logo:focus-visible .gx-logo__roof-r { transform: translateX(2.6px); }
.gx-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.gx-logo__name { font-size: .96rem; letter-spacing: .08em; }
.gx-logo__sub {
  font-size: .58rem; letter-spacing: .34em; color: var(--gx-key);
  margin-top: 3px;
}
/* 全体像を見ている間だけ、戻り方をロゴ自身に添える */
html.is-overview .gx-logo::after {
  content: "もう一度押すと戻ります";
  font-size: .68rem; letter-spacing: .1em; color: var(--gx-sub);
  padding-left: 12px; border-left: 1px solid rgba(var(--gx-sub-rgb), .35);
}
html.is-overview .gx-logo__roof-l { transform: translateX(-2.6px); }
html.is-overview .gx-logo__roof-r { transform: translateX(2.6px); }
.no-3d .gx-logo, html.is-tour .gx-logo { position: absolute; }

/* 全体像を見ている間は、画面の文字と印をぜんぶ伏せる（絵だけにする） */
html.is-overview .gx-shell,
html.is-overview .gx-hud,
html.is-overview .gx-modal { opacity: 0; pointer-events: none; }
html.is-overview .gx-hotspot.is-pinned { opacity: 0; pointer-events: none; }

/* 窓（gx-modal）で開くためだけの文章置き場。画面には出さないがDOMには在る。
   ★ただし窓が使えない経路（見るだけモード・WebGL不可の静的表示）では**普通に出す**。
     ここを隠しっぱなしにすると、三段縮退の下2段で長い文章が読めなくなる */
.has-js .gx-docs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.is-tour .gx-docs, .no-3d .gx-docs {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none;
  max-width: var(--gx-max); margin: 0 auto; padding: 8svh 6vw;
}
.is-tour .gx-docs h2, .no-3d .gx-docs h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); margin: 1.6em 0 .4em; }

/* ---- PLAYゲート ---- */
.gx-gate {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  background: var(--gx-bg);
  transition: opacity .9s ease;
}
.gx-gate.is-gone { opacity: 0; pointer-events: none; }

/* 幕の背景に世界観の絵を敷く。3Dは押したあとに後載せするので、
   何もしないと「最初の1画面が真っ黒」になる（採点①＝PLAYが触りたくなる絵か）。
   絵は承認済みのコンセプト画（worldview-intake §5）。上下を暗く落として文字を守る */
/* 案件ごとに、承認済みのコンセプト画をここへ差す（無いと最初の1画面が真っ黒になる）。
   例：background: url("../img/gate.webp") center/cover no-repeat; */
.gx-gate::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, #231E17, #14110C 78%);
}
.gx-gate::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 42%, rgba(18,15,11,.20), rgba(18,15,11,.82) 78%);
}
.gx-gate__title { font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin: 0; }
.gx-gate__enter {
  min-width: 44px; min-height: 44px;
  padding: 14px 44px;
  border: 1px solid var(--gx-key); border-radius: 999px;
  background: transparent; color: var(--gx-key);
  font: inherit; font-size: 1rem; letter-spacing: .2em;
  cursor: pointer;
}
.gx-gate__enter:hover { background: rgba(201, 168, 124, .14); }
/* PLAYを押させない（2026-08-10 内田「プレイをおさずに始まるようにしてください」）。
   幕は「押す場所」ではなく「支度が終わるまでの間」になったので、進んでいることだけ示す */
.gx-gate__wait {
  width: min(200px, 44vw); height: 2px; margin: 0;
  background: rgba(201, 168, 124, .18); overflow: hidden; border-radius: 2px;
}
.gx-gate__wait::after {
  content: ""; display: block; width: 42%; height: 100%;
  background: var(--gx-key);
  animation: gx-wait 1.5s ease-in-out infinite;
}
@keyframes gx-wait {
  0%   { transform: translateX(-105%); }
  100% { transform: translateX(240%); }
}
.gx-gate__tour { background: none; border: none; color: var(--gx-sub); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; }
.no-3d .gx-gate { display: none; }
html.is-locked { overflow: hidden; }
.no-3d.is-locked, html.no-3d { overflow: auto; }

/* ---- HUD（v0.5 で配線。マークアップだけ先に置く） ---- */
.gx-hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  pointer-events: none;
  font-size: .8rem; color: var(--gx-sub);
}
.gx-hud > * { pointer-events: auto; }
.gx-hud__dots { display: flex; gap: 8px; }
.gx-hud__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(168, 158, 141, .4); border: 0; padding: 0; cursor: pointer; }
.gx-hud__dot.is-cleared { background: var(--gx-key); }
.gx-hud__dot.is-active { outline: 2px solid rgba(201, 168, 124, .6); outline-offset: 2px; }
.gx-hud__right { display: flex; gap: 14px; align-items: center; }
.gx-hud__skip {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid rgba(201, 168, 124, .5); border-radius: 999px;
  background: rgba(20, 17, 12, .7); color: var(--gx-key);
  font: inherit; font-size: .82rem; cursor: pointer;
}
.no-3d .gx-hud { display: none; }

/* ---- ステルス課題（3D側が本体の操作。ボタンはDOM-first・a11y・QAの裏経路） ----
   生HTML／no-3d／tour では普通に見える。3Dが立ったときだけ視覚的に隠す。
   Tabフォーカスで現れる（キーボード操作は生きている） */
.has-3d:not(.is-tour) .gx-stealth .gx-hotspot {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
  min-width: 0; min-height: 0; padding: 0;
}
.has-3d:not(.is-tour) .gx-stealth .gx-hotspot:focus-visible {
  position: static; width: auto; height: auto;
  clip-path: none; opacity: 1; pointer-events: auto;
  min-width: 44px; min-height: 44px; padding: 10px 22px;
}
.gx-actions { position: relative; }

/* ---- 見つけると開く語り（data-reveals の開き先。生HTMLでは表示状態） ---- */
.has-js .gx-secret {
  display: none;
}
.has-js .gx-secret.is-open {
  display: block;
  animation: gx-open .9s ease both;
}
.no-3d .gx-secret, .is-tour .gx-secret { display: block !important; }
@keyframes gx-open {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 課題の状態 ---- */
.gx-hotspot.is-found, .gx-hotspot.is-chosen {
  background: rgba(201, 168, 124, .3);
  color: #FFF4E2;
  border-color: var(--gx-key);
  animation: none;
}
.gx-hotspot:disabled { cursor: default; opacity: .85; }

/* ---- tour（見るだけモード）：全解錠のスクロール文書 ---- */
.is-tour .gx-locked {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
}
.is-tour .gx-hud__skip { display: none; }
/* tour では課題UI（目標文）も消す。固定表示のまま本文の上を流れると読みを妨げる */
.is-tour .gx-hud__objective { display: none; }

/* ---- フッター ---- */
.gx-footer { position: relative; z-index: 1; padding: 10svh 6vw; border-top: 1px solid rgba(168, 158, 141, .2); }

/* ---- reduced-motion：最終状態に固定（「何も表示されない」を防ぐ） ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .gx-locked { opacity: 1 !important; filter: none !important; pointer-events: auto !important; }
  .gx-secret { display: block !important; }
  .gx-gate { display: none !important; }
  html.is-locked { overflow: auto !important; }
}

/* 扉が開ききったところで出す一行（第二声）。ワールドが gx:dooropen を投げたときだけ現れる。
   使うサイトは <p class="gx-openline" data-gx-openline aria-hidden="true">…</p> を body に置く */
.gx-openline {
  position: fixed; inset: 0; z-index: 6; margin: 0;
  display: grid; place-items: center; text-align: center;
  pointer-events: none; opacity: 0;
  /* 消えている間は visibility も伏せる。透明なだけだと、検品の文字重なり検査から見て
     「画面いっぱいの見えている文字」のままになり、全部と重なっていると判定される */
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
  color: var(--gx-ink, #EFE4D2);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem); letter-spacing: .12em; line-height: 1.7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .92), 0 0 44px rgba(0, 0, 0, .8);
}
.gx-openline.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease .15s, visibility 0s; }
.no-3d .gx-openline, html.is-tour .gx-openline { display: none; }
/* **効き時間は素の側に書く。** is-intro の中だけに transition を書くと、クラスを外した瞬間に
   transition ごと消えて**パッと出る**（＝ふわっとしない）。実際そうなっていた */
.gx-map, .gx-fab, .gx-hud, .gx-shell { transition: opacity 1.4s ease; }
html.is-intro .gx-map,
html.is-intro .gx-fab,
html.is-intro .gx-hud,
html.is-intro .gx-shell { opacity: 0; pointer-events: none; }

/* 狭い画面で、印の札が画面幅を超えたときに文字を切らない
   （2026-08-10 スマホ検品：「フィールドが見える湯」の「場」が右端で欠けていた）。
   nowrap のままだと、中央に寄せてもなお左右がはみ出す */
@media (max-width: 700px) {
  .gx-hotspot.is-pinned::after {
    white-space: normal; max-width: 64vw; text-align: center; line-height: 1.35;
  }
}
