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

   この案件のコンセプトの1文（site.config.json の concept.sentence）:
     店名の 303 を「スロットのリールが揃う瞬間」として描く。スクロールはリールを回して
     左から 3・0・3 と止める動詞で、揃うと四角い窓が開いて本編に入り、その先は流川の通りから
     2階のドアまで1本の線が途切れずに続く。ヒーローに置くのは数字と四角だけ。
     角丸・発光・写真・飾り文字は置かず、線は分岐させない。
   配色（施主決定）: 地 #121212 / ピンク #FF3D9A / ターコイズ #00E5D1 / 文字 #F5F5F5。
     ピンク地・ターコイズ地の上の文字は必ず --ink（#121212）。黄・生成りは使わない。

   設計の前提（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: #121212;
  --fg: #f5f5f5;
  --muted: #bdbdbd;
  --line: rgba(245, 245, 245, 0.2);
  --accent: #ff3d9a;
  --accent-2: #00e5d1;
  --ink: #121212;
  --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);
  --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 {
  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__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seq__dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dim);
  transition: opacity 1.1s var(--ease);
}

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

/* 疑似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;
  padding-top: calc(0.95rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.95rem;
}
.bar--bottom {
  bottom: 0;
  /* route を隠すプリセットでも state が右端に残るようにする */
  justify-content: flex-end;
  padding-top: 0.95rem;
  padding-bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
}

/* HUD の文字はすべて --ink の四角い札に載せる。ヒーローのピンク／ターコイズの面の上でも、
   #121212 の地の上でも同じ見え方で読める（白文字をピンク地に直接置かない）。 */
.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; }
.bar__route { color: var(--muted); text-transform: none; letter-spacing: 0.12em; margin-right: auto; }
.bar__state { display: flex; align-items: center; gap: 1.1rem; background: var(--ink); padding: 0.45rem 0.75rem; }
.bar__pos { color: var(--fg); font-variant-numeric: tabular-nums; }
.bar__sec { color: var(--muted); }
.bar__scroll { color: var(--muted); }
.bar__scroll::after { content: " \2193"; }

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

/* ---- MENU（details なので JS 無効でも開閉する） ---- */
.menu { position: relative; }
.menu__btn {
  list-style: none;
  cursor: pointer;
  letter-spacing: 0.22em;
  color: var(--fg);
  background: var(--ink);
  padding: 0.85rem 0.95rem;
  line-height: 1;
  border-bottom: 2px solid transparent;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn:hover { border-bottom-color: var(--line); }
.menu[open] .menu__btn { border-bottom-color: var(--accent); }

.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--hero,
.sec--masthead {
  padding-top: calc(clamp(7rem, 20vh, 11rem) + env(safe-area-inset-top, 0px));
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.sec--hero > .sec__inner,
.sec--masthead > .sec__inner { width: 100%; }
.sec--cta { padding-bottom: clamp(7rem, 18vh, 11rem); }

.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);
  will-change: transform;
}
.giant__row {
  display: block;
  white-space: nowrap;
  font-size: clamp(3rem, 15vw, 11rem);
}
html[data-typo="full"] .giant { margin-left: -0.06em; }
html[data-typo="full"] .giant__row { font-size: clamp(3.4rem, 19vw, 15rem); }
html[data-typo="subtle"] .giant__row { font-size: clamp(2.6rem, 12vw, 8rem); }
html[data-typo="none"] .giant { display: none; }

/* ---- hero / masthead ---- */
.hero__title {
  font-size: clamp(1.7rem, 4.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-wrap: balance;
}
.hero__lead,
.masthead__lead {
  margin-top: clamp(1.2rem, 3vh, 2rem);
  max-width: 44rem;
  color: var(--muted);
}
.hero__cue {
  margin-top: clamp(3rem, 10vh, 6rem);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero__cue-line { display: block; width: clamp(2.5rem, 8vw, 5rem); height: 1px; background: var(--line); }

.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__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;
  border-bottom: 1px solid var(--line);
  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); }

