/* =========================================================================
   飲食店テンプレート スタイル(和モダン)
   配色の切り替えは下の :root 変数を差し替えるだけ(README「配色の切り替え」)。
   デザイン原則:
   - 明色アクセントを白背景に器(丸・帯)として置かない。濃色の上の小さな
     マーク・細い線としてのみ使う(hp-maker-core CLAUDE.md の鉄則を準用)
   - 見出しは Shippori Mincho。縦メトリクスが大きく行ボックスが膨張するため
     line-height を必ず明示する(CLAUDE.md の注意事項)
   ========================================================================= */

:root {
  /* --- 配色(和モダン:墨×朱) ---
     業態で差し替える例:
       小料理・割烹  --accent: #B23A2B(朱)     ← 既定
       焼肉・炭火    --accent: #9E2B25(深緋)
       和カフェ      --accent: #7C8A4D(抹茶)   ※明るめなので鉄則に注意
  */
  --sumi: #221C15;          /* 墨:焙じた炭のような温かい黒。濃色セクション・見出し */
  --sumi-2: #362E24;        /* 墨の明るめ(グラデ・ホバー) */
  --accent: #B23A2B;        /* 朱:ボタン・アクセント。白文字が載る濃さを保つこと */
  --accent-soft: #DF8663;   /* 朱の明るめ:濃色背景の上の文字・マーク専用 */

  --paper: #FBF8F1;         /* 生成りの紙色(ページ地) */
  --paper-2: #F3EDE0;       /* 淡い生成り(セクション地) */
  --ink: #322B22;
  --ink-muted: #7A7060;
  --line: #E4DCCB;

  /* --- タイポ --- */
  --font-head: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", sans-serif;

  --wrap: 1080px;
  --radius: 10px;
  --shadow: 0 12px 32px rgba(34, 28, 21, 0.10);
  --shadow-sm: 0 3px 12px rgba(34, 28, 21, 0.06);
}

/* --------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
/* 明朝見出し:line-height 明示(行ボックス膨張対策) */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: .04em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--sumi); color: #fff; }

/* 画像プレースホルダ(顧客写真に差し替える枠) */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(34,28,21,.05), rgba(34,28,21,.02)),
    repeating-linear-gradient(45deg, #EFE9DB 0 12px, #E9E2D1 12px 24px);
  display: grid; place-items: center;
  color: var(--ink-muted);
  font-size: .8rem; letter-spacing: .08em;
  border-radius: var(--radius);
}
.ph::after { content: attr(data-label); }

/* --------------------------------------------------------- demo banner */
.demobar {
  background: var(--sumi);
  color: rgba(255,255,255,.85);
  font-size: .78rem;
  text-align: center;
  padding: .4rem 1rem;
  letter-spacing: .02em;
}
.demobar b { color: var(--accent-soft); font-weight: 700; }

/* -------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,241,.94);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
/* ロゴ=濃色の丸 × 明色のマーク(鉄則の基本形) */
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sumi);
  display: grid; place-items: center; flex: none;
}
.brand__mark span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent-soft);
}
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--sumi); font-size: 1.2rem; line-height: 1.4; letter-spacing: .06em; }
.brand__name small { display: block; font-size: .58rem; letter-spacing: .3em; color: var(--ink-muted); font-weight: 500; font-family: var(--font-body); }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { text-decoration: none; }
.nav a:not(.btn) {
  color: var(--sumi); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  letter-spacing: .08em; line-height: 1.5; position: relative; padding: .2rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--sumi); margin: 5px 0; transition: .25s; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; line-height: 1.5; letter-spacing: .08em;
  padding: .8rem 1.7rem; border-radius: 6px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
