/* =========================================================================
   館 — 土台
   -------------------------------------------------------------------------
   値・下ごしらえ・文字。空間そのものは world.css、画面の上に乗るものは ui.css。

   色は既存の実績画像（暗いコンクリートと光）から取っている。
   画像が主役なので、地の色は画像より必ず暗くする。
   ========================================================================= */

:root {
  /* 地。奥へ行くほど void に沈む。 */
  --void:    #08090b;
  --coal:    #101215;
  --stone:   #191c20;
  --stone-2: #23272c;
  --stone-3: #30353b;

  /* 文字。真っ白は使わない。 */
  --chalk: #ece9e3;
  --ash:   #9ba1a8;
  --dim:   #616970;
  --faint: #3a4047;

  /* 灯り。ここぞの一色だけ。現在地・数字・押せるもの。 */
  --amber:      #e2892c;
  --amber-lit:  #f5b463;
  --amber-glow: rgba(226, 137, 44, .38);

  --jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --en: 'Oswald', 'Inter', sans-serif;      /* 標識・部屋名 */
  --num: 'Inter', 'Helvetica Neue', sans-serif;

  --ease:  cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* 館の寸法。world.js と共有する唯一の場所。 */
  --hall-half: 340px;     /* 廊下の半幅 */
  --floor-y:   260px;     /* 床の高さ（Yは下が正） */
  --ceil-y:   -360px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--void);
  color: var(--chalk);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: 'palt' 1;
  -webkit-font-smoothing: antialiased;
}
body { touch-action: none; }

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--void); }

/* -------------------------------------------------------------------------
   文字
   ------------------------------------------------------------------------- */

/* 標識。部屋の上に掲げるもの、HUD の小さいラベル。 */
.sign {
  font-family: var(--en);
  font-weight: 300;
  letter-spacing: .34em;
  text-transform: uppercase;
  line-height: 1;
}
.sign--tight { letter-spacing: .18em; font-weight: 500; }

/* 数字。この館でいちばん強い要素。 */
.fig {
  font-family: var(--num);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: .86;
}
/* 単位は数字から切り離し、級数を落として添える。数字が主役のまま残る。 */
.fig__unit {
  font-family: var(--jp);
  font-weight: 500;
  font-size: .3em;
  letter-spacing: 0;
  margin-left: .12em;
  color: var(--ash);
}
/* 矢印は薄くしない。サイズだけ落とす。明るい画の上でも消えないように。 */
.fig__arrow {
  font-family: var(--num);
  font-weight: 400;
  font-size: .42em;
  color: var(--ash);
  margin: 0 .34em;
}

.txt-jp   { font-family: var(--jp); }
.txt-dim  { color: var(--ash); }
.txt-lead { font-size: 15px; line-height: 2.05; color: var(--ash); }

/* -------------------------------------------------------------------------
   押せるもの
   ------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--chalk);
  border: 1px solid rgba(236, 233, 227, .22);
  background: rgba(16, 18, 21, .82);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.btn:hover { border-color: var(--amber); color: var(--amber-lit); }
.btn:active { transform: translateY(1px); }
.btn--jp { font-family: var(--jp); letter-spacing: .08em; text-transform: none; font-size: 13px; }
.btn--ghost { background: none; }

/* -------------------------------------------------------------------------
   支援技術と検索エンジン向けの素のテキスト
   -------------------------------------------------------------------------
   3D の空間は読み上げにも巡回にも読めない。同じ内容の平文を必ず置く。
   ここを消さないこと。
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 14px; left: 14px;
  width: auto; height: auto;
  padding: 12px 18px;
  clip-path: none;
  white-space: normal;
  background: var(--coal);
  border: 1px solid var(--amber);
  z-index: 999;
}

/* 動きを減らす設定を尊重する。
   歩く動きそのものは中身なので残す。放っておいても勝手に動き続けるもの
   （矢印の上下、見取り図の波紋）だけを止める。 */
@media (prefers-reduced-motion: reduce) {
  #hint .bob, #map .you-ring { animation: none !important; }
}
