/* ===========================================================
   食堂つる匠 LP  —  天然食堂かふぅの構えを移植（提案デモ）
   構え: クリーム地＋和紙ノイズ / 角丸写真カードの非対称 /
         縦組みゴシック見出し＋手書き風欧文の透かし / 杏の丸ボタン
   モバイルファースト（base=375px, min-width で拡張）
   =========================================================== */

:root {
  /* 地色・紙 */
  --cream:      #f4e9d4;
  --cream-hi:   #fbf4e7;
  --cream-deep: #ecdcc0;
  --white:      #fffdf8;
  /* 文字（濃茶） */
  --ink:      #4a2f12;   /* 見出し */
  --ink-body: #6c5738;   /* 本文 */
  --ink-mute: #6f5a37;   /* キャプション・注記（AA:cream地で約5.4:1） */
  /* アクセント */
  --apricot:      #e2a24c;   /* ボタン等の面（塗り。上は濃茶文字） */
  --apricot-deep: #8a5a12;   /* ラベル文字・アイコン（AA:cream地で約5:1） */
  --salmon:      #dd8f7f;    /* ボタンの面（塗り。上は濃茶文字） */
  --salmon-deep: #b1503b;    /* 差し色テキスト（AA:白/cream地で4.5:1超） */
  /* 罫・透かし */
  --line:   #e6dabf;
  --script: rgba(255, 255, 255, .68);
  /* かたち */
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(74, 47, 18, .38);
  --shadow-sm: 0 10px 24px -16px rgba(74, 47, 18, .35);
  /* レイアウト */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-script: "Kaushan Script", cursive;
  /* プレースホルダ用の写真アイコン（マスク） */
  --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 19'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* 横はみ出し対策：ルート(html/body)には overflow を付けない（ページスクロールが壊れるため）。
   bleedする透かし欧文は、各ブロック側の overflow:hidden で封じ込める（下の .hero / .section で指定）。 */

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  color: var(--ink-body);
  background-color: var(--cream);
  /* 和紙ノイズ（極薄） */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* 手書き風の透かし欧文 */
.wm {
  font-family: var(--font-script);
  color: var(--script);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-size: clamp(58px, 16vw, 168px);
  font-weight: 400;
}

/* 縦組み見出し */
.v-head {
  writing-mode: vertical-rl;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .22em;
  line-height: 1.05;
  font-size: clamp(26px, 6.5vw, 40px);
  margin: 0;
}

/* kicker（小さめ大文字ラベル） */
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--apricot-deep);
  margin: 0 0 14px;
}

/* 主張見出し（横） */
.head {
  font-size: clamp(23px, 5.6vw, 34px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: .04em;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.lead { font-size: clamp(15px, 4vw, 16.5px); color: var(--ink-body); }

/* 日本語の文節改行（jp-linebreak / BudouX）：語中改行を防ぐ */
.bdx { word-break: keep-all; overflow-wrap: anywhere; }

/* ボタン（電話・地図） */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; letter-spacing: .04em; font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--salmon); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--apricot); transform: translateY(-2px); }

/* =================== ヘッダー =================== */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.hdr.scrolled {
  background: rgba(250, 244, 231, .9);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--cream-hi);
  display: grid; place-content: center;
  font-weight: 900; font-size: 17px; letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}
.brand__name { font-weight: 900; color: var(--ink); font-size: 17px; letter-spacing: .08em; line-height: 1.15; }
.brand__name small { display: block; font-size: 10px; letter-spacing: .3em; color: var(--ink-mute); font-weight: 700; }
.nav { display: none; }
.hdr__ig { display: grid; place-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); border: 1.5px solid var(--line); background: rgba(255,253,248,.6); }
.hdr__ig svg { width: 20px; height: 20px; }
.hdr__ig:hover { color: var(--salmon-deep); border-color: var(--salmon); }

/* =================== ヒーロー =================== */
.hero { position: relative; padding: 118px 0 44px; overflow: hidden; }
.hero__wm {
  position: absolute; top: 78px; right: -4vw; z-index: 0;
  font-size: clamp(74px, 27vw, 260px);
}
.hero__inner { position: relative; z-index: 1; }
.hero__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--salmon-deep);
  margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.hero__kicker::before { content: ""; width: 30px; height: 2px; background: var(--salmon); border-radius: 2px; }
.hero__catch {
  font-size: clamp(30px, 7vw, 46px); font-weight: 900; color: var(--ink);
  line-height: 1.35; letter-spacing: .02em; margin: 0 0 20px;
  word-break: keep-all; overflow-wrap: anywhere;
}
.hero__catch .mark { color: var(--salmon-deep); }
.hero__sub { font-size: clamp(14.5px, 3.8vw, 17px); color: var(--ink-body); margin: 0 0 26px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3;
}
.hero__badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 12.5px;
  padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 7px;
}
.hero__badge b { color: var(--salmon-deep); }

