/* ===== ニコリス 公式サイトのトップ（店先・お品書き・本日のおすすめ・PV・閉店） =====
   トップ（site/index.html）だけで読む。ほかのページの共通スタイルは style.css（docs/store-site.md）。
   夜の店先として暗い色だけで作る。端末のライト・ダークの設定には左右されない。
   CSP（_headers の style-src 'self'）のため、HTML の style 属性は使わない。要素ごとの値は nth-child などでここに書く。
   JS からは style.setProperty（CSSOM）で変数（--p・--q・--door・--shift）だけを書き換える。 */
@font-face {
  font-family: 'Nk Serif';
  src: url('/assets/serif-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Nk Serif';
  src: url('/assets/serif-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #0c0a09;
  --night-2: #15110e;
  --cream: #efe6d2;
  --cream-dim: #c2b59d;
  --cream-faint: #8d806c;
  --noren-1: #f4ecdb;
  --noren-2: #e9dfca;
  --noren-3: #d9cbb0;
  --noren-ink: #1b1715;
  --sumi: #211913;
  --shu: #c4382a;
  --gold: #e6b45c;
  --wood-light: #d2b07c;
  --wood-mid: #c39c66;
  --lacquer: #4a1f14;
  --serif: 'Nk Serif', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP',
    'Noto Serif CJK JP', serif;
}
html,
body {
  margin: 0;
  background-color: var(--night);
  color: var(--cream);
}
.nk {
  position: relative;
  background-color: var(--night);
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.nk *,
.nk *::before,
.nk *::after {
  box-sizing: border-box;
}
.nk img,
.nk video,
.nk svg {
  display: block;
  max-width: 100%;
}
.nk button {
  font: inherit;
  color: inherit;
}
.nk :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== ストアの公式バッジ（店先の中 .stores-top と、閉店の床 .foot .stores で共通） =====
   site/assets/badge-*。画像は加工せず、大きさだけ変える。
   --badge-h はバッジ本体の見た目の高さ。Apple の SVG は本体が画像いっぱい（108.85x40）なので、そのまま高さにする。
   Google の PNG（646x250）は上下に 29px ずつ透明の余白があり、本体は 192px なので、
   画像を 250/192 倍の高さにして、余白の分（29/192）を上下の負のマージンで詰める（並びの高さは --badge-h ちょうど）。
   Apple のバッジは高さ 40px 未満にしない。狭くて2つが横に入らないときは折り返して縦に並ぶ。
   置き場所ごとの余白（margin）は、それぞれの場所（.stores-top・.foot .stores）で決める */
.stores {
  --badge-h: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* 間はバッジの高さの 1/4 以上あける */
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stores li {
  display: flex;
}
.store-badge {
  display: block;
  border-radius: 8px;
}
.store-badge img {
  display: block;
  width: auto;
  height: var(--badge-h);
}
.store-badge-google img {
  height: calc(var(--badge-h) * 250 / 192);
  margin: calc(var(--badge-h) * -29 / 192) 0;
}

/* ===== 1. 店先 ===== */
.sf-track {
  position: relative;
  height: 230vh;
  height: 230svh;
}
.sf-stage {
  --p: 0; /* 暖簾をくぐる進み具合 0〜1 */
  --door: 0; /* 自動ドアの開き具合 0〜1（--p が 0.55 で開ききる） */
  --q: 1; /* 店先（外側）の不透明度 */
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  container-type: size;
  background: #0a0807;
  /* 店先の寸法（スマホ）：入口の左右の柱、軒、床 */
  --wall: 4.5%;
  --eave: 8.5%;
  --floor: 10%;
  --noren-h: 57%;
}

/* --- 店の中（暖簾の奥） --- */
.inside {
  position: absolute;
  inset: 0;
  transform: scale(calc(1.12 - var(--p) * 0.12));
  filter: brightness(calc(0.62 + var(--p) * 0.38));
  will-change: transform, filter;
}
.inside::before {
  /* 営業画面のぼかしを、店内のあかりとして敷く */
  content: '';
  position: absolute;
  inset: -40px;
  background: url('/assets/eigyo-poster.jpg') center / cover no-repeat;
  filter: blur(28px) saturate(1.25) brightness(0.42);
}
.inside::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 190, 110, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(12, 9, 7, 0.55), rgba(12, 9, 7, 0.2) 40%, rgba(12, 9, 7, 0.75));
}
.inside-body {
  position: relative;
  z-index: 1;
  /* 閉じているあいだは、営業画面が入口の正面に来るように寄せておく */
  transform: translateX(calc((1 - var(--p)) * var(--shift, 0px)));
  height: 100%;
  display: grid;
  /* 札・キャッチ・ストアのバッジ・営業画面（残りの高さ）・お品書きへ（.lead はスマホでは出さない） */
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: center;
  align-items: start;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 16px calc(10px + env(safe-area-inset-bottom));
}
.plate {
  position: relative;
  width: min(86%, 380px);
  margin: 0;
  padding: 12px 18px 10px;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.35), rgba(225, 205, 165, 0.25)),
    url('/assets/washi.jpg') center / 340px auto;
  background-color: #efe2c4;
  border-radius: 3px;
  transform: rotate(-1.2deg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 0 0 1px rgba(120, 90, 50, 0.25) inset,
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(255, 190, 110, 0.12);
}
.plate::before,
.plate::after {
  /* 和紙を留める小さな押しピン（真鍮） */
  content: '';
  position: absolute;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3d9a0, #9a7434 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.plate::before { left: 8px; }
.plate::after { right: 8px; }
.logo-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.catch {
  margin: 4px 0 0;
  font-weight: 900;
  font-size: clamp(19px, 5.4vw, 30px);
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  text-align: center;
  line-height: 1.4;
}
.stores-top {
  /* 店先の中は1画面に収めるので、スマホではバッジを少し小さく（Apple の下限の 40px）。PC は 44px */
  --badge-h: 40px;
}
.lead {
  display: none;
}
.screen {
  position: relative;
  margin: 2px 0 0;
  align-self: center;
  justify-self: center;
  /* 営業画面の高さ：場面の高さから、ほかの行の分を引いた残り。
     350px = 上下の余白（14px + 10px）、札、キャッチ、お品書きへ、行の間（10px × 3）などの約 300px に、
     ストアのバッジの行（40px と行の間 10px）を足したもの。
     コンテナ単位（cqh・cqw）が無い Safari 15 では、1行目の代わりの値を使う（--cq-h はファイルの末尾） */
  height: min(calc(var(--cq-h, 100vh) - 350px), calc((100vw - 32px) * 1.353));
  height: min(calc(100cqh - 350px), calc((100cqw - 32px) * 1.353));
  aspect-ratio: 600 / 812;
  min-height: 0;
  border-radius: 10px;
  padding: 6px;
  background: linear-gradient(160deg, #5a2a1a, #2e140b 60%, #4a2214);
  box-shadow:
    0 0 0 1px rgba(255, 210, 150, 0.18) inset,
    0 24px 50px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(255, 170, 80, 0.18);
}
.screen video,
.screen .still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #1a120c;
}
.screen .still {
  display: none;
}
.screen figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: rgba(12, 9, 7, 0.72);
  border-radius: 3px;
}
.to-menu {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2px 16px 0;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
}
.to-menu .chev,
.sf-hint .chev {
  width: 14px;
  height: 14px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 2px;
}
/* 入口をくぐるまでは、中の文字を隠しておく（書き出しの演出のため） */
.catch,
.stores-top,
.lead,
.to-menu,
.screen figcaption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
/* ストアのバッジだけは、ロゴの演出を待たずに、くぐった直後に短く出す（opacity と transform の長さだけ上書き） */
.stores-top { transition-duration: 0.5s; }
.is-in .catch { opacity: 1; transform: none; transition-delay: 2.9s; }
.is-in .stores-top { opacity: 1; transform: none; transition-delay: 0.4s; }
.is-in .lead { opacity: 1; transform: none; transition-delay: 3.15s; }
.is-in .to-menu { opacity: 1; transform: none; transition-delay: 3.5s; }
.is-in .screen figcaption { opacity: 1; transform: none; transition-delay: 1s; }
/* キーボードでくぐると、すぐにバッジへフォーカスが移る（top.js）。そのときに透明なまま待たせないよう、
   フォーカスが中にある間は遅れずに出す（上の .is-in の規則より詳細度を上げる）。「お品書きへ」も、
   3.5 秒より前に Tab で来ることがあるので同じにする */
.is-in .stores-top:focus-within,
.is-in .to-menu:focus-visible { opacity: 1; transform: none; transition-delay: 0s; }
/* 入口をくぐるまでは、「お品書きへ」とストアのバッジを Tab の対象から外す（.is-in は一度付いたら外さないので、
   戻っても急に消えない）。inert は使わない（h1 のロゴが読み上げられなくなるため） */
.sf-stage:not(.is-in) .to-menu,
.sf-stage:not(.is-in) .stores-top { visibility: hidden; }
/* 店の中を押せるのは、店先（外側）が消えている間だけ（.is-through。top.js の paint() が今の開き具合で付け外しする）。
   くぐったあとに店先まで戻ったとき、外側のヒントや暖簾の外を押しても、真下の「お品書きへ」やバッジに届かない */
.sf-stage:not(.is-through) .inside { pointer-events: none; }

/* --- 店先（外側） --- */
.facade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--q);
  transform: scale(calc(1 + var(--p) * 1.4));
  /* 入口の中心へ向かって進む（入口は左右の壁にはさまれて真ん中にあり、開くと全部が開口になる） */
  transform-origin: 50% 38%;
  will-change: transform, opacity;
}
.facade > * {
  position: absolute;
}
/* 軒天：木の羽目板とダウンライト */
.eave {
  left: 0;
  right: 0;
  top: 0;
  height: var(--eave);
  background:
    radial-gradient(60% 140% at 50% 120%, rgba(255, 196, 120, 0.28), transparent 70%),
    repeating-linear-gradient(90deg, #4a2c17 0 26px, #3a2010 26px 28px, #553319 28px 52px, #3a2010 52px 54px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}
.eave::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}
.downlight {
  position: absolute;
  bottom: 22%;
  width: 18px;
  height: 7px;
  margin-left: -9px;
  border-radius: 50%;
  background: #fff7e2;
  box-shadow: 0 0 10px 3px rgba(255, 225, 170, 0.9), 0 0 50px 18px rgba(255, 200, 120, 0.35);
  z-index: 1;
}
/* ダウンライトの位置：中央・左・右（店先と閉店の軒に3つずつ） */
.downlight:nth-child(1) { left: 50%; }
.downlight:nth-child(2) { left: 12%; }
.downlight:nth-child(3) { left: 88%; }
/* 左右の壁 */
.wall {
  top: var(--eave);
  bottom: var(--floor);
  width: var(--wall);
}
.wall-l {
  left: 0;
  /* 入口脇の赤茶の石張り */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.6)),
    repeating-linear-gradient(180deg, transparent 0 58px, rgba(20, 8, 4, 0.7) 58px 60px),
    radial-gradient(circle at 30% 20%, #8a4a32, transparent 40%),
    radial-gradient(circle at 70% 70%, #6e3826, transparent 45%),
    #5b2f20;
}
.wall-r {
  right: 0;
  /* 入口脇の木の壁（横板） */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.5)),
    repeating-linear-gradient(180deg, #a8662c 0 22px, #6e3e18 22px 24px),
    #94582a;
}
.wall .window,
.wall .sign,
.wall .stone {
  display: none;
}
/* 入口の枠 */
.door-frame {
  top: var(--eave);
  bottom: var(--floor);
  left: var(--wall);
  right: var(--wall);
  border-left: 5px solid #241913;
  border-right: 5px solid #241913;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}
/* 自動のガラス戸（実物の入口）。入口の幅いっぱいのガラス一枚の引き戸。
   くぐると、戸が右へ滑って右の壁の中へ引き込まれ（枠の overflow: hidden で切れて見えなくなる）、入口が全部開く。
   奥の明かりと営業画面が少しぼけて透ける */
.glass {
  position: absolute;
  inset: 0;
}
.glass i {
  position: absolute;
  inset: 0;
  /* 太い框（かまち） */
  border: 3px solid #2a1e16;
  border-left-width: 7px;
  border-right-width: 7px;
  border-bottom-width: 9px;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.07) 38% 44%, transparent 44% 52%, rgba(255, 255, 255, 0.04) 52% 55%, transparent 55%),
    rgba(60, 36, 16, 0.12);
  backdrop-filter: blur(var(--glass-blur, 2px)) brightness(0.82);
  -webkit-backdrop-filter: blur(var(--glass-blur, 2px)) brightness(0.82);
  /* 動いているあいだだけ、戸の左の端（先頭）に影が付く。閉じたときと引き込みきったときは消える */
  box-shadow: calc(var(--door) * -8px) 0 14px rgba(0, 0, 0, calc(var(--door) * (1 - var(--door)) * 1.6));
  transform: translateX(calc(var(--door) * 100%));
}
/* 床：石の床と、入口からこぼれる明かり */
.floor {
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--floor);
  background:
    radial-gradient(55% 100% at 50% 0%, rgba(255, 196, 120, 0.3), transparent 75%),
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.04) 0 1px, transparent 2px) 0 0 / 7px 9px,
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.35) 0 1px, transparent 2px) 0 0 / 5px 6px,
    linear-gradient(180deg, #3a3633, #1d1b19);
  border-top: 2px solid #6b5d4e;
}
/* 暖簾をくぐる案内 */
.sf-hint {
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 6px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-shadow: 0 1px 6px #000;
  opacity: calc(1 - var(--p) * 4);
  /* タップでも暖簾をくぐる（top.js。外側の .facade は pointer-events: none なので、ここだけ押せるようにする） */
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sf-hint small {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cream-dim);
}
.sf-hint .chev {
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.9; }
  50% { transform: translateY(5px) rotate(45deg); opacity: 0.45; }
}

