/* =========================================================
   麺や Kotetsu 難波店 — LP stylesheet
   Design: 千日前の路地、夜。墨の暗がりに黄色い暖簾と木札だけが灯る。
   3 colors: 墨 ink / 生成り washi / 暖簾イエロー noren
   ========================================================= */

@property --clear {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  --ink: #14110e;
  --ink-2: #1c1814;
  --ink-3: #28221c;
  --line: rgba(243, 236, 223, 0.14);
  --washi: #f3ecdf;
  --washi-2: #e6dccb;
  --washi-ink: #2a2118;
  --muted: rgba(243, 236, 223, 0.74);
  --noren: #f4ce2f;
  --noren-deep: #d8ad10;
  --chochin: #d7392b;
  --wood: #b98a5a;
  --wood-dark: #7a5534;
  --oil: radial-gradient(circle at 35% 35%, #fff6c8 0 18%, #f4ce2f 40%, #c98d0c 100%);

  --font-display: "Kaisei Tokumin", "Noto Serif JP", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --font-latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-ja-display: "Kaisei Tokumin", "Noto Serif JP", serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 68px;
  --wrap: min(1200px, calc(100vw - 40px));
}

html[lang="en"] {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
html[lang="ko"] {
  --font-display: "Nanum Myeongjo", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}
html[lang="zh-Hant"] {
  --font-display: "Noto Serif TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
html[lang="zh-Hans"] {
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--washi);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.6;
  font-weight: 400;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--noren);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--noren);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.num,
.price,
.latin {
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
}

.ja-name {
  font-family: var(--font-ja);
  font-weight: 700;
}

/* ---------- Oil droplet (signature) ---------- */
.drop {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--oil);
  box-shadow: 0 0 10px rgba(244, 206, 47, 0.55);
  vertical-align: middle;
  flex: none;
}

/* ---------- Buttons (湯切り press) ---------- */
.btn {
  --bg: var(--noren);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, background-color 0.2s ease;
  box-shadow: 0 10px 28px rgba(244, 206, 47, 0.22);
  -webkit-tap-highlight-color: transparent;
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(244, 206, 47, 0.32);
}
.btn.is-yukiri {
  animation: yukiri 0.42s var(--ease-out);
}
.btn .ripple {
  position: absolute;
  z-index: -1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes yukiri {
  0% { transform: translateY(0); }
  28% { transform: translateY(5px) scaleY(0.94); }
  62% { transform: translateY(-3px) scaleY(1.02); }
  100% { transform: translateY(0); }
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--washi);
  box-shadow: inset 0 0 0 2px rgba(243, 236, 223, 0.55);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 2px var(--washi);
}
.btn--ink {
  --bg: var(--ink);
  --fg: var(--washi);
  box-shadow: none;
}
.btn--sm {
  min-height: 42px;
  padding: 0.6em 1.1em;
  font-size: 0.92rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-solid {
  background: rgba(20, 17, 14, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  width: min(1320px, calc(100vw - 28px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  view-transition-name: site-logo;
  margin-right: auto;
}
.logo-seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chochin);
  color: #fff;
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text b {
  font-family: var(--font-latin);
  font-weight: 800;
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.logo-text small {
  margin-top: 4px;
  font-family: var(--font-ja);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--noren);
}

/* 木札 (wooden open-status sign) */
.kifuda {
  --w: 92px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--w);
  height: 34px;
  perspective: 400px;
  text-decoration: none;
}
.kifuda::before {
  /* hanging string */
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 36px;
  height: 12px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 2px, #c9b48f 0 2.2px, transparent 2.6px),
    linear-gradient(to top right, transparent calc(50% - 0.8px), rgba(243, 236, 223, 0.55) 50%, transparent calc(50% + 0.8px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 0.8px), rgba(243, 236, 223, 0.55) 50%, transparent calc(50% + 0.8px)) right / 50% 100% no-repeat;
  pointer-events: none;
}
.kifuda-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-spring);
}
.kifuda.is-closed .kifuda-inner {
  transform: rotateY(180deg);
}
.kifuda-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #e2c39a, #c99b68);
  color: #2a1a0c;
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(80, 45, 15, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.kifuda-face .lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa45a;
  box-shadow: 0 0 0 3px rgba(47, 164, 90, 0.25);
}
.kifuda-face--back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #a98a68, #86684a);
  color: #1a120a;
}
.kifuda-face--back .lamp {
  background: #9b8f84;
  box-shadow: none;
}
.kifuda.is-swinging {
  animation: swing 1.6s var(--ease-out);
  transform-origin: 50% -9px;
}
@keyframes swing {
  0% { transform: rotate(0); }
  18% { transform: rotate(7deg); }
  36% { transform: rotate(-5deg); }
  54% { transform: rotate(3deg); }
  72% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0); }
}

/* Language switcher */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(243, 236, 223, 0.35);
  background: rgba(20, 17, 14, 0.35);
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.lang-btn svg {
  width: 18px;
  height: 18px;
}
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0.2s;
}
.lang.is-open .lang-list {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.lang-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.lang-list a:hover,
.lang-list a:focus-visible {
  background: var(--ink-3);
}
.lang-list a[aria-current="page"] {
  color: var(--noren);
}
.lang-list a span {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.header-cta {
  display: none;
}
@media (min-width: 760px) {
  .header-cta {
    display: inline-flex;
  }
}

/* opening styles live in wa.css */
@keyframes noren-sway {
  0% { transform: translateY(-100%) skewX(0); }
  55% { transform: translateY(0) skewX(2.5deg); }
  78% { transform: skewX(-1.5deg); }
  100% { transform: skewX(0); }
}
@keyframes part-left {
  0% { transform: skewX(0); }
  35% { transform: translateX(-12%) skewX(9deg) rotate(2deg); }
  100% { transform: translateX(-140%) skewX(14deg) rotate(4deg); }
}
@keyframes part-right {
  0% { transform: skewX(0); }
  35% { transform: translateX(12%) skewX(-9deg) rotate(-2deg); }
  100% { transform: translateX(140%) skewX(-14deg) rotate(-4deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.55) 0%, rgba(20, 17, 14, 0) 22%),
    linear-gradient(0deg, rgba(20, 17, 14, 0.96) 0%, rgba(20, 17, 14, 0.72) 30%, rgba(20, 17, 14, 0) 62%),
    linear-gradient(90deg, rgba(20, 17, 14, 0.6) 0%, rgba(20, 17, 14, 0) 55%);
}
.hero-content {
  width: var(--wrap);
  margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 clamp(28px, 6vh, 64px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--noren);
}
.hero h1 {
  margin: 0;
  max-width: 15em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
  view-transition-name: hero-title;
}
html[lang="en"] .hero h1 {
  font-variation-settings: "wdth" 88;
  font-stretch: 88%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 13em;
}
html[lang="ko"] .hero h1,
html[lang="zh-Hant"] .hero h1,
html[lang="zh-Hans"] .hero h1 {
  font-weight: 800;
  font-size: clamp(36px, 6vw, 84px);
  line-height: 1.18;
}
html[lang="zh-Hant"] .hero h1,
html[lang="zh-Hans"] .hero h1 {
  font-weight: 900;
}
.hero-lead {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.05rem + 0.3vw, 20px);
  color: var(--washi);
  opacity: 0.92;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta strong {
  color: var(--washi);
}
.media-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 236, 223, 0.35);
  background: rgba(20, 17, 14, 0.45);
  font-size: 12.5px;
  cursor: pointer;
}
.media-toggle svg {
  width: 14px;
  height: 14px;
}

