@charset "utf-8";
/* ==========================================================================
   やまぶき食堂 ｜ 定食とめし   共通スタイル
   ---------------------------------------------------------------------------
   デザインの決めごと（4ページ共通・ここを崩さない）
   1. 版は2色刷り。紙＝生成りの壁（明るい漆喰）、インク＝墨（茶みの黒）、
      差し色＝山吹1色のみ。濃淡は網点の密度で作り、色は増やさない。
   2. 骨格は「壁の短冊」。品名と値段を刷った紙片を壁に貼る、という単位で
      4ページとも組む。カード（角丸＋影＋等間隔）は1枚も使わない。角丸は0。
      例外は丸椅子・丸印だけ真円にする。
   3. 短冊の品名は縦書き（writing-mode: vertical-rl）。これが食堂の壁の作法。
      760px 未満では横書きの一覧に落とす（縦書きは指で追えないため）。
   4. 主役は実写。トーンは「昼の光と、湯気の熱」。白飯の艶・汁物の湯気・
      焼き色だけを使い、夜の店・赤提灯・ネオン・会席の御膳・笑顔のモデル・
      他店の屋号が写ったカットは使わない。
      グレーディングは書き出し時に saturation .96 / brightness 1.04 の一段だけ
      （＝±10%以内）。CSS での filter 追い足しはしない。
   5. 文字は写真の空いている側へ逃がす。全面ヴェールは張らない。
      スクリムは必ず「方向」を持たせ、被写体のいる側は素のまま鮮明にする。
      写真に乗る文字には text-shadow を必ず添える（スクリムと二重で守る）。
   6. 和文の折り返しは word-break:auto-phrase。見出しは <br> か .ln で
      区切りを明示する（単語の途中で折らない）。
   7. 刷り物の再現なのでページテーマは light 固定（貼り紙にダークはない）。
   ========================================================================== */

/* ---------- トークン ---------- */
:root {
  --paper: #f2eade;         /* 生成りの壁（明るい漆喰） */
  --paper-hi: #fbf7f0;      /* 貼り紙の白 */
  --paper-deep: #e3d7c2;    /* 壁の陰 */
  --sumi: #262019;          /* 墨（茶みの黒） */
  --sumi-72: rgba(38, 32, 25, 0.72);
  --sumi-58: rgba(38, 32, 25, 0.58);
  --sumi-30: rgba(38, 32, 25, 0.3);
  --sumi-16: rgba(38, 32, 25, 0.16);
  --sumi-08: rgba(38, 32, 25, 0.08);
  --yamabuki: #c07714;      /* 山吹。ページ唯一の差し色 */
  --yamabuki-d: #94590c;    /* 山吹の濃い方（文字に使う） */
  --yamabuki-14: rgba(192, 119, 20, 0.14);
  --yamabuki-30: rgba(192, 119, 20, 0.3);

  --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "BIZ UDPMincho",
    "Noto Serif JP", "Songti SC", serif;
  --gothic: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 68px);
  --wrap: 1140px;
  --nav-h: 66px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --focal: 50% 50%;   /* 写真の焦点。ページごとに上書きする */
  --sL: 0.72;         /* スクリム 左（文字側） */
  --sB: 0.6;          /* スクリム 下 */
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* 壁の粒。紙と写真に同じ粒をかけて、同じ版の上にあるように見せる */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.26;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--sumi);
  color: var(--paper-hi);
  padding: 12px 20px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--yamabuki-d);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
}

/* ================= 見出し・本文 ================= */
.h {
  font-family: var(--mincho);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.02em;
  margin: 0;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
}
.h--big { font-size: clamp(1.9rem, 5vw, 3.2rem); }

.eyebrow {
  font-family: var(--gothic);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--yamabuki-d);
  margin: 0 0 14px;
  line-height: 1.6;
}

.lede {
  font-size: clamp(0.97rem, 1.5vw, 1.09rem);
  line-height: 2.1;
  color: var(--sumi-72);
  margin: 18px 0 0;
  max-width: 34em;
}

p { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }

