/* ==========================================================================
   炭火割烹（デザインサンプル t03 / Lv3 クリエイティブ。店名は出さない）

   方向: 暗く、静かな、和。明かりを落とした店内の暗がりに、炭火がひとつ。
   ・地は墨の黒。写真も炭火も、同じ暗がりから「灯る」ように現れる
     （最初の画面は備長炭の寄りの写真だけ。炭火は手を近づけた所から、写真は下の縁から明るむ）。
   ・書体は明朝ひとつ。見出し・品名は縦書き。見出しは各段の右の列に置く（縦組みの柱）。
   ・朱は点と線だけ（灯った熾・絵巻の進み具合の線・フォーカス）。面には使わない。
   ・レイアウトは格子（スマホ 6 列・PC 12 列）に沿って置き、写真を端まで出すときも格子の線で止める。

   差し替えポイント
   ・お店ごとに変えるのは、この :root の変数と index.html の本文だけ。
   ・炭火（WebGL）の空の色は --sumi を main.js が読む。火の色は main.js の glow()。
   ========================================================================== */

:root {
  /* 色 — 墨・炭・わずかな朱（青みは入れない。飲食で青は食欲が落ちる） */
  --sumi: #0d0b09;                      /* 地。墨の黒 */
  --sumi-2: #15120f;                    /* 一段明るい黒。下の帯・PC の札 */
  --sumi-3: #1b1713;                    /* 写真が届くまでの枠 */
  --kinari: #e9e2d6;                    /* 見出しと強い文字（15:1） */
  --text: #d3ccc0;                      /* 本文（12:1） */
  --hai: #a29a8d;                       /* 補足の文字（7:1） */
  --oki-ne: #6a2a18;                    /* 灯る前の熾の点（熾火の暗い朱）。文字には使わない */
  --keisen: rgba(233, 226, 214, .14);   /* 罫 */
  --keisen-2: rgba(233, 226, 214, .3);  /* 少し強い罫（品書きの点線・ボタンの枠） */
  --shu: #c8502f;                       /* 朱。点と線だけ */
  --shu-hi: #e8774f;                    /* 灯った朱。リンクの線・フォーカス（6.7:1） */

  /* 書体 — 明朝ひとつ。差し替えるときは index.html の Google Fonts の行も */
  --f: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, serif;
  /* 文字の大きさ — 1.25 倍ずつ */
  --fs-xs: .75rem;      /* 12 */
  --fs-s: .8125rem;     /* 13 */
  --fs-m: 1.0625rem;    /* 17 */
  --fs-l: 1.25rem;      /* 20 */
  --fs-xl: 1.5625rem;   /* 25 */
  --fs-2xl: 1.9375rem;  /* 31 */

  /* 格子と余白 — スマホ 6 列、PC（1024px〜）12 列。縦の間隔は 8 の倍数 */
  --cols: 6;
  --gap: 12px;                          /* 列の間 */
  --gutter: clamp(20px, 6vw, 96px);     /* 左右の余白 */
  --max: 1320px;                        /* 本文の最大幅 */
  --colw: calc((var(--max) - (var(--cols) - 1) * var(--gap)) / var(--cols));
  --sec: clamp(112px, 12vw, 184px);     /* 段（セクション）の間 */
  --lead: clamp(40px, 5vw, 64px);       /* 見出しと中身の間 */
  --dock-h: 60px;                       /* スマホの下の帯 */

  /* 灯る速さ — ゆっくり灯って、さらにゆっくり消える */
  --lit-in: 1.2s;
  --lit-out: 2.6s;
  --rise: 3.2s;                         /* 写真が下から明るむ時間 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 640px) { :root { --gap: 20px; } }
@media (min-width: 1024px) { :root { --cols: 12; --gap: 24px; } }

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--sumi);
  scrollbar-color: #352f29 var(--sumi);
}
body {
  margin: 0;
  background: var(--sumi);
  color: var(--text);
  font-family: var(--f);
  font-weight: 500;
  font-size: .9375rem;
  line-height: 1.9;
  letter-spacing: .06em;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p, dd { text-wrap: pretty; word-break: auto-phrase; }
small { font-size: inherit; }
::selection { background: #6b2916; color: var(--kinari); }
:focus-visible { outline: 1px solid var(--shu-hi); outline-offset: 6px; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--sumi); }
::-webkit-scrollbar-thumb { background: #2c2621; border: 3px solid var(--sumi); border-radius: 11px; }

.nw { white-space: nowrap; }
.skip { position: absolute; z-index: 100; left: 12px; top: -80px; padding: 10px 16px; background: var(--kinari); color: var(--sumi); text-decoration: none; }
.skip:focus { top: 12px; }

/* 格子: 左右の余白の列 ＋ 本文の列。
   線の番号 — 1 = 画面の左端、2〜 = 本文の 1 列目の始まり、-1 = 画面の右端。
   本文の k 列目は「k+1 / k+2」。スマホは 2〜8、PC は 2〜14 が本文。写真を端まで出すときは 1 か -1 まで */
.g {
  display: grid;
  column-gap: var(--gap);
  grid-template-columns:
    minmax(max(0px, calc(var(--gutter) - var(--gap))), 1fr)
    repeat(var(--cols), minmax(0, var(--colw)))
    minmax(max(0px, calc(var(--gutter) - var(--gap))), 1fr);
}

/* 段の見出し: 短い名詞ひとつを縦書きで、右の列に置く */
.ttl {
  writing-mode: vertical-rl;
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); font-weight: 500;
  line-height: 1; letter-spacing: .34em; color: var(--kinari);
  white-space: nowrap;
}

