@charset "UTF-8";
/* =====================================================================
   site.css — MF2 系・素HTML テンプレート（bar303 向けに配色・ヒーロー・ルートを追加）

   この案件のコンセプトの1文（site.config.json の concept.sentence）:
     店名の 303 を「スロットのリールが揃う瞬間」として描く。スクロールはリールを回して
     左から 3・0・3 と止める動詞で、揃うと四角い窓が開いて本編に入り、その先は流川の通りから
     2階のドアまで1本の線が途切れずに続く。ヒーローに置くのは数字と四角だけ。
     角丸・発光・写真・飾り文字は置かず、線は分岐させない。
   配色（施主決定）: 地 #0B0B0B / ピンク #FF3D9A / ターコイズ #00E5D1 / 文字 #F5F5F5。
     ピンク地・ターコイズ地の上の文字は必ず --ink（#0B0B0B）。黄・生成りは使わない。
   色の割合（施主の追加指示）: 黒7：ピンク2：ターコイズ1。黒が地の主役。
     ピンクの面は1ページ 1〜2 か所（終点のドア・下層の見出しの語）で、ほかは線・札・枠・数字だけ。
     ターコイズの面は1ページ 1 か所（Instagram）まで、ほかは小さな札・下線・ホバーだけ。
     最初の画面（ヒーロー）は回っている間ピンクもターコイズも出さない。

   設計の前提（docs/hp-view.md）:
     §1  黒基調 / Grid / 細いライン / HUD / Section Number / 巨大タイポグラフィ
     §20 禁止: SaaSテンプレート風・カードUI大量配置・3カラム大量配置・border-radius乱用・
               Glassmorphism乱用・Gradient乱用・青紫のAIテンプレ配色・意味のない発光・
               アイコン大量配置・CTA乱造・Tailwindテンプレート感
     §43 セクション間で一度黒画面へ戻さない（背景は常に同じ映像レイヤー）

   したがってここでは：角丸を一切使わない / 影を使わない / 彩度のある色を持たない /
   区切りは 1px の罫線だけ / 面ではなく余白と線で構造を作る。
   文字の可読性は全面暗転ではなく局所スクリムで確保する。

   色・イージング・移動量は <html style="--bg:…"> として build が焼き込む。
   ここにある値はその変数が無かったときのフォールバック。
   ===================================================================== */

:root {
  --bg: #0B0B0B;
  --fg: #f5f5f5;
  --muted: #bdbdbd;
  --line: rgba(245, 245, 245, 0.2);
  --accent: #ff3d9a;
  --accent-2: #00e5d1;
  --ink: #0B0B0B;
  /* 写真の仮枠の地（地色よりわずかに明るい黒。黒系に数える） */
  --panel: #181818;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-dur: 820ms;
  --reveal-y: 20px;
  --fade-dur: 260ms;
  --dim: 0.42;

  --gut: clamp(1.25rem, 5vw, 6rem);
  /* 上部バーの高さ（ロゴ 44px ＋ 上下の余白 0.95rem×2 ＋ 安全領域）。
     札・見出しをこの下に置き、アンカー移動もこのぶんずらす */
  --head-h: calc(44px + 1.9rem + env(safe-area-inset-top, 0px));
  --bar-h: 3.25rem;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  /* 数字と大見出しの表示用。外部フォントは読まない（Phase 1 は外部リクエストゼロ）ので、
     各 OS の太いシステム書体（SF Pro / Helvetica Neue / Arial Black）を weight 900 で使う */
  --display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial Black", Arial, "Hiragino Sans", sans-serif;
}

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