/* ---- デッキ（1項目 = 1画面） ---- */
/* 既定は普通に縦に積む。ピン留めは JS が .is-pinned を付けたときだけの上乗せ。 */
.deck { position: relative; }
.deck__items { display: block; }
.deck__item {
  padding: clamp(2.4rem, 7vh, 4rem) 0;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.deck__count {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.deck__slash { color: var(--line); }
.deck__title {
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.deck__text { margin-top: clamp(1rem, 2.4vh, 1.5rem); color: var(--muted); }
.deck__points { margin-top: clamp(1.2rem, 3vh, 1.8rem); border-top: 1px solid var(--line); }
.deck__points li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93em;
  color: var(--muted);
}

.deck.is-pinned { height: calc(var(--deck-h, 300) * 1svh); }
.deck.is-pinned .deck__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
}
.deck.is-pinned .deck__items {
  position: relative;
  width: 100%;
  min-height: min(60svh, 30rem);
}
.deck.is-pinned .deck__item {
  position: absolute;
  inset: 0;
  border-top: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  pointer-events: none;
}
.deck.is-pinned .deck__item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---- steps ---- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 clamp(0.75rem, 2vw, 1.75rem);
  padding: clamp(1.3rem, 3vh, 1.9rem) 0;
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 0.55em;
}
.step__title { display: block; font-weight: 500; letter-spacing: 0.05em; }
.step__text { display: block; margin-top: 0.5rem; color: var(--muted); }
.note {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  max-width: 46rem;
  font-size: 0.92em;
  color: var(--muted);
}

/* ---- figures ---- */
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.figure {
  padding: clamp(1.6rem, 4vh, 2.6rem) clamp(0.5rem, 2vw, 1.5rem) clamp(1.6rem, 4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--line);
}
.figure + .figure { border-left: 1px solid var(--line); padding-left: clamp(0.9rem, 2.5vw, 2rem); }
.figure__value {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.figure__unit { font-size: 0.32em; letter-spacing: 0.1em; margin-left: 0.4em; color: var(--muted); }
.figure__label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  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__key--q { font-family: var(--sans); font-size: 0.95em; letter-spacing: 0.04em; color: var(--fg); }
.spec__val { word-break: normal; overflow-wrap: anywhere; }
.spec--faq .spec__row { grid-template-columns: minmax(12rem, 18rem) 1fr; }

/* ---- 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); }

/* ---- CTA（1ページ1系統。乱造しない） ---- */
.cta__title {
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-wrap: balance;
}
.cta__act { margin-top: clamp(2rem, 5vh, 3rem); }
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(0.9rem, 2.2vh, 1.15rem) clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.95em;
  letter-spacing: 0.1em;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease), color 320ms var(--ease);
}
.cta__btn span { font-family: var(--mono); }
.cta__btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ====================== 3-1. ターコイズの面（sec--aqua） ====================== */
/* 「暗い」と見られないよう、色を面で大きく使う。面の上の文字・罫線・番号はすべて --ink。
   ピンクの文字はターコイズ地でコントラストが 2:1 しか出ないので、面の上では使わない。 */
.sec--aqua {
  background: var(--accent-2);
  color: var(--ink);
  --muted: rgba(18, 18, 18, 0.8);
  --line: rgba(18, 18, 18, 0.3);
}
.sec--aqua .sec__num,
.sec--aqua .row__num,
.sec--aqua .giant { color: var(--ink); }
.sec--aqua .more__link,
.sec--aqua .linkline { border-bottom-color: var(--ink); }
.sec--aqua :focus-visible { outline-color: var(--ink); }

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

   既定（このファイルだけが効いている状態）は「303 が揃った静止状態」:
     高さ 100svh・面はターコイズ・窓はピンク・数字は黒。生成時に帯の位置も 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;
}
.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);
  /* 揃った状態の色（既定）。回っているあいだの色は下の @media で上書きする */
  --field: var(--accent-2);
  --win: 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(--ink);
  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(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* 中央の窓の枠。静止時は窓の枠線とぴったり重なっていて見分けがつかない。
   窓が開くとき、この4本が上下左右の面の縁に付いたまま画面の外まで広がる（四角の枠が広がる） */
.slot__rim {
  position: absolute;
  display: block;
  background: var(--ink);
}
.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); }

