/* tokens: see ../DESIGN.md frontmatter (source of truth) */
:root {
  --color-bg-base: #FAF7F1;
  --color-bg-alt: #EEF2F2;
  --color-bg-deep: #1F1A14;
  --color-bg-deep-mid: #2E2820;
  --color-text-body: #2B2A26;
  --color-text-accent: #3D2E1F;
  --color-text-on-deep: #E9E2D2;
  --color-text-on-deep-strong: #F4ECDA;
  --color-duck-egg: #B7D0D4;
  --color-duck-egg-deep: #5F8A8E;
  --color-wood: #6B4A2E;
  --color-wood-deep: #3D2E1F;
  --color-blackboard: #384A3E;
  --color-bulb: #E9C68A;
  --color-cta: #3F6E72;
  --color-cta-hover: #2F5B5E;
  --color-line: #DDD6C7;
  --color-placeholder-1: #F1ECE0;
  --color-placeholder-2: #E2DDD0;
  --color-white: #FFFFFF;

  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Playfair Display", "Noto Serif JP", serif;

  --fs-body: 16px;
  --fs-lead: 15px;
  --fs-caption: 13px;
  --fs-note: 11px;
  --fs-h1: 22px;
  --fs-h1-hero: 24px;
  --fs-h2: 20px;
  --fs-h3: 18px;
  --fs-brand: 24px;
  --fs-tel-big: 32px;

  --lh-body: 1.7;
  --lh-lead: 1.8;
  --lh-heading: 1.35;

  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --section-y: 56px;
  --container-x: 20px;

  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 10px;
  --rounded-full: 999px;

  --elev-cta-bar: 0 -2px 12px rgba(0, 0, 0, 0.15);
  --shadow-text-hero: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-text-hero-sub: 0 1px 6px rgba(0, 0, 0, 0.5);

  --max: 720px;
  --cta-h: 64px;
  --hero-min-h: 78vh;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-base);
  color: var(--color-text-body);
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-text-size-adjust: 100%;
}

body { padding-bottom: var(--cta-h); }

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

a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  color: var(--color-text-accent);
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  line-height: var(--lh-heading);
  word-break: auto-phrase;
  overflow-wrap: break-word;
}
:lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; }

h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
}
h2 {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: var(--fs-h2);
}
h3 {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: var(--fs-h3);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--container-x);
}

/* ---- Header ---- */
.site-header {
  padding: var(--space-md) var(--container-x);
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg-base);
}
.brand {
  font-family: var(--font-display);
  font-size: var(--fs-brand);
  color: var(--color-text-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.brand-sub {
  font-size: 12px;
  color: var(--color-text-body);
  opacity: 0.7;
  margin-top: 2px;
  letter-spacing: 0.1em;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: var(--hero-min-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  padding: 64px var(--container-x);
  background-color: var(--color-bg-deep);
  background-image: url("hero-exterior.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(233, 198, 138, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(31, 26, 20, 0.68) 0%, rgba(31, 26, 20, 0.80) 60%, rgba(31, 26, 20, 0.88) 100%);
}
.hero-inner {
  position: relative;
  max-width: 640px;
}
.hero .hero-title {
  color: var(--color-white);
  font-size: var(--fs-h1-hero);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  text-shadow: var(--shadow-text-hero);
}
.hero p {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  margin: 0 0 28px;
  text-shadow: var(--shadow-text-hero-sub);
}
.hero .hero-status {
  display: block;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: var(--shadow-text-hero-sub);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: stretch;
  max-width: 320px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--color-cta);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--rounded-md);
  font-weight: 700;
  font-size: var(--fs-body);
  border: none;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--color-cta-hover); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid var(--color-white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- Section common ---- */
section.block {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--color-line);
}
section.block:last-of-type { border-bottom: none; }
section.block h2 {
  text-align: center;
  margin-bottom: 28px;
}
section.block .lead {
  text-align: center;
  font-size: var(--fs-lead);
  margin: 0 auto var(--space-lg);
  max-width: 560px;
}

/* ---- Olka ---- */
.olka-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}
.olka-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--rounded-lg);
}