/* --- 暖簾（二鼓の実物：濃紺・三枚・上がつながった布、生成りの染め抜き） --- */
.noren {
  position: absolute;
  z-index: 2;
  pointer-events: auto;
  left: var(--wall);
  right: var(--wall);
  top: calc(var(--eave) + 2px);
  height: var(--noren-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateY(calc(var(--p) * -85%));
  transform-origin: 50% 0;
  -webkit-tap-highlight-color: transparent;
}
.noren:focus-visible {
  outline-offset: -6px;
}
.rod {
  position: absolute;
  z-index: 3;
  left: -3%;
  right: -3%;
  top: -6px;
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(180deg, #6a5444, #2a1d15 55%, #120c08);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}
.rod::before,
.rod::after {
  /* 竿を吊る金具 */
  content: '';
  position: absolute;
  bottom: 8px;
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, transparent, #5d5750 50%, #8a8278);
}
.rod::before { left: 12%; }
.rod::after { right: 12%; }
.panels {
  position: absolute;
  inset: 0;
  display: flex;
  perspective: 900px;
}
.panel {
  --i: 0;
  position: relative;
  flex: 1 1 0;
  height: 100%;
  transform-origin: 50% 0;
  container-type: size;
  /* 布の色：生成りに近い白の木綿。ダウンライトで上が明るく、裾へ少し陰る。
     手前の帯はひだ（左右の端が陰り、少し内側に明るい山） */
  background:
    linear-gradient(90deg, rgba(92, 66, 38, 0.3), rgba(92, 66, 38, 0.08) 9%, rgba(255, 250, 238, 0.22) 33%, rgba(92, 66, 38, 0.03) 60%, rgba(92, 66, 38, 0.14) 84%, rgba(92, 66, 38, 0.26)),
    linear-gradient(160deg, var(--noren-1), var(--noren-2) 48%, var(--noren-3));
  background-size: 100% 100%, 300% 100%;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.62),
    0 0 1px rgba(60, 40, 20, 0.5);
  animation: sway 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.7s);
}
.panel:nth-child(1) {
  --i: 0;
  background-position: 0 0, 0% 0;
  transform: translateX(calc(var(--p) * -125%)) rotate(calc(var(--p) * 16deg));
}
.panel:nth-child(2) {
  --i: 1;
  background-position: 0 0, 50% 0;
  transform: translateY(calc(var(--p) * -45%)) rotateX(calc(var(--p) * 55deg));
  z-index: 1;
}
.panel:nth-child(3) {
  --i: 2;
  background-position: 0 0, 100% 0;
  transform: translateX(calc(var(--p) * 125%)) rotate(calc(var(--p) * -16deg));
}
.panel > .sway {
  position: absolute;
  inset: 0;
}
@keyframes sway {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  30% { translate: 0.5px 0; rotate: 0.35deg; }
  65% { translate: -0.5px 0; rotate: -0.3deg; }
}
.is-open .panel {
  animation-play-state: paused;
}
.panel::before {
  /* 布目（不規則な糸の太さ）と、上の筒・裾の縫い目 */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    /* 上の筒の下端（縫い代の段差）と、裾の折り返し */
    linear-gradient(180deg, transparent 0 3.2%, rgba(96, 70, 40, 0.22) 3.2% 3.6%, rgba(255, 250, 240, 0.18) 3.6% 4.4%, rgba(96, 70, 40, 0.12) 4.4% 4.8%, transparent 4.8%),
    linear-gradient(0deg, rgba(96, 70, 40, 0.18) 0 1.8%, transparent 1.8%),
    /* ダウンライトの明かり（上）と、裾の陰り */
    radial-gradient(130% 55% at 50% -8%, rgba(255, 246, 225, 0.45), transparent 70%),
    linear-gradient(180deg, transparent 0 55%, rgba(70, 48, 26, 0.1) 80%, rgba(50, 34, 18, 0.28)),
    /* 布目：茶色の糸むらを乗算で */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6 0.7' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 0.8 -0.3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.panel::after {
  /* 合わせ目の影。上の筒の縫い目（::before の 3.2〜4.8%）のすぐ下から裾まで通す。
     上の端はすっぱり切らず、マスクで数%かけて薄くし、筒の陰に溶け込ませる */
  content: '';
  position: absolute;
  top: 4.8%;
  bottom: 0;
  right: -1px;
  width: 6px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(70, 48, 26, 0.42) 60%, rgba(70, 48, 26, 0.12) 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 4%);
  mask-image: linear-gradient(180deg, transparent, #000 4%);
}
.panel:last-child::after {
  display: none;
}
.stitch {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(120, 92, 60, 0.45);
  z-index: 2;
}
.stitch.t1 { top: 3%; }
.stitch.t2 { top: 5%; }
.stitch.b1 { bottom: 2.4%; }
/* 「二鼓」：既存の筆文字素材（public/textures/storefront/niko-brush-logo.png）を墨で染めた色で */
.dye-niko {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 56%;
  height: min(44cqh, 132cqw);
  aspect-ratio: 358 / 640;
  transform: translate(-50%, -50%);
  background: var(--noren-ink);
  -webkit-mask: url('/assets/niko-vertical.webp') center / contain no-repeat;
  mask: url('/assets/niko-vertical.webp') center / contain no-repeat;
  opacity: 0.9;
  /* 墨が布に少しにじんだ見え方 */
  filter: blur(0.3px) drop-shadow(0 0 0.8px rgba(27, 23, 21, 0.45));
}

/* 行灯（実物：黒い枠に白い紙、上に2本・下に3本の黒い線、「二鼓」の墨文字） */
.andon {
  z-index: 2;
  right: 7%;
  bottom: calc(var(--floor) * 0.35);
  width: 46px;
  height: 140px;
  padding: 4px;
  background: #121010;
  border-radius: 2px;
  box-shadow:
    0 0 26px 6px rgba(255, 226, 170, 0.32),
    0 0 90px 30px rgba(255, 200, 120, 0.14),
    0 12px 14px rgba(0, 0, 0, 0.7);
}
.andon::after {
  /* 台座と脚 */
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -8px;
  height: 8px;
  background: linear-gradient(180deg, #1e1a18, #050404);
  border-radius: 1px;
}
.andon-face {
  position: relative;
  height: 100%;
  background:
    linear-gradient(180deg, #111 0 3%, transparent 3% 7%, #111 7% 10%, transparent 10% 82%, #111 82% 85%, transparent 85% 89%, #111 89% 92%, transparent 92% 96%, #111 96% 100%),
    radial-gradient(90% 60% at 50% 50%, #fffaf0, #f1e4c6);
}
.andon-face i {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 66%;
  aspect-ratio: 358 / 640;
  transform: translate(-50%, -50%);
  background: #1b1715;
  -webkit-mask: url('/assets/niko-vertical.webp') center / contain no-repeat;
  mask: url('/assets/niko-vertical.webp') center / contain no-repeat;
}

/* --- PC・タブレットの店先：入口を中央に、左に窓と石張り、右に木の壁と看板 --- */
@media (min-width: 760px) {
  .sf-stage {
    --wall: 30%;
    --eave: 10%;
    --floor: 15%;
    --noren-h: 50%;
  }
  .wall .window,
  .wall .sign,
  .wall .stone {
    display: block;
    position: absolute;
  }
  .wall-l {
    background:
      radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px) 0 0 / 9px 11px,
      linear-gradient(90deg, #191817, #22201e);
  }
  .wall-l .window {
    /* 張り出した黒い格子の窓。中の明かりは営業画面のぼかし */
    left: 7%;
    right: 26%;
    top: 12%;
    bottom: 8%;
    border: 7px solid #0b0a0a;
    background:
      linear-gradient(90deg, transparent 0 32%, #0b0a0a 32% calc(32% + 6px), transparent calc(32% + 6px) 66%, #0b0a0a 66% calc(66% + 6px), transparent calc(66% + 6px)),
      linear-gradient(180deg, transparent 0 33%, #0b0a0a 33% calc(33% + 6px), transparent calc(33% + 6px) 66%, #0b0a0a 66% calc(66% + 6px), transparent calc(66% + 6px)),
      radial-gradient(100% 80% at 50% 40%, rgba(255, 200, 130, 0.55), rgba(120, 70, 30, 0.4) 70%),
      url('/assets/eigyo-poster.jpg') center 30% / cover;
    box-shadow: 0 0 60px rgba(255, 180, 100, 0.18), 0 20px 40px rgba(0, 0, 0, 0.7);
    filter: saturate(0.9);
  }
  .wall-l .window::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(255, 190, 120, 0.12);
  }
  .wall-l .stone {
    /* 入口脇の赤茶の石張り */
    right: 0;
    top: 0;
    bottom: 0;
    width: 20%;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.45)),
      repeating-linear-gradient(180deg, transparent 0 74px, rgba(20, 8, 4, 0.75) 74px 76px),
      radial-gradient(circle at 30% 20%, #8a4a32, transparent 40%),
      radial-gradient(circle at 70% 70%, #6e3826, transparent 45%),
      #5b2f20;
  }
  .wall-r {
    background:
      radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0 1px, transparent 2px) 0 0 / 9px 11px,
      linear-gradient(90deg, #22201e, #191817);
  }
  .wall-r::before {
    /* 入口脇の木の壁（横板） */
    content: '';
    position: absolute;
    left: 0;
    top: 6%;
    bottom: 0;
    width: 52%;
    border: 6px solid #3b2416;
    border-bottom: 0;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.35)),
      repeating-linear-gradient(180deg, #b26f33 0 26px, #74421b 26px 28px),
      #a0612d;
  }
  .wall-r .sign {
    /* 看板：白い明かりの箱に横組みの「二鼓」 */
    left: 6%;
    width: 42%;
    top: 13%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16%;
    background: radial-gradient(90% 90% at 50% 50%, #fffdf6, #efe6d2);
    border: 4px solid #3b2416;
    box-shadow: 0 0 40px rgba(255, 236, 200, 0.35), 0 0 4px rgba(255, 255, 255, 0.6);
  }
  .wall-r .sign i {
    display: block;
    background: #1b1715;
  }
  .wall-r .sign .ni {
    height: 38%;
    aspect-ratio: 361 / 300;
    -webkit-mask: url('/assets/niko-ni.webp') center / contain no-repeat;
    mask: url('/assets/niko-ni.webp') center / contain no-repeat;
  }
  .wall-r .sign .ko {
    height: 62%;
    aspect-ratio: 318 / 300;
    -webkit-mask: url('/assets/niko-ko.webp') center / contain no-repeat;
    mask: url('/assets/niko-ko.webp') center / contain no-repeat;
  }
  .door-frame {
    --glass-blur: 9px;
    border-left-width: 8px;
    border-right-width: 8px;
  }
  .glass i {
    background:
      linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.07) 38% 44%, transparent 44% 52%, rgba(255, 255, 255, 0.04) 52% 55%, transparent 55%),
      radial-gradient(80% 60% at 50% 70%, rgba(255, 196, 120, 0.22), rgba(255, 196, 120, 0.06));
  }
  .andon {
    right: calc(var(--wall) - 13%);
    bottom: calc(var(--floor) * 0.3);
    width: 72px;
    height: 220px;
    padding: 6px;
  }
  .sf-hint {
    font-size: 15px;
  }

  /* 店の中：左に看板と文句、右に営業画面 */
  .inside-body {
    /* 営業画面の幅：高さ 82cqh 分か、左の列（看板と文句）に 340px か中身の幅の 42% の
       広い方を残せる幅の、狭い方（中身の幅 = 最大 1120px から左右の余白 40px×2 と列の間 56px を引く） */
    --body-w: min(100cqw, 1120px);
    --shot-w: min(calc(82cqh * 600 / 812), calc(var(--body-w) - 136px - max(340px, var(--body-w) * 0.42)));
    grid-template-columns: minmax(0, 1fr) auto;
    /* 左の列：札・キャッチ・ストアのバッジ・文句を、上下の 1fr で縦の中央に */
    grid-template-rows: 1fr auto auto auto auto 1fr;
    column-gap: 56px;
    row-gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 6vh 40px 4vh;
    align-items: center;
  }
  .plate {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 470px);
    padding: 18px 26px 14px;
  }
  .catch {
    grid-column: 1;
    grid-row: 3;
    /* 「居酒屋ローグライクパズル」を1行で。左の列の幅（字間込みで約 12.6 字分）に収まる大きさまで */
    font-size: clamp(20px, min(2.8vw, calc((var(--body-w) - 136px - var(--shot-w)) / 12.6)), 36px);
    line-height: 1.5;
    white-space: nowrap;
  }
  .stores-top {
    --badge-h: 44px;
    grid-column: 1;
    grid-row: 4;
  }
  .lead {
    display: block;
    grid-column: 1;
    grid-row: 5;
    margin: 0;
    max-width: 30em;
    font-size: 15px;
    color: var(--cream-dim);
    text-align: center;
    text-shadow: 0 1px 8px #000;
  }
  .lead span {
    /* 折り返すときは文の切れ目で（文の途中では折らない） */
    display: inline-block;
  }
  .screen {
    grid-column: 2;
    grid-row: 1 / -1;
    height: calc(var(--shot-w) * 812 / 600);
    align-self: center;
  }
  .to-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(14px + env(safe-area-inset-bottom));
    margin: 0 auto;
    width: max-content;
  }
}

/* ===== 2. お品書き ===== */
.menu {
  position: relative;
  overflow: hidden;
  padding: 64px 16px calc(80px + env(safe-area-inset-bottom));
  /* 暗い店内の壁：竹状の腰壁を夜の色で */
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(255, 190, 110, 0.12), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 14px, rgba(0, 0, 0, 0.35) 14px 16px, rgba(255, 220, 160, 0.03) 16px 17px),
    linear-gradient(180deg, #17110c, #120d09 60%, #0c0907);
}
.menu-head {
  text-align: center;
  margin: 0 auto 30px;
}
.menu-head h2 {
  margin: 0;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--cream);
}
.menu-head p {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}
.rail {
  /* 札を掛ける長押（なげし）。一列に並ぶ PC だけ */
  display: none;
  position: relative;
  max-width: 1180px;
  height: 14px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(180deg, #5b3a22, #3a2414 60%, #22150b);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}
.fuda-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 14px;
}
.fuda-list > li {
  position: relative;
  padding-top: 30px;
}
.fuda-list > li::after {
  /* 紐を掛ける釘 */
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8cf98, #7d5c26 70%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}
.fuda-list > li::before {
  /* 吊り紐 */
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 46%;
  height: 32px;
  transform: translateX(-50%);
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(205, 180, 140, 0.55) 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(205, 180, 140, 0.55) 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat;
}
.fuda {
  --tilt: 0deg;
  display: block;
  width: 100%;
  aspect-ratio: 172 / 380;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1100px;
  transform: rotate(var(--tilt));
  transform-origin: 50% -30px;
  transition: transform 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}
.fuda-list > li:nth-child(6n + 1) .fuda { --tilt: -1.2deg; }
.fuda-list > li:nth-child(6n + 2) .fuda { --tilt: 0.8deg; }
.fuda-list > li:nth-child(6n + 3) .fuda { --tilt: -0.5deg; }
.fuda-list > li:nth-child(6n + 4) .fuda { --tilt: 1.3deg; }
.fuda-list > li:nth-child(6n + 5) .fuda { --tilt: -0.9deg; }
.fuda-list > li:nth-child(6n + 6) .fuda { --tilt: 0.6deg; }
@media (hover: hover) {
  .fuda:hover {
    transform: rotate(calc(var(--tilt) * -1.2));
  }
}
.fuda-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.3, 1.25, 0.45, 1);
}
.fuda[aria-pressed='true'] .fuda-inner {
  transform: rotateY(180deg);
}
/* 見えていない面は visibility でも隠す。Safari では、裏の面の動画（別の層で描かれる）が backface-visibility を
   すり抜けて透けることがあるため。切り替えは、札が真横（90°）を過ぎる 0.1 秒（.fuda-inner の 0.75 秒の曲線で、
   半分まで回るのが約 0.103 秒）。真横で切り替えるので、backface-visibility が効くブラウザでは見た目は変わらない */
