/* 七弐八製麺 — 2026 editorial upgrade; load LAST, after fusuma.css.
 * Real photos, regional fonts and the three-colour palette stay authoritative.
 * Fine rods and ample paper replace decoration; content is visible by default.
 * No hero exposure, logo-slot or curtain-clock overrides. JS owns [hidden]. */
:root {
  --upgrade-line: rgb(43 33 27 / 24%);
  --upgrade-soft: rgb(43 33 27 / 7%);
  --upgrade-bar-height: 70px;
  --upgrade-gap: clamp(28px, 4vw, 64px);
}
body { font-size: 16px; line-height: 1.85; }
main .section { --ink-line: var(--upgrade-line); }
main .story-section { --ink-line: var(--light-line); }
main .section :is(.heading-description, .dish-more, .dish-frame figcaption p,
.price-intro > p:not(.eyebrow), .day-copy > p:not(.eyebrow),
.day-night-scenes figcaption p, .guide-title > p:last-child, .guide-list p,
.space-copy > p:not(.eyebrow), .faq-heading > p:not(.eyebrow),
.faq-list details > p, .store-details > div) {
  font-size: 16px; line-height: 1.85; overflow-wrap: anywhere;
}
main .section :is(.photo-note, .hours-note, .price-paper > p) {
  font-size: 14px; line-height: 1.75;
}
main .section :is(.button, .text-link), .address-actions .button {
  min-height: 48px; font-size: 16px; line-height: 1.5; white-space: normal;
}
main .section .button-reserve {
  color: var(--cream); background: var(--accent); border-color: var(--accent);
}
.site-header .header-actions .menu-toggle { order: 99; flex-shrink: 0; }
main .section :is(h2, h3, p, dt, dd, figcaption),
:is(.menu-contact, .access-route, .order-dialog, .address-actions) {
  overflow-wrap: anywhere;
}
html[lang="ko"] main .section :is(h2, h3, p, dt, dd, figcaption),
html[lang="ko"] :is(.order-dialog, .address-actions) {
  word-break: keep-all; overflow-wrap: anywhere;
}
html[lang="en"] main .section :is(h2, h3) {
  overflow-wrap: anywhere; hyphens: auto;
}
/* Reset only reading surfaces: never transform the fixed brand or entry doors. */
main .section :is(.section-heading, .guide-title, .guide-list article,
h2, h3, p, figcaption), main .reservation-section :is(h2, p) {
  opacity: 1; transform: none !important; clip-path: none;
  animation: none !important; transition: none !important;
}
main .section::before {
  animation: none !important; transform: none !important; opacity: 1;
}
/* A large native picture rail, with the next photograph visibly peeking in. */
.menu-section .section-heading { padding-bottom: clamp(32px, 4vw, 60px); }
.menu-section .scroll-controls { gap: 16px; margin-bottom: 28px; }
.menu-section .scroll-controls > .emaki-progress {
  display: flex; align-items: center; flex: 0 1 260px; gap: 8px;
  min-height: 44px; font-family: var(--sans); font-size: 16px;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.emaki-progress [data-menu-current] { font-weight: 700; font-size: 24px; }
.emaki-progress .emaki-track {
  display: block; flex: 1; min-width: 36px; height: 2px;
  margin-left: 12px; overflow: hidden; background: var(--upgrade-line);
}
.emaki-track [data-menu-progress] {
  display: block; width: var(--menu-completion, 33.333%); height: 100%;
  background: var(--ink); transform-origin: left; transition: none;
}
.menu-section .scroll-controls > :last-child:not(.emaki-progress) {
  flex: 0 0 auto; gap: 12px; margin-left: auto;
}
.menu-section .round-button { width: 48px; height: 48px; min-height: 44px; }
.menu-section .round-button:disabled { opacity: .45; cursor: default; }
.menu-section .emaki {
  gap: clamp(24px, 3vw, 44px); padding-block: 4px 32px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.menu-section .dish-frame { flex: 0 0 min(70vw, 1040px); min-width: 0; }
.menu-section .dish-image { aspect-ratio: 1.55; background: var(--upgrade-soft); }
.menu-section .dish-frame figcaption {
  gap: 20px; flex-wrap: wrap; margin-top: 20px;
  padding-block: 22px 26px; border-block: 1px solid var(--upgrade-line);
}
.menu-section .dish-frame figcaption > div { flex: 1 1 200px; }
.menu-section .dish-frame h3 {
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.35; font-weight: 700;
}
.menu-section .dish-number { font-size: 28px; font-weight: 700; line-height: 1.5; }
.menu-section .dish-frame figcaption p { margin-top: 10px; font-weight: 500; }
.menu-section .dish-caption {
  display: block; flex-basis: 100%; margin: 0; white-space: normal;
  font-size: 14px; letter-spacing: .02em;
}
.menu-section .dish-more summary { min-height: 48px; padding-block: 12px; }
.menu-section .price-composition { margin-top: clamp(72px, 8vw, 120px); }
.menu-section .scroll-rod {
  height: 8px; border-radius: 0; box-shadow: none;
  background-color: var(--ink);
}
.menu-section .scroll-rod::before, .menu-section .scroll-rod::after {
  top: -1px; height: 10px; width: 5px;
}
.menu-section .price-paper { border-inline-width: 5px; }
.menu-section .price-paper dl > div { gap: 16px; flex-wrap: wrap; }
.menu-section .price-paper dl dt { flex: 1 1 140px; font-size: 16px; }
.menu-section .price-paper dl dd { margin-left: auto; }
/* Reading a price naturally leads to a call or the route: one quiet ruled band. */
.menu-contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  align-items: center; gap: 24px 5%; margin-top: 56px;
  border-block: 1px solid var(--upgrade-line); padding-block: 32px;
}
.menu-contact .eyebrow { margin-bottom: 10px; font-weight: 700; }
.menu-contact p:not(.eyebrow) { font-size: 16px; line-height: 1.8; }
.menu-contact small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.7; }
.menu-contact-actions, .address-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.menu-contact-actions .button { justify-content: center; padding: 14px 16px; }
/* One asymmetric spread, not three boxes. Desktop retains the full hand photo. */
.guide-section { display: block; }
.first-visit-layout {
  display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  align-items: start; gap: var(--upgrade-gap);
}
.first-visit-photo { margin: 0; min-width: 0; }
.first-visit-photo img {
  width: 100%; height: auto; aspect-ratio: 9 / 16;
  object-fit: cover; object-position: 50% 55%;
}
.first-visit-photo figcaption {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--upgrade-line);
  font-size: 14px; line-height: 1.8;
}
.first-visit-main { min-width: 0; padding-top: 8px; }
main .guide-section .first-visit-main .guide-title h2 {
  max-width: 100%; font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 700; line-height: 1.35; letter-spacing: -.035em;
}
.first-visit-main .guide-title > p:last-child { margin-top: 24px; }
.first-visit-main .guide-list { margin-top: 36px; }
.first-visit-main .guide-list article { gap: 22px; padding: 26px 0; }
.first-visit-main .guide-list article > span {
  flex: 0 0 32px; font-size: 28px; font-weight: 700; line-height: 1.4;
}
.first-visit-main .guide-list h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.5; }
.first-visit-main .guide-list p { margin-top: 12px; }
.first-visit-main .order-card-open {
  width: 100%; margin-top: 28px; text-align: left; padding: 16px 20px;
}
/* Station / Maps / actual noren: three steps on one continuous ruled sheet. */
.access-route {
  grid-column: 1 / -1; padding: 48px var(--gutter) 56px;
  border-top: 1px solid var(--upgrade-line);
}
.access-route .eyebrow { margin-bottom: 24px; font-weight: 700; }
.route-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0; margin: 0; padding: 0; list-style: none;
}
.route-steps li {
  display: flex; align-items: flex-start; gap: 18px; padding: 8px 28px;
}
.route-steps li:first-child { padding-left: 0; }
.route-steps li + li { border-left: 1px solid var(--upgrade-line); }
.route-steps li > span {
  flex: 0 0 30px; font-family: var(--serif); font-size: 26px;
  font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums;
}
.route-steps h3 { font-size: 23px; line-height: 1.45; }
.route-steps p { margin-top: 10px; font-size: 16px; line-height: 1.8; }
.route-steps a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.access-information .store-details > div {
  grid-template-columns: minmax(72px, .28fr) minmax(0, 1fr);
}
.access-information .store-details :is(dt, dd, small),
.section :is(.space-caption, .day-night-scenes figcaption, .first-visit-photo figcaption) {
  white-space: normal; overflow-wrap: anywhere;
}
.access-information .store-details dd small { display: inline-block; font-size: 14px; }
/* Native dialogs remain closed unless [open]; paper and fine wood-colour edges. */
.order-dialog, .address-dialog {
  width: min(620px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
  max-height: 90vh; max-height: 90dvh; margin: auto; padding: 24px;
  overflow-y: auto; overscroll-behavior: contain;
  color: var(--ink); background-color: var(--cream);
  border: 1px solid var(--upgrade-line); border-block-width: 4px;
  box-shadow: 0 16px 48px rgb(43 33 27 / 18%);
  font-size: 16px; line-height: 1.8;
}
.order-dialog::backdrop, .address-dialog::backdrop { background: rgb(43 33 27 / 50%); }
.order-dialog[open] { display: block; }
.order-dialog-top, .address-dialog-top {
  position: sticky; z-index: 2; top: -24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; padding-block: 12px;
  border-bottom: 1px solid var(--upgrade-line); background: var(--cream);
}
.order-dialog-top h2, .address-dialog-top h2 {
  flex: 1; font-size: 26px; line-height: 1.45; letter-spacing: -.025em;
}
.order-dialog .icon-button, .address-dialog .icon-button {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
}
.order-select-label { display: block; margin-bottom: 8px; font-weight: 700; }
.order-dialog #order-select {
  display: block; width: 100%; min-height: 48px; margin-block: 8px 24px;
  padding: 10px 36px 10px 12px; border: 1px solid var(--ink);
  border-radius: 0; color: var(--ink); background: var(--cream);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
.order-ticket {
  border-block: 1px solid var(--ink); padding: 28px 4px;
  user-select: text; -webkit-user-select: text;
}
.order-ticket > p:first-child, .order-allergy .fixedJP {
  font-family: "NaniwaSans", "Yu Gothic", sans-serif;
  word-break: normal; line-break: strict; font-size: 16px;
}
.order-ticket h3[data-order-jp] {
  margin-block: 18px 12px; font-family: "NaniwaSerif", "Yu Mincho", serif;
  font-size: clamp(30px, 7vw, 44px); font-weight: 700; line-height: 1.5;
  letter-spacing: -.025em; word-break: normal; line-break: strict;
}
.order-ticket [data-order-localized] { margin-bottom: 16px; font-size: 16px; }
.order-ticket [data-order-price] {
  display: block; font-family: var(--serif); font-size: 30px;
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.order-disclaimer { margin-block: 20px; font-size: 14px; line-height: 1.8; }
.order-allergy { border-top: 1px solid var(--upgrade-line); }
.order-allergy summary {
  min-height: 48px; padding-block: 12px; font-weight: 700; cursor: pointer;
}
.order-allergy p { margin-block: 12px; font-size: 16px; line-height: 1.8; }
.address-dialog .japanese-address {
  padding: 22px 16px; border-inline: 0;
  user-select: text; -webkit-user-select: text;
}
.address-actions { margin-top: 24px; }
.address-actions .copy-address {
  min-height: 48px; padding: 12px 16px; border: 1px solid var(--ink);
  font-size: 16px; line-height: 1.5; text-align: center;
}
.address-actions .button { justify-content: center; padding: 12px 16px; }
.address-dialog .copy-status { min-height: 1.8em; margin-top: 12px; font-size: 14px; }
:is(.order-dialog, .address-dialog) :is(button, select, a):focus-visible {
  outline: 2px solid var(--ink); outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  main .section .button-dark:hover, .address-actions .button-dark:hover {
    color: var(--cream); background: var(--ink); text-decoration: underline;
  }
  .copy-address:hover { background: var(--upgrade-soft); }
}
@media (max-width: 1000px) {
  .menu-contact { grid-template-columns: minmax(0, 1fr); }
  .menu-contact-actions { max-width: 520px; width: 100%; }
}
@media (max-width: 759px) {
  :root { --gutter: 20px; --upgrade-gap: 32px; }
  body { font-size: 16px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .menu-section .scroll-controls { margin-bottom: 20px; gap: 12px; }
  .menu-section .scroll-controls > .emaki-progress { flex-basis: 160px; }
  .emaki-progress .emaki-track { margin-left: 4px; }
  .menu-section .scroll-controls > :last-child:not(.emaki-progress) { gap: 8px; }
  .menu-section .round-button { width: 44px; height: 44px; }
  .menu-section .emaki { gap: 18px; padding-bottom: 24px; }
  .menu-section .dish-frame { flex-basis: calc(100vw - 64px); }
  .menu-section .dish-image { aspect-ratio: 1.24; }
  .menu-section .dish-frame figcaption { gap: 12px; margin-top: 16px; padding-block: 18px; }
  .menu-section .dish-frame figcaption > div { flex-basis: 180px; }
  .menu-section .dish-frame h3 { font-size: 28px; }
  .menu-section .dish-number { font-size: 24px; }
  .menu-section .dish-caption { font-size: 14px; }
  .menu-contact { margin-top: 40px; padding-block: 26px; }
  .menu-contact-actions .button { padding: 12px 10px; }
  .first-visit-layout { grid-template-columns: minmax(0, 1fr); }
  .first-visit-photo img { height: 240px; aspect-ratio: auto; }
  .first-visit-main { padding-top: 0; }
  main .guide-section .first-visit-main .guide-title h2 { font-size: clamp(34px, 9.5vw, 44px); }
  .first-visit-main .guide-list { margin-top: 28px; }
  .first-visit-main .guide-list article { gap: 16px; padding-block: 24px; }
  .first-visit-main .guide-list h3 { font-size: 23px; }
  .access-route { padding-block: 32px 40px; }
  .route-steps { grid-template-columns: minmax(0, 1fr); }
  .route-steps li, .route-steps li:first-child { padding: 22px 0; gap: 18px; }
  .route-steps li + li { border-left: 0; border-top: 1px solid var(--upgrade-line); }
  .access-information .store-details > div { grid-template-columns: minmax(64px, .26fr) minmax(0, 1fr); }
  .order-dialog, .address-dialog { padding: 20px 16px; }
  .order-dialog-top, .address-dialog-top { top: -20px; gap: 12px; }
  .order-dialog-top h2, .address-dialog-top h2 { font-size: 24px; }
  .address-actions { grid-template-columns: minmax(0, 1fr); }
  /* No display override: existing :not([hidden]) and JS still decide visibility. */
  .mobile-action-bar { min-height: calc(var(--upgrade-bar-height) + env(safe-area-inset-bottom)); }
  .mobile-action-bar > a, .mobile-action-bar > a:first-child {
    min-height: var(--upgrade-bar-height); gap: 8px; padding: 8px 12px;
    font-size: 15px; line-height: 1.4; color: var(--cream);
  }
  .mobile-action-bar > a:first-child { background: var(--accent); }
  .mobile-action-bar > a > span:not(.action-symbol) { min-width: 0; overflow-wrap: anywhere; }
  .mobile-action-bar .action-symbol { flex-shrink: 0; font-size: 22px; }
  .mobile-action-bar small { display: block; margin: 2px 0 0; font-size: 13px; }
  .motion-shortcut {
    bottom: calc(var(--upgrade-bar-height) + env(safe-area-inset-bottom) + 14px);
    right: 12px; min-height: 44px; font-size: 14px;
  }
}
/* Optional, explicit opt-in; no character splitting or new line-break rules.
 * Only the menu heading gets a single gentle mask pass after existing .viewed. */
@media (prefers-reduced-motion: no-preference) {
  html[data-editorial-motion="on"]:not([data-motion="off"]) main .menu-section.viewed h2 {
    animation: editorial-menu-mask 600ms ease-out 1 both !important;
  }
}
@keyframes editorial-menu-mask {
  from { clip-path: inset(0 0 8%); }
  to { clip-path: inset(-.1em -.1em); }
}
html[data-motion="off"] :is(.order-dialog, .address-dialog, .menu-section) *,
html[data-motion="off"] .motion-shortcut {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  main .menu-section h2, :is(.order-dialog, .address-dialog) *, .motion-shortcut {
    animation: none !important; transition: none !important;
  }
}
@media print {
  body { padding-bottom: 0; }
  .order-dialog, .address-dialog { display: none !important; }
  .menu-section .dish-frame { flex-basis: 100%; }
  .first-visit-layout { grid-template-columns: minmax(0, 1fr); }
  .first-visit-photo img { height: auto; max-height: 320px; object-fit: contain; }
}
/* Keep legacy craft / room / closing copy at the same reading size on phones. */
main .section :is(.craft-main figcaption p,
.story-scenes article > p:not(.eyebrow), .theater-heading > p, .space-history p),
main .reservation-section > p:not(.eyebrow) {
  font-size: 16px; line-height: 1.85; overflow-wrap: anywhere;
}
