/* ============================================================
   dotccoffee 磯上店 - three-month-old specialty coffee shop.
   Milk-and-matcha theme: warm milk white, roast-black ink, ONE
   matcha accent. Distinct from 02 (bone + forest, mincho), 14
   (linen + citron, Klee One): different ground temperature, a
   yellower green, and a handwritten display face.
   Display: Yomogi (ships 400 ONLY, verified via the Fonts API
   2026-09-13; all display rules pin 400) - a handwritten face
   matching an indie cafe barely three months old. Body: Zen Maru
   Gothic, reused (03 body / 04 display) because the JA multi-
   weight catalogue is nearly exhausted; palettes share nothing.
   Radius 14px. Wrap 1000px. VARIANCE 5 / MOTION 3 / DENSITY 2.
   Contrast, computed before writing: text/bg 14.71, muted/bg 6.47,
   muted/bg-2 5.86, accent-as-text 5.82, ink-on-accent 5.64,
   warn/bg 7.68. All AA.
   ============================================================ 
   de-dup 2026-09-13: same-role font collision fix (verification pass, batch 31-50): now Tsukimi Rounded (last unused multi-weight JP family; frees the 03-crescent body collision). */
:root {
  --bg: #fbfaf6; --bg-2: #f1efe6; --bg-3: #e8e5d8;
  --line: rgba(38, 37, 31, 0.15);
  --text: #26251f; --muted: #5d5c4f;
  --accent: #4d6b2a; --accent-hover: #5c7f36; --accent-ink: #f4f8ec;
  --warn: #8c3418;
  --nav-bg: rgba(251, 250, 246, 0.9);
  --font-display: "Yomogi", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-body: "Tsukimi Rounded", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-h: 60px; --r: 14px; --wrap: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 1rem; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.6rem); }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; background: var(--nav-bg);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { width: 100%; display: flex; align-items: center; gap: 0.9rem; }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem;
  letter-spacing: 0.06em; white-space: nowrap; }
.lang { display: flex; gap: 0.2rem; margin-left: auto; font-size: 0.78rem; font-weight: 700;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.lang::-webkit-scrollbar { display: none; }
.lang a { padding: 0.3rem 0.5rem; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--muted); border: 1px solid transparent; white-space: nowrap; flex: 0 0 auto; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { color: var(--text); border-color: var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.7rem 1.4rem; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 700; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  border-radius: var(--r); transition: transform 0.15s, background 0.25s, border-color 0.25s; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.82rem; }

.hero { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 2.2rem) 0 2.4rem; }
.eyebrow { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent-text, var(--accent));
  margin-bottom: 1.1rem; }
.hero h1 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 6.4vw, 3.1rem); line-height: 1.32; letter-spacing: 0.02em;
  margin-bottom: 1.2rem; }
.hero-sub { color: var(--muted); max-width: 36em; margin-bottom: 1.9rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-media { margin-top: 2rem; }

section { padding: clamp(3.6rem, 8vw, 6rem) 0; }
.sec-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head h2 { font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.35; }
.sec-head p { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }
.note { margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }

.menu-list { list-style: none; }
.menu-row { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.9rem 0;
  border-bottom: 1px solid var(--line); }
.menu-row .name { font-weight: 700; }
.menu-row .kana { color: var(--muted); font-size: 0.8rem; }
.menu-row .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu-row .price { font-weight: 700; white-space: nowrap; }
.price-hold { color: var(--muted); font-weight: 700; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.hours dt { font-weight: 700; margin-top: 1.1rem; color: var(--accent-text, var(--accent));
  font-size: 0.82rem; letter-spacing: 0.08em; }
.hours dt:first-child { margin-top: 0; }
.hours dd { font-size: 1.08rem; font-weight: 500; }
.info-list { list-style: none; }
.info-list li { padding: 0.95rem 0; display: flex; flex-direction: column; gap: 0.1rem;
  border-bottom: 1px solid var(--line); }
.info-list .label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.info-list a.link { color: var(--accent-text, var(--accent)); font-weight: 700; min-height: 44px;
  display: inline-flex; align-items: center; }
.info-list a.link:hover { text-decoration: underline; }
.steps { list-style: none; counter-reset: st; }
.steps li { counter-increment: st; display: flex; gap: 0.9rem; padding: 0.8rem 0;
  border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: counter(st); font-family: var(--font-display); font-size: 1.15rem;
  color: var(--accent-text, var(--accent)); min-width: 1.4rem; }

.reserve { background: var(--bg-2); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.form { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.84rem; font-weight: 700; }
.field input, .field select { background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; padding: 0.8rem 0.95rem;
  border-radius: var(--r); appearance: none; -webkit-appearance: none; min-height: 48px; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field input::placeholder { color: var(--muted); }
.form-error { display: none; color: var(--warn); font-size: 0.9rem; font-weight: 500; }
.form-error.show { display: block; }
.form-ok { display: none; color: var(--text); background: var(--bg-3); border: 1px solid var(--line);
  padding: 0.95rem 1.1rem; font-size: 0.93rem; border-radius: var(--r); }
.form-ok.show { display: block; }
.form .btn { justify-self: start; }

footer { padding: 2.6rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted);
  font-size: 0.86rem; }
.foot-brand { font-family: var(--font-display); color: var(--text); margin-bottom: 0.3rem; }
.demo-note { margin-top: 1.3rem; font-size: 0.77rem; }

.rv { opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

@media (min-width: 720px) {
  .info-grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .form { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .form-error, .form-ok { grid-column: 1 / -1; }
  .form .btn { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); }
}

/* Chrome: inline nav; reserve centred column; footer centred. */
.reserve .wrap { max-width: 620px; }
footer .wrap { text-align: center; }
.hero h1 { line-height: 1.45; }

/* LANGUAGE LINKS WERE SCROLLED OUT OF VIEW ON PHONES. The .lang rail is
   scrollable, so nothing "overflowed", but EN/ES were simply invisible at
   390px: a visitor who cannot read Japanese could not see the switcher at
   all, which defeats its purpose. Verified by screenshot, not by metrics:
   every scroll/overflow check passed while the links were hidden. Compact
   header below 430px makes all three fit. Scoped max-width block at the end
   of the file (the earlier cascade trap was an UNSCOPED rule, not this). */
@media (max-width: 430px) {
  .nav .wrap { gap: 0.45rem; }
  .nav .btn { padding: 0.45rem 0.65rem; font-size: 0.76rem; min-width: 0; }
  .lang { gap: 0.05rem; }
  .lang a { padding: 0.3rem 0.3rem; font-size: 0.7rem; }
  .brand { font-size: 0.98rem; letter-spacing: 0.02em; }
}
