/* まかい食堂（架空）制作イメージ ― ちゅらしるべ */
/* 配色：ゴーヤーの緑（#35592e）＋泡盛の甕の茶（#6b4128）＋生成り（#faf5ea）。見出しは手書き風の Klee One */

:root {
  --green: #35592e;
  --green-dark: #22391d;
  --green-soft: #e6eedc;
  --brown: #6b4128;
  --brown-dark: #4a2c1b;
  --cream: #faf5ea;
  --cream-deep: #f0e6d2;
  --text: #2b2620;
  --text-sub: #5c544a;
  --line: #e2d7c2;
  --notice: #efe6b0;
  --bg: #ffffff;
  --font: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  --font-hand: "Klee One", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  /* スマホ下部の固定ボタンぶんの余白 */
  padding-bottom: 64px;
}

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

a { color: var(--green); }

h1, h2, h3 { font-family: var(--font-hand); font-weight: 600; line-height: 1.5; margin: 0; color: var(--text); }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ---------- 見本の表示 ---------- */
.demo-banner {
  background: var(--notice);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.5;
}

.demo-banner a { color: var(--brown-dark); }

.tag-sample {
  display: inline-block;
  margin: 0 6px;
  padding: 0 8px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  background: var(--notice);
  border-radius: 3px;
  vertical-align: middle;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }

.logo { text-decoration: none; color: var(--text); line-height: 1.2; }
.logo-sub { display: block; font-size: 0.75rem; color: var(--green); font-weight: 700; letter-spacing: 0.1em; }
.logo-name { display: block; font-family: var(--font-hand); font-weight: 600; font-size: 1.375rem; }

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

.global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); }
.global-nav.is-open { display: block; }
.global-nav a { display: block; white-space: nowrap; padding: 14px 20px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); font-weight: 700; }
.global-nav a:hover { background: var(--cream-deep); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  min-height: 52px;
  padding: 13px 32px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  line-height: 1.5;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-dark); }

.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible, .menu-tab:focus-visible,
input:focus, select:focus, textarea:focus, summary:focus-visible {
  outline: 3px solid #d9a441;
  outline-offset: 2px;
}

/* ---------- 写真（イメージ写真の表記つき） ---------- */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--cream-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo figcaption, .hero-caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #fff;
  background: rgba(43, 38, 32, 0.8);
  border-radius: 3px;
}

/* ---------- ファーストビュー（見出しは縦書き） ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--green-dark) url("../images/hero.webp") center / cover no-repeat;
  padding: 48px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 20, 15, 0.55) 0%, rgba(24, 20, 15, 0.78) 100%);
}

.hero-inner { position: relative; display: flex; flex-direction: column; gap: 28px; }

.hero-title {
  writing-mode: vertical-rl;
  align-self: flex-end;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-lead { font-size: 1rem; }

.hero-hours {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.hero-hours span { padding: 0 8px; font-size: 0.8125rem; color: var(--text); background: var(--cream); border-radius: 3px; }
.hero-hours small { flex-basis: 100%; font-weight: 400; font-size: 0.8125rem; }

.hero-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green); color: #fff; }

.section-head { margin-bottom: 32px; }
.section-head .en { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.22em; color: var(--green); }
.section-head h2 { font-size: 1.75rem; }
.section-head p { margin: 10px 0 0; color: var(--text-sub); }
.section-head.center { text-align: center; }

.section-green .section-head .en { color: #d8e8c6; }
.section-green .section-head h2 { color: #fff; }
.section-green .section-head p { color: #eef3e8; }

.note { margin-top: 20px; font-size: 0.875rem; color: var(--text-sub); }

/* ---------- お知らせ ---------- */
.news { padding: 32px 0; background: var(--cream); }
.news-box { display: grid; gap: 8px; }
.news-title { font-size: 1.25rem; color: var(--green); }
.news-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.9375rem; }
.news-list time { display: block; font-weight: 700; color: var(--brown); }
.news-list .tag-sample { margin-left: 0; }