html {
  scroll-padding-top: var(--head-h);
  background: var(--bg);
  color: var(--fg);
  /* 巨大タイポが画面外へはみ出しても横スクロールを起こさない。
     clip は hidden と違いスクロールコンテナを作らないので position:sticky を壊さない。 */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: transparent;
  font-family: var(--sans);
  /* スマホの本文下限 15.5px（仕様書 §6-3）。読みにくさを文字を小さくして解決しない。 */
  font-size: clamp(15.5px, 0.42vw + 14.2px, 17px);
  line-height: 1.95;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p, figure, address { margin: 0; }
address { font-style: normal; }

/* 割ってはいけない語を包む（jp-nowrap。build が生成時に焼き込む。
   display: inline-block は行頭禁則が壊れるので付けない） */
.jp-nb { white-space: nowrap; }

/* 明示改行（仕様書 §6-2）。テキストは1本だけ持ち、出し分けはここで行う。 */
.br-sp { display: none; }
.br-pc { display: inline; }

.skip {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.85rem;
}
.skip:focus { left: 0; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ====================== 1. 背景レイヤー ====================== */
/* 全ページを1本の映像が貫通する。疑似SPA遷移でもこの要素は破棄しない。 */

.seq {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg) center / cover no-repeat;
  pointer-events: none;
}
.seq__dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dim);
  transition: opacity 1.1s var(--ease);
}

/* 常設の格子とスクリムは置かない（背景映像が無く、地は #0B0B0B の単色。
   視覚の主役はヒーローのスロットと、ピンク・ターコイズの面だけに置く）。 */

/* 疑似SPA遷移の暗転幕 */
.fade {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--fade-dur) var(--ease), visibility 0s linear var(--fade-dur);
}
.is-leaving .fade {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--fade-dur) var(--ease);
}

/* ====================== 2. HUD（四隅のバー） ====================== */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gut);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

