/* マルコナ v4 明るい案（お手本：暖だん）。白木の明るい地と、暖だんの地色を明るくした灰色の段を交互に。差し色はお店の壁の赤（ワインの赤） */
:root { --bg: #F8F5EF; --deep: #DCD2C5; --ink: #2A2522; --muted: #6E655D; --accent: #8C1F28; --line: rgba(42,37,34,.14);
  --head: "Shippori Mincho B1", serif; --body: "Zen Kaku Gothic New", system-ui, sans-serif; --es: "Bodoni Moda", serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 2; letter-spacing: .04em; line-break: strict;
  -webkit-font-smoothing: antialiased; padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
p, dd, dt, figcaption, li { word-break: auto-phrase; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; word-break: auto-phrase; }
/* 11/3 見出しと短い導入文は行の長さをそろえる（最後の行が1〜2文字にならないように）。効かないブラウザでは今までどおり */
h1, h2, h3, .lead, .tagline-band { text-wrap: balance; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.logo img, .frame-mark img { mix-blend-mode: multiply; }
.logo img { width: 56px; height: auto; }
.side { display: none; }

.hero { position: relative; height: 72svh; min-height: 440px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
/* Phone: the frame is almost as tall as the photo, so the ceiling filled the top half and the owner was small (Ichiro 10/26). Zoom in on the owner and the jamón */
@media (max-width: 699px) { .hero img { transform-origin: 100% 83%; transform: scale(1.6); } }
.hero::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 58%; background: linear-gradient(to left, rgba(18,12,10,.62), rgba(18,12,10,.25) 60%, transparent); }
.tagline { position: absolute; z-index: 1; top: 30px; right: 22px; margin: 0; writing-mode: vertical-rl; color: #fff; font-family: var(--head); font-weight: 600; font-size: 25px; line-height: 1.9; letter-spacing: .2em; text-shadow: 0 1px 14px rgba(0,0,0,.4); }

.intro { padding: 34px 20px 10px; }
.kind { margin: 0; color: var(--accent); font-size: 13px; letter-spacing: .2em; }
.intro h1 { font-size: 34px; letter-spacing: .14em; line-height: 1.4; }
.intro h1 span { display: block; font-family: var(--es); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: .3em; color: var(--muted); }
.place { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.today { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.today-label { margin: 0; font-size: 13px; color: var(--muted); }
.today-hours { margin: 0; font-family: var(--head); font-weight: 600; font-size: 40px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.today-note { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* Sections: the title stands vertically at the right; a large faint Spanish word sits behind it (暖だん's big pale lettering) */
.sec { position: relative; overflow-x: clip; padding: 80px max(20px, calc((100% - 900px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; }
.sec.deep { background: var(--deep); --sec-bg: var(--deep); }
.sec-title { position: relative; grid-column: 2; grid-row: 1; align-self: start; writing-mode: vertical-rl; font-size: 26px; letter-spacing: .3em; line-height: 1.4; white-space: nowrap; }
/* On the greige sections the title is the wall's wine red: white on greige was only 1.4:1 (round 2) */
.sec.deep .sec-title { color: var(--accent); }
.sec-word { position: relative; z-index: 1; }
.sec-body { grid-column: 1; grid-row: 1; min-width: 0; }
/* English and Korean: the title is horizontal above the content */
html:not(.vert) .sec { grid-template-columns: minmax(0, 1fr); }
html:not(.vert) .sec-title { grid-column: 1; writing-mode: horizontal-tb; letter-spacing: .02em; font-size: 26px; margin-bottom: 18px; white-space: normal; }
html:not(.vert) .sec-body { grid-row: 2; }
html:not(.vert) .tagline { writing-mode: horizontal-tb; top: auto; bottom: 28px; right: 20px; left: 20px; font-size: 24px; line-height: 1.4; letter-spacing: .02em; }
html:not(.vert) .hero::after { inset: auto 0 0 0; width: auto; height: 60%; background: linear-gradient(to top, rgba(18,12,10,.6), transparent); }
html:not(.vert) .intro h1 { letter-spacing: .04em; }
/* The handwritten word has its own row above the section, at the right over the vertical title, tilted like a signature */
.sec > .scrib { grid-column: 1 / -1; grid-row: 1; justify-self: end; margin: -24px -4px 10px 0; font-size: 30px; color: var(--accent); opacity: .7; transform: rotate(-6deg); }
.sec > .sec-title, .sec > .sec-body { grid-row: 2; }
html:not(.vert) .sec > .scrib { justify-self: start; margin-left: -2px; }
html:not(.vert) .sec > .sec-title { grid-row: 2; }
html:not(.vert) .sec > .sec-body { grid-row: 3; }
html.motion .sec > .scrib.in { opacity: .7; }
/* Chinese and Korean headings use a serif made for their own characters first, so glyph shapes do not mix */
html:lang(ko) { --head: "Noto Serif KR", serif; --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
html:lang(zh-Hant) { --head: "Noto Serif TC", serif; --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html:lang(zh-Hans) { --head: "Noto Serif SC", serif; --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
/* Phone: the photo leaves room for the shop's name in the first screen; the first dish is shown tall */
@media (max-width: 999px) { .hero { height: 60svh; min-height: 380px; } .dishes .dish-main img { aspect-ratio: 4 / 5; } }
/* Desktop: the shop's name and today's hours sit on the photo, bottom left (on phones they follow right below) */
.hero-cap { display: none; }
@media (min-width: 1000px) {
  .hero-cap { display: block; position: absolute; z-index: 1; left: 48px; bottom: 44px; color: #fff; text-shadow: 0 0 16px rgba(0,0,0,.55); }
  .hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(18,12,10,.72), rgba(18,12,10,.35) 55%, transparent); z-index: 0; pointer-events: none; }
  .hero-cap p { margin: 0; }
  .hero-kind { font-size: 14px; letter-spacing: .24em; }
  .hero-name { font-family: var(--head); font-weight: 700; font-size: 44px; letter-spacing: .16em; line-height: 1.3; }
  .hero-today { font-family: var(--head); font-size: 16px; letter-spacing: .08em; }
}
.sub { margin: 0 0 14px; font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: .08em; line-height: 1.6; }
.lead { margin: 0 0 1.1em; max-width: 34em; line-height: 2.1; }
.note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.sec h3 { font-size: 19px; letter-spacing: .08em; margin: 22px 0 8px; }
.wide { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.collage { margin-top: 26px; }
.collage figure { margin: 0; }
.collage img { width: 100%; object-fit: cover; }
.collage .c1 img { aspect-ratio: 5 / 4; }
.collage .c2 { width: 56%; margin: -16% 0 0 auto; position: relative; }
.collage .c2 img { aspect-ratio: 4 / 5; border: 6px solid var(--deep); }

.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; }
.dish { margin: 0; }
.dish-main { grid-column: 1 / -1; }
.dish img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dish-main img { aspect-ratio: 4 / 3; }
.dish figcaption { display: grid; gap: 1px; padding-top: 10px; }
.dish-es { font-family: var(--es); font-style: italic; font-size: 13px; color: var(--accent); letter-spacing: .06em; }
.dish-name { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .06em; line-height: 1.5; }
.dish-main .dish-name { font-size: 21px; }
.dish-desc { font-size: 13px; line-height: 1.85; color: var(--muted); }
.dish-price { font-family: var(--head); font-weight: 600; font-size: 15px; }
.more-title { font-size: 16px !important; margin-top: 40px !important; }
.more { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.more img { width: 100%; aspect-ratio: 1; object-fit: cover; }
/* .more-name only (not every span): the name's phrase chunks (.ph) inside must stay inline-block (11/3: パン・コン・トマテ stacked on 3 lines).
   A single word longer than the narrow card (トルティーリャ etc.) may break inside instead of sticking out */
.more-name { display: block; font-size: 11.5px; line-height: 1.6; margin-top: 4px; }
.more-name .ph { max-width: 100%; overflow-wrap: anywhere; word-break: keep-all; }

.sign { margin: 0 0 18px; }
.sign img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sign figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
/* 11/3 座席：席の種類ごとに写真と一言（スマホは縦に1列、広い画面は2列） */
.seat-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .seat-grid { grid-template-columns: 1fr 1fr; } }
.seat { margin: 0; }
.seat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.seat figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.seat figcaption b { display: block; font-size: 15px; color: var(--ink, inherit); margin-bottom: 2px; }
/* 11/3（参考ページの案、スイッチ features.photoBleed。m4.js が段に bleed-r / bleed-l / bleed-top を付ける）:
   スマホ幅では、各段の大きい写真1枚だけを右・左交互に画面の端までのばす。反対側の余白は今のまま。広い画面は今のまま。
   右へのばす段は縦書きの見出しの側なので、写真が段の最初にある段（bleed-top）だけ、見出しを写真の上に横書きで回す */
@media (max-width: 699px) {
  .sec.bleed :is(.collage .c1, .wide, .sign img, .seat-grid > .seat:first-child img) { display: block; max-width: none; }
  .sec.bleed-l :is(.collage .c1, .wide, .sign img, .seat-grid > .seat:first-child img) { margin-left: -20px; width: calc(100% + 20px); }
  /* The section is the full screen width on a phone, so "to the right edge" is the screen width minus the left padding */
  .sec.bleed-r :is(.collage .c1, .wide, .sign img, .seat-grid > .seat:first-child img) { width: calc(100vw - 20px); }
  html.vert .sec.bleed-r.bleed-top { grid-template-columns: minmax(0, 1fr); }
  html.vert .sec.bleed-r.bleed-top > .sec-title { grid-column: 1; grid-row: 2; writing-mode: horizontal-tb; letter-spacing: .06em; margin-bottom: 18px; white-space: normal; }
  html.vert .sec.bleed-r.bleed-top > .sec-body { grid-row: 3; }
}
.qa { margin: 0; }
.qa div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa dt { font-family: var(--head); font-weight: 700; font-size: 16px; }
.qa dd { margin: 2px 0 0; color: var(--muted); }

.insta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.textlink { display: inline-block; margin-top: 14px; font-family: var(--head); font-weight: 700; letter-spacing: .06em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 2px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .12em; }
.btn-main { background: var(--accent); color: #fff; }
.btn-sub { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.actions { display: grid; gap: 6px; max-width: 420px; margin-bottom: 22px; }
.facts { margin: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.9; }
.facts div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts small { color: var(--muted); }

footer { padding: 30px 20px 40px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
footer .draft { font-size: 11px; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.bar .btn { flex: 1; min-height: 48px; padding: 0 10px; white-space: nowrap; }
.bar .btn-main { flex: 1.6; }

/* The "shown" rule lists the same elements as the "hidden" rule, so it always wins */
html.motion .sec-word { display: inline-block; opacity: 0; filter: blur(6px); transition: opacity 1.6s ease, filter 1.6s ease; }
html.motion .sec-title.in .sec-word { opacity: 1; filter: none; }
html.motion :is(.collage figure, .dish, .more li, .wide, .sign, .insta a) { opacity: 0; transform: translateY(30px); transition: opacity 1.3s ease, transform 1.4s cubic-bezier(.16,1,.3,1); }
html.motion .more li:nth-child(3n+2), html.motion .insta a:nth-child(2) { transition-delay: .12s; }
html.motion .more li:nth-child(3n), html.motion .insta a:nth-child(3) { transition-delay: .24s; }
html.motion .collage .c2 { transition-delay: .2s; }
html.motion :is(.collage figure, .dish, .more li, .wide, .sign, .insta a).in { opacity: 1; transform: none; }
.side-book { display: none; }
.japan .dish-name { font-size: 17px; }

@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  html .frame-top { left: 180px; }
  .side-map { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
  .frame-top .frame-mark { visibility: hidden; }
  .side { display: flex; flex-direction: column; align-items: center; gap: 36px; position: fixed; inset: 0 auto 0 0; width: 180px; padding: 36px 0; z-index: 20; }
  .side .logo img { width: 104px; }
  .side-nav { display: flex; flex-direction: row-reverse; gap: 10px; }
  .side-nav a { writing-mode: vertical-rl; text-decoration: none; font-family: var(--head); font-size: 13.5px; letter-spacing: .26em; }
  .side-nav a:hover { color: var(--accent); }
  /* English and Korean: the contents read horizontally, one item per line */
  html:not(.vert) .side-nav { flex-direction: column; align-items: center; gap: 14px; }
  html:not(.vert) .side-nav a { writing-mode: horizontal-tb; letter-spacing: .02em; text-align: center; }
  main, footer { margin-left: 180px; }
  .hero { height: 88vh; }
  .tagline { font-size: 34px; top: 60px; right: 70px; }
  .intro { padding: 50px max(20px, calc((100% - 900px) / 2)) 10px; }
  .sec-title { font-size: 32px; }
  /* On desktop the booking button lives under the vertical contents, so nothing covers the titles on the right */
  .side-book { display: inline-flex; min-height: 44px; padding: 0 18px; font-size: 13px; letter-spacing: .1em; margin-top: auto; margin-bottom: -18px; border: 0; cursor: pointer; }
  .japan img { aspect-ratio: 4 / 3; }
  html .bar { display: none; }
  .collage { display: grid; grid-template-columns: repeat(12, 1fr); }
  .collage .c1 { grid-column: 1 / 10; grid-row: 1; }
  .collage .c2 { grid-column: 8 / 13; grid-row: 1; width: auto; margin: 36% 0 0; }
  .dishes { grid-template-columns: 2fr 1fr; }
  .dish-main { grid-column: 1; grid-row: 1 / 3; }
  .more { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 11/2 Ichiro「あかるい画面とトップだけ入れ替える」: the calm page's top (room photo + logo) on the bright page, kept bright.
   The logo is white (the dark logo inverted) on a soft shade, so it reads over the bottles and ham */
.hero.hero-calmtop { height: 78svh; min-height: 480px; background: #15100d; }
.hero-calmtop > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: none; filter: brightness(.95); }
.hero-calmtop::after, html:not(.vert) .hero-calmtop::after { inset: 0; width: auto; height: auto; background: linear-gradient(to bottom, rgba(0,0,0,.18), transparent 28%, transparent 55%, rgba(18,12,10,.5)); }
.hero-calmtop::before { display: none; }
.hero-calmtop .hero-in { position: absolute; z-index: 1; left: 0; right: 0; top: 66%; transform: translateY(-50%); text-align: center; padding: 0 16px; }
.hero-calmtop .hero-in::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(120vw, 560px); height: 160%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(10,8,7,.6) 0, rgba(10,8,7,.38) 40%, transparent 70%); pointer-events: none; }
.hero-calmtop .hero-logo { margin: 0; }
.hero-calmtop .hero-logo img { width: min(70vw, 280px); height: auto; object-fit: contain; transform: none; margin: 0 auto; display: block;
  filter: invert(1) hue-rotate(180deg) brightness(1.15); mix-blend-mode: screen; }
.hero-calmtop .hero-ja { margin: 12px 0 0; color: #fff; font-size: 13px; letter-spacing: .3em; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.tagline-band { margin: 0; padding: 30px 20px 6px; text-align: center; font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.6; letter-spacing: .08em; }
@media (min-width: 1000px) { .hero.hero-calmtop { height: 88vh; } .hero-calmtop .hero-logo img { width: 400px; } .tagline-band { font-size: 28px; padding-top: 44px; } }

/* 11/3 新しい並び（m4.js が ?new のときだけ <html class="v2"> を付ける）。?new が無いページには一切効かない */
html.v2 .sec { padding-block: clamp(56px, 14vw, 80px) clamp(40px, 10vw, 56px); }
/* Headings: lighter mincho, smaller, the same at every width (vertical stays vertical) */
html.v2 .sec-title, html.v2:not(.vert) .sec-title, html.v2.vert .sec.bleed-r.bleed-top > .sec-title {font-family: var(--head); font-size: 22px; font-weight: 500; letter-spacing: .1em; }
/* Motion: only the big photos fade in, opacity only (a transform here would also break the fixed window photo's look) */
html.v2.motion-photo :is(.collage figure, .wide) { opacity: 0; transition: opacity 1.4s ease; }
html.v2.motion-photo :is(.collage figure, .wide).in { opacity: 1; }
/* The window: a full-screen photo that stays still while the page scrolls over it. The inner box clips (clip: rect) the
   fixed photo to the section, so it shows only here. No ancestor may have transform / filter / will-change (they turn fixed into absolute) */
html.v2 .window { position: relative; height: 100svh; background: #15100d; }
html.v2 .window > div { position: absolute; inset: 0; clip: rect(0, auto, auto, 0); }
html.v2 .window img { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; max-width: none; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { html.v2 .window img { position: absolute; height: 100%; } }

/* 11/3夜 ?new: 料理の段の終わりから、後ろに下げたメニューへの近道 */
html.v2 .to-menu { margin: 20px 0 0; text-align: right; }
html.v2 .to-menu a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 10px 0; display: inline-block; }