/* ---------- 三つの約束 ---------- */
.points { display: grid; gap: 16px; }

.point { padding: 24px 22px; background: var(--cream); border-radius: 16px; }
.point h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 10px; }
.point p { margin: 0; color: var(--text-sub); }

.point-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

/* ---------- お品書き ---------- */
.menu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }

.menu-tab {
  min-height: 60px;
  padding: 8px 10px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--green-dark);
  background: var(--bg);
  border: 2px solid var(--green);
  border-radius: 12px;
  cursor: pointer;
}

.menu-tab small { display: block; font-family: var(--font); font-weight: 400; font-size: 0.75rem; color: var(--text-sub); }
.menu-tab[aria-selected="true"] { color: #fff; background: var(--green); }
.menu-tab[aria-selected="true"] small { color: #e6eedc; }

.menu-panel { background: var(--bg); border-radius: 16px; padding: 20px; }

.menu-feature { display: grid; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.menu-feature .photo { aspect-ratio: 3 / 2; border-radius: 12px; }
.menu-feature-label { display: inline-block; padding: 0 12px; font-size: 0.8125rem; font-weight: 700; color: #fff; background: var(--brown); border-radius: 999px; }
.menu-feature h3 { font-size: 1.5rem; margin: 8px 0; }
.menu-feature p { margin: 0 0 8px; color: var(--text-sub); }
.menu-feature .menu-feature-price { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; color: var(--brown); }

.menu-sub { font-size: 1.125rem; color: var(--green); padding-bottom: 6px; margin-bottom: 4px; border-bottom: 2px solid var(--green); }

/* 料理名……価格 の点線つなぎ */
.menu-list li { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--cream-deep); }
.menu-list li::after { content: ""; order: 1; flex: 1; min-width: 16px; border-bottom: 2px dotted #bfb29a; }
.menu-name { order: 0; font-weight: 700; }
.menu-name small { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--text-sub); line-height: 1.6; }
.menu-price { order: 2; font-weight: 700; color: var(--brown); white-space: nowrap; }

.menu-cols { display: grid; gap: 28px; }

/* ---------- 店内 ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery .photo { aspect-ratio: 3 / 2; border-radius: 10px; }
.gallery-main { grid-column: 1 / -1; }

.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.seats li { padding: 14px 14px; background: var(--cream); border-radius: 12px; font-size: 0.9375rem; }
.seats strong { display: block; font-family: var(--font-hand); font-weight: 600; font-size: 1.125rem; color: var(--green); }
.seats span { display: block; font-size: 0.8125rem; color: var(--text-sub); }

/* ---------- お客さまの声 ---------- */
.voices { display: grid; gap: 16px; }

.voice { margin: 0; padding: 24px 22px 20px; color: var(--text); background: var(--cream); border-radius: 16px; }
.voice p { margin: 0 0 10px; }
.voice .voice-who { font-size: 0.875rem; color: var(--text-sub); margin: 0; }

/* ---------- 営業時間・アクセス ---------- */
.info { display: grid; gap: 20px; align-items: start; }

.info-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: var(--bg); border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.info-table th { width: 6.5em; font-weight: 700; color: var(--green-dark); background: var(--green-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.map { min-height: 260px; display: flex; align-items: center; justify-content: center; background: var(--cream-deep); border: 2px dashed #cdbd9e; border-radius: 12px; }
.map-placeholder { margin: 0; padding: 20px; text-align: center; font-weight: 700; color: var(--text-sub); }
.map-placeholder small { display: block; font-weight: 400; font-size: 0.8125rem; }

.today { margin: 20px 0 0; padding: 12px 16px; text-align: center; font-weight: 700; background: var(--bg); border-left: 4px solid var(--brown); border-radius: 6px; }

/* ---------- よくある質問 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  position: relative;
  padding: 16px 40px 16px 34px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 4px; top: 15px; font-weight: 700; color: var(--green); }
.faq-item summary::after { content: "＋"; position: absolute; right: 8px; top: 15px; color: var(--green); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 8px 16px 34px; }
.faq-answer p { margin: 0; }

/* ---------- ご予約 ---------- */
.reserve { background: var(--brown-dark); color: #fff; padding: 64px 0; }
.reserve .section-head .en { color: #f0c98a; }
.reserve .section-head h2 { color: #fff; }
.reserve .section-head p { color: #f1e8dc; }

.reserve-grid { display: grid; gap: 20px; align-items: start; }

.reserve-card { background: var(--cream); color: var(--text); border-radius: 16px; padding: 24px 20px; }
.reserve-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--green-dark); }

.tel-big { margin: 0; font-size: 2rem; font-weight: 700; color: var(--brown); letter-spacing: 0.02em; line-height: 1.3; }
.reserve-note { margin: 8px 0 0; font-size: 0.875rem; color: var(--text-sub); }

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-row .req { margin-left: 6px; padding: 0 6px; font-size: 0.75rem; color: #fff; background: var(--brown); border-radius: 3px; }

.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #8f8576;
  border-radius: 8px;
}

.form-row textarea { min-height: 110px; }

.form-message { margin: 12px 0 0; padding: 12px; font-size: 0.9375rem; background: var(--green-soft); border-radius: 8px; }

/* ---------- フッター ---------- */
.site-footer { background: #1c1813; color: #ddd4c6; padding: 28px 0; font-size: 0.875rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #fff; }
.footer-name { font-family: var(--font-hand); font-weight: 600; font-size: 1.125rem; color: #fff; }

/* ---------- スマホ下部の固定ボタン ---------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-weight: 700;
  text-decoration: none;
  color: var(--brown-dark);
}

.fixed-cta a + a { background: var(--brown); color: #fff; }

/* ---------- タブレット・PC ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .fixed-cta { display: none; }
  .container { padding: 0 32px; }

  .hero { padding: 96px 0; min-height: 560px; display: flex; align-items: center; }
  .hero::before { background: linear-gradient(90deg, rgba(24, 20, 15, 0.82) 0%, rgba(24, 20, 15, 0.55) 60%, rgba(24, 20, 15, 0.7) 100%); }
  .hero-inner { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 56px; }
  .hero-title { font-size: 2.5rem; align-self: center; }
  .hero-side { max-width: 460px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-actions { flex-direction: row; }

  .section { padding: 88px 0; }
  .section-head h2 { font-size: 2rem; }

  .news-box { grid-template-columns: 8em 1fr; align-items: start; }
  .news-list li { display: flex; gap: 12px; align-items: baseline; }
  .news-list time { flex: none; }

  .points { grid-template-columns: repeat(3, 1fr); }
  .menu-tabs { max-width: 560px; margin: 0 auto 28px; }
  .menu-panel { padding: 32px; }
  .menu-feature { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .menu-cols { grid-template-columns: 1fr 1fr; gap: 40px; }

  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery .gallery-main { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .seats { grid-template-columns: repeat(4, 1fr); }

  .voices { grid-template-columns: repeat(2, 1fr); }
  .info { grid-template-columns: 3fr 2fr; }
  .map { min-height: 100%; }
  .reserve-grid { grid-template-columns: 2fr 3fr; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .global-nav, .global-nav.is-open { display: block; position: static; border: 0; background: transparent; }
  .global-nav ul { display: flex; align-items: center; gap: 4px; }
  .global-nav a { border-top: 0; padding: 8px 12px; font-size: 0.9375rem; border-radius: 999px; }
  .global-nav .nav-reserve { margin-left: 8px; padding: 8px 22px; color: #fff; background: var(--brown); }
  .global-nav .nav-reserve:hover { background: var(--brown-dark); }

  .hero { min-height: 620px; }
  .hero-title { font-size: 3rem; }
}