.fuda .front,
.fuda[aria-pressed='true'] .back {
  visibility: visible;
  transition: visibility 0s linear 0.1s;
}
.fuda .back,
.fuda[aria-pressed='true'] .front {
  visibility: hidden;
  transition: visibility 0s linear 0.1s;
}
.face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 4px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}
/* 表：白木の札に墨の縦書き */
.front {
  color: var(--sumi);
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(255, 240, 210, 0.35), transparent 70%),
    linear-gradient(90deg, rgba(60, 30, 10, 0.28), rgba(60, 30, 10, 0) 9%, rgba(60, 30, 10, 0) 88%, rgba(60, 30, 10, 0.34)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55 0.012' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 0 0 0 0.9 -0.32'/%3E%3C/filter%3E%3Crect width='200' height='400' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100%,
    linear-gradient(180deg, #dcbd8b, #cfab76 55%, #c29a63);
  box-shadow:
    inset 0 0 0 1px rgba(70, 40, 15, 0.45),
    inset 2px 0 3px rgba(255, 245, 220, 0.35),
    inset -3px 0 5px rgba(60, 30, 10, 0.3),
    0 18px 28px rgba(0, 0, 0, 0.6);
}
.front .num {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: rgba(60, 35, 15, 0.7);
}
.front .txt {
  position: absolute;
  top: 34px;
  right: 12px;
  bottom: 14px;
  left: 10px;
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.front .name {
  font-weight: 900;
  font-size: clamp(25px, 7vw, 30px);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: #1c140e;
}
.front .name small {
  font-size: 0.72em;
}
.front .desc {
  font-size: clamp(12.5px, 3.45vw, 14px);
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: #2c2017;
  max-block-size: calc(100% - 52px);
  /* 列ごとの改行は <br> で固定。収まらない幅でだけ自然に折り返す */
  text-wrap: pretty;
}
.front .desc b {
  font-weight: 900;
}
/* 「名物」の判子（朱。PV の判子と同じ、角の丸い四角に二字を白く彫った形） */
.seal {
  position: absolute;
  left: 10px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--shu);
  color: #f6ead6;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.05;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px var(--shu), inset 0 0 0 3.2px rgba(246, 234, 214, 0.9);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23k)'/%3E%3C/svg%3E") center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='80' height='80' filter='url(%23k)'/%3E%3C/svg%3E") center / 100% 100%;
  opacity: 0.93;
}
.seal span {
  display: block;
  transform: scale(1.12, 0.92);
}
.fuda-list > li:nth-child(even) .seal {
  transform: rotate(5deg);
}
.turn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(50, 30, 15, 0.7);
  writing-mode: horizontal-tb;
}
/* 裏：漆の札にゲームの画面 */
.back {
  transform: rotateY(180deg);
  padding: 6px 6px 0;
  background: linear-gradient(170deg, #3c1a10, #1f0d07 70%, #2c130a);
  box-shadow:
    inset 0 0 0 1px rgba(255, 200, 150, 0.2),
    0 18px 28px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.back .media {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #1a120c;
}
.back .media img,
.back .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.back .cap {
  display: block;
  padding: 7px 4px 9px;
  font-size: clamp(11.5px, 3.2vw, 13px);
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--cream);
  text-align: center;
}
@media (min-width: 640px) {
  .fuda-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px 22px;
    max-width: 640px;
  }
  .front .name { font-size: 30px; }
  .front .desc { font-size: 14px; }
  .back .cap { font-size: 13px; }
}
@media (min-width: 1040px) {
  .menu {
    padding-top: 90px;
  }
  .menu-head h2 {
    font-size: 40px;
  }
  .rail {
    display: block;
  }
  .fuda-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: 1180px;
    gap: 0 20px;
  }
  .fuda-list > li::before {
    top: -16px;
    height: 48px;
  }
  .fuda-list > li::after {
    display: none;
  }
}