.sec { padding: clamp(66px, 10vw, 132px) 0; }
.sec--tight { padding: clamp(46px, 6.5vw, 84px) 0; }

/* ================= 暖簾（区切り） =================
   セクションの切り替わりに垂らす。5枚の布に切れ目が入った形をCSSで作る。 */
.noren {
  display: flex;
  gap: 4px;
  height: clamp(46px, 7vw, 74px);
  padding-inline: var(--pad);
  background: linear-gradient(var(--sumi) 0 5px, transparent 5px);
}
.noren > span {
  flex: 1;
  background: var(--yamabuki);
  box-shadow: inset 0 -14px 22px -14px rgba(0, 0, 0, 0.35);
}
.noren > span:nth-child(odd) { background: var(--yamabuki-d); }
.noren--sumi > span { background: var(--sumi); }
.noren--sumi > span:nth-child(odd) { background: #3a3128; }

/* ================= ヘッダ ================= */
.head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--sumi-16);
}
.head__in {
  width: min(100% - var(--pad) * 2, var(--wrap));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 9px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
/* 屋号の前に垂らす小さな暖簾 */
.brand__noren {
  display: flex;
  gap: 2px;
  width: 30px;
  height: 26px;
  flex-shrink: 0;
  background: linear-gradient(var(--sumi) 0 3px, transparent 3px);
}
.brand__noren > i { flex: 1; background: var(--yamabuki); }
.brand__noren > i:nth-child(2) { background: var(--yamabuki-d); }
.brand__name {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: 0.09em;
  display: block;
  line-height: 1.3;
}
.brand__ruby {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--sumi-58);
  line-height: 1.3;
}
.nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
  flex-wrap: wrap;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}
.nav a {
  text-decoration: none;
  padding: 5px 1px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.nav a:hover { border-bottom-color: var(--yamabuki); }
.nav a[aria-current="page"] {
  border-bottom-color: var(--sumi);
  font-weight: 700;
}

/* ================= 全面写真（ヒーロー／各ページの頭） ================= */
.plate { position: relative; isolation: isolate; }
.plate__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.plate__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal);
}
/* スクリムは方向を持たせる。左（文字側）と下だけ。被写体側は素のまま */
.plate__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(28, 22, 16, var(--sL)) 0%,
      rgba(28, 22, 16, calc(var(--sL) * 0.45)) 38%, transparent 68%),
    linear-gradient(to top, rgba(28, 22, 16, var(--sB)) 0%, transparent 46%);
}

.hero {
  min-height: min(94svh, 860px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(46px, 8vw, 96px);
}
.hero__box { max-width: 40em; }
.hero__h {
  font-family: var(--mincho);
  font-weight: 600;
  color: var(--paper-hi);
  margin: 0;
  font-size: clamp(2.05rem, 5.4vw, 4.15rem);
  line-height: 1.34;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 34px rgba(0, 0, 0, 0.42);
}
/* 1行 = .ln。overflow:hidden で刷り上がりを作るので、入りきらない字は
   黙って消える。行の実測幅が枠に収まっているかを必ず確認すること。 */
.ln { display: block; overflow: hidden; }
.ln > span { display: block; white-space: nowrap; }

.hero__lede {
  color: rgba(255, 250, 242, 0.92);
  margin-top: 22px;
  max-width: 27em;
  font-size: clamp(0.94rem, 1.5vw, 1.05rem);
  line-height: 2.05;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(0, 0, 0, 0.4);
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* 湯気。写真の上をゆっくり昇る白い靄 */
.steam {
  position: absolute;
  z-index: -1;
  left: 46%;
  bottom: 16%;
  width: min(46vw, 420px);
  height: 46%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 253, 248, 0.5), transparent 72%);
  filter: blur(26px);
  opacity: 0;
}
.has-motion .steam { animation: steam 9s var(--ease) infinite; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(18%) scale(0.86); }
  38% { opacity: 0.62; }
  100% { opacity: 0; transform: translateY(-42%) scale(1.24); }
}