/* ---------- 澄む (clarify) text motion ---------- */
.clarify {
  --clear: 0%;
  background-image: linear-gradient(100deg, currentColor 0 42%, #ffe58a 48%, var(--noren) 50%, #ffe58a 52%, currentColor 58% 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.js .clarify:not(.is-clear) {
  -webkit-text-fill-color: transparent;
}
.js .clarify {
  opacity: 0;
  filter: blur(14px) saturate(0.4);
  -webkit-mask-image: linear-gradient(180deg, #000 var(--clear), rgba(0, 0, 0, 0.35) calc(var(--clear) + 18%));
  mask-image: linear-gradient(180deg, #000 var(--clear), rgba(0, 0, 0, 0.35) calc(var(--clear) + 18%));
}
.js .clarify.is-in {
  animation:
    clarify 1.5s var(--ease-out) forwards,
    glint 1.1s ease-in-out 1.2s forwards;
}
.js .clarify.is-clear {
  opacity: 1;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  background-position: 0 0;
}
@keyframes clarify {
  0% { opacity: 0; filter: blur(14px) saturate(0.4); --clear: 0%; }
  35% { opacity: 1; }
  100% { opacity: 1; filter: blur(0) saturate(1); --clear: 100%; }
}
@keyframes glint {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
/* text color for clarify must be solid for clip */
.clarify {
  color: var(--washi);
  -webkit-text-fill-color: transparent;
}
.section--washi .clarify {
  color: var(--washi-ink);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Ticker (信頼の帯) ---------- */
.ticker {
  position: relative;
  background: var(--noren);
  color: var(--ink);
  overflow: hidden;
  border-block: 2px solid var(--ink);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0 14px 18px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ticker li::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section commons ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
}
.section--washi {
  background: var(--washi);
  color: var(--washi-ink);
}
.section--washi .muted {
  color: rgba(42, 33, 24, 0.72);
}
.muted {
  color: var(--muted);
}
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 6vw, 64px);
  max-width: 820px;
}
.section-no {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--noren);
}
.section--washi .section-no {
  color: var(--wood-dark);
}
.section-no .tag {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e2c39a, #c99b68);
  color: #2a1a0c;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(80, 45, 15, 0.35);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
html[lang="en"] .section-title {
  font-variation-settings: "wdth" 92;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
html[lang="zh-Hant"] .section-title,
html[lang="zh-Hans"] .section-title {
  font-weight: 900;
}
.section-lead {
  margin: 0;
  font-size: clamp(16px, 1rem + 0.25vw, 19px);
  max-width: 40em;
}

/* Noren divider (四枚の暖簾) */
.noren-rule {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  height: 14px;
  width: 120px;
}
.noren-rule span {
  background: var(--noren);
  border-radius: 0 0 3px 3px;
}
.section--washi .noren-rule span {
  background: var(--ink);
}

/* ---------- Bento (こだわり) ---------- */
.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  border: 1px solid var(--line);
  min-height: 260px;
  isolation: isolate;
}
.bento-card .media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.bento-card .media video,
.bento-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.bento-card:hover .media video,
.bento-card:hover .media img {
  transform: scale(1.04);
}
.bento-card.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(20, 17, 14, 0.94) 0%, rgba(20, 17, 14, 0.55) 42%, rgba(20, 17, 14, 0) 72%);
}
.bento-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 3vw, 32px);
}
.bento-body h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
}
html[lang="en"] .bento-body h3 {
  font-variation-settings: "wdth" 96;
  line-height: 1.1;
}
.bento-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 34em;
}
.bento-index {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--noren);
}
.bento-a { grid-column: span 6; min-height: clamp(360px, 52vw, 560px); }
.bento-b { grid-column: span 6; min-height: 380px; }
.bento-c { grid-column: span 6; min-height: 380px; }
.bento-stat {
  grid-column: span 2;
  min-height: 150px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink-2);
}
.bento-stat b {
  font-family: var(--font-latin);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  color: var(--noren);
  letter-spacing: -0.02em;
}
.bento-stat span {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}
@media (min-width: 820px) {
  .bento-a { grid-column: span 4; grid-row: span 2; }
  .bento-b { grid-column: span 2; }
  .bento-c { grid-column: span 2; }
  .bento-stat { grid-column: span 2; }
}