/* 白背景で使う主ボタン=墨塗り+白文字+朱のドット */
.btn--primary { background: var(--sumi); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sumi-2); }
.btn--primary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); flex: none; }
/* 朱ボタン=白文字が載る濃さの朱なので白背景でも濃色背景でも使える */
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { filter: brightness(1.08); }
/* 濃色背景の上の従ボタン=白枠 */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: .5rem 1.15rem; font-size: .88rem; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; color: #fff;
  background:
    radial-gradient(1100px 480px at 82% -8%, var(--sumi-2), transparent 62%),
    linear-gradient(165deg, var(--sumi) 45%, #171310 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem;
  align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
/* 帯・ピルをやめ、罫線+トラッキングの静かな見出しに */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .28em;
  color: rgba(255,255,255,.85); line-height: 1.5;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.3rem); margin: 1.2rem 0 .6rem; line-height: 1.45;
}
.hero h1 .accent { color: var(--accent-soft); }
.hero__lead { font-size: 1.02rem; color: rgba(255,255,255,.82); max-width: 30ch; }
.hero__cta { display: flex; gap: .8rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero__photo { aspect-ratio: 4/3; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
img.hero__photo { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.hero__facts {
  display: flex; gap: 1.5rem; margin-top: 2.2rem; flex-wrap: wrap;
  font-size: .9rem; color: rgba(255,255,255,.75);
}
.hero__facts b { color: #fff; font-family: var(--font-head); font-weight: 600; margin-right: .35em; }

/* ---------------------------------------------------------- section head */
.head { text-align: center; margin-bottom: 2.8rem; }
/* eyebrow:ピルをやめ、朱の細字トラッキング文字に */
.head .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--accent);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .32em;
  line-height: 1.5;
}
.head .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section--dark .head .eyebrow, .section--dark .head .eyebrow .dot { color: var(--accent-soft); background-color: transparent; }
.section--dark .head .eyebrow .dot { background: var(--accent-soft); }
.head h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-top: .9rem; color: var(--sumi); line-height: 1.5; }
/* 見出し下の短い朱線(和の落款のような控えめな印) */
.head h2::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--accent); margin: 1.1rem auto 0;
}
.section--dark .head h2 { color: #fff; }
.section--dark .head h2::after { background: var(--accent-soft); }
.head p { color: var(--ink-muted); margin: 1rem 0 0; }
.section--dark .head p { color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------ menu cards */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.dish {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dish .ph { aspect-ratio: 4/3; border-radius: 0; }
.dish__img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
.dish__body { padding: 1.15rem 1.25rem 1.4rem; }
.dish__name {
  font-size: 1.12rem; color: var(--sumi); line-height: 1.5;
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
}
.dish__price { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.dish__price small { font-size: .68em; font-weight: 600; }
.dish__desc { color: var(--ink-muted); font-size: .9rem; margin: .55rem 0 0; }
.menu-note { text-align: center; color: var(--ink-muted); font-size: .85rem; margin-top: 1.7rem; }

/* --------------------------------------------------------------- feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.feature + .feature { margin-top: 3.2rem; }
.feature--rev .feature__media { order: 2; }
.feature__media .ph { aspect-ratio: 5/4; }
.feature__img { width: 100%; height: auto; aspect-ratio: 5/4; object-fit: cover; display: block; border-radius: var(--radius); }
.feature__kicker {
  font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: .92rem;
  letter-spacing: .22em; line-height: 1.6;
}
.feature h3 { font-size: clamp(1.35rem, 3.4vw, 1.85rem); color: var(--sumi); margin: .5rem 0 .9rem; line-height: 1.5; }
.feature p { color: var(--ink-muted); }

/* ------------------------------------------------------------------ news */
.news-cta { text-align: center; max-width: 620px; margin-inline: auto; }
.news-cta p { color: rgba(255,255,255,.82); margin: .6rem 0 1.7rem; }

/* ------------------------------------------------------------------ info */
.info-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: .9rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 8em; color: var(--sumi); font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.6; }
.info-table td { color: var(--ink-muted); }
.info-tel { color: var(--sumi); font-weight: 700; }
.info-map { aspect-ratio: 4/3; }
.info-map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); display: block; }

/* ------------------------------------------------------------------ form */
.form-wrap { max-width: 640px; margin-inline: auto; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; color: var(--sumi); margin-bottom: .35rem; font-size: .95rem; }
.field .req { color: var(--accent); font-size: .78em; margin-left: .4rem; font-weight: 700; }
.field .opt { color: var(--ink-muted); font-size: .78em; margin-left: .4rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sumi);
  box-shadow: 0 0 0 3px rgba(34,28,21,.10);
}
.field textarea { min-height: 140px; resize: vertical; }
.field small.hint { color: var(--ink-muted); font-size: .8rem; }
/* ハニーポット:視覚・スクリーンリーダーから隠す(ボット除け。空のまま送られる) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; margin-top: 1.7rem; }
.form-status { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 6px; font-size: .92rem; display: none; }
.form-status.is-ok { display: block; background: #EDF3E7; color: #3E6B34; border: 1px solid #CBDCBC; }
.form-status.is-err { display: block; background: #F9ECE8; color: #A03A28; border: 1px solid #EACDC2; }
.form-status ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #1B1610; color: rgba(255,255,255,.72); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand__name { color: #fff; }
.site-footer h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; color: #fff; font-size: .95rem; line-height: 1.6; margin: 0 0 .8rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.3rem; font-size: .78rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; aspect-ratio: 16/10; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .feature, .info-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .feature--rev .feature__media { order: 0; }

  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-140%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a:not(.btn) { padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .9rem; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* アニメーション抑制の希望を尊重 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
