:root {
  /* 天天菜館 — 桃谷樓(tokokuro.jp)参照の和モダン: 白基調 × 深紅アクセント */
  --color-primary: #a31419;
  --color-primary-strong: #7c0f13;
  --color-background: #ffffff;
  --color-surface: #f6f2ec;
  --color-text: #262221;
  --color-muted: #857b73;
  --color-border: #e5ded3;
  --color-light: #ffffff;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --header-height: 72px;
  --container: 1180px;
  --radius: 6px;
  --shadow: 0 14px 44px rgba(35, 20, 20, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .04em;
  font-feature-settings: "palt";
}
body.is-nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1, h2, h3, .catch { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; font-family: var(--font-serif); font-weight: 600; }
p, li, dd { text-wrap: pretty; line-break: strict; }
section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.u-phrase { display: inline-block; }
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  min-height: var(--header-height);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.site-header__inner { min-height: var(--header-height); display: flex; align-items: center; gap: 20px; }
.site-logo { margin-right: auto; font-family: var(--font-serif); font-weight: 700; font-size: 20px; letter-spacing: .16em; text-decoration: none; line-height: 1.2; color: var(--color-primary-strong); }
.desktop-nav { display: none; align-items: center; gap: 24px; }
.desktop-nav a { position: relative; text-decoration: none; font-size: 14px; }
.desktop-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--color-primary); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-phone, .header-reservation { display: none; }
.menu-toggle { width: 48px; height: 48px; padding: 12px; border: 0; background: transparent; display: grid; align-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-backdrop { position: fixed; z-index: 998; inset: var(--header-height) 0 0; background: rgba(0,0,0,.35); }
.mobile-nav { position: fixed; z-index: 999; top: var(--header-height); right: 0; width: min(88vw, 360px); height: calc(100dvh - var(--header-height)); padding: 20px; background: var(--color-background); transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; box-shadow: var(--shadow); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--color-border); text-decoration: none; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 28px; border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-weight: 600; letter-spacing: .12em; transition: background .2s ease, color .2s ease; }
.button--primary { background: var(--color-primary); color: #fff; }
.button--primary:hover { background: var(--color-primary-strong); }
.button--light { background: #fff; color: var(--color-primary-strong); }
.button--outline-light { color: #fff; border-color: #fff; }
.text-link { font-weight: 600; text-underline-offset: 5px; }
.link-button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.hero { position: relative; min-height: min(100svh, 880px); display: grid; align-items: end; overflow: hidden; }
.hero__media, .hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { object-fit: cover; }
.hero__overlay { background: linear-gradient(180deg, rgba(20,10,10,.12) 0%, rgba(20,10,10,.10) 45%, rgba(20,10,10,.66) 100%); }
.hero__content { position: relative; z-index: 1; padding-top: calc(var(--header-height) + 48px); padding-bottom: 72px; color: #fff; }
.hero__eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.hero__title { margin: 0; max-width: 14em; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.9rem, 7.6vw, 3.1rem); line-height: 1.5; letter-spacing: .1em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 22px; z-index: 1; width: 1px; height: 46px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.9)); }

.section { padding: 56px 0; }
.section--muted { background: var(--color-surface); }
.section--accent { position: relative; background: var(--color-primary); color: #fff; }
.section--accent::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }
.section-heading { margin-bottom: 30px; }
.section-heading__en { margin: 0 0 6px; color: var(--color-primary); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.5; letter-spacing: .14em; }
.section-heading__line { display: block; width: 40px; height: 2px; margin-top: 18px; background: var(--color-primary); }
.section-heading--light .section-heading__en { color: #fff; opacity: .8; }
.section-heading--light .section-heading__line { background: #fff; }
.prose { max-width: 42em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.split-layout { display: grid; gap: 32px; }
.media-frame { margin: 0; }
.media-frame img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.menu-grid { display: grid; gap: 16px; }
.menu-card { padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.menu-card__row { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; }
.menu-card h3, .menu-card p { margin: 0; }
.menu-card__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery-grid img:first-child { grid-row: span 2; aspect-ratio: 3/4; }
.gallery-grid img:not(:first-child) { aspect-ratio: 4/3; }

.instagram-latest { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 82%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.post-card { scroll-snap-align: start; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-card a { display: block; height: 100%; text-decoration: none; }
.post-card img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; object-position: center; }
.post-card__body { padding: 16px; }
.post-card time { display: block; margin-bottom: 6px; color: var(--color-muted); font-size: 13px; }
.post-card h3 { margin: 0; font-size: 16px; line-height: 1.6; }
.section-action { margin: 28px 0 0; }

.posts-grid { display: grid; gap: 18px; }
.page-main { padding-top: calc(var(--header-height) + 48px); padding-bottom: 72px; min-height: 70vh; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin: 0; font-size: clamp(1.8rem, 7vw, 2.8rem); }
.post-detail { max-width: 820px; margin-inline: auto; }
.post-detail__date { color: var(--color-muted); }
.post-detail__images { display: grid; gap: 16px; margin: 28px 0; }
.post-detail__images img { width: 100%; height: auto; border-radius: var(--radius); }
.post-detail__caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { padding: 24px; border: 1px dashed var(--color-border); color: var(--color-muted); }

.access-layout { display: grid; gap: 28px; }
.store-info { margin: 0; border-top: 1px solid var(--color-border); }
.store-info > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.store-info dt { font-weight: 700; }
.store-info dd { margin: 0; min-width: 0; }
.map-embed { min-height: 300px; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }
.contact-block > p { max-width: 42em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.site-footer { padding: 40px 0 20px; background: #171917; color: #fff; }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__brand { font-weight: 700; font-size: 18px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.copyright { margin: 28px 16px 0; text-align: center; font-size: 12px; opacity: .7; }
.back-to-top { position: fixed; z-index: 900; right: 16px; bottom: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--color-primary); color: #fff; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.privacy-dialog { width: min(92vw, 720px); max-height: 80vh; padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.privacy-dialog::backdrop { background: rgba(0,0,0,.55); }
.privacy-dialog__inner { padding: 22px; }
.privacy-dialog__header { display: flex; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); margin-bottom: 18px; }
.privacy-dialog__header h2 { margin: 0 0 14px; font-size: 20px; }
.privacy-dialog__header button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }

@media (min-width: 640px) {
  .container { width: min(100% - 48px, var(--container)); }
  .instagram-latest { grid-auto-columns: minmax(250px, 42%); }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 768px) {
  :root { --header-height: 80px; }
  .section { padding: 88px 0; }
  .hero__content { padding-bottom: 88px; }
  .split-layout, .access-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 48px; }
  .instagram-latest { grid-auto-columns: minmax(260px, 31%); }
  .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav, .mobile-nav-backdrop { display: none !important; }
  .header-phone { display: inline-flex; text-decoration: none; font-size: 14px; }
  .header-reservation { display: inline-flex; min-height: 42px; padding: 8px 20px; }
  .gallery-grid { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