/* ---------- 灯る: リンク・ボタン・写真で同じ決まり ---------- */
/* 熾の点。灯る前は暗い炭の色、触れると内側から赤く灯る */
.ember { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--oki-ne); }
.ember::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffdcae 0 16%, #f0844f 44%, var(--shu) 74%, rgba(200, 80, 47, 0) 100%);
  opacity: 0; transition: opacity var(--lit-out) var(--ease);
}
a:hover .ember::after, a:focus-visible .ember::after { opacity: 1; transition-duration: var(--lit-in); }
.act--main .ember { background: transparent; }

/* 文字のリンク: 灯ると明るくなり、下の線が朱になる */
.head__nav a, .info a {
  text-decoration: underline 1px; text-decoration-color: transparent; text-underline-offset: 7px;
  transition: color var(--lit-out) var(--ease), text-decoration-color var(--lit-out) var(--ease);
}
.info a { text-decoration-color: var(--keisen-2); display: inline-block; padding-block: 8px; margin-block: -8px; }   /* 見た目は変えず、押せる高さを 44px に */
.head__nav a:hover, .info a:hover,
.head__nav a:focus-visible, .info a:focus-visible {
  color: var(--kinari); text-decoration-color: var(--shu-hi); transition-duration: var(--lit-in);
}

