/* ============================================================
   KINTSUGI — washi, sumi, gold, moss.
   Ma (間) as a design principle: the whitespace is the layout.
   ============================================================ */

/* Macron patch: Shippori Mincho and Zen Kaku Gothic New ship no ō/Ō/ū
   in their latin-ext subsets, so those glyphs fell back to full-width
   Japanese-font forms. Borrow just U+014C-014D and U+016A-016B from
   metrics-compatible relatives (M PLUS 1p, Noto Serif JP). */
@font-face {
  font-family: "Macron Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.bunny.net/m-plus-1p/files/m-plus-1p-latin-ext-300-normal.woff2) format("woff2");
  unicode-range: U+014C-014D, U+016A-016B;
}
@font-face {
  font-family: "Macron Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.bunny.net/m-plus-1p/files/m-plus-1p-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+014C-014D, U+016A-016B;
}
@font-face {
  font-family: "Macron Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.bunny.net/m-plus-1p/files/m-plus-1p-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+014C-014D, U+016A-016B;
}
@font-face {
  font-family: "Macron Serif";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.bunny.net/noto-serif-jp/files/noto-serif-jp-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+014C-014D, U+016A-016B;
}

:root {
  --washi: #f7f4ed;
  --washi-deep: #efeadf;
  --ink: #1c1a17;
  --ink-60: rgba(28, 26, 23, 0.6);
  --ink-40: rgba(28, 26, 23, 0.5);
  --ink-12: rgba(28, 26, 23, 0.12);
  --gold: #c9a227;
  --gold-deep: #a5831a;
  --moss: #5a6b52;
  --serif: "Macron Serif", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Macron Sans", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --measure: 34em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--washi);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 0.55vw + 13px, 17px);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(201, 162, 39, 0.28); }

em { font-style: italic; }

/* ---------- paper grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 40;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E");
}
/* long washi fibres, very faint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.26 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='700' height='700' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* ---------- gold seam layer ---------- */
.seam-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}
.seam-layer svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seam-main {
  fill: none;
  stroke: url(#seamGrad);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seam-glow {
  fill: none;
  stroke: var(--gold);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.1;
  filter: blur(3px);
}
.seam-branch {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.seam-tip {
  fill: var(--gold);
  filter: blur(1px);
}
.seam-fleck { fill: var(--gold); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.4rem, 5vw, 4rem);
  background: linear-gradient(to bottom, var(--washi) 30%, rgba(247, 244, 237, 0));
  transition: transform 0.5s ease;
}
.nav__mark {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.nav__kanji {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}
.nav__word {
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--ink-60);
}
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
.nav__links a {
  color: var(--ink-60);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  transition: color 0.35s;
  position: relative;
  padding-bottom: 0.35em;
}
/* a hairline of gold mends itself under the link */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, rgba(201, 162, 39, 0.25));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.is-here::after { transform: scaleX(1); }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gold-deep); }
.nav__jp {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0;
  transition: color 0.35s;
}
.nav__links a:hover .nav__jp { color: var(--gold-deep); }
.nav__links a.is-here { color: var(--ink); }
.nav__links a.is-here .nav__jp { color: var(--gold-deep); }