/* ---------- Signature menu ---------- */
.menu-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
.dish {
  position: relative;
  perspective: 1200px;
}
.dish-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}
.dish.is-flipped .dish-inner {
  transform: rotateY(180deg);
}
.dish-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fffaf1;
  color: var(--washi-ink);
  box-shadow: 0 16px 40px rgba(42, 33, 24, 0.16);
  display: flex;
  flex-direction: column;
}
.dish-face--front {
  position: relative;
  height: 100%;
}
.dish-face--back {
  transform: rotateY(180deg);
  background: var(--ink);
  color: var(--washi);
  padding: 24px;
  gap: 12px;
  overflow-y: auto;
}
.dish-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9dfcf;
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dish-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--noren);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.price-tag {
  position: absolute;
  right: 16px;
  top: -2px;
  display: grid;
  place-items: center;
  padding: 18px 12px 12px;
  min-width: 82px;
  border-radius: 0 0 8px 8px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #e9cda5, #c99b68);
  color: #2a1a0c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(80, 45, 15, 0.3);
  transform-origin: 50% 0;
  line-height: 1;
}
.price-tag::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #4a2d14;
}
.price-tag b {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.price-tag small {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.8;
}
.dish.is-in .price-tag {
  animation: swing 1.8s var(--ease-out) 0.2s;
}
.dish-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  flex: 1;
}
.dish-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.25;
}
html[lang="en"] .dish-body h3 {
  font-variation-settings: "wdth" 96;
}
.dish-body .ja-name {
  font-size: 13.5px;
  color: var(--wood-dark);
}
.dish-body p {
  margin: 0;
  font-size: 15px;
  color: rgba(42, 33, 24, 0.78);
}
.dish-flip {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(42, 33, 24, 0.25);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.dish-face--back .dish-flip {
  border-color: rgba(243, 236, 223, 0.35);
}
.dish-face--back h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--noren);
}
.dish-face--back ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.dish-face--back li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
}
.dish-face--back li .drop {
  transform: translateY(-1px);
}
.point-card {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--washi);
  color: var(--washi-ink);
}
.point-card small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--wood-dark);
}
.point-card strong {
  display: block;
  font-family: var(--font-ja-display);
  font-size: 24px;
  line-height: 1.3;
}

/* Full menu */
.full-menu {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  background: #fffaf1;
  box-shadow: 0 16px 40px rgba(42, 33, 24, 0.12);
}
.full-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
}
.full-menu > summary::-webkit-details-marker {
  display: none;
}
.full-menu > summary .chev {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--noren);
  transition: transform 0.3s var(--ease-out);
}
.full-menu[open] > summary .chev {
  transform: rotate(180deg);
}
.full-menu-body {
  padding: 0 26px 28px;
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .full-menu-body {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }
}
.menu-cat h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--washi-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.menu-cat ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-cat li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(42, 33, 24, 0.22);
}
.menu-cat li .name {
  font-weight: 700;
}
.menu-cat li .ja-name {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--wood-dark);
  font-weight: 500;
}
.menu-cat li .price {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-weight: 800;
  font-size: 17px;
}
.menu-note {
  margin: 0;
  font-size: 13.5px;
  color: rgba(42, 33, 24, 0.7);
}

/* ---------- Steps (初めての方へ) ---------- */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.step-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.step-photo img,
.step-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 10px;
}
.step-no {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--noren);
}
.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.3;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-latin);
}
.section--washi .chips li {
  background: #fffaf1;
  border-color: rgba(42, 33, 24, 0.18);
}