/* ボタン */
.act {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 14px;
  min-height: 58px; padding: 14px 24px;
  border: 1px solid var(--keisen-2); color: var(--kinari);
  font-size: .9375rem; line-height: 1.5; letter-spacing: .14em; text-decoration: none;
  background-color: rgba(200, 80, 47, 0);
  transition: border-color var(--lit-out) var(--ease), background-color var(--lit-out) var(--ease), color var(--lit-out) var(--ease);
}
.act:hover, .act:focus-visible { border-color: rgba(232, 119, 79, .75); background-color: rgba(200, 80, 47, .1); transition-duration: var(--lit-in); }
/* いちばん押してほしいボタン: 生成りの面に墨の文字。灯ると、面がわずかに温かくなる */
.act--main { border-color: var(--kinari); background-color: var(--kinari); color: var(--sumi); }
.act--main:hover, .act--main:focus-visible { border-color: #f4e6d2; background-color: #f4e6d2; }
.act__num { font-size: .875rem; letter-spacing: .1em; color: var(--hai); font-variant-numeric: tabular-nums; }

/* 写真: 明かりを落とした店内。画面に入った写真は、炭の明かりに照らされるように
   下の縁から温かく明るんでいく（main.js が is-lit を付ける。一度灯ったら消えない）。
   暗さは上に重ねた墨の層で出し、層を上へ送るだけ（transform と透明度だけを動かす） */
.ph { position: relative; overflow: hidden; background: var(--sumi-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
html.ph-ready .ph::after {
  content: ''; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 260%; pointer-events: none;
  background: linear-gradient(to bottom, var(--sumi) 0%, var(--sumi) 37%, rgba(13, 11, 9, .74) 46%, rgba(13, 11, 9, .3) 54%, rgba(13, 11, 9, 0) 62%);
  transform: translateY(0);
  transition: transform var(--rise) cubic-bezier(.42, .08, .28, 1);
}
html.ph-ready .ph.is-lit::after { transform: translateY(-62%); }
/* 下から届く温かい光。灯る途中でいちばん強く、そのあと弱く残る */
html.ph-ready .ph::before {
  content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: radial-gradient(130% 70% at 50% 112%, rgba(255, 164, 98, .62), rgba(232, 119, 79, .18) 46%, rgba(232, 119, 79, 0) 72%);
  mix-blend-mode: soft-light; opacity: 0;
}
html.ph-ready .ph.is-lit::before { animation: warm calc(var(--rise) * 1.3) ease-out both; }
@keyframes warm { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .42; } }
/* 写真が届かなかったとき: 暗い枠に、何の写真が入るかを小さく出す（main.js が is-missing を付ける） */
.ph.is-missing img { visibility: hidden; }
.ph.is-missing::after {
  content: attr(data-shot) !important; position: absolute; inset: auto 0 0 0 !important; height: auto !important; transform: none !important;
  padding: 12px 14px; background: none !important; font-size: var(--fs-xs); letter-spacing: .1em; color: var(--hai);
}

/* ---------- 上の帯（最初の画面の上だけ。スクロールすると流れる） ---------- */
.head {
  position: absolute; z-index: 10; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 2.6vw, 34px) var(--gutter);
}
.logo { display: inline-flex; align-items: baseline; gap: .9em; padding: 12px 0; text-decoration: none; white-space: nowrap; }
.logo__kind { font-size: var(--fs-xs); letter-spacing: .3em; color: var(--hai); }
.logo__name { font-size: 1rem; letter-spacing: .36em; color: var(--kinari); }
.head__nav { display: flex; gap: clamp(16px, 2.8vw, 40px); margin-right: -2px; }
.head__nav a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; min-width: 44px; font-size: .8125rem; letter-spacing: .16em; color: var(--hai); white-space: nowrap; }
.head__nav .head__cta { color: var(--kinari); }
/* 狭い画面ではご予約だけを残す（ほかは下の帯とスクロールで届く） */
@media (max-width: 759px) { .head__nav a:not(.head__cta) { display: none; } }

/* ---------- 最初の画面: 炭火 ---------- */
.hero { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; background: var(--sumi); }
.hero__fire { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; touch-action: pan-y; }
/* 手前の炭は暗がりに沈め、次の段へ黒のままつなぐ */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 11, 9, 0), var(--sumi));
}
/* 写真の上と下をわずかに暗くして、上の帯と下の文字を読めるようにする */
.hero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 28%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 11, 9, .72), rgba(13, 11, 9, 0));
}
.hero__note {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 1.6em;
  font-size: .8125rem; line-height: 1.9; letter-spacing: .14em; color: var(--hai); text-align: center;
}
/* 炭が熾ってから、下の文字が現れる */
.js:not(.is-static) .hero__note { animation: dawn 2.2s var(--ease) 2.9s both; }
@keyframes dawn { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- おまかせ ----------
   スマホ・動きを減らす設定・JS なし: 縦に並ぶお品書き。右の列に縦書きの品名、左に写真。
   品名の列の左に一本の罫を通して、お品書きの紙面にする。
   PC（1024px〜）で JS が動くときだけ、下の「絵巻」に切り替わる（html.has-emaki） */
.course { position: relative; padding-top: var(--sec); }
.course__track { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.course__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gap); align-items: start;
  margin-bottom: calc(var(--lead) + 16px);
}
.course__head .ttl { grid-column: 2; grid-row: 1; }
.course__price { grid-column: 1; grid-row: 1; display: grid; gap: 22px; align-content: start; max-width: 26em; }
.price { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--keisen); }
.price__num { font-size: clamp(1.75rem, 1.5rem + 1vw, var(--fs-2xl)); font-weight: 500; line-height: 1.2; letter-spacing: .06em; color: var(--kinari); font-variant-numeric: lining-nums tabular-nums; }
.price__num small { margin-left: .2em; font-size: .5em; letter-spacing: .1em; }
.price__note { font-size: var(--fs-s); letter-spacing: .1em; color: var(--hai); }
.course__facts { display: grid; gap: 2px; }
.course__facts > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); column-gap: 12px; }
.course__facts dt { font-size: var(--fs-s); line-height: 2.1; letter-spacing: .16em; color: var(--hai); }
.course__facts dd { color: var(--kinari); }
.course__lead { padding-top: 18px; border-top: 1px solid var(--keisen); font-size: .9375rem; }