/* 札の裏：動画を重ねたあとも、下の静止画（最初のコマ）は残しておく */
.back .media img.under {
  position: absolute;
  inset: 0;
}
.back .media video {
  position: relative;
  z-index: 1;
  display: block;
}

/* ===== 共通：セクションの見出し ===== */
.sec {
  position: relative;
  overflow: hidden;
  padding: 72px 16px calc(72px + env(safe-area-inset-bottom));
}
.sec-head {
  text-align: center;
  margin: 0 auto 28px;
}
.sec-head .kicker {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: var(--gold);
}
.sec-head h2 {
  margin: 0;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  color: var(--cream);
}
.sec-head p {
  margin: 10px auto 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--cream-dim);
}

/* ===== 3. 本日のおすすめ（店内の黒板） ===== */
.osusume {
  background:
    radial-gradient(60% 35% at 50% 0%, rgba(255, 190, 110, 0.1), transparent 70%),
    linear-gradient(180deg, #0c0907, #120d0a 40%, #0e0b08);
}
.board {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 18px 22px;
  border-radius: 6px;
  /* 黒板：墨緑の板にチョークの粉 */
  background:
    radial-gradient(90% 60% at 30% 20%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(70% 50% at 80% 90%, rgba(255, 255, 255, 0.035), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 -0.28'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23c)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #26332c, #1c2722 55%, #18211d);
  border: 12px solid #5a3a22;
  border-image: linear-gradient(160deg, #7a5233, #4a2e1a 40%, #6a4528 70%, #3e2615) 1;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.55),
    0 24px 50px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(255, 190, 110, 0.07);
}
.board::after {
  /* チョーク置きの桟 */
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -22px;
  height: 10px;
  background: linear-gradient(180deg, #6a4528, #3e2615);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.6);
}
.board-title {
  margin: 0 0 4px;
  line-height: 1.3;
  text-align: center;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: #f3eee2;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.6), 0 0 6px rgba(255, 255, 255, 0.12);
  opacity: 0.94;
}
.board-sub {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(236, 232, 220, 0.72);
}
.dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dish {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 14px 4px;
  border-top: 1.5px dashed rgba(236, 232, 220, 0.28);
}
.dish:first-child {
  border-top: 0;
}
.dish img {
  width: 96px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45));
}
.dish h3 {
  margin: 0;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  color: #f6f1e4;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
.dish h3 .chalk-mark {
  /* 黄色いチョークの丸印 */
  display: table;
  margin: 3px 0 2px;
  padding: 0 7px;
  border: 1.5px solid rgba(246, 214, 120, 0.85);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  vertical-align: 3px;
  color: rgba(246, 214, 120, 0.95);
}
.dish p {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(236, 232, 220, 0.84);
}
.board-note {
  margin: 10px 0 0;
  text-align: right;
  font-size: 11px;
  color: rgba(236, 232, 220, 0.55);
}
@media (min-width: 900px) {
  .board {
    padding: 34px 34px 28px;
  }
  .board-title {
    font-size: 36px;
  }
  .dish-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 10px;
  }
  .dish {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    text-align: center;
    padding: 12px 8px 6px;
    border-top: 0;
    border-left: 1.5px dashed rgba(236, 232, 220, 0.28);
  }
  .dish:first-child {
    border-left: 0;
  }
  .dish img {
    width: 150px;
    height: 112px;
    margin-bottom: 8px;
  }
  .dish h3 {
    font-size: 17px;
  }
  .dish h3 .chalk-mark {
    margin: 6px auto 0;
  }
}

/* ===== 4. PV（店内のテレビに見立てた縦長の画面） ===== */
.pv {
  background:
    radial-gradient(50% 40% at 50% 45%, rgba(120, 160, 255, 0.07), transparent 70%),
    linear-gradient(180deg, #0d0a08, #0a0807);
}
.pv-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.tv {
  position: relative;
  width: min(76vw, 330px);
  aspect-ratio: 720 / 1280;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2b2724, #121010 60%, #1d1a18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px #000,
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(120, 160, 255, 0.08);
}
.tv video {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  background: #000;
  object-fit: cover;
}
.pv-play {
  position: absolute;
  inset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 0 18%;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55));
  cursor: pointer;
  color: #fff;
}
.pv-play[hidden] {
  display: none;
}
.pv-play .ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(196, 56, 42, 0.92);
  box-shadow: 0 0 0 3px rgba(246, 234, 214, 0.9), 0 10px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-play .ring::before {
  content: '';
  margin-left: 6px;
  border-left: 22px solid #f6ead6;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.pv-play .label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 6px #000;
}
.pv-side {
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: var(--cream-dim);
}
@media (min-width: 900px) {
  .pv-wrap {
    grid-template-columns: auto minmax(0, 300px);
    justify-content: center;
    align-items: center;
    gap: 56px;
  }
  .tv {
    width: auto;
    height: min(78vh, 720px);
  }
  .pv-side {
    text-align: left;
  }
}

/* ===== 5. 閉店 ===== */
.heiten {
  background: #0a0807;
}
.closing-scene {
  --p: 0;
  --door: 0;
  --wall: 4.5%;
  --eave: 8.5%;
  --floor: 42%;
  --noren-h: 36%;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  container-type: size;
  /* 灯りを落とした店内 */
  background:
    radial-gradient(50% 40% at 50% 60%, rgba(255, 190, 110, 0.18), transparent 70%),
    linear-gradient(180deg, #1a130e, #120d09);
  transition: background 1.6s ease 1.4s;
}
.closing-scene > * {
  position: absolute;
}
.closing-scene .eave {
  z-index: 3;
}
.closing-scene .door-frame {
  --glass-blur: 3px;
}
.closing-scene .noren {
  z-index: 2;
  cursor: default;
  /* 閉店：暖簾が上から下りてくる */
  transform: translateY(-118%);
  transition: transform 1.3s cubic-bezier(0.25, 1.15, 0.45, 1);
}
.closing-scene.is-closed .noren {
  transform: none;
}
.closing-scene .andon {
  /* 床の手前の端に立てる */
  bottom: calc(var(--floor) - 14px);
  width: 40px;
  height: 122px;
  padding: 3px;
  transition: box-shadow 1.2s ease 1.6s, filter 1.2s ease 1.6s;
}
.closing-scene.is-closed .andon {
  /* 行灯の灯りを落とす */
  box-shadow: 0 12px 14px rgba(0, 0, 0, 0.7);
  filter: brightness(0.55);
}
.closing-scene.is-closed {
  background:
    radial-gradient(50% 40% at 50% 60%, rgba(255, 190, 110, 0.06), transparent 70%),
    linear-gradient(180deg, #110d0a, #0b0907);
}
.closing-scene .window {
  transition: filter 1.2s ease 1.4s;
}
.closing-scene.is-closed .window {
  filter: brightness(0.35) saturate(0.6);
}
/* 「またのお越しを」の札（実物の入口に下がる「営業中」の木札に見立てる） */
.sign-board {
  /* 札の長さ。背の低い画面（場面の高さが約 725px 未満）では、下の端が床の文句（.closing-line）に
     かからない長さまで縮める（39.5cqh = 札の上端の位置 var(--eave) + var(--noren-h) - 5%）。
     引く長さ（138px）は床の中身の高さの半分ほど（中身は床の中で上下の真ん中に置くので）。
     ストアの商標の行を足して中身が 10px ほど高くなったので 132px から増やした。幅と字は長さに比例させる */
  --sign-h: min(148px, calc(39.5cqh - 138px));
  z-index: 4;
  left: 50%;
  top: calc(var(--eave) + var(--noren-h) - 5%);
  width: calc(var(--sign-h) * 44 / 148);
  height: var(--sign-h);
  margin-left: calc(var(--sign-h) * -22 / 148);
  transform-origin: 50% -46px;
  transform: translateY(-40px) rotate(-14deg);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.3, 1.6, 0.4, 1) 1.15s, opacity 0.3s ease 1.15s;
}
.closing-scene.is-closed .sign-board {
  transform: none;
  opacity: 1;
}
.sign-board::before {
  /* 吊り紐 */
  content: '';
  position: absolute;
  left: 50%;
  top: -46px;
  width: 44px;
  height: 48px;
  transform: translateX(-50%);
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(205, 180, 140, 0.8) 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(205, 180, 140, 0.8) 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat;
}
.sign-board span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  writing-mode: vertical-rl;
  font-weight: 900;
  font-size: calc(var(--sign-h) * 17 / 148);
  letter-spacing: 0.08em;
  color: #1c140e;
  border-radius: 3px;
  background:
    radial-gradient(120% 40% at 50% 0%, rgba(255, 240, 210, 0.35), transparent 70%),
    linear-gradient(90deg, rgba(60, 30, 10, 0.3), rgba(60, 30, 10, 0) 12%, rgba(60, 30, 10, 0) 86%, rgba(60, 30, 10, 0.36)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55 0.012' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.27 0 0 0 0 0.1 0 0 0 0.9 -0.32'/%3E%3C/filter%3E%3Crect width='100' height='300' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 100% 100%,
    linear-gradient(180deg, #dcbd8b, #c9a46e);
  box-shadow:
    inset 0 0 0 1px rgba(70, 40, 15, 0.45),
    inset 2px 0 3px rgba(255, 245, 220, 0.35),
    0 14px 22px rgba(0, 0, 0, 0.65);
}
.closing-line {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--cream);
  text-shadow: 0 1px 8px #000;
  opacity: 0;
  transition: opacity 1s ease 2.1s;
}
.closing-scene.is-closed .closing-line {
  opacity: 1;
}
@media (min-width: 760px) {
  .closing-scene {
    --wall: 30%;
    --eave: 9%;
    --floor: 37%;
    --noren-h: 34%;
    min-height: 640px;
  }
  .closing-scene .andon {
    width: 60px;
    height: 180px;
    padding: 5px;
  }
  .sign-board {
    /* 43.5cqh = 札の上端の位置（9% + 34% - 5% = 38%）と、床の文句までの残りの割合から。場面の高さが約 745px 未満で縮む */
    --sign-h: min(196px, calc(43.5cqh - 128px));
    width: calc(var(--sign-h) * 60 / 196);
    margin-left: calc(var(--sign-h) * -30 / 196);
  }
  .sign-board span {
    font-size: calc(var(--sign-h) * 22 / 196);
  }
  .closing-line {
    font-size: 17px;
  }
}

/* 閉店の下：ストア・リンク・著作権表示・権利表記 */
.foot {
  /* 床の上に置く（閉店の場面の一部） */
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--floor);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px calc(10px + env(safe-area-inset-bottom));
  text-align: center;
}
/* ストアのバッジ（見た目は上の共通の .stores） */
.foot .stores {
  margin: 0 auto 12px;
}
.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.foot-links a {
  color: var(--cream);
  font-size: 14px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(239, 230, 210, 0.4);
}
.foot p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--cream-dim);
}
.foot .rights-row {
  margin-top: 6px;
}
.foot .rights {
  /* 1文（約30字）が1行に収まる大きさまで、狭い画面では少し小さく。それでも折り返すときは行をそろえる */
  font-size: clamp(9.5px, calc((100vw - 32px) / 30.5), 11.5px);
  color: var(--cream-faint);
  text-wrap: balance;
}
.foot .tm-row {
  margin-top: 2px;
}
.foot .tm {
  /* ストアのバッジの商標の一文。上の権利表記より長いので、床の高さに収まるよう少し小さく詰めて組む */
  font-size: clamp(9px, calc((100vw - 32px) / 36), 10px);
  line-height: 1.45;
}
@media (min-width: 760px) {
  /* 広い画面では権利表記の2文ずつ（お店・銘柄の行、ストアの商標の行）を横に並べて1行分にし、
     フッターを低くする（収まらない幅では2行に戻る）。
     2文の間はリンクの並び（.foot-links）と同じくらいあける */
  .foot .rights-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 18px;
  }
}