/* スクロールを促す小さな合図（文字は最小限）。下の HUD と重ならない高さに置く */
.slot__cue {
  position: absolute;
  left: 50%;
  bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: block;
  padding: 0.45rem 0.8rem;
  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) {
  html.has-js.slot-on .sec--slot {
    height: 320vh;
    height: 320svh;
    margin-bottom: -100vh;
    margin-bottom: -100svh;
  }
  /* 回っているあいだ: 面はピンク・窓は白・数字は黒。3つ揃った瞬間（.is-hit）に
     面がターコイズ・窓がピンクへ反転する（時間ではなく進行度で切り替わる） */
  html.has-js.slot-on .slot:not(.is-hit) {
    --field: var(--accent);
    --win: var(--fg);
  }
  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(4.4rem + env(safe-area-inset-top, 0px));
  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;
  width: min(100%, 14rem);
  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);
}
.door:hover { background: var(--accent-2); }
.door:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.door__floor {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.door__text { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; line-height: 1.5; }
.door__knob {
  position: absolute;
  right: 1.1rem;
  top: 52%;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--ink);
}
.door__ig { margin-top: 1rem; color: var(--muted); font-size: 0.95em; }

/* ====================== 3-5. 写真の枠 ====================== */
/* 写真は未受領。枠は site.config.json の photos で、空のあいだはピンクとターコイズの面で作った
   仮の画に「写真 仮」の札を付けて出す。受領後は <img>（object-fit: cover）になる */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--accent-2);
  /* ヒーローの窓と同じ黒い枠。ターコイズの面の上に置いても写真の輪郭が消えない */
  border: clamp(3px, 0.6vw, 6px) solid var(--ink);
}
.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);
  color: var(--fg);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
/* 札は常に --ink の地なので、面の色（sec--aqua の --muted は暗い）に引きずられない固定の明るい灰にする */
.ph__what { margin-left: 0.7em; color: rgba(245, 245, 245, 0.75); }

/* 窓が開いた直後、上端に流川の札と通り（線の最初の横の区間）が見える余白を取る。
   2クラスにしているのは .sec--slot と同じ理由 */
.sec.sec--showcase { padding-top: calc(7.5rem + env(safe-area-inset-top, 0px)); }
.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) {
  .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 { width: 96px; height: 96px; }

/* ====================== 4. フッター ====================== */

.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: #0b0b0b;
}
.foot__inner {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vh, 2.6rem) clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.foot__brand {
  grid-column: 1 / -1;
  font-family: var(--mono);
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.foot__nav ul { display: flex; flex-direction: column; gap: 0.55rem; }
.foot__nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot__nav a:hover,
.foot__nav a[aria-current="page"] { color: var(--fg); }
.foot__addr { font-size: 0.88em; color: var(--muted); line-height: 2; }
.foot__copy {
  grid-column: 1 / -1;
  padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ====================== 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: 1024px) {
  .spec--faq .spec__row { grid-template-columns: 1fr; }
  .spec--faq .spec__key { padding-top: 0; margin-bottom: 0.5rem; }
}

@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; }
  .bar__state { gap: 0.7rem; }
  .bar__scroll { display: none; }

  .sec { padding-block: clamp(3.6rem, 9vh, 5.5rem); }

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

  .figures { grid-template-columns: 1fr; }
  .figure { padding-right: 0; }
  .figure + .figure { border-left: 0; padding-left: 0; }

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

  .foot__inner { grid-template-columns: 1fr; }

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

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

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

html.no-motion .seq__video { display: none; }

@media (prefers-reduced-motion: reduce) {
  .seq__video { display: none; }
  .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; }
  .deck.is-pinned { height: auto; }
  .deck.is-pinned .deck__stage { position: static; height: auto; display: block; }
  .deck.is-pinned .deck__items { position: static; min-height: 0; }
  .deck.is-pinned .deck__item {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
    padding: clamp(2.4rem, 7vh, 4rem) 0;
    border-top: 1px solid var(--line);
  }
  .giant { transform: none !important; }
  .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; }
}