.dishes { --name-w: 84px; position: relative; display: grid; row-gap: clamp(48px, 10vw, 80px); }
/* 品名の列の左を通る一本の罫 */
.dishes::before { content: ''; position: absolute; top: 2px; bottom: 2px; right: calc(var(--name-w) + var(--gap) / 2); width: 1px; background: var(--keisen); }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) var(--name-w); column-gap: var(--gap); align-items: start; }
.dish__name {
  grid-column: 2; grid-row: 1; justify-self: end;
  writing-mode: vertical-rl; display: flex; flex-direction: column; gap: .6em;
}
.dish__label { font-size: var(--fs-xs); line-height: 1.5; letter-spacing: .26em; color: var(--hai); white-space: nowrap; }
.dish__no { margin-inline-end: .9em; color: var(--kinari); }
.dish__what { font-size: 1rem; line-height: 1.7; letter-spacing: .14em; color: var(--kinari); white-space: nowrap; }
.dish__ph { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; }
.dish__note { grid-column: 1; grid-row: 2; margin-top: 18px; font-size: var(--fs-s); line-height: 1.9; color: var(--text); max-width: 26em; }
/* 写真の置き方（散らし）: 大きさと寄せる側を一品ずつ変える */
.dish--b .dish__ph { width: 74%; justify-self: end; }
.dish--d .dish__ph { aspect-ratio: 3 / 2; width: calc(100% + var(--gutter)); margin-left: calc(var(--gutter) * -1); }
.dish--f .dish__ph { width: 92%; }
/* 写真のない品は、品名だけを少し大きく */
.dish--c .dish__what, .dish--e .dish__what, .dish--g .dish__what { font-size: 1.0625rem; }

.course__bar { display: none; }

/* ---------- お飲み物 ---------- */
.drink { padding-top: var(--sec); }
.drink__ttl { grid-column: 7 / 8; grid-row: 1; justify-self: end; }
.drink__ph { grid-column: 1 / 7; grid-row: 1; aspect-ratio: 4 / 5; }
.drink__body { grid-column: 2 / 8; grid-row: 2; margin-top: var(--lead); }
.drink__lead { max-width: 30em; margin-bottom: 36px; }
.carte { padding-top: 22px; border-top: 1px solid var(--keisen); }
.carte + .carte { margin-top: 36px; }
.carte__ttl { display: flex; align-items: baseline; gap: 1em; margin-bottom: 12px; font-size: var(--fs-m); font-weight: 500; line-height: 1.6; letter-spacing: .2em; color: var(--kinari); }
.carte__ttl small { font-size: var(--fs-xs); letter-spacing: .14em; color: var(--hai); }
.carte__list { display: grid; gap: 4px; }
.carte__list > div { display: flex; align-items: baseline; }
/* 品名と価格を点線でつなぐ（お品書きのリーダー） */
.carte__list dt { flex: 1; display: flex; align-items: baseline; min-width: 0; }
.carte__list dt::after { content: ''; flex: 1; min-width: 1.5em; margin: 0 .9em; border-bottom: 1px dotted var(--keisen-2); transform: translateY(-.32em); }
.carte__list dd { flex: none; color: var(--kinari); font-variant-numeric: tabular-nums; }
.carte__note { margin-top: 10px; font-size: var(--fs-s); line-height: 1.85; color: var(--hai); }
.drink__note { margin-top: 32px; font-size: var(--fs-s); line-height: 1.85; color: var(--hai); }

/* ---------- お席 ---------- */
.seats { padding-top: var(--sec); }
.seats__ttl { grid-column: 7 / 8; grid-row: 1; justify-self: end; }
.seats__lead { grid-column: 2 / 7; grid-row: 1; align-self: start; font-size: var(--fs-m); line-height: 1.9; color: var(--kinari); }
.seats__counter { grid-column: 1 / -1; grid-row: 2; margin-top: var(--lead); aspect-ratio: 3 / 2; }
.seats__counter img { object-position: 50% 62%; }
/* 手元の写真は、カウンターの写真の右下に少し重ねる */
.seats__hands { grid-column: 4 / -1; grid-row: 3; aspect-ratio: 3 / 2; margin-top: -22%; position: relative; z-index: 1; box-shadow: 0 0 0 10px var(--sumi); }
.seats__rows { grid-column: 2 / 8; grid-row: 4; margin-top: var(--lead); }