/* ===== 動きを減らす設定 =====
   暖簾の揺れ・分かれる動き・墨で書く動きを止め、動画は最初の1コマ（ポスター）だけ。
   内容はすべて見えるようにする（暖簾はタップ・スクロールで一度に開いた状態に切り替わる）。 */
@media (prefers-reduced-motion: reduce) {
  .nk *,
  .nk *::before,
  .nk *::after {
    animation: none !important;
    transition: none !important;
  }
  .screen video { display: none; }
  .screen .still { display: block; }
  .catch, .stores-top, .lead, .to-menu { opacity: 1; transform: none; }
}
.rm .panel,
.rm .sf-hint .chev { animation: none; }

/* --- ロゴを墨で書く（SVG のマスク） ---
   画ごとの画像（logo-stroke-1〜8.webp）に、その画の筆の通り道 1 本（.st）のマスクを掛ける。
   SVG は tools/site/build-logo-strokes.mjs が書く。線の太さ（stroke-width）は画ごとに SVG の属性で決めているので、ここでは指定しない */
.st {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.001;
  stroke-opacity: 0;
}
/* 筆ごとの書き始め（--d）と書く長さ（--t）。tools/pv/logo-strokes.mjs の筆順。.s1〜.s8 は画の番号 */
.st.s1 { --d: 0.2s; --t: 0.19s; }
.st.s2 { --d: 0.44s; --t: 0.31s; }
.st.s3 { --d: 0.83s; --t: 0.34s; }
.st.s4 { --d: 1.22s; --t: 0.16s; }
.st.s5 { --d: 1.46s; --t: 0.15s; }
.st.s6 { --d: 1.66s; --t: 0.36s; }
.st.s7 { --d: 2.1s; --t: 0.4s; }
.st.s8 { --d: 2.55s; --t: 0.1s; }
/* 2.7 秒で全部の画を出しきる保険（マスクごとに、画像の範囲を白で埋める四角） */
.st-all {
  opacity: 0;
}
/* 判子（logo-seal.webp）。押す中心は判子の真ん中（ロゴの座標で 949, 304） */
.seal-stamp {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 949px 304px;
}
.is-in .st {
  animation: nk-write var(--t) cubic-bezier(0.45, 0.05, 0.55, 0.95) var(--d) forwards;
}
.is-in .harai {
  animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.6);
}
.is-in .st-all {
  animation: nk-fade 0.5s ease 2.7s forwards;
}
.is-in .seal-stamp {
  animation: nk-stamp 0.42s cubic-bezier(0.2, 0.8, 0.3, 1.2) 2.85s forwards;
}
@keyframes nk-write {
  from { stroke-dashoffset: 1.001; stroke-opacity: 1; }
  to { stroke-dashoffset: 0; stroke-opacity: 1; }
}
@keyframes nk-fade {
  to { opacity: 1; }
}
@keyframes nk-stamp {
  0% { opacity: 0; transform: scale(1.9) rotate(-8deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
/* 動きを減らす設定：ロゴは最初から書き上がった姿 */
.rm .st { stroke-dashoffset: 0; stroke-opacity: 1; }
.rm .st-all, .rm .seal-stamp { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .st { stroke-dashoffset: 0; stroke-opacity: 1; }
  .st-all, .seal-stamp { opacity: 1; transform: none; }
}

/* ===== コンテナ単位（cqh・cqw）が無いブラウザ（Safari 15 など）の代わりの値 =====
   舞台（.sf-stage）と閉店の場面（.closing-scene）は、幅が画面の幅、高さが画面の高さ（下限つき）なので、
   cqw は vw、cqh は場面の高さ --cq-h に置き換える。暖簾の「二鼓」（.dye-niko）の cq は暖簾の一枚（.panel）が基準なので、
   暖簾の高さ（場面の高さ × --noren-h）と幅（（画面の幅 − 左右の壁）÷ 3）から計算した値にする。
   CSS の変数（--body-w・--shot-w・--sign-h）は、同じ宣言を2行並べる書き方では代わりの値にならない
   （変数は読み込み時に検査されず、使うときに無効になる）ので、ここに @supports でまとめる。
   スマホの営業画面の高さ（.screen の height）は変数を使わないので、ここではなく .screen の1行目
   （var(--cq-h, 100vh) − 350px）が代わりの値。cqh の 350px を変えたら、そちらも同じ値にする。 */
@supports not (height: 1cqh) {
  .sf-stage { --cq-h: max(100vh, 560px); }
  .closing-scene { --cq-h: max(100vh, 700px); }
  /* 44cqh = 44% × 暖簾の高さ 57%、132cqw = 132% × 暖簾の幅 91% ÷ 3 */
  .sf-stage .dye-niko { height: min(calc(var(--cq-h) * 0.2508), 40.04vw); }
  /* 閉店の暖簾は高さ 36% */
  .closing-scene .dye-niko { height: min(calc(var(--cq-h) * 0.1584), 40.04vw); }
  .sign-board { --sign-h: min(148px, calc(var(--cq-h) * 0.395 - 138px)); }
  @media (min-width: 760px) {
    .closing-scene { --cq-h: max(100vh, 640px); }
    /* 暖簾の高さ 50%（閉店は 34%）、幅 40% ÷ 3 */
    .sf-stage .dye-niko { height: min(calc(var(--cq-h) * 0.22), 17.6vw); }
    .closing-scene .dye-niko { height: min(calc(var(--cq-h) * 0.1496), 17.6vw); }
    .inside-body {
      --body-w: min(100vw, 1120px);
      --shot-w: min(calc(var(--cq-h) * 0.82 * 600 / 812), calc(var(--body-w) - 136px - max(340px, var(--body-w) * 0.42)));
    }
    .sign-board { --sign-h: min(196px, calc(var(--cq-h) * 0.435 - 128px)); }
  }
}
/* svh がある（Safari 15.4 以降）なら、場面の高さは svh で（舞台と閉店の場面の height と同じ） */
@supports (height: 1svh) and (not (height: 1cqh)) {
  .sf-stage { --cq-h: max(100svh, 560px); }
  .closing-scene { --cq-h: max(100svh, 700px); }
  @media (min-width: 760px) {
    .closing-scene { --cq-h: max(100svh, 640px); }
  }
}