/* ページ頭（下層3ページ） */
.plate--head {
  min-height: min(58svh, 520px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 34px) 0 clamp(32px, 5vw, 62px);
}
.plate--head .h {
  color: var(--paper-hi);
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 28px rgba(0, 0, 0, 0.4);
}
.plate--head .eyebrow { color: #f0c477; }
.plate--head .lede {
  color: rgba(255, 250, 242, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ================= ボタン ================= */
.btn {
  display: inline-block;
  font-family: var(--gothic);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid var(--sumi);
  background: var(--sumi);
  color: var(--paper-hi);
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--yamabuki-d); border-color: var(--yamabuki-d); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--paper-hi);
  border-color: rgba(255, 250, 242, 0.72);
}
.btn--ghost:hover { background: var(--paper-hi); color: var(--sumi); border-color: var(--paper-hi); }
.btn--ink { background: transparent; color: var(--sumi); }
.btn--ink:hover { background: var(--sumi); color: var(--paper-hi); border-color: var(--sumi); }

/* ================= 短冊の壁（このサイトの骨格） =================
   品名は縦書き。値段は下に横書き。紙片は少しずつ傾けて壁に貼る。 */
.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 20px);
}
.tz {
  position: relative;
  flex: 0 0 auto;
  width: clamp(74px, 9.2vw, 116px);
  min-height: 306px;
  background: var(--paper-hi);
  border: 1px solid var(--sumi-16);
  padding: 26px 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 2px 3px 0 var(--sumi-08);
}
/* 壁に貼った紙テープ */
.tz::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  translate: -50% 0;
  width: 30px;
  height: 15px;
  background: var(--yamabuki-30);
  border-inline: 1px solid var(--yamabuki-14);
}
.tz:nth-child(3n) { rotate: -0.7deg; }
.tz:nth-child(3n + 2) { rotate: 0.6deg; }
.tz__name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  letter-spacing: 0.09em;
  line-height: 1.35;
  /* 短い品名（冷奴・納豆）でも札の中で泳がないよう、余りを上下に等分する */
  margin: auto 0;
}
.tz__price {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--sumi-16);
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tz__price small {
  display: block;
  font-family: var(--gothic);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--sumi-58);
  line-height: 1.5;
}
/* 名札（おすすめ・売り切れ） */
.tz__tag {
  position: absolute;
  top: 20px;
  right: -1px;
  background: var(--yamabuki);
  color: #fff;
  font-family: var(--gothic);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 5px;
  writing-mode: vertical-rl;
}

/* 品書きの章（お品書きページ） */
.course + .course { margin-top: clamp(40px, 5.4vw, 70px); }
.course__h {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.course__h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sumi-16);
}
.course__note {
  font-size: 0.84rem;
  color: var(--sumi-58);
  margin: 0 0 24px;
}

/* ================= 二段組み・写真つきの節 ================= */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.duo--rev .duo__fig { order: 2; }
.duo__fig { position: relative; margin: 0; }
.duo__fig img { width: 100%; }
.duo__cap {
  font-size: 0.76rem;
  color: var(--sumi-58);
  margin-top: 10px;
  line-height: 1.8;
}

/* 帯写真 */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; object-position: var(--focal); }

/* ================= 表（盛り・営業時間） ================= */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.tbl caption {
  text-align: left;
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  padding-bottom: 12px;
}
.tbl th, .tbl td {
  border-bottom: 1px solid var(--sumi-16);
  padding: 14px 6px;
  text-align: left;
  vertical-align: top;
}
.tbl th {
  font-weight: 700;
  white-space: nowrap;
  width: 8.4em;
  font-size: 0.9rem;
}
.tbl td { font-variant-numeric: tabular-nums; }
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 2px solid var(--sumi); }

/* 貼り紙（注記のかたまり） */
.slip {
  background: var(--paper-hi);
  border: 1px solid var(--sumi-16);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 3px 4px 0 var(--sumi-08);
}
.slip h3 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}
.slip ul { margin: 0; padding-left: 1.15em; }
.slip li { margin-bottom: 8px; font-size: 0.9rem; line-height: 1.9; }
.slip li:last-child { margin-bottom: 0; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 34px);
}