/* 決まり・店舗情報・お席の表 */
.rows { display: grid; gap: 22px; padding-top: 24px; border-top: 1px solid var(--keisen); }
.rows > div { display: grid; gap: 2px; }
.rows dt { font-size: var(--fs-s); line-height: 1.9; letter-spacing: .16em; color: var(--hai); }
.rows dd { font-variant-numeric: tabular-nums; }

/* ---------- ご予約 ---------- */
.reserve { padding-top: var(--sec); }
/* 帯: 熾の寄りの写真。上下と右の端は地の黒に溶ける（右の端には見出しがかかる） */
.reserve__band {
  aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 58%, transparent), linear-gradient(to right, #000 64%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 58%, transparent), linear-gradient(to right, #000 64%, transparent 98%);
  mask-composite: intersect;
}
.reserve__band img { object-position: 50% 90%; }
.reserve__ttl { grid-column: 7 / 8; grid-row: 1; justify-self: end; margin-top: calc(var(--lead) * -1.25); position: relative; z-index: 3; }
.reserve__lead { grid-column: 2 / 7; grid-row: 1; display: grid; gap: 24px; align-content: start; }
.reserve__lead > p:first-child { color: var(--kinari); }
.acts { display: grid; gap: 12px; max-width: 400px; }
.reserve__tel { font-size: var(--fs-s); letter-spacing: .1em; color: var(--hai); }
.reserve__rules { grid-column: 2 / 8; grid-row: 2; margin-top: var(--lead); }

/* ---------- 店舗情報 ---------- */
.access { padding-top: var(--sec); }
.access__ttl { grid-column: 7 / 8; grid-row: 1; justify-self: end; }
.access__body { grid-column: 2 / 7; grid-row: 1; display: grid; gap: 36px; justify-items: start; align-content: start; }
.access__body .rows { justify-self: stretch; }
/* 入口の写真は右の端まで出す（お飲み物は左の端。端を左右で変える） */
.access__ph { grid-column: 3 / -1; grid-row: 2; margin-top: var(--lead); aspect-ratio: 4 / 5; }

/* ---------- 下の端 ---------- */
.foot { padding: var(--sec) 0 calc(56px + env(safe-area-inset-bottom, 0px)); }
.foot__in { align-items: end; }
.foot__in::before { content: ''; grid-column: 2 / -2; grid-row: 1; height: 1px; margin-bottom: 48px; background: var(--keisen); }
.foot__name { grid-column: 7 / 8; grid-row: 2; justify-self: end; writing-mode: vertical-rl; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot__kind { font-size: var(--fs-xs); line-height: 1; letter-spacing: .4em; color: var(--hai); }
.foot__name span:last-child { padding-top: .8em; font-size: 1.375rem; line-height: 1; letter-spacing: .3em; color: var(--kinari); }
.foot__note { grid-column: 2 / 6; grid-row: 2; font-size: var(--fs-xs); line-height: 1.9; letter-spacing: .04em; color: var(--hai); }

/* ---------- ご予約への近道: スマホは下の帯、PC は右端の縦の札。最初の画面を過ぎたら出る ---------- */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--sumi-2); border-top: 1px solid var(--keisen);
  transform: translateY(101%); visibility: hidden;
  transition: transform 1s var(--ease), visibility 0s 1s;
}
.show-dock .dock { transform: none; visibility: visible; transition: transform 1.2s var(--ease), visibility 0s; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; letter-spacing: .16em; }
.dock__tel { width: 104px; border-right: 1px solid var(--keisen); font-size: .8125rem; color: var(--hai); }
.dock__main { flex: 1; font-size: .9375rem; color: var(--kinari); }
.show-dock .foot { padding-bottom: calc(var(--dock-h) + 56px + env(safe-area-inset-bottom, 0px)); }

