:root {
  --ink: #0a0908;
  --ink-2: #141210;
  --ink-3: #1c1916;
  --paper: #f3eee6;
  --muted: #c4bbae;
  --gold: #d4b483;
  --gold-dim: rgba(212, 180, 131, 0.45);
  --vermilion: #e15a42;
  --vermilion-deep: #8e2f22;
  --line: rgba(243, 238, 230, 0.14);
  --line-strong: rgba(243, 238, 230, 0.32);
  --serif: "Shippori Mincho", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --jp: "Noto Sans JP", var(--serif);
  --header: 4.25rem;
  color-scheme: dark;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

::selection { background: var(--vermilion-deep); color: var(--paper); }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
}

.skip:focus { top: 0.8rem; }

.mark {
  display: inline-block;
  width: 1.35rem;
  height: 1.75rem;
  background: var(--gold);
  -webkit-mask: url("assets/tanuki.svg") center / contain no-repeat;
  mask: url("assets/tanuki.svg") center / contain no-repeat;
}

.mark-lg { width: 2.4rem; height: 3.1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header);
  padding: calc(0.55rem + env(safe-area-inset-top)) 1.1rem 0.7rem;
  background: rgba(10, 9, 8, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

.nav-toggle {
  position: relative;
  z-index: 50;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.2rem;
  border: 0;
  background: transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 6rem 1.4rem 2.5rem;
  background: rgba(10, 9, 8, 0.97);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.nav-open .nav-panel {
  transform: none;
  visibility: visible;
}

.nav-panel a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  line-height: 1.15;
  text-decoration: none;
  width: fit-content;
}

.site-header .btn-small { position: relative; z-index: 45; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--vermilion-deep);
  color: #fff8f3;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover { background: #73261c; }

.btn-small { min-height: 44px; padding: 0 0.95rem; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover { background: var(--ink-3); }

.btn:focus-visible,
.nav-toggle:focus-visible,
.nav-panel a:focus-visible,
.text-link:focus-visible,
.tabs button:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 1.15rem calc(1.5rem + env(safe-area-inset-bottom));
}

.hero-photo {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--ink-3);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 9, 8, 0.96) 0%, rgba(10, 9, 8, 0.78) 32%, rgba(10, 9, 8, 0.18) 62%, rgba(10, 9, 8, 0.42) 100%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.motion .hero-photo img {
  animation: ken 24s ease-in-out infinite alternate;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  z-index: 1;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}

.seal {
  position: absolute;
  top: calc(4.6rem + env(safe-area-inset-top));
  right: 1.15rem;
  z-index: 2;
  width: 4.4rem;
  height: 4.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.82);
}

.seal .mark { width: 1.7rem; height: 2.2rem; }

.hero-vertical {
  display: none;
  margin: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(4.8rem, 22vw, 7.4rem);
  line-height: 0.84;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  line-height: 1.02;
}

.hero-sub {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.1;
}

.lede, .section-note, .about-copy p, .reserve-copy p {
  margin: 0.8rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 1.3rem;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

html.motion .reveal { transform: translateY(115%); }
html.motion .rise { opacity: 0; transform: translateY(18px); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.75rem 0;
  color: var(--muted);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}

.marquee p {
  margin: 0;
  font-family: var(--jp);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  white-space: nowrap;
}

html.motion .marquee-track { animation: ticker 36s linear infinite; }

.about, .menu, .gallery, .reserve, .visit {
  padding: 4.5rem 1.15rem;
}

.about {
  display: grid;
  gap: 1.8rem;
}

.about-photo {
  margin: 0;
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}

.section-head { max-width: 40rem; margin-bottom: 1.6rem; }

.file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--paper);
  white-space: nowrap;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  margin: 0 0 1.2rem;
  padding: 0;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--vermilion);
}

.menu-grid {
  display: grid;
  gap: 1.1rem;
}

.dish {
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.dish-photo {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ink-3);
}

.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
  .dish:hover .dish-photo img { transform: scale(1.05); }
}

.dish-body { padding: 1rem 1rem 1.15rem; }

.dish-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.dish h3 {
  margin: 0.45rem 0 0;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.dish p { margin: 0.4rem 0 0; color: var(--muted); }

.menu-fallback { color: var(--muted); }

.gallery { padding-inline: 0; }

.gallery .section-head,
.gallery-progress { margin-inline: 1.15rem; }

.gallery-window {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}

.gallery-window::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  gap: 0.7rem;
  width: max-content;
  padding-inline: 1.15rem;
}