/* ---- Rules ---- */
.rules { background: var(--color-bg-alt); }
.rules ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
}
.rules li {
  padding: 14px var(--space-md);
  background: var(--color-white);
  border-radius: var(--rounded-md);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-lead);
  line-height: 1.7;
  border-left: 4px solid var(--color-duck-egg-deep);
  overflow-wrap: anywhere;
}
.rules .note {
  font-size: 12px;
  color: var(--color-text-body);
  opacity: 0.65;
  text-align: center;
  margin-top: 14px;
}

/* ---- Menu ---- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.menu-grid figure {
  margin: 0;
  background: transparent;
}
.menu-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--rounded-md);
}
.menu-grid figcaption {
  margin-top: 6px;
  padding: 0 2px;
  font-size: var(--fs-caption);
  text-align: center;
  color: var(--color-text-body);
  opacity: 0.85;
}
.menu-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) auto 0;
  max-width: 480px;
  border-top: 1px solid var(--color-line);
}
.menu-list li {
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-line);
  font-size: var(--fs-lead);
  display: flex;
  justify-content: space-between;
}
.menu-list .price {
  color: var(--color-wood);
  opacity: 0.8;
  font-size: var(--fs-caption);
}

/* ---- Voices ---- */
.voices { background: var(--color-bg-alt); }
.voice {
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 18px 18px;
  background: var(--color-white);
  border-radius: var(--rounded-lg);
  position: relative;
  overflow-wrap: anywhere;
}
.voice p {
  margin: 0 0 8px;
  font-size: var(--fs-lead);
  line-height: 1.85;
}
.voice .cite {
  font-size: 12px;
  color: var(--color-wood);
  opacity: 0.85;
}

/* ---- Hours ---- */
.hours-table {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-collapse: collapse;
}
.hours-table th,
.hours-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
.hours-table th {
  width: 92px;
  color: var(--color-text-accent);
  font-weight: 700;
}
.hours-note {
  text-align: center;
  font-size: var(--fs-caption);
  margin-top: 18px;
}

/* ---- Access ---- */
.access-info {
  max-width: 520px;
  margin: 0 auto 20px;
}
.access-info dl {
  margin: 0;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
}
.access-info dt {
  color: var(--color-text-accent);
  font-weight: 700;
  font-size: 14px;
}
.access-info dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--rounded-lg);
  margin-top: 18px;
  display: block;
}
.map-frame-pending {
  background: linear-gradient(135deg, var(--color-placeholder-1) 0%, var(--color-placeholder-2) 100%);
}
.map-cta {
  display: block;
  text-align: center;
  margin: var(--space-md) auto 0;
  max-width: 320px;
}

/* ---- Contact recap ---- */
.contact { text-align: center; }
.contact h2 { margin-bottom: 16px; }
.contact .tel-big {
  font-family: var(--font-display);
  font-size: var(--fs-tel-big);
  color: var(--color-text-accent);
  display: inline-block;
  margin: 0 0 var(--space-xs);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact .insta-link {
  display: inline-block;
  margin: 6px 0 14px;
  font-size: var(--fs-lead);
}
.contact .hint {
  font-size: var(--fs-caption);
  max-width: 480px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-bg-deep);
  color: var(--color-text-on-deep);
  padding: var(--space-xl) var(--container-x);
  text-align: center;
  font-size: var(--fs-caption);
  line-height: 1.7;
}
.site-footer a { color: var(--color-text-on-deep-strong); }
.site-footer .tentative {
  font-size: var(--fs-note);
  opacity: 0.75;
  margin: 14px auto 0;
  max-width: 520px;
  overflow-wrap: anywhere;
  text-align: left;
}
.site-footer .tentative summary {
  cursor: pointer;
  list-style: none;
  padding: 0;
}
.site-footer .tentative summary::-webkit-details-marker { display: none; }
.site-footer .tentative summary::after {
  content: "詳細を見る";
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .tentative[open] summary::after { content: "閉じる"; }
.site-footer .tentative p {
  margin: 8px 0 0;
  line-height: 1.7;
}

/* ---- Fixed bottom CTAs ---- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--cta-h);
  display: flex;
  z-index: 50;
  box-shadow: var(--elev-cta-bar);
}
.cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-lead);
}
.cta-bar .cta-tel { background: var(--color-cta); }
.cta-bar .cta-dm { background: var(--color-wood-deep); }
.cta-bar .ico {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---- Responsive ---- */
@media (min-width: 600px) {
  .hero .hero-title { font-size: 36px; }
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  .olka-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