/* ---------- Gallery / counter ---------- */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 420px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 18px;
  margin-inline: calc((100vw - var(--wrap)) / -2);
  padding-inline: calc((100vw - var(--wrap)) / 2);
  scrollbar-width: thin;
  scrollbar-color: var(--noren) transparent;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  position: relative;
}
.gallery figure.tall {
  grid-row: span 1;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(20, 17, 14, 0.72);
  backdrop-filter: blur(6px);
  font-size: 13.5px;
  font-weight: 700;
}
.review-links {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
@media (min-width: 760px) {
  .review-links { grid-template-columns: 1.3fr 1fr 1fr 1fr; align-items: stretch; }
}
.review-links .note {
  margin: 0;
  align-self: center;
  color: var(--muted);
  font-size: 15px;
}
.ext-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out);
}
.ext-link:hover {
  border-color: var(--noren);
  transform: translateY(-2px);
}
.ext-link svg {
  width: 18px;
  height: 18px;
  color: var(--noren);
}

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 960px) {
  .access-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
}
.front-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(42, 33, 24, 0.18);
}
.front-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.front-photo .pin {
  position: absolute;
  left: 3%;
  top: 47%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--noren);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  animation: bob 2.6s ease-in-out infinite;
}
.front-photo .pin::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -8px;
  border: 8px solid transparent;
  border-top-color: var(--ink);
  border-bottom: 0;
}
@keyframes bob {
  50% { transform: translateY(-6px); }
}
.front-caption {
  margin: 12px 4px 0;
  font-size: 14.5px;
}
.map-frame {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--washi-ink);
  background: #e9dfcf;
  aspect-ratio: 16 / 11;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.info-card {
  border-radius: var(--radius-lg);
  background: #fffaf1;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 16px 40px rgba(42, 33, 24, 0.12);
}
.info-list {
  margin: 0;
  display: grid;
  gap: 0;
}
.info-list > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(42, 33, 24, 0.22);
}
html[lang="en"] .info-list > div {
  grid-template-columns: 8.5em 1fr;
}
.info-list dt {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--wood-dark);
}
.info-list dd {
  margin: 0;
  font-weight: 600;
}
.info-list dd small {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: rgba(42, 33, 24, 0.68);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.hours-table td {
  padding: 3px 0;
}
.hours-table td:last-child {
  text-align: right;
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.hours-table tr.is-today td {
  color: var(--ink);
  font-weight: 800;
}
.hours-table tr.is-today td:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--noren-deep);
  vertical-align: middle;
}
.hours-table tr.is-closed td:last-child {
  color: var(--chochin);
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--washi);
  font-size: 13.5px;
  font-weight: 800;
}
.status-line .lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b8f84;
}
.status-line.is-open .lamp {
  background: #3ccf6e;
  box-shadow: 0 0 0 3px rgba(60, 207, 110, 0.25);
}
.address-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(42, 33, 24, 0.3);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.copy-btn.is-done {
  background: var(--ink);
  color: var(--noren);
  border-color: var(--ink);
}
.access-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.route {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.route li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
}
.route li b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--noren);
  font-family: var(--font-latin);
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}
.faq-item {
  border-radius: 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .q {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.faq-item summary .q::before {
  content: "Q";
  font-family: var(--font-latin);
  font-weight: 800;
  color: var(--noren);
}
.faq-item summary .pm {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
}
.faq-item summary .pm::before,
.faq-item summary .pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: var(--noren);
  transition: transform 0.3s var(--ease-out);
}
.faq-item summary .pm::after {
  transform: rotate(90deg);
}
.faq-item[open] summary .pm::after {
  transform: rotate(0);
}
.faq-item .a {
  padding: 0 22px 22px 48px;
  color: var(--muted);
}
.faq-item .a p {
  margin: 0;
}

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.final .media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.final .media video,
.final .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 17, 14, 0.55) 0%, rgba(20, 17, 14, 0.88) 70%);
}
.final h2 {
  margin: 0 auto;
  max-width: 14em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 86px);
  line-height: 1.12;
  text-wrap: balance;
}
html[lang="en"] .final h2 {
  font-variation-settings: "wdth" 88;
  text-transform: uppercase;
  line-height: 1.02;
}
.final p {
  margin: 20px auto 0;
  max-width: 34em;
  color: var(--washi);
  opacity: 0.9;
}
.final .hero-ctas {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 120px;
  background: #0d0b09;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--noren);
  font-family: var(--font-latin);
}
.site-footer p {
  margin: 0 0 6px;
  color: var(--muted);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--washi);
  text-underline-offset: 3px;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
}
.legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(243, 236, 223, 0.55);
  font-size: 12.5px;
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  /* sits above the hosting badge in the bottom-right corner (Manus "Made with Manus") */
  bottom: calc(var(--bar-offset, 64px) + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(20, 17, 14, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease-out);
}
.action-bar.is-visible {
  transform: none;
}
.action-bar .btn {
  min-height: 48px;
  padding-inline: 0.8em;
  font-size: 15px;
}
.action-bar .bar-status {
  display: grid;
  place-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--muted);
}
.action-bar .bar-status .lamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b8f84;
  margin-right: 4px;
}
.action-bar .bar-status.is-open {
  color: var(--washi);
}
.action-bar .bar-status.is-open .lamp {
  background: #3ccf6e;
}
@media (min-width: 900px) {
  .action-bar { display: none; }
}
@media (max-width: 899px) {
  /* keep the footer's last lines clear of the floating bar and the badge below it */
  .site-footer { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* ---------- Dialog (taxi / order card) ---------- */
dialog.card-dialog {
  width: min(560px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--washi);
  color: var(--washi-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
dialog.card-dialog::backdrop {
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(4px);
}
.dialog-body {
  padding: 28px 26px 24px;
  display: grid;
  gap: 14px;
}
.dialog-body .label {
  font-size: 13px;
  font-weight: 800;
  color: var(--wood-dark);
}
.dialog-body .big-ja {
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.3;
  margin: 0;
}
.dialog-body .addr-ja {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.5;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fffaf1;
  border: 2px solid var(--washi-ink);
}
.dialog-body .phrase {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 26px 24px;
}

/* ---------- Reduced motion / user toggle ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .opening { display: none !important; }
  .js .clarify { opacity: 1; filter: none; -webkit-mask-image: none; mask-image: none; background-position: 0 0; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}
html.motion-off *,
html.motion-off *::before,
html.motion-off *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
html.motion-off .ticker-track {
  animation: none !important;
}
html.motion-off .js .clarify,
html.motion-off .clarify {
  opacity: 1 !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background-position: 0 0 !important;
}
html.motion-off .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- View transitions (language switch) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(hero-title) {
  animation: vt-out 0.35s var(--ease-out) both;
}
::view-transition-new(hero-title) {
  animation: vt-in 0.5s var(--ease-out) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-18px); filter: blur(6px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo-seal { width: 34px; height: 34px; font-size: 11px; }
  .logo-text b { font-size: 18px; }
  .logo-text small { font-size: 9.5px; letter-spacing: 0.12em; }
  .kifuda { --w: 78px; height: 30px; }
  .kifuda-face { font-size: 12px; gap: 4px; }
  .lang-btn { height: 38px; padding: 0 10px; font-size: 13px; }
  .lang-btn .lang-label { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .info-list > div,
  html[lang="en"] .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 84px 0; }
}

/* ---------- additions ---------- */
.btn--line {
  --bg: transparent;
  --fg: var(--washi-ink);
  box-shadow: inset 0 0 0 2px var(--washi-ink);
}
.btn--line:hover {
  box-shadow: inset 0 0 0 2px var(--washi-ink), 0 8px 18px rgba(42, 33, 24, 0.12);
}
.dish-face--back .btn {
  align-self: flex-start;
}
.menu-cat + .menu-cat {
  margin-top: 26px;
}
.menu-cat ul.spice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 18px;
}
.menu-cat ul.spice-grid li {
  grid-template-columns: 1fr auto;
  padding: 7px 0;
  font-weight: 700;
}
.menu-cat ul.spice-grid li .price {
  grid-row: auto;
  font-size: 15px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.final .wrap {
  padding: 120px 0;
}
.bar-status {
  text-decoration: none;
}
.info-list a {
  font-family: var(--font-latin);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* CJK headings: break only at phrase boundaries (<wbr>) */
:lang(ja) :is(h1, h2, h3),
:lang(zh-Hant) :is(h1, h2, h3),
:lang(zh-Hans) :is(h1, h2, h3) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(ko) :is(h1, h2, h3, p, li, dd) {
  word-break: keep-all;
}

/* entrance inset (the real door is around the corner, on the alley side) */
.entrance-inset {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40%;
  margin: 0;
  padding: 6px 6px 8px;
  border-radius: 12px;
  background: var(--washi);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}
.front-photo .entrance-inset img {
  border-radius: 7px;
  aspect-ratio: 4 / 3;
}
.entrance-inset figcaption {
  padding: 7px 4px 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--washi-ink);
}
@media (max-width: 520px) {
  .entrance-inset { width: 46%; right: 10px; bottom: 10px; padding: 4px 4px 6px; }
  .entrance-inset figcaption { font-size: 11px; }
  .front-photo .pin { font-size: 12.5px; padding: 7px 11px; }
}
:lang(ja) .entrance-inset figcaption,
:lang(zh-Hant) .entrance-inset figcaption,
:lang(zh-Hans) .entrance-inset figcaption {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- mobile refinements ---------- */
.map-frame { position: relative; }
.map-frame iframe { position: relative; z-index: 1; }
.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--washi-ink);
  font-weight: 800;
}
.map-fallback svg { width: 28px; height: 28px; }
@media (max-width: 760px) {
  .bento-stat {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 16px 18px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .bento-stat b { min-width: 3.4ch; font-size: 40px; }
  .bento-stat span { font-size: 14px; }
  .media-toggle {
    top: calc(var(--header-h) + 10px);
    bottom: auto;
    right: 12px;
    height: 32px;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .access-ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .access-ctas .btn { width: 100%; justify-content: center; }
  .access-ctas .btn:first-child, .access-ctas .btn--line { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .access-ctas { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bento-stat { justify-content: flex-start; }
  .bento-stat span { text-align: left; }
}

/* 麺や Kotetsu 難波店 — v2 "wa" layer
 * Opening (shop poster logo → noren parting), hero chapters, wagara walls,
 * emaki band, hanging scroll, hanko numerals, gallery slider, lanterns.
 * Bundled after main.css at build time.
 */
:root {
  --ai: #1b2a4e;
  --ai-deep: #101a33;
  --shu: #d7392b;
  --kin: #b8902f;
  --matcha: #2f5d3a;
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .22 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- brush-script wordmark (as on the shop poster) ---------- */
.logo-text b.brush-word {
  font-family: "Kaushan Script", var(--font-latin);
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
  font-size: 25px;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

/* =====================================================================
   Opening — the poster logo is brushed in, then three sheets part like a noren
   ===================================================================== */
.opening {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  cursor: pointer;
  overflow: hidden;
  background: #cdbf9f;
  transition: background-color 0.5s ease 0.35s;
}
html.show-opening .opening {
  display: block;
}
.op-rod {
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  z-index: 3;
  background: linear-gradient(180deg, #8d5d34, #5a381c);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s var(--ease-out) 0.1s;
}
.op-sheet {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: 50% 0;
  transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.45s ease 0.5s;
  will-change: transform;
}
.op-sheet--1 { clip-path: inset(0 calc(66.667% + 1px) 0 0); transform-origin: 0 0; }
.op-sheet--2 { clip-path: inset(0 calc(33.333% + 1px) 0 calc(33.333% + 1px)); }
.op-sheet--3 { clip-path: inset(0 0 0 calc(66.667% + 1px)); transform-origin: 100% 0; }
.op-paper {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 46%, #fbf7ee 0, #f3ecdf 52%, #e4d7bf 100%);
}
.op-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--paper-noise);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.op-stack {
  position: relative;
  width: min(86vmin, 620px);
  aspect-ratio: 1;
  container-type: inline-size;
}
.op-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.op-enso,
.op-dot {
  fill: #15110d;
}
.op-enso-reveal {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: op-draw 1.05s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}
.op-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: op-pop 0.32s var(--ease-spring) calc(1.1s + var(--i) * 0.035s) forwards;
}
.op-bowl {
  opacity: 0;
  transform: translateY(18px);
  animation: op-up 0.6s var(--ease-out) 0.85s forwards;
}
.op-rai {
  transform-box: fill-box;
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: op-scalex 0.75s cubic-bezier(0.65, 0, 0.35, 1) 1.05s forwards;
}
.op-tag {
  opacity: 0;
  animation: op-fade 0.5s ease 1.9s forwards;
}
.op-tag text {
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 13px;
  fill: var(--shu);
  text-anchor: middle;
}
.op-seal {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: op-stamp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.3s forwards;
}
.op-seal text {
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 36px;
  fill: #fff;
}
.op-sub {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.42em;
  fill: #6b5a45;
  opacity: 0;
  animation: op-fade 0.6s ease 2.05s forwards;
}
.op-word {
  position: absolute;
  inset: 33% 0 auto;
  text-align: center;
  font-family: "Kaushan Script", "Brush Script MT", cursive;
  font-size: min(14.2vmin, 102px);
  font-size: 16.6cqw;
  line-height: 1;
  color: #15110d;
  white-space: nowrap;
  clip-path: inset(-20% 100% -20% 0);
  animation: op-write 0.85s cubic-bezier(0.5, 0, 0.3, 1) 1.55s forwards;
}
.opening-skip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(42, 33, 24, 0.35);
  background: rgba(243, 236, 223, 0.7);
  color: #2a2118;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.opening.is-parting {
  pointer-events: none;
  background-color: rgba(205, 191, 159, 0);
}
.opening.is-parting .op-rod { transform: translateY(-130%); }
.opening.is-parting .op-sheet--1 { transform: translate(-46%, -3%) rotate(-9deg); opacity: 0; }
.opening.is-parting .op-sheet--2 { transform: translateY(-108%); opacity: 0; }
.opening.is-parting .op-sheet--3 { transform: translate(46%, -3%) rotate(9deg); opacity: 0; }
.opening.is-parting .opening-skip { opacity: 0; }
@keyframes op-draw { to { stroke-dashoffset: 0; } }
@keyframes op-pop { to { transform: scale(1); } }
@keyframes op-up { to { opacity: 1; transform: none; } }
@keyframes op-scalex { to { transform: scaleX(1); } }
@keyframes op-fade { to { opacity: 1; } }
@keyframes op-write { to { clip-path: inset(-20% -4% -20% 0); } }
@keyframes op-stamp {
  0% { opacity: 0; transform: scale(1.9) rotate(-14deg); }
  60% { opacity: 1; transform: scale(0.92) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

/* =====================================================================
   Hero — chapters, vertical text, steam, rising headline, depth on scroll
   ===================================================================== */
.hero-media {
  transform: scale(calc(1 + var(--hp, 0) * 0.08));
  transform-origin: 50% 35%;
}
html.show-opening:not(.opening-done) .hero-media {
  transform: scale(1.12);
}
html.opening-done .hero-media {
  transition: transform 1.6s var(--ease-out);
}
.hero-content {
  position: relative;
  z-index: 1;
  opacity: calc(1 - var(--hp, 0) * 1.1);
  transform: translateY(calc(var(--hp, 0) * -40px));
}
.rise .ln {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rise .ln > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.05s var(--ease-out) calc(var(--i) * 0.12s + 0.05s);
}
.rise.is-in .ln > span,
html.no-js .rise .ln > span,
html.motion-off .rise .ln > span {
  transform: none;
}
.hero-vertical {
  display: none;
}
@media (min-width: 1280px) {
  .hero-vertical {
    position: absolute;
    left: clamp(18px, 2.2vw, 36px);
    top: calc(var(--header-h) + 34px);
    z-index: 1;
    margin: 0;
    display: flex;
    gap: 1.1em;
    writing-mode: vertical-rl;
    font-family: var(--font-ja-display);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5em;
    color: rgba(243, 236, 223, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  }
  .hero-vertical span:first-child {
    padding: 0.7em 0.35em 0.2em;
    border: 1px solid rgba(244, 206, 47, 0.65);
    color: var(--noren);
  }
}
.steam {
  position: absolute;
  right: 16%;
  bottom: 6%;
  width: 280px;
  height: 340px;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.5;
}
.steam i {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
  filter: blur(12px);
  opacity: 0;
  animation: steam 6.4s ease-in infinite;
}
.steam i:nth-child(1) { left: 10%; animation-delay: 0s; }
.steam i:nth-child(2) { left: 34%; animation-delay: 1.3s; }
.steam i:nth-child(3) { left: 56%; animation-delay: 2.6s; }
.steam i:nth-child(4) { left: 22%; animation-delay: 3.9s; }
.steam i:nth-child(5) { left: 46%; animation-delay: 5.1s; }
@keyframes steam {
  0% { transform: translate(0, 40px) scale(0.6, 0.5); opacity: 0; }
  25% { opacity: 0.85; }
  100% { transform: translate(34px, -280px) scale(1.5, 1.7); opacity: 0; }
}
@media (max-width: 760px) {
  .steam { right: -10%; bottom: 30%; width: 220px; height: 260px; opacity: 0.35; }
}
/* chapters 一〜六 */
.hero-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 2;
}
.hero-chapters button {
  display: grid;
  width: 100%;
  border: 0;
  background: none;
  color: rgba(243, 236, 223, 0.6);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}
.hero-chapters button:hover,
.hero-chapters button[aria-current] {
  color: var(--washi);
}
.hc-no {
  font-family: var(--font-ja-display);
  font-weight: 800;
  transition: color 0.3s ease, transform 0.4s var(--ease-spring);
}
.hero-chapters button[aria-current] .hc-no {
  color: var(--noren);
}
.hc-bar {
  position: relative;
  display: block;
  height: 2px;
  background: rgba(243, 236, 223, 0.22);
  overflow: hidden;
  border-radius: 2px;
}
.hc-bar i {
  position: absolute;
  inset: 0;
  background: var(--noren);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}
@media (min-width: 900px) {
  .hero-chapters {
    right: 24px;
    bottom: 72px;
    width: 230px;
    display: grid;
    gap: 4px;
  }
  .hero-chapters button {
    grid-template-columns: 26px 1fr;
    align-items: center;
    column-gap: 8px;
    row-gap: 5px;
    padding: 5px 0;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  }
  .hc-no { grid-row: 1 / span 2; font-size: 17px; text-align: center; }
  .hero-chapters button[aria-current] .hc-no { transform: scale(1.2); }
}
@media (max-width: 899px) {
  .hero-chapters {
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 8px);
    display: flex;
    gap: 4px;
  }
  .hero-chapters li { flex: 1; }
  .hero-chapters button { padding: 8px 0; }
  .hc-bar { height: 3px; }
  .hc-no { display: none; }
  .hc-label { display: none; }
  .hero-chapters button[aria-current] .hc-label {
    display: block;
    position: absolute;
    left: 0;
    top: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  }
}

/* =====================================================================
   Wagara walls, edges and bands
   ===================================================================== */
.wall {
  background-color: var(--wall-bg);
  background-image: var(--wall-img);
  background-repeat: repeat;
}
.wall--kikko { --wall-bg: #14110e; --wall-img: url("/assets/wall/kikko-sumi.svg"); }
.wall--seigaiha { --wall-bg: #f3ecdf; --wall-img: url("/assets/wall/seigaiha-washi.svg"); }
.wall--kanoko { --wall-bg: #f4ce2f; --wall-img: url("/assets/wall/kanoko-noren.svg"); color: var(--washi-ink); }
.wall--asanoha { --wall-bg: var(--ai); --wall-img: url("/assets/wall/asanoha-ai.svg"); }
.wall--shippo { --wall-bg: #f3ecdf; --wall-img: url("/assets/wall/shippo-washi.svg"); }
.wall--sakura { --wall-bg: #f8e8e4; --wall-img: url("/assets/wall/sakura-usu.svg"); }

.edge {
  height: 14px;
}
.edge--ichimatsu {
  background: conic-gradient(var(--ink) 25%, var(--washi) 0 50%, var(--ink) 0 75%, var(--washi) 0) 0 0 / 28px 28px;
}
.edge--ichimatsu.edge--light {
  background: conic-gradient(var(--ai) 25%, var(--washi) 0 50%, var(--ai) 0 75%, var(--washi) 0) 0 0 / 28px 28px;
}
.edge--stripe {
  height: 18px;
  background: linear-gradient(180deg, var(--shu) 0 25%, var(--noren) 0 50%, var(--matcha) 0 75%, var(--ai) 0);
}
.band-raimon {
  height: 40px;
  background: #f3ecdf url("/assets/wall/raimon-shu.svg") repeat-x center / 34px 34px;
  border-block: 3px solid var(--shu);
}
.band-raimon--gold {
  height: 38px;
  background: var(--ink) url("/assets/wall/raimon-gold.svg") repeat-x center / 34px 34px;
  border-block: 2px solid var(--kin);
}

/* hanko numerals + swaying noren rule */
.section-no .hanko {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--shu);
  color: #fff;
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 2px var(--shu), inset 0 0 0 3.5px rgba(255, 255, 255, 0.85);
  transform: rotate(-5deg);
}
.section-no .hanko + .tag {
  display: none;
}
.section-no.is-in .hanko {
  animation: hanko-stamp 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.1s both;
}
@keyframes hanko-stamp {
  0% { opacity: 0; transform: scale(1.9) rotate(-18deg); }
  60% { opacity: 1; transform: scale(0.92) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(-5deg); }
}
.noren-rule span {
  transform-origin: 50% 0;
  animation: noren-wave 3.8s ease-in-out infinite;
}
.noren-rule span:nth-child(2) { animation-delay: 0.18s; }
.noren-rule span:nth-child(3) { animation-delay: 0.36s; }
.noren-rule span:nth-child(4) { animation-delay: 0.54s; }
@keyframes noren-wave {
  0%, 100% { transform: skewX(0) scaleY(1); }
  50% { transform: skewX(8deg) scaleY(1.12); }
}

/* yellow kanoko section (first visit) */
.wall--kanoko .clarify { color: var(--washi-ink); }
.wall--kanoko .section-no { color: var(--washi-ink); }
.wall--kanoko .muted { color: rgba(42, 33, 24, 0.8); }
.wall--kanoko .noren-rule span { background: var(--ink); }
.wall--kanoko .step {
  color: var(--washi);
  border-color: rgba(20, 17, 14, 0.5);
  box-shadow: 0 22px 44px rgba(110, 76, 0, 0.28);
}
/* indigo asanoha section (gallery) */
.wall--asanoha .ext-link { background: rgba(10, 16, 32, 0.62); border-color: rgba(243, 236, 223, 0.2); }
.wall--asanoha .section-no { color: var(--noren); }
/* sakura section (faq) */
.wall--sakura .faq-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(215, 57, 43, 0.2);
  color: var(--washi-ink);
  box-shadow: 0 8px 22px rgba(160, 70, 60, 0.08);
}
.wall--sakura .faq-item summary .q::before { color: var(--shu); }
.wall--sakura .faq-item summary .pm::before,
.wall--sakura .faq-item summary .pm::after { background: var(--shu); }
.wall--sakura .faq-item .a { color: rgba(42, 33, 24, 0.78); }

/* =====================================================================
   Emaki — illustrated band with a hanging wooden sign
   ===================================================================== */
.emaki {
  position: relative;
  background: var(--ai-deep);
  overflow: hidden;
}
.emaki-stage {
  position: relative;
  overflow: hidden;
}
.emaki-pan {
  width: 112vw;
  margin-left: -6vw;
  transform: translateX(calc((0.5 - var(--ep, 0.5)) * 10vw));
  will-change: transform;
}
.emaki-pan picture,
.emaki-pan img {
  display: block;
  width: 100%;
  height: auto;
}
.emaki-sign {
  position: absolute;
  left: 50%;
  top: clamp(18px, 3vw, 40px);
  width: min(480px, calc(100vw - 40px));
  transform: translateX(-50%);
  z-index: 1;
}
.emaki-sign.reveal { transform: translate(-50%, 18px); }
.emaki-sign.reveal.is-in { transform: translate(-50%, 0); }
.sign-cord {
  display: block;
  height: 26px;
  margin: 0 auto -2px;
  width: 46%;
  background:
    linear-gradient(to top right, transparent calc(50% - 1.5px), #2a1a0c calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1.5px), #2a1a0c calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)) right / 50% 100% no-repeat;
}
.sign-board {
  position: relative;
  transform-origin: 50% -26px;
  animation: sign-sway 6s ease-in-out infinite;
  padding: 18px 22px 18px 84px;
  border-radius: 8px;
  color: #2a1a0c;
  background:
    repeating-linear-gradient(92deg, rgba(90, 52, 20, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #e3c08f, #c99b68 55%, #b5834f);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(90, 52, 20, 0.35), inset 0 0 0 5px rgba(255, 236, 200, 0.25);
}
.sign-seal {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--shu);
  color: #fff;
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 17px;
  transform: rotate(-8deg);
}
.sign-board h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sign-board p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(42, 26, 12, 0.85);
}
@keyframes sign-sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}
@media (max-width: 899px) {
  .emaki-pan {
    width: 230vw;
    margin-left: 0;
    transform: none;
    animation: emaki-pan 32s ease-in-out infinite alternate;
  }
  .emaki-stage { padding-top: 0; }
  .sign-board { padding: 14px 16px 14px 70px; }
  .sign-seal { left: 12px; width: 44px; height: 44px; margin-top: -22px; font-size: 15px; }
}
@keyframes emaki-pan {
  from { transform: translateX(0); }
  to { transform: translateX(-130vw); }
}

/* =====================================================================
   Craft — rooster hanging scroll (掛け軸)
   ===================================================================== */
.head-with-art {
  display: grid;
  gap: 8px 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .head-with-art { grid-template-columns: minmax(0, 1fr) 250px; }
}
.kakejiku {
  position: relative;
  margin: 0 auto clamp(30px, 5vw, 48px);
  width: min(250px, 44vw);
  padding-top: 22px;
  transform-origin: 50% 0;
  animation: kj-sway 7s ease-in-out infinite;
}
.kakejiku::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 44%;
  height: 24px;
  transform: translateX(-50%);
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), #b8902f calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), #b8902f calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) right / 50% 100% no-repeat;
}
.kj-rod {
  position: relative;
  z-index: 1;
  display: block;
  height: 11px;
  margin: 0 -12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7a4e2a, #3b2312);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.kj-rod--bottom {
  height: 14px;
  margin: 0 -16px;
}
.kj-paper {
  padding: 16px 13px 26px;
  background:
    repeating-linear-gradient(45deg, rgba(184, 144, 47, 0.18) 0 2px, transparent 2px 8px),
    #2c3c63;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.kj-paper picture,
.kj-paper img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.kakejiku figcaption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}
@keyframes kj-sway {
  0%, 100% { transform: rotate(-0.9deg); }
  50% { transform: rotate(0.9deg); }
}

/* =====================================================================
   Gallery slider — framed, noren wipe, incense timer
   ===================================================================== */
.wa-slider {
  position: relative;
  max-width: 1100px;
}
.ws-frame {
  position: relative;
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #d9bf86, #b8902f 50%, #8c6a1f);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(60, 40, 10, 0.5);
}
.ws-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0d1426;
  box-shadow: 0 0 0 4px #f3ecdf, 0 0 0 5px rgba(60, 40, 10, 0.45);
  touch-action: pan-y;
  user-select: none;
}
@media (max-width: 760px) {
  .ws-stage { aspect-ratio: 1 / 1; }
}
.ws-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
}
.ws-slide.is-active {
  visibility: visible;
  z-index: 1;
}
.ws-img,
.ws-img picture,
.ws-img img {
  display: block;
  width: 100%;
  height: 100%;
}
.ws-img img {
  object-fit: cover;
  transform: scale(1.02);
}
.ws-slide.is-active .ws-img img {
  animation: kenburns 7.5s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
.ws-cap {
  position: absolute;
  left: clamp(10px, 2.2vw, 26px);
  bottom: clamp(10px, 2.2vw, 26px);
  z-index: 2;
  max-width: min(470px, calc(100% - 20px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  padding: 13px 18px 15px 13px;
  border-left: 4px solid var(--shu);
  border-radius: 2px;
  background: rgba(16, 26, 51, 0.84);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--washi);
}
.ws-no {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--shu);
  color: #fff;
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 23px;
  box-shadow: inset 0 0 0 2px var(--shu), inset 0 0 0 3.5px rgba(255, 255, 255, 0.8);
  transform: rotate(-5deg);
}
.ws-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.3;
}
.ws-price {
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 0.92em;
  color: var(--noren);
}
.ws-price small {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.ws-ja {
  font-size: 12.5px;
  color: rgba(243, 236, 223, 0.7);
}
.ws-text {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243, 236, 223, 0.88);
}
.ws-cap > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.ws-slide.is-active .ws-cap > * {
  opacity: 1;
  transform: none;
}
.ws-slide.is-active .ws-cap > .ws-no { transform: rotate(-5deg); }
.ws-slide.is-active .ws-cap > :nth-child(2) { transition-delay: 0.1s; }
.ws-slide.is-active .ws-cap > :nth-child(3) { transition-delay: 0.18s; }
.ws-slide.is-active .ws-cap > :nth-child(4) { transition-delay: 0.26s; }
@media (max-width: 520px) {
  .ws-cap { left: 8px; right: 8px; bottom: 8px; max-width: none; padding: 10px 12px 12px 10px; column-gap: 10px; }
  .ws-no { width: 36px; height: 36px; font-size: 19px; }
  .ws-text { font-size: 13px; }
}
/* noren wipe */
.ws-noren {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  pointer-events: none;
}
.ws-noren i {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 14%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px),
    var(--ai);
  border-bottom: 3px solid var(--noren);
  transform: translateY(-102%);
}
.ws-noren i:nth-child(2),
.ws-noren i:nth-child(3) {
  background-color: #22335c;
}
.wa-slider.is-wiping .ws-noren i {
  animation: noren-wipe 1s cubic-bezier(0.7, 0, 0.3, 1) both;
}
.wa-slider.is-wiping .ws-noren i:nth-child(2) { animation-delay: 0.05s; }
.wa-slider.is-wiping .ws-noren i:nth-child(3) { animation-delay: 0.1s; }
.wa-slider.is-wiping .ws-noren i:nth-child(4) { animation-delay: 0.15s; }
.wa-slider.wipe-rev.is-wiping .ws-noren i:nth-child(1) { animation-delay: 0.15s; }
.wa-slider.wipe-rev.is-wiping .ws-noren i:nth-child(2) { animation-delay: 0.1s; }
.wa-slider.wipe-rev.is-wiping .ws-noren i:nth-child(3) { animation-delay: 0.05s; }
.wa-slider.wipe-rev.is-wiping .ws-noren i:nth-child(4) { animation-delay: 0s; }
@keyframes noren-wipe {
  0% { transform: translateY(-102%); }
  40%, 62% { transform: translateY(0); }
  100% { transform: translateY(102%); }
}
.ws-vertical {
  display: none;
}
@media (min-width: 1240px) {
  .ws-vertical {
    position: absolute;
    right: -48px;
    top: 18px;
    margin: 0;
    display: flex;
    gap: 0.8em;
    writing-mode: vertical-rl;
    font-family: var(--font-ja-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.4em;
    color: rgba(243, 236, 223, 0.75);
  }
  .ws-vertical span:nth-child(2) {
    font-family: "Kaushan Script", var(--font-latin);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--noren);
  }
}
/* controls + incense timer */
.ws-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.ws-btn {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 223, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--washi);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-out);
}
.ws-btn:hover {
  background: var(--shu);
  border-color: var(--shu);
  transform: translateY(-2px);
}
.ws-btn:focus-visible {
  outline: 3px solid var(--noren);
  outline-offset: 2px;
}
.ws-btn--toggle .i-play,
.wa-slider.is-paused .ws-btn--toggle .i-pause {
  display: none;
}
.wa-slider.is-paused .ws-btn--toggle .i-play {
  display: block;
}
.ws-incense {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ws-stick {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(243, 236, 223, 0.14);
}
.ws-stick i {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6d4b2a, #9a6c3e);
}
.ws-stick i::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0, #ff7a2a 55%, rgba(255, 80, 20, 0) 74%);
  box-shadow: 0 0 10px 3px rgba(255, 120, 40, 0.55);
  opacity: 0;
}
.ws-stick i::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: 6px;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(0deg, rgba(243, 236, 223, 0.45), rgba(243, 236, 223, 0));
  filter: blur(1.5px);
  opacity: 0;
}
.wa-slider.is-running .ws-stick i {
  animation: incense var(--interval, 5200ms) linear forwards;
}
.wa-slider.is-running .ws-stick i::before { opacity: 1; }
.wa-slider.is-running .ws-stick i::after { animation: smoke 1.8s ease-out infinite; }
@keyframes incense {
  from { width: 100%; }
  to { width: 0%; }
}
@keyframes smoke {
  0% { opacity: 0; transform: translateY(4px) scaleY(0.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(5px, -14px) scaleY(1.3); }
}
.ws-count {
  flex: none;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.ws-count b {
  color: var(--washi);
}
.ws-thumbs {
  list-style: none;
  margin: 16px 0 0;
  padding: 2px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ws-thumbs::-webkit-scrollbar {
  display: none;
}
.ws-thumbs button {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.2s ease;
}
.ws-thumbs img {
  display: block;
  width: 96px;
  height: 64px;
  object-fit: cover;
}
.ws-thumbs button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.ws-thumbs button[aria-current] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--noren);
}
.ws-thumbs button:focus-visible {
  outline: 3px solid var(--noren);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .ws-thumbs img { width: 72px; height: 50px; }
}

/* =====================================================================
   Final CTA — swaying lanterns
   ===================================================================== */
.final-lanterns {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(8px, 6vw, 96px);
  pointer-events: none;
}
.lantern {
  width: clamp(58px, 8vw, 112px);
  height: auto;
  transform-origin: 50% 0;
  animation: lantern-sway 4.6s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(255, 120, 60, 0.5));
}
.lantern.l2 {
  animation-duration: 5.3s;
  animation-delay: -2.2s;
}
.lantern text {
  font-family: var(--font-ja-display);
  font-weight: 800;
  font-size: 46px;
  fill: #1a1410;
}
@keyframes lantern-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.final .wrap {
  position: relative;
  z-index: 2;
}

/* =====================================================================
   Reduced motion / motion switch
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .steam,
  .lantern,
  .kakejiku,
  .sign-board,
  .noren-rule span,
  .emaki-pan,
  .ws-slide.is-active .ws-img img {
    animation: none !important;
  }
  .steam { display: none; }
}
html.motion-off .steam { display: none; }
html.motion-off .lantern,
html.motion-off .kakejiku,
html.motion-off .sign-board,
html.motion-off .noren-rule span,
html.motion-off .emaki-pan,
html.motion-off .ws-slide.is-active .ws-img img {
  animation: none !important;
}
@media (max-width: 899px) {
  html.motion-off .emaki-pan { transform: translateX(-65vw); }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .emaki-pan { transform: translateX(-65vw); }
}