/* 年表 */
.chrono { list-style: none; margin: 0; padding: 0; }
.chrono li {
  display: grid;
  grid-template-columns: 7.4em minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sumi-16);
}
.chrono li:first-child { border-top: 2px solid var(--sumi); }
.chrono b {
  font-family: var(--mincho);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.chrono span { font-size: 0.94rem; color: var(--sumi-72); }

/* 地図 */
.map { background: var(--paper-hi); border: 1px solid var(--sumi-16); padding: clamp(16px, 2.4vw, 28px); }
.map svg { width: 100%; height: auto; display: block; }

/* ================= フッタ ================= */
.foot {
  background: var(--sumi);
  color: var(--paper-hi);
  padding: clamp(50px, 7vw, 84px) 0 34px;
}
.foot__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); }
.foot__name { font-family: var(--mincho); font-size: 1.4rem; letter-spacing: 0.1em; margin: 0 0 12px; }
.foot p { color: rgba(251, 247, 240, 0.76); font-size: 0.9rem; }
.foot__nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__nav a {
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  padding: 2px 0;
}
.foot__nav a:hover { border-bottom-color: var(--yamabuki); }
.foot__end {
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(251, 247, 240, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-note {
  font-size: 0.74rem;
  color: rgba(251, 247, 240, 0.6);
  line-height: 1.85;
  margin: 0;
}

/* ================= 出（スクロールで刷り上がる） ================= */
.has-motion [data-reveal] { opacity: 0; transform: translateY(16px); }
.has-motion [data-lines] .ln > span { transform: translateY(105%); }
.has-motion [data-rise] { clip-path: inset(100% 0 0 0); }

/* 短冊は壁ごと一枚の板として出さず、一枚ずつ貼る。
   この節の文（壁に貼ってある分が、今日つくれる分です）がそのまま動きになる。
   ⚠ 傾き（.tz:nth-child）は transform でなく rotate プロパティで持たせてある。
     GSAP は transform 側へ書くので、傾きは消えずに合成される。 */
.has-motion [data-wall] .tz { opacity: 0; transform: translateY(-12px); }

/* 暖簾は掛かってから読ませる。上から一枚ずつ落ちて止まる（揺らし続けない） */
.noren { overflow: hidden; }
.has-motion .noren > span { transform: translateY(-101%); }

/* ================= レスポンシブ ================= */
@media (max-width: 900px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo--rev .duo__fig { order: 0; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
  /* 短冊は縦書きをやめ、指でなぞれる横一列の品書きに落とす */
  .wall { display: block; }
  .tz {
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 14px;
    rotate: none !important;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--sumi-16);
    background: transparent;
  }
  .tz::before { display: none; }
  .tz__name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1.02rem;
    flex: 0 1 auto;
  }
  /* 品名と値段を点線でつなぐ（紙のお品書きと同じ組み方） */
  .tz__name::after {
    content: "";
    display: inline-block;
    vertical-align: 0.28em;
    width: 0;
  }
  .tz__price {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    width: auto;
    text-align: right;
    flex: 0 0 auto;
  }
  /* 税抜は値段の下へ落として、円の桁を右で揃える（紙の品書きと同じ組み方） */
  .tz__price small { display: block; text-align: right; margin-top: 1px; }
  .tz__tag {
    writing-mode: horizontal-tb;
    position: static;
    margin-left: 6px;
    padding: 2px 6px;
  }
  .chrono li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tbl th { width: auto; }
}

@media (max-width: 480px) {
  .head__in { gap: 10px; }
  .nav { gap: 14px; font-size: 0.8rem; }
}

/* ================= 動きを止める設定 ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-motion [data-reveal],
  .has-motion [data-wall] .tz,
  .has-motion .noren > span,
  .has-motion [data-rise] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .has-motion [data-lines] .ln > span { transform: none !important; }
  .has-motion .steam { animation: none; opacity: 0.4; }
  .btn:hover { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