/* ---------- vertical text (縦書き) ---------- */
.tate {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.55em;
  color: var(--moss);
  font-size: 0.92rem;
  position: absolute;
  top: clamp(6rem, 14vh, 9rem);
  right: clamp(1.5rem, 5.5vw, 4.5rem);
  z-index: 5;
  user-select: none;
}
.tate::after {
  content: "";
  display: block;
  width: 1px;
  height: 4.5rem;
  margin: 1.4rem auto 0;
  background: linear-gradient(to bottom, var(--moss), transparent);
  opacity: 0.5;
}
.tate--right { right: auto; left: clamp(0.6rem, 2vw, 2.1rem); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 12vh, 9rem) clamp(1.4rem, 7vw, 6rem) 6rem;
  z-index: 2;
}
.hero__tate { font-size: 1.05rem; color: var(--ink); }
.hero__tate::after { background: linear-gradient(to bottom, var(--gold), transparent); opacity: 0.8; }
.hero__inner { max-width: 60rem; }
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: clamp(1.6rem, 4vh, 3rem);
}
.hero__title { line-height: 1; }
.hero__kanji {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.6rem, 14vw, 11.5rem);
  letter-spacing: 0.06em;
  line-height: 1.04;
}
.hero__latin {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  letter-spacing: clamp(0.5em, 1.8vw, 1.18em);
  color: var(--gold-deep);
  margin-top: clamp(1.2rem, 3vh, 2.2rem);
  text-indent: 0.1em;
}
.hero__sub {
  max-width: 30em;
  margin-top: clamp(2rem, 5vh, 3.6rem);
  color: var(--ink-60);
  font-size: 1.02em;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(2rem, 6vh, 3.5rem);
  left: clamp(1.4rem, 7vw, 6rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.7s ease;
}
/* the invitation withdraws once you've accepted it */
body.has-scrolled .hero__scroll { opacity: 0; }
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3.4rem;
  background: var(--gold);
  transform-origin: top;
  animation: scrollPulse 2.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.hero__scroll-word {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- sections, shared ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(7rem, 18vh, 13rem) clamp(1.4rem, 7vw, 6rem);
  max-width: 90rem;
  margin: 0 auto;
}
.section__no {
  font-size: 0.7rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.28;
  letter-spacing: 0.015em;
  max-width: 16em;
}
.section__title em { color: var(--gold-deep); font-style: italic; }
.section__lede {
  max-width: var(--measure);
  margin-top: 2rem;
  color: var(--ink-60);
}
.section__ghost {
  position: absolute;
  top: clamp(2rem, 6vh, 4rem);
  left: clamp(3.5rem, 9vw, 9rem);
  font-family: var(--serif);
  font-size: clamp(8rem, 19vw, 16rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  z-index: -1;
  user-select: none;
}
.section__ghost--right { left: auto; right: clamp(3.5rem, 9vw, 9rem); }
.section__tate { position: absolute; }

/* ---------- philosophy ---------- */
.philosophy__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  margin-top: clamp(3.5rem, 8vh, 6rem);
}
.philosophy__text { max-width: var(--measure); }
.philosophy__text p + p { margin-top: 1.8em; }
.philosophy__text em { color: var(--gold-deep); }
.philosophy__text [lang="ja"] { font-family: var(--serif); }
.philosophy__bowl { position: sticky; top: 16vh; text-align: center; }
.bowl-svg { width: 100%; max-width: 24rem; height: auto; }
.bowl-ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0.85;
}
.bowl-ink--thin { stroke-width: 1.1; opacity: 0.4; }
.bowl-gold {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bowl-gold--thin { stroke-width: 1.3; }
/* drawn on reveal */
.philosophy__bowl .bowl-ink,
.philosophy__bowl .bowl-gold {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.philosophy__bowl.on .bowl-ink { stroke-dashoffset: 0; }
.philosophy__bowl.on .bowl-gold { stroke-dashoffset: 0; transition-delay: 1.1s; }
.philosophy__bowl figcaption {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  line-height: 1.9;
}
.philosophy__quote {
  margin: clamp(5rem, 12vh, 8rem) auto 0;
  text-align: center;
  max-width: 42em;
}
.philosophy__quote p[lang="ja"] {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  letter-spacing: 0.14em;
  font-feature-settings: "palt" 1; /* proportional kana punctuation */
}
.philosophy__quote-en {
  margin-top: 1.1rem;
  color: var(--ink-60);
  font-style: italic;
}
.philosophy__quote cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--moss);
}
.philosophy__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: 1.6rem;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  transform: rotate(-4deg);
  user-select: none;
}

/* ---------- tea ---------- */
.tea { overflow: visible; }
.tea__steam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.menu {
  list-style: none;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  max-width: 62rem;
}
.menu__item {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: baseline;
  padding: clamp(2rem, 4.5vh, 3rem) 0;
  border-bottom: 1px solid var(--ink-12);
}
.menu__item:first-child { border-top: 1px solid var(--ink-12); }
.menu__item { position: relative; transition: padding-left 0.45s ease; }
.menu__item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 50%;
  width: 0.55rem;
  height: 1.5px;
  background: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.menu__item:hover::before { opacity: 1; transform: translateX(0); }