/* =================== セクション土台 =================== */
.section { position: relative; padding: clamp(58px, 12vw, 104px) 0; overflow: hidden; }
section[id], main[id] { scroll-margin-top: 88px; }
.section__wm { position: absolute; z-index: 0; opacity: .9; }
.sec-cream { background: linear-gradient(180deg, transparent, rgba(255,253,248,.5) 40%, rgba(255,253,248,.5)); }

/* 写真カード（共通・角丸＋フォールバック） */
.shot { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow-sm); }
.shot > img { width: 100%; height: 100%; object-fit: cover; }
.shot.is-missing { display: grid; place-content: center; text-align: center; padding: 20px; }
.shot.is-missing::before {
  content: ""; width: 46px; height: 46px; margin: 0 auto 10px;
  background: var(--ink-mute); -webkit-mask: var(--ph-icon) center/contain no-repeat; mask: var(--ph-icon) center/contain no-repeat;
  opacity: .5;
}
.shot.is-missing .ph-cap { font-size: 12px; color: var(--ink-mute); font-weight: 700; line-height: 1.6; max-width: 18em; }
.shot.is-missing .ph-cap small { display: block; font-weight: 500; opacity: .8; margin-top: 2px; }

/* =================== ごあいさつ =================== */
.greet__grid { display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 1; }
.greet__head { display: flex; align-items: flex-start; gap: 18px; }
.greet__wm { position: absolute; top: -34px; left: -6px; z-index: 0; }
.greet__body { position: relative; z-index: 1; }
.greet__body p { margin: 0 0 16px; }
.greet__note { font-size: 13px; color: var(--ink-mute); border-left: 3px solid var(--apricot); padding-left: 12px; }
.greet__photo { aspect-ratio: 3 / 4; max-width: 340px; }

/* =================== こだわり =================== */
.kodawari__head { max-width: 20em; margin-bottom: 34px; position: relative; z-index: 1; }
.feats { display: flex; flex-direction: column; gap: 16px; }
.feat {
  background: var(--white); border-radius: var(--r-md); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.feat__ic { width: 46px; height: 46px; color: var(--apricot-deep); margin-bottom: 14px; }
.feat__ic svg { width: 100%; height: 100%; }
.feat h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: .04em; }
.feat p { margin: 0; font-size: 14.5px; color: var(--ink-body); }

/* =================== お品書き（スライダー） =================== */
.menu__top { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; position: relative; z-index: 1; }
.menu__wm { position: absolute; top: -40px; right: 0; z-index: 0; }
.menu__scroller {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) 20px;
  scrollbar-width: thin;
  max-width: 100%;
}
.mcard { flex: 0 0 82%; max-width: 320px; scroll-snap-align: start; }
.mcard__ph { aspect-ratio: 5 / 4; margin-bottom: 14px; }
.pill {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: var(--white); color: var(--salmon-deep); font-weight: 700; font-size: 12px;
  padding: 5px 13px; border-radius: 999px; box-shadow: var(--shadow-sm); letter-spacing: .04em;
}
.mcard h3 { margin: 0 0 6px; font-size: 17px; font-weight: 900; color: var(--ink); }
.mcard p { margin: 0; font-size: 13.5px; color: var(--ink-body); }
.mcard .price { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--ink-mute); font-weight: 700; }
.menu__note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-mute); position: relative; z-index: 1; }

/* =================== ギャラリー =================== */
.gallery__head { margin-bottom: 30px; position: relative; z-index: 1; }
.grid-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-gal .shot { aspect-ratio: 1 / 1; }
.grid-gal .g-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.ig-cta {
  margin-top: 26px; display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-sm); align-items: flex-start;
}
.ig-cta__t { font-weight: 900; color: var(--ink); font-size: 16px; }
.ig-cta__t small { display: block; font-weight: 500; color: var(--ink-body); font-size: 13.5px; margin-top: 4px; }
.ig-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 700; color: var(--salmon-deep); }
.ig-link svg { width: 20px; height: 20px; }