/* 上部バーは黒の帯（ヒーロー中も本編中も常に黒）。帯そのものがクリックを受け、下の本文へ抜けない */
.bar--top {
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
  pointer-events: auto;
  padding-top: calc(0.95rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.95rem;
}

/* HUD の文字はすべて --ink の四角い札に載せる。ヒーローのピンク／ターコイズの面の上でも、
   #0B0B0B の地の上でも同じ見え方で読める（白文字をピンク地に直接置かない）。 */
.bar__brand {
  display: block;
  width: 44px;
  height: 44px;
  line-height: 0;
  text-decoration: none;
  background: var(--ink);
}
.bar__logo { width: 44px; height: 44px; }
.bar__clock { color: var(--muted); font-variant-numeric: tabular-nums; }

/* プリセットごとの HUD 密度（仕様書 §4）。
   ブランドと MENU はナビゲーションなので常に出す。消すのは装飾表示だけ。 */
html[data-hud="simple"] .bar__clock { display: none; }

/* ---- MENU（details なので JS 無効でも開閉する） ---- */
.menu { position: relative; }
/* ハンバーガー（3本線）。開いている間は × になる。押せる範囲は 44px 四方 */
.menu__btn {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--fg);
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__icon,
.menu__icon::before,
.menu__icon::after {
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu__icon { left: 9px; top: 21px; }
.menu__icon::before { content: ""; top: -8px; }
.menu__icon::after { content: ""; top: 8px; }
/* 開いている間は、全画面のパネルより手前に出して × で閉じられるようにする */
.menu[open] .menu__btn { z-index: 51; }
.menu[open] .menu__icon { background-color: transparent; }
.menu[open] .menu__icon::before { transform: translateY(8px) rotate(45deg); background: var(--accent); }
.menu[open] .menu__icon::after { transform: translateY(-8px) rotate(-45deg); background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .menu__icon, .menu__icon::before, .menu__icon::after { transition: none; }
}

/* 303 が揃うまでのスクロールの一時停止（site.js が付け外しする） */
html.is-held, html.is-held body { overflow: hidden; }
html.is-held { scrollbar-gutter: stable; }
html.is-held body { touch-action: none; }

.menu__panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: calc(5rem + env(safe-area-inset-top, 0px)) var(--gut)
    calc(5rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  overflow-y: auto;
}
.menu__list { border-top: 1px solid var(--line); }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(0.9rem, 2.4vh, 1.5rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.menu__nav {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.menu__ja {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: none;
}
.menu__link[aria-current="page"] .menu__nav { color: var(--accent); }
.menu__link[aria-current="page"]::before { content: "—"; color: var(--muted); }
.menu__mail { margin-top: 2rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; }

/* ====================== 3. 本文の器 ====================== */

.main {
  position: relative;
  z-index: 1;
  display: block;
}
.main:focus { outline: none; }

.sec {
  position: relative;
  padding: clamp(5rem, 13vh, 9rem) var(--gut);
  overflow-x: clip;
}
.sec--masthead {
  /* 上部バーと流川の札の下から始める（低い横向きでも札と見出しが重ならない） */
  padding-top: max(calc(clamp(7rem, 20vh, 11rem) + env(safe-area-inset-top, 0px)), calc(var(--head-h) + 4.4rem));
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.sec--masthead > .sec__inner { width: 100%; }

.sec__inner {
  max-width: 1180px;
  margin-inline: auto;
}

.sec__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.sec__num { color: var(--accent); font-variant-numeric: tabular-nums; }
.sec__label { color: var(--muted); }
.sec__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sec__title {
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-wrap: balance;
  margin-bottom: clamp(1.8rem, 4vh, 3rem);
}

/* ---- 巨大タイポグラフィ（hp-view.md §18） ---- */
.giant {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.giant__row {
  display: block;
  white-space: nowrap;
  font-size: clamp(3rem, 15vw, 11rem);
}
html[data-typo="subtle"] .giant__row { font-size: clamp(2.6rem, 12vw, 8rem); }

/* ---- masthead ---- */
.masthead__lead {
  margin-top: clamp(1.2rem, 3vh, 2rem);
  max-width: 44rem;
  color: var(--muted);
}

.masthead__title {
  font-size: clamp(1.6rem, 4.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

/* ---- statement ---- */
.statement__title {
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-wrap: balance;
  padding-bottom: clamp(1.4rem, 3vh, 2.2rem);
  border-bottom: 1px solid var(--line);
}
/* 見出しの文を置かない statement（トップの COMPANY）。数字の面とリンクだけで詰める */
.numface + .more { margin-top: 0; }
.statement__body {
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
  max-width: 46rem;
  color: var(--muted);
}

/* ---- 一覧（カードにしない。罫線で区切った行） ---- */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__link { text-decoration: none; }
.row__inner {
  display: grid;
  grid-template-columns: 3.25rem 1fr 1.75rem;
  align-items: start;
  gap: 0 clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(1.4rem, 3.4vh, 2.1rem) 0;
  transition: background-color 420ms var(--ease);
}
.row__link:hover { background-color: rgba(242, 243, 245, 0.035); }
.row__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 0.55em;
}
.row__body { display: block; }
.row__title {
  display: block;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.row__text { display: block; margin-top: 0.6rem; color: var(--muted); }
.row__go { font-family: var(--mono); color: var(--muted); padding-top: 0.4em; justify-self: end; }
.row__link:hover .row__go { color: var(--fg); }

.more { margin-top: clamp(1.6rem, 4vh, 2.4rem); }
.more__link,
.linkline {
  text-decoration: none;
  /* 下線はターコイズ（ターコイズは面1か所と、こうした小さな要素だけに使う） */
  border-bottom: 2px solid var(--accent-2);
  padding-bottom: 0.2rem;
  transition: border-color 320ms var(--ease);
}
.more__link span,
.linkline span { margin-left: 0.6em; font-family: var(--mono); }
.more__link:hover,
.linkline:hover { border-bottom-color: var(--accent); }

.note {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  max-width: 46rem;
  font-size: 0.92em;
  color: var(--muted);
}

/* ---- 会社概要・FAQ（白いカードにしない。罫線の定義リスト） ---- */
.spec { border-top: 1px solid var(--line); max-width: 56rem; }
.spec__row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0 clamp(0.75rem, 2vw, 2rem);
  padding: clamp(1rem, 2.4vh, 1.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.spec__key {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 0.5em;
}
.spec__val { word-break: normal; overflow-wrap: anywhere; }

/* ---- access ---- */
.access { max-width: 46rem; }
.access__zip { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; color: var(--muted); }
.access__addr { margin-top: 0.4rem; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: 0.05em; }
.access__note { margin-top: 1.1rem; color: var(--muted); font-size: 0.92em; }
.access__map { margin-top: clamp(1.4rem, 3.5vh, 2.2rem); }

/* ====================== 3-2. ヒーロー — スロットのリール ====================== */
/* 置くのは数字と四角だけ（コンセプトの1文の制約）。
   中央の窓のまわりを4枚の面（上下左右）が囲み、左右の窓は左右の面に載っている。

   黒基調。面も窓も #0B0B0B、数字は白系、窓の枠は回っているあいだ白系。
   303 が揃って、ワンクッション置いてから（site.js の SLOT.fx）だけ、控えめに色が出る:
     窓の枠がピンクに変わる / 数字の下に ピンク｜ターコイズ の短い帯が伸びる /
     窓の列の下をターコイズの細い線が一度だけ走る。画面を塗りつぶさない。発光・グラデーションなし。

   既定（このファイルだけが効いている状態）は「303 が揃って効果が出たあとの静止状態」:
     高さ 100svh・黒地・窓の枠はピンク・数字は白系・2色の帯あり。生成時に帯の位置も 3・0・3 で焼いてある。
     JS 無効・site.js の読み込み失敗（onerror で slot-on を外す）・3 秒のフェイルセーフ
     （has-js が外れる）・prefers-reduced-motion のどれでもこの状態になる。

   動く状態は html.has-js.slot-on のときだけ（下の @media の中）:
     高さ 320svh（内側 100svh を sticky で貼る）＝ 220svh ぶんのスクロールで進行度 0 → 1。
     下へ -100svh 食い込ませ、最後の 100svh のあいだ次のセクション（店内写真）が
     ヒーローの真下に来るようにする。窓が開くと、その店内写真がそのまま見える。
     動きはすべて site.js が進行度の関数として transform / opacity に書く。 */

/* .sec.sec--slot と2クラスにしているのは、下のレスポンシブの .sec { padding-block } に負けないため
   （負けるとスマホで貼り付く面が padding ぶん下にずれ、上端に地色の帯が出る） */
.sec.sec--slot {
  position: relative;
  z-index: 3;
  padding: 0;
  height: 100vh;
  height: 100svh;
}
.sec--slot > .sec__inner {
  position: sticky;
  top: 0;
  max-width: none;
  margin: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* 中の変化（数字・枠の色・面の移動）を、ページのほかの部分のレイアウト・描画の計算に波及させない */
  contain: layout paint style;
}
.slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 窓の一辺。スマホ縦（320〜430px）は幅で、PC は高さで決まる。上限 300px で間延びさせない */
  --s: min(27vw, 34vh, 300px);
  --gap: min(4vw, 40px);
  --b: clamp(4px, 1vw, 8px);
  /* 面と窓の地は黒。窓の枠の色（--wb）は既定＝効果のあと（ピンク）。回っているあいだは下の @media で白系にする */
  --field: var(--bg);
  --win: var(--bg);
  --wb: var(--accent);
}
@supports (height: 1svh) {
  .slot { --s: min(27vw, 34svh, 300px); }
}
.slot__pane {
  position: absolute;
  display: block;
  background: var(--field);
}
/* 面は窓の内側へ 1px 食い込ませる（継ぎ目に下の本編が髪の毛1本ぶん透けないように）。
   食い込んだ部分は、後から描く窓が覆う */
.slot__pane--t { left: -10%; right: -10%; top: -10%; bottom: calc(50% + var(--s) / 2 - 1px); }
.slot__pane--b { left: -10%; right: -10%; top: calc(50% + var(--s) / 2 - 1px); bottom: -10%; }
.slot__pane--l { top: -10%; bottom: -10%; left: -10%; right: calc(50% + var(--s) / 2 - 1px); }
.slot__pane--r { top: -10%; bottom: -10%; left: calc(50% + var(--s) / 2 - 1px); right: -10%; }

.slot__win {
  position: absolute;
  display: block;
  width: var(--s);
  height: var(--s);
  background: var(--win);
  border: var(--b) solid var(--wb);
  overflow: hidden;
}
.slot__win--m { left: calc(50% - var(--s) / 2); top: calc(50% - var(--s) / 2); }
.slot__win--l { right: calc(var(--gap) - 1px); top: 50%; margin-top: calc(var(--s) / -2); }
.slot__win--r { left: calc(var(--gap) - 1px); top: 50%; margin-top: calc(var(--s) / -2); }

/* リールの帯。0〜9 と、もう1つの 0（9 → 0 の繋ぎ）の 11 コマ。
   1 コマの高さ＝窓の内寸なので、整数コマ送りで数字は必ず窓の中央にぴったり合う */
.slot__strip {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 1100%;
  will-change: transform;
}
.slot__digit {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% / 11);
  font-family: var(--display);
  font-weight: 900;
  font-size: calc(var(--s) * 0.72);
  line-height: 1;
  letter-spacing: 0;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 中央の窓の枠。静止時は窓の枠線とぴったり重なっていて見分けがつかない。
   窓が開くとき、この4本が上下左右の面の縁に付いたまま画面の外まで広がる（四角の枠が広がる） */
.slot__rim {
  position: absolute;
  display: block;
  background: var(--wb);
}
.slot__rim--t { left: calc(50% - var(--s) / 2); top: calc(50% - var(--s) / 2); width: var(--s); height: var(--b); }
.slot__rim--b { left: calc(50% - var(--s) / 2); top: calc(50% + var(--s) / 2 - var(--b)); width: var(--s); height: var(--b); }
.slot__rim--l { left: calc(50% - var(--s) / 2); top: calc(50% - var(--s) / 2); width: var(--b); height: var(--s); }
.slot__rim--r { left: calc(50% + var(--s) / 2 - var(--b)); top: calc(50% - var(--s) / 2); width: var(--b); height: var(--s); }

/* 数字の下の短い帯（ピンク｜ターコイズ）。既定（静止）は出ている。動く状態では site.js が
   scaleX(0 → 1) を効果の進行度で書く */
.slot__bar {
  position: absolute;
  left: 30%;
  bottom: 9%;
  display: flex;
  width: 40%;
  height: max(4px, calc(var(--s) * 0.045));
  transform-origin: 0 50%;
}
.slot__bar-a { flex: 2; background: var(--accent); }
.slot__bar-b { flex: 1; background: var(--accent-2); }

/* 揃ったあと、窓の列の下を一度だけ走るターコイズの細い線。静止状態では出さない */
.slot__sweep {
  position: absolute;
  left: 0;
  top: calc(50% + var(--s) / 2 + clamp(14px, 3vh, 28px));
  display: block;
  width: 34%;
  height: 3px;
  background: var(--accent-2);
  opacity: 0;
}

/* スクロールを促す小さな合図（文字は最小限）。N& の入口のような細い枠の札 */
.slot__cue {
  position: absolute;
  left: 50%;
  bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: block;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(245, 245, 245, 0.6);
  background: var(--ink);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  line-height: 1;
  white-space: nowrap;
}
.slot__cue::after { content: " \2193"; }

@media (prefers-reduced-motion: no-preference) {
  /* 貼り付け面（.sec__inner）は最大の表示領域（100lvh。iPhone Safari でアドレスバーが縮んだ高さ）まで
     届かせ、そのぶん区間も伸ばす。区間の長さ（セクション高 − 面の高さ）は 220svh のまま変わらない。
     下へ -100lvh 食い込ませるので、次のセクションは面が離れる瞬間（p = 1）にちょうど画面の上端に来る。
     以前は面が 100svh で、アドレスバーが縮むと面の下（svh〜lvh の帯）から潜り込んだ本編が見えていた。
     3つの四角は .slot（高さ 100svh・上端ぞろえ）の中で中央に置く＝いま見えている領域の中央付近。
     svh / lvh を持たない環境は vh に落ちる（その環境では表示領域の高さが変わらない） */
  html.has-js.slot-on .sec--slot {
    height: 320vh;
    height: calc(220svh + 100lvh);
    margin-bottom: -100vh;
    margin-bottom: -100lvh;
  }
  html.has-js.slot-on .sec--slot > .sec__inner {
    height: 100vh;
    height: 100lvh;
  }
  html.has-js.slot-on .slot {
    bottom: auto;
    height: 100vh;
    height: 100svh;
  }
  /* 下・左・右の面は .slot（svh）の下端より下まで伸ばし、lvh の帯も覆う */
  html.has-js.slot-on .slot__pane--b,
  html.has-js.slot-on .slot__pane--l,
  html.has-js.slot-on .slot__pane--r { bottom: -100%; }
  /* 左右の面は上 -10%・下 -100% で高さが .slot の 2.1 倍になる。左右の窓の中心を .slot の中央
     （面の上端から 0.6 倍 = 面の高さの 0.6 / 2.1 = 28.5714%）に保つ */
  html.has-js.slot-on .slot__win--l,
  html.has-js.slot-on .slot__win--r { top: 28.5714%; }
  /* 回っているあいだと、揃ってからワンクッションのあいだ: 窓の枠は白系。
     効果の区間に入ると（.is-fx。進行度で付け外し）ピンクになる。帯は site.js が伸ばす */
  html.has-js.slot-on .slot:not(.is-fx) { --wb: var(--fg); }
  html.has-js.slot-on .slot__bar { transform: scaleX(0); }
  html.has-js.slot-on .slot__pane,
  html.has-js.slot-on .slot__rim,
  html.has-js.slot-on .slot__win--m { will-change: transform, opacity; }
  /* 初期の数字（ページ読み込み時に1回決める）を入れるまで帯を見せない。
     生成時の 303 が一瞬出てから別の数字に変わる、のを防ぐ */
  html.has-js.slot-on:not(.slot-ready) .slot__strip { visibility: hidden; }
}

/* 見出し（h1）は読み上げと検索のためだけに置き、画面には出さない（ヒーローは数字と四角だけ） */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ====================== 3-3. 店までのルート（1本の線） ====================== */
/* 流川の札（.route-start）から、セクションの境目（[data-stop]）で直角に折れながら、
   2F のドア（[data-door]）まで1本の線が伸びる。縦の区間は左右の余白、横の区間は
   セクション上端の余白だけを通るので、本文の文字には重ならない。
   path の形と描き進め（stroke-dashoffset）は site.js が実寸とスクロール量から決める。
   太さは一定・分岐なし・線以外の装飾なし。 */
.route {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
html.route-on .route { display: block; }
.route__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

/* JS が無い（線を引けない）ときの代替。ルート上のセクションの左の余白に、途切れない縦線を1本 */
html:not(.route-on) .sec[data-route]::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(max(var(--gut), 50% - 590px) / 2 - 2px);
  width: 4px;
  background: var(--accent);
}

/* 始点の札。札の右端から線が出る */
.route-start {
  position: absolute;
  z-index: 2;
  left: max(var(--gut), calc(50% - 590px));
  top: calc(var(--head-h) + 0.9rem);
  display: block;
  padding: 0.4rem 0.75rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

/* ====================== 3-4. 2F のドア（ルートの終点・唯一の CTA） ====================== */
.door__wrap { margin-top: clamp(2rem, 6vh, 3.5rem); }
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 終点のドアはピンクの面として大きくはっきり出す（1ページ 1〜2 か所のピンクの面の1つ） */
  width: min(100%, 34rem);
  aspect-ratio: 5 / 7;
  padding: 1.1rem 1.2rem 1.3rem;
  background: var(--accent);
  color: var(--ink);
  border: clamp(4px, 1vw, 8px) solid var(--ink);
  text-decoration: none;
  transition: background-color 240ms var(--ease);
}
a.door:hover { background: var(--accent-2); }
/* 地図入りのドア（トップのアクセス）。面はリンクではなく、下端の文字だけが行き先 */
.door--map { gap: 0.9rem; }
.door--map .door__floor { font-size: clamp(3rem, 13vw, 5.5rem); }
.door__map { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: var(--ink); }
.door__link { color: var(--ink); text-decoration: none; align-self: flex-start; padding-block: 0.35rem; border-bottom: 3px solid var(--ink); }
.door__link:hover { border-bottom-color: var(--accent-2); }
.door__link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.door:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.door__floor {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.5rem, 20vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.door__text { font-weight: 800; font-size: clamp(1.15rem, 3vw, 1.6rem); letter-spacing: 0.08em; line-height: 1.5; }
.door__knob {
  position: absolute;
  right: 1.4rem;
  top: 52%;
  width: 1.3rem;
  height: 1.3rem;
  background: var(--ink);
}

/* ====================== 3-5. 写真の枠 ====================== */
/* 写真は未受領。枠は site.config.json の photos で、空のあいだは黒地に白系の細い線と小さな
   ピンク・ターコイズの四角だけの仮の画に「写真 仮」の札を付けて出す（7:2:1 を写真枠で崩さない）。
   受領後は <img>（object-fit: cover）になり、明るさは写真そのものが担う */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--accent);
}
.ph picture { display: block; width: 100%; height: 100%; }
.ph img,
.ph__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph__tag {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  padding: 0.3rem 0.6rem;
  background: var(--ink);
  border: 1px solid var(--accent);
  color: var(--fg);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
/* 札は常に --ink の地なので、固定の明るい灰にする */
.ph__what { margin-left: 0.7em; color: rgba(245, 245, 245, 0.75); }

/* 窓が開いた直後、上端に流川の札と通り（線の最初の横の区間）が見える余白を取る。
   2クラスにしているのは .sec--slot と同じ理由 */
.sec.sec--showcase { padding-top: calc(var(--head-h) + 4.4rem); }
.showcase__title {
  margin-top: clamp(1.2rem, 3vh, 2rem);
  font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: start;
}
.sec__title + .gallery,
.statement__body + .gallery { margin-top: clamp(1.4rem, 3vh, 2rem); }
@media (min-width: 768px) {
  .ph { border-width: 3px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .ph--wide { grid-column: 1 / -1; }
}

.table__logo { margin-bottom: clamp(1.4rem, 3vh, 2rem); }
.table__logo img { width: 120px; height: 120px; }
.foot__logo { display: block; width: 88px; height: 88px; margin-inline: auto; }

/* ====================== 4. フッター ====================== */
/* N& の構成を参考にした: ブランドと一言 / Navigation / Info、下段にコピーライトと Instagram。
   見出しの小さなラベルだけピンク、ホバーと現在地の下線にターコイズを使う */

.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 8vh, 5rem) var(--gut) calc(clamp(5rem, 10vh, 7rem) + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
}
.foot__inner {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vh, 2.6rem) clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.foot__col--brand { grid-column: 1 / -1; }
.foot__ch {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.foot__nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.foot__nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 2px solid transparent;
}
.foot__nav a:hover,
.foot__nav a[aria-current="page"] { border-bottom-color: var(--accent-2); }
.foot__addr { font-size: 0.92em; color: var(--fg); line-height: 2; }
.foot__bottom {
  max-width: 1180px;
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fg);
}

/* ====================== 4-1. 流れる帯（ticker） ====================== */
/* N& の ticker を参考にした部品。黒地に白系の文字、区切りの小さな四角だけピンク。上下にピンクの細い線。
   動きは CSS だけ。同じ並びを --n 回置き（回数は生成側が style で渡す）、1並びぶん送って頭へ戻すので継ぎ目なく流れ続ける。
   reduced-motion では止める */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  background: var(--bg);
  padding: 0.95rem 0;
}
.ticker__track { display: flex; width: max-content; animation: ticker-run 15s linear infinite; }
@keyframes ticker-run {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100% / var(--n, 8)), 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}
.ticker__seg { display: inline-flex; align-items: center; flex-shrink: 0; }
.ticker__item {
  padding: 0 1.4rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}
.ticker__dot { width: 0.55rem; height: 0.55rem; background: var(--accent); flex-shrink: 0; }
/* 区切りの四角は1つおきにターコイズ（小さな要素だけに使う） */
.ticker__dot:nth-child(4n) { background: var(--accent-2); }
html:not(.route-on) .ticker::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: calc(max(var(--gut), 50% - 590px) / 2 - 2px);
  width: 4px;
  background: var(--accent);
}

/* ====================== 4-2. 見出しの語（ピンクの面） ====================== */
.numface {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 40rem);
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 24vw, 15rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ====================== 4-3. Instagram（ターコイズの面。1ページ 1 か所） ====================== */
/* 全幅のセクションにはせず箱にする（ターコイズの割合を 1 割以内に収めるため） */
.insta {
  width: min(100%, 52rem);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--accent-2);
  color: var(--ink);
}
.numface--word { font-size: clamp(3rem, 14vw, 7.5rem); }
/* ロゴの面。地の黒がロゴの背景と同じ色なので、丸いロゴだけが浮いて見える */
.logoface { margin-bottom: clamp(1.4rem, 3vh, 2.2rem); }
.logoface img { display: block; width: min(72vw, 20rem); height: auto; aspect-ratio: 1; margin-inline: auto; }
.logoface + .more { margin-top: 0; }
.insta__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.insta__lead { margin-top: 1rem; font-weight: 600; }
.insta__act { margin-top: clamp(1.4rem, 3vh, 2rem); }
.insta__link {
  display: inline-flex;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.insta__link span { font-family: var(--mono); }
.insta__link--pending { font-weight: 600; }

/* ====================== 5. 組み上がり（reveal） ====================== */
/* 既定は最終状態。JS が has-js を付けたときだけ初期状態へ落として動かす。
   JS 無効・JS 読み込み失敗（3秒のフェイルセーフ）・reduced-motion では常に最終状態。 */

/* 初期状態は :not(.is-in) に限定する。
   こうしないとプリセット別の指定（下の subtle / fade）が .is-in と同じ詳細度で後から当たり、
   組み上がったあとも要素がずれたまま残る。 */
html.has-js [data-reveal] {
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.has-js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(var(--reveal-y));
}
html.has-js[data-reveal-mode="fade"] [data-reveal]:not(.is-in) { transform: none; }
html.has-js[data-reveal-mode="subtle"] [data-reveal]:not(.is-in) {
  transform: translateY(calc(var(--reveal-y) * 0.55));
}

/* ====================== 6. レスポンシブ ====================== */
/* 検証幅: 1440 / 1024 / 768 / 430 / 390 / 375 / 320（仕様書 §6-3） */

@media (max-width: 767px) {
  .br-sp { display: inline; }
  .br-pc { display: none; }

  .bar { font-size: 0.62rem; letter-spacing: 0.16em; }
  .bar__clock { display: none; }

  .sec { padding-block: clamp(3.6rem, 9vh, 5.5rem); }
  /* 上の .sec の余白指定に負けて、マストヘッドが上部バーの下へ潜るのを防ぐ */
  .sec--masthead { padding-top: max(calc(clamp(7rem, 20vh, 11rem) + env(safe-area-inset-top, 0px)), calc(var(--head-h) + 4.4rem)); }

  .row__inner { grid-template-columns: 2.5rem 1fr 1.25rem; }

  .spec__row { grid-template-columns: 1fr; gap: 0.35rem; }
  .spec__key { padding-top: 0; }

  .foot__inner { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; }

  /* 店内写真（メイン）はスマホでは縦長にして、いちばん大きく見せる */
  .ph--hero { aspect-ratio: 4 / 5 !important; }
  .route__path { stroke-width: 3; }
}

@media (max-width: 400px) {
  .bar { letter-spacing: 0.1em; }
  .row__inner { grid-template-columns: 2.1rem 1fr 1.1rem; }
}

/* ====================== 7. 静止（reduced-motion / 起動失敗） ====================== */
/* どのプリセットでも、reduced-motion と JS 無効では全要素が最終状態で静止する（仕様書 §4）。 */

@media (prefers-reduced-motion: reduce) {
  .seq__dim { transition: none; }
  /* :not(.is-in) 版と同じ詳細度で、かつ後に置いて必ず打ち消す
     （JS が組み上がりを走らせる前でも最終状態で静止させるため） */
  html.has-js [data-reveal],
  html.has-js [data-reveal]:not(.is-in) { opacity: 1; transform: none; transition: none; }
  .fade { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .seq, .fade, .bar, .route { display: none; }
  html, body { background: #fff; color: #000; }
}