/* ---------- サンプル用のお知らせ ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 16px);
  width: max-content; max-width: min(90vw, 440px); padding: 12px 18px;
  background: #1d1915; color: var(--kinari); border: 1px solid var(--keisen);
  font-size: .8125rem; line-height: 1.7; letter-spacing: .04em;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .4s, transform .4s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   静止の絵に切り替え（動きを減らす設定・WebGL が使えない・JavaScript が動かない）
   ========================================================================== */
:is(html.is-static, html:not(.js)) .hero { background: var(--sumi) url(assets/photos/sumi.webp) 50% 50% / cover no-repeat; }
:is(html.is-static, html:not(.js)) .hero__fire { display: none; }

/* ---------- 少し広い画面 ---------- */
@media (min-width: 640px) {
  .rows > div { grid-template-columns: 6.5em minmax(0, 1fr); column-gap: 20px; }
  .rows dt { line-height: 2.2; }
  .hero__note span + span::before { content: ''; display: inline-block; width: 1px; height: .85em; margin-right: 1.6em; background: var(--keisen); vertical-align: -.08em; }
  .dishes { --name-w: 112px; }
  .dish__what { font-size: 1.125rem; }
  .dish--c .dish__what, .dish--e .dish__what, .dish--g .dish__what { font-size: 1.1875rem; }
  .reserve__band { aspect-ratio: 21 / 9; }
}

/* ---------- PC（1024px〜、12 列） ---------- */
@media (min-width: 1024px) {
  body { font-size: 1rem; }
  .toast { bottom: 28px; }

  /* 見出しはどの段も 12 列目。中身はその左に組む */
  .drink__ttl, .seats__ttl, .reserve__ttl, .access__ttl { grid-column: 13 / 14; }

  /* お飲み物: 写真は左の端から 5 列目まで（少し下げて始める）、品書きは 7〜11 列目 */
  .drink__ph { grid-column: 1 / 7; grid-row: 1 / span 2; align-self: start; margin-top: 104px; }
  .drink__body { grid-column: 8 / 13; grid-row: 1; margin-top: 0; }
  .drink__ttl { grid-row: 1 / span 2; }

  /* お席: カウンターは左の端から 10 列目まで（2:1 に切る）。11 列目に縦書きの一文、12 列目に見出し。
     手元の写真は 7〜11 列目で、カウンターの下の縁に重ねる */
  .seats__counter { grid-column: 1 / 12; grid-row: 1 / span 2; margin-top: 0; aspect-ratio: 2 / 1; }
  .seats__ttl { grid-row: 1; }
  .seats__lead { grid-column: 12 / 13; grid-row: 1 / span 2; justify-self: center; writing-mode: vertical-rl; font-size: var(--fs-m); line-height: 2.1; letter-spacing: .14em; }
  .seats__lead span { display: block; }   /* 縦書きでは一文ずつ行を分ける */
  .seats__hands { grid-column: 8 / 13; grid-row: 3 / span 2; margin-top: -136px; box-shadow: 0 0 0 14px var(--sumi); }
  .seats__rows { grid-column: 2 / 7; grid-row: 3; margin-top: 64px; }

  /* ご予約: 帯は 4:1。見出しは帯の下の縁にかける。案内とボタンは 7〜11 列目、決まりは 1〜5 列目 */
  .reserve__band { aspect-ratio: 4 / 1; }
  .reserve__ttl { grid-row: 1 / span 2; margin-top: -136px; }
  .reserve__lead { grid-column: 8 / 13; grid-row: 1; }
  .reserve__rules { grid-column: 2 / 7; grid-row: 1; margin-top: 0; }

  /* 店舗情報: 表は 1〜6 列目、入口の写真は 8〜11 列目（見出しに寄せる） */
  .access__body { grid-column: 2 / 8; grid-row: 1; }
  .access__ph { grid-column: 9 / 13; grid-row: 1; margin-top: 0; }

  .foot__name { grid-column: 13 / 14; }
  .foot__note { grid-column: 2 / 8; }

  /* 右端の縦の札（スマホの下の帯を、PC ではこの形にする）。画面の外へは送らず、灯るように出す */
  .dock {
    top: 50%; bottom: auto; left: auto; right: 0; height: auto; padding: 0;
    flex-direction: column; border: 1px solid var(--keisen); border-right: 0;
    transform: translateY(-50%); opacity: 0;
    transition: opacity var(--lit-out) var(--ease), visibility 0s var(--lit-out);
  }
  .show-dock .dock { transform: translateY(-50%); opacity: 1; transition: opacity var(--lit-in) var(--ease), visibility 0s; }
  .dock .dock__tel { display: none; }
  .dock .dock__main { writing-mode: vertical-rl; flex: none; gap: 14px; min-width: 44px; padding: 24px 13px; font-size: var(--fs-s); letter-spacing: .32em; }
  .show-dock .foot { padding-bottom: 56px; }
}