.menu__item:hover .menu__price { color: var(--gold-deep); }
.menu__price { transition: color 0.45s ease; }
.menu__jp {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.1em;
}
.menu__romaji {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}
.menu__desc {
  color: var(--ink-60);
  max-width: 32em;
  font-size: 0.95em;
}
.menu__price {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.tea__note {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  font-size: 0.85rem;
  color: var(--ink-40);
  letter-spacing: 0.04em;
}

/* ---------- workshop ---------- */
.courses {
  list-style: none;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  max-width: 58rem;
}
.course {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.4rem, 5vh, 3.6rem) 0;
  border-bottom: 1px solid var(--ink-12);
}
.course:first-child { border-top: 1px solid var(--ink-12); }
.course__kanji {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  color: var(--gold-deep);
}
.course__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0.03em;
}
.course__meta {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}
.course__desc {
  margin-top: 1.1rem;
  color: var(--ink-60);
  max-width: 36em;
  font-size: 0.95em;
}

/* booking */
.booking {
  margin-top: clamp(4.5rem, 11vh, 7.5rem);
  max-width: 46rem;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  border: 1px solid var(--ink-12);
  background: rgba(255, 253, 248, 0.55);
  position: relative;
}
.booking::before {
  content: "";
  position: absolute;
  top: -1px; left: clamp(2rem, 5vw, 3.4rem);
  width: 4.5rem; height: 3px;
  background: var(--gold);
}
.booking__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 2.2rem;
}
.booking__title [lang="ja"] { color: var(--gold-deep); margin-right: 0.6em; }
.booking__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.field { display: block; margin-bottom: 1.6rem; }
.field__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 0.5rem;
}
.field__label em {
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--ink-40);
}
.field__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(28, 26, 23, 0.3);
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.5rem 0.1rem;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field__input:focus {
  outline: none;
  border-bottom-color: var(--gold-deep);
}
.field__input--area { resize: vertical; line-height: 1.7; }
select.field__input { cursor: pointer; }
.booking__foot {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.booking__submit {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.booking__submit:hover, .booking__submit:focus-visible { background: #d9b334; transform: translateY(-1px); }
.booking__small {
  font-size: 0.78rem;
  color: var(--ink-40);
  max-width: 18em;
  line-height: 1.7;
}
.booking__done {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink-12);
  color: var(--moss);
  font-size: 0.92rem;
}
.booking__done:not([hidden]) {
  animation: inkSettle 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes inkSettle {
  from { opacity: 0; filter: blur(6px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0);  transform: none; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- visit ---------- */
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  margin-top: clamp(3.5rem, 9vh, 6rem);
}
.map-svg { width: 100%; height: auto; }
.map-lane {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.55;
}
.map-lane--wide { stroke-width: 3; opacity: 0.65; }
.map-lane--thin { stroke-width: 1; opacity: 0.4; }
.map-river {
  fill: none;
  stroke: var(--moss);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.5;
}
.map-river--thin { stroke-width: 1; opacity: 0.35; }
.map-ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.75;
}
.map-ink--thin { stroke-width: 1.3; opacity: 0.6; }
.map-label {
  font-family: var(--serif);
  font-size: 15px;
  fill: var(--ink);
  opacity: 0.8;
  letter-spacing: 0.1em;
}
.map-label--moss { fill: var(--moss); }
.map-label--gold { fill: var(--gold-deep); font-size: 19px; font-weight: 600; opacity: 1; }
.map-label--en {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.map-label--vert { writing-mode: vertical-rl; }
.visit__map figcaption {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-40);
  font-style: italic;
}
/* drawn map on reveal */
.visit__map .map-lane, .visit__map .map-river, .visit__map .map-ink {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.visit__map.on .map-lane, .visit__map.on .map-river, .visit__map.on .map-ink { stroke-dashoffset: 0; }

.visit__info { display: grid; gap: clamp(2rem, 5vh, 3.2rem); padding-top: 1rem; }
.visit__label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.visit__label [lang="ja"] { color: var(--gold-deep); margin-right: 0.55em; }
.visit__block p { max-width: 30em; }
.visit__soft { color: var(--ink-40); font-size: 0.88em; margin-top: 0.4rem; }
.visit__link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s;
}
.visit__link:hover { color: var(--gold-deep); }

/* ---------- close ---------- */
.close {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(8rem, 22vh, 15rem) 1.4rem clamp(9rem, 24vh, 16rem);
}
.close__kanji {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(5rem, 12vw, 9rem);
  color: var(--gold-deep);
  line-height: 1;
}
.close__line {
  margin-top: 2.6rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: rgba(247, 244, 237, 0.85);
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1.4rem, 7vw, 6rem);
}
.footer__inner {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer__mark {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.footer__mark [lang="ja"] { color: var(--gold); margin-right: 0.6em; }
.footer__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__nav a {
  color: rgba(247, 244, 237, 0.6);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--gold); }
.footer__meta {
  width: 100%;
  font-size: 0.78rem;
  color: rgba(247, 244, 237, 0.58);
  letter-spacing: 0.06em;
}
.footer__meta a { color: rgba(247, 244, 237, 0.72); text-decoration: none; }
.footer__meta a:hover { color: var(--gold); }
.footer__credit {
  width: 100%;
  margin-top: 0.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(247, 244, 237, 0.14);
  font-size: 0.78rem;
  color: rgba(247, 244, 237, 0.55);
  letter-spacing: 0.04em;
}
.footer__credit a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201,162,39,0.4); }
.footer__credit a:hover { border-bottom-color: var(--gold); }

/* ---------- ink-wash reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(7px);
  transition:
    opacity 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform, filter;
}
.reveal.on { opacity: 1; transform: none; filter: blur(0); }
/* headless capture / no-JS safety: never ship a blank page */
html.no-anim .reveal { opacity: 1; transform: none; filter: none; transition: none; }
html.no-anim .bowl-ink, html.no-anim .bowl-gold,
html.no-anim .map-lane, html.no-anim .map-river, html.no-anim .map-ink {
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
  transition: none !important;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .philosophy__body, .visit__grid { grid-template-columns: 1fr; }
  .philosophy__bowl { position: static; max-width: 22rem; margin: 0 auto; }
  .menu__item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "names price" "desc desc";
  }
  .menu__names { grid-area: names; }
  .menu__price { grid-area: price; }
  .menu__desc { grid-area: desc; margin-top: 0.9rem; }
  .booking__row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  .nav { padding: 1.1rem 1.2rem; }
  .nav__links a { font-size: 0; letter-spacing: 0; gap: 0; }
  .nav__jp { font-size: 1.02rem; }
  .nav__links { gap: 1.3rem; }
  .nav__word { display: none; }
  .tate {
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    right: 0.9rem;
    top: 5.5rem;
  }
  .tate--right { left: auto; right: 0.9rem; }
  .tate::after { height: 2.6rem; }
  .hero__tate { font-size: 0.85rem; }
  .hero__eyebrow { font-size: 0.64rem; letter-spacing: 0.3em; }
  .hero__eyebrow-a, .hero__eyebrow-b { display: block; }
  .hero__eyebrow-b { margin-top: 0.35em; }
  .hero { padding-left: 1.2rem; padding-right: 3.4rem; }
  .section { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero__scroll { left: 1.2rem; }
  .section__title { padding-right: 2.2rem; }
  .course { grid-template-columns: 1fr; gap: 0.9rem; }
  .course__kanji { font-size: 2rem; }
  .booking { padding: 1.8rem 1.3rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .hero__scroll-line { animation: none; transform: none; }
  .booking__done:not([hidden]) { animation: none; }
  .nav__links a::after { transition: none; }
  .philosophy__bowl .bowl-ink, .philosophy__bowl .bowl-gold,
  .visit__map .map-lane, .visit__map .map-river, .visit__map .map-ink {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
}