.gallery figure {
  position: relative;
  margin: 0;
  width: min(78vw, 26rem);
  scroll-snap-align: start;
  background: var(--ink-3);
}

.gallery img {
  width: 100%;
  height: 68vw;
  max-height: 34rem;
  object-fit: cover;
}

.gallery figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.gallery-progress {
  height: 1px;
  margin-top: 1rem;
  background: var(--line);
}

.gallery-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.reserve {
  display: grid;
  gap: 1.6rem;
  background:
    linear-gradient(to bottom, transparent, rgba(196, 71, 50, 0.08) 18%, transparent 42%),
    var(--ink);
}

.reserve-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1.2rem 1rem 1.3rem;
}

.field { margin-bottom: 1rem; }

.field-row {
  display: grid;
  gap: 0.8rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.optional { letter-spacing: 0; text-transform: none; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color-scheme: dark;
}

textarea { min-height: 6.5rem; resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-bottom-color: var(--gold);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: var(--vermilion); }

.field-error {
  margin: 0.35rem 0 0;
  color: #f0b2a6;
  font-size: 0.88rem;
}

.reserve-success { padding: 0.4rem 0.2rem 0.2rem; }

.reserve-success h3 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.success-detail { margin: 1rem 0 0; }

.preview-note {
  margin: 0.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.visit {
  display: grid;
  gap: 1.4rem;
}

address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.hours { margin: 1.3rem 0; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.hours dt { color: var(--muted); font-weight: 400; }
.hours dd { margin: 0; }

.phone { margin: 0 0 1rem; font-size: 1.15rem; }
.phone a { text-decoration: none; }

.text-link {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-underline-offset: 0.35em;
}

.map {
  min-height: 18rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
}

.map iframe {
  width: 100%;
  height: 18rem;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.95) brightness(0.85);
}

.site-footer {
  display: grid;
  gap: 0.8rem;
  padding: 2rem 1.15rem 2.6rem;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0; color: var(--muted); }

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a { text-decoration: none; }

.cursor {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid var(--paper);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate3d(-40px, -40px, 0);
}

html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input,
html.has-cursor select,
html.has-cursor textarea { cursor: auto; }
html.has-cursor .cursor.is-hidden { opacity: 0; }

section, .site-footer { scroll-margin-top: 5rem; }

@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .rise { transform: none !important; opacity: 1 !important; }
  .marquee-track, .hero-photo img { animation: none !important; }
  .nav-panel { transition: none; }
}

html.reduce .reveal,
html.reduce .rise,
html.shown .hero .reveal,
html.shown .hero .rise { transform: none !important; opacity: 1 !important; }

@media (min-width: 720px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 26rem; }
  .about, .menu, .gallery, .reserve, .visit { padding-inline: 2.2rem; }
  .gallery .section-head, .gallery-progress, .gallery-track { margin-inline: 2.2rem; }
  .gallery-track { padding-inline: 0; }
  .tabs { margin-inline: 0; padding-inline: 0; }
  .reserve-panel { padding: 1.6rem 1.5rem 1.7rem; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .nav-panel {
    position: static;
    visibility: visible;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
  }

  .nav-panel a {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    padding: 0 0 0 4vw;
  }

  .hero-copy {
    order: 1;
    justify-content: center;
    padding: 6rem 4vw 3rem 0;
  }

  .hero-photo {
    position: relative;
    order: 2;
    height: 100svh;
  }

  .hero-photo::before { display: none; }

  .seal {
    top: auto;
    right: auto;
    left: 1.4rem;
    bottom: 1.4rem;
  }

  .hero-vertical {
    display: block;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    z-index: 1;
    writing-mode: vertical-rl;
    letter-spacing: 0.45em;
    font-family: var(--jp);
    font-size: 0.78rem;
    color: var(--paper);
  }

  h1 { font-size: clamp(6.2rem, 9vw, 9.4rem); }

  .about {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 4vw;
    padding-block: 7rem;
  }

  .about-photo { aspect-ratio: 3 / 4; }

  .menu, .reserve, .visit { padding-block: 6.5rem; }

  .reserve, .visit {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4vw;
    align-items: start;
  }

  .map, .map iframe { height: 100%; min-height: 28rem; }
}