/* =================== アクセス =================== */
.access__grid { display: flex; flex-direction: column; gap: 26px; }
.access__map { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.access__map iframe { width: 100%; height: 260px; border: 0; display: block; }
.info { list-style: none; margin: 0; padding: 0; }
.info li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info li:last-child { border-bottom: 0; }
.info .k { flex: 0 0 76px; font-weight: 700; color: var(--apricot-deep); font-size: 13px; letter-spacing: .06em; padding-top: 2px; }
.info .v { color: var(--ink-body); font-size: 15px; }
.info .v b { color: var(--ink); font-weight: 900; }
.access__note { font-size: 12.5px; color: var(--ink-mute); margin: 16px 0 0; }
.access__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* =================== 弁当・オードブル予約 =================== */
.reserve__head { max-width: 18em; position: relative; z-index: 1; }
.reserve__lead { max-width: 34em; margin: 16px 0 30px; position: relative; z-index: 1; }
.reserve__grid { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.reserve__photo { aspect-ratio: 4 / 3; }
.reserve__form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 15px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.req { color: var(--salmon-deep); font-size: 11px; font-weight: 700; margin-left: 6px; }
.opt { color: var(--ink-mute); font-size: 11px; font-weight: 500; margin-left: 6px; }
.reserve__split { font-size: 13px; font-weight: 700; color: var(--ink); background: #f3e6cf; border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.reserve__split b { color: var(--salmon-deep); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--cream-hi);
  border: 1.5px solid #cbb789; border-radius: 10px; padding: 11px 13px; width: 100%;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #93805c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--apricot-deep); background: var(--white);
  box-shadow: 0 0 0 3px rgba(226, 162, 76, .5);
}
.field textarea { resize: vertical; min-height: 76px; }
/* 予約送信は二次アクション（主要CV=電話のサーモンと色で差別化：杏の面＋濃茶文字） */
.reserve__submit { justify-content: center; margin-top: 4px; background: var(--apricot); box-shadow: none; }
.reserve__submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.reserve__ok {
  margin: 4px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 700;
  color: #2f6d47; background: #e8f3ea; border: 1px solid #cfe6d4;
}
.reserve__note { margin: 2px 0 0; font-size: 12px; color: var(--ink-mute); line-height: 1.7; }

/* =================== 制作者より（返信ボタン） =================== */
.reply { background: var(--cream-hi); border-top: 1px solid var(--line); padding: 40px 0 108px; }
.reply__wrap { max-width: 640px; text-align: center; }
.reply__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--apricot-deep); text-transform: uppercase; margin: 0 0 12px; }
.reply__lead { font-size: 15.5px; color: var(--ink-body); margin: 0 0 22px; line-height: 1.9; }
.reply__btns { display: flex; flex-direction: column; gap: 12px; }
.reply__btn {
  font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .04em;
  min-height: 54px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.reply__btn--yes { background: var(--salmon); color: var(--ink); border-color: var(--salmon); }
.reply__btn--yes:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.reply__btn--no { background: var(--white); color: var(--ink-body); }
.reply__btn--no:hover { border-color: var(--ink-mute); }
.reply__thanks { font-size: 16px; font-weight: 700; color: #2f6d47; margin: 0; }
.reply__note { font-size: 12px; color: var(--ink-mute); margin: 18px 0 0; line-height: 1.7; }

/* =================== フッター =================== */
.foot { background: var(--ink); color: #e8d9bd; padding: 46px 0 120px; margin-top: 20px; }
.foot .wrap { display: flex; flex-direction: column; gap: 18px; }
.foot__name { font-weight: 900; font-size: 19px; letter-spacing: .1em; color: var(--cream-hi); }
.foot__row { font-size: 13.5px; line-height: 1.9; color: #d8c6a4; }
.foot__row a { display: inline-block; padding: 10px 0; }
.foot__demo { font-size: 11.5px; color: #b6a180; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; margin-top: 6px; }

/* =================== モバイル下部固定バー =================== */
.actionbar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 244, 231, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.actionbar .btn { flex: 1; justify-content: center; min-height: 50px; }

/* =================== スクロール演出 =================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   md 以上（タブレット〜PC）で拡張
   ========================================================= */
@media (min-width: 768px) {
  .nav { display: flex; align-items: center; gap: 30px; }
  .nav a { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: .06em; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--apricot); transition: width .3s ease; }
  .nav a:hover::after { width: 100%; }
  .hdr__right { display: flex; align-items: center; gap: 22px; }

  .hero { padding: 150px 0 70px; }
  .hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
  .hero__photo { aspect-ratio: 5 / 6; }

  .greet__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
  .greet__photo { max-width: none; justify-self: end; width: 100%; }

  .feats { flex-direction: row; }
  .feat { flex: 1; }

  .mcard { flex-basis: 340px; }

  .grid-gal { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; }
  .grid-gal .g-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
  .ig-cta { flex-direction: row; align-items: center; justify-content: space-between; }

  .access__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
  .access__map iframe { height: 340px; }

  .reserve__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
  .reserve__photo { position: sticky; top: 96px; aspect-ratio: 4 / 5; }

  .reply { padding-bottom: 56px; }
  .reply__btns { flex-direction: row; justify-content: center; }
  .reply__btn { padding: 0 30px; }

  .foot { padding-bottom: 56px; }
  .foot .wrap { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .actionbar { display: none; }
}

@media (min-width: 1024px) {
  .hero__inner { gap: 64px; }
  .grid-gal { gap: 16px; }
}

/* モーション控えめ設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .circle, .btn { transition: none; }
}