/* ---------- 絵巻（PC・JS が動き、動きを減らす設定でないとき。main.js が html に has-emaki を付ける）----------
   縦にスクロールすると、お品書きが右から左へ流れる（縦書きを読む向き）。
   段の高さ = 流れる距離 + 画面の高さ（main.js が --emaki-h に入れる）。中の絵は画面に固定 */
@media (min-width: 1024px) {
  html.has-emaki .course { --top: 15vh; --bottom: 82vh; height: var(--emaki-h, 400vh); padding-top: 0; }
  html.has-emaki .course__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  html.has-emaki .course__track {
    position: absolute; top: 0; right: 0; bottom: 0; width: max-content; margin: 0;
    display: flex; flex-direction: row-reverse; align-items: stretch; gap: 12vh;
    padding: var(--top) var(--gutter) calc(100vh - var(--bottom)) var(--gutter);
    /* will-change は付けない（横 3,000px を超える層をはじめから作り、GPU の記憶を圧迫して炭火の WebGL が落ちた）。
       動かすときは main.js が translate3d を当てる */
  }
  /* 頭: 右に見出し（上の線から）、その左に価格（下の線まで） */
  html.has-emaki .course__head { display: flex; flex-direction: row-reverse; gap: clamp(40px, 4vw, 64px); margin: 0; }
  html.has-emaki .course__head .ttl { align-self: flex-start; }
  html.has-emaki .course__price { align-self: flex-end; width: clamp(280px, 24vw, 340px); max-width: none; }
  html.has-emaki .dishes { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 12vh; height: 100%; }
  html.has-emaki .dishes::before { display: none; }
  /* 一品: 右に品名、左に写真。上端をそろえる */
  html.has-emaki .dish { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 3.4vh; flex: none; }
  html.has-emaki .dish__name { max-height: var(--h, 40vh); }
  html.has-emaki .dish__label { font-size: var(--fs-s); }
  html.has-emaki .dish__what { font-size: clamp(1.125rem, .5rem + 1.6vh, 1.4375rem); }
  html.has-emaki .dish__ph { flex: none; width: auto; height: var(--h); margin: 0; aspect-ratio: 4 / 5; }
  html.has-emaki .dish--d .dish__ph { aspect-ratio: 3 / 2; }
  html.has-emaki .dish__note { writing-mode: vertical-rl; max-height: 17em; margin: 0; font-size: .875rem; line-height: 2.1; letter-spacing: .12em; }
  /* 散らし: 上の線から下げる・下の線に立てる・まん中に浮かべる、を一品ずつ */
  html.has-emaki .dish--a { --h: 56vh; align-self: flex-start; }
  html.has-emaki .dish--b { --h: 42vh; align-self: flex-end; }
  html.has-emaki .dish--c { align-self: center; }
  html.has-emaki .dish--d { --h: 44vh; align-self: flex-start; margin-top: 7vh; }
  html.has-emaki .dish--e { align-self: flex-end; }
  html.has-emaki .dish--f { --h: 62vh; align-self: flex-start; }
  html.has-emaki .dish--g { align-self: center; padding-right: 2vh; }
  /* 進み具合: 下に細い罫。読んだぶんだけ、右から朱の線がのびる */
  html.has-emaki .course__bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 8vh; height: 1px; background: var(--keisen); }
  html.has-emaki .course__bar i { position: absolute; inset: 0; background: var(--shu); transform-origin: 100% 50%; transform: scaleX(0); }
  html.has-emaki .drink { padding-top: calc(var(--sec) * .55); }
}

/* ---------- 背の低い画面（横向きのスマホなど） ---------- */
@media (max-height: 520px) {
  .hero { min-height: 420px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
  html.ph-ready .ph::after, html.ph-ready .ph::before { display: none; }
}

/* 読み上げ用（画面には出さない） */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
