/*
 * Sample site: ほとり珈琲 Hotori Coffee (a fictional café, made by Tobico).
 * Warm editorial: cream and espresso, photo-led, generous spacing, readable type.
 */
:root {
  --cream: #F6EFE4;
  --paper: #FCF8F2;
  --espresso: #2B1E17;   /* 15.4:1 on cream */
  --roast: #5C4537;      /* 8.2:1 on cream */
  --caramel: #8F4F24;    /* 6.0:1 on cream; accent text */
  --line: #E2D3BF;
  --on-dark: #F6EFE4;
  --on-dark-muted: #DCCBB7; /* 10:1 on espresso */
  --display: "Fraunces", "Shippori Mincho", Georgia, serif;
  --body: "DM Sans", "Zen Kaku Gothic New", system-ui, sans-serif;
  --gutter: clamp(1.1rem, 0.5rem + 3vw, 3rem);

  --s-bg: var(--cream); --s-ink: var(--espresso); --s-muted: var(--roast); --s-line: var(--line);
  --s-accent: var(--caramel); --s-focus: #8F4F24; --s-flag-bg: #1E1A17; --s-flag-ink: #F6EFE4;
}
html[lang="ja"] { --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }

body { background: var(--cream); color: var(--espresso); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
html[lang="ja"] body { line-height: 1.9; letter-spacing: 0.03em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
html[lang="ja"] :is(h1, h2, h3) { line-height: 1.5; letter-spacing: 0.04em; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; font-feature-settings: "palt"; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
html[lang="ja"] h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
a { color: var(--espresso); text-underline-offset: 0.2em; }
p { text-wrap: pretty; }
.c-wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.c-label { font-family: "Fraunces", "Shippori Mincho", serif; font-style: italic; font-size: 1.05rem; color: var(--caramel); margin-bottom: 0.6rem; }
.c-label:lang(ja) { font-family: "Shippori Mincho", serif; font-style: normal; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; }
.c-lead { margin-top: 1rem; max-width: 36rem; color: var(--roast); font-size: 1.1rem; }
.c-fine { margin-top: 1.5rem; max-width: 46rem; font-size: 0.9rem; color: var(--roast); }

/* Header */
.c-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.c-header-row { display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; flex-wrap: wrap; }
.c-logo { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; text-decoration: none; min-height: 2.75rem; }
.c-logo-mark { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--cream) 0 34%, var(--espresso) 36% 100%); flex: none; }
.c-logo-text { display: grid; line-height: 1.1; }
.c-logo-text b { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.c-logo-text small { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--roast); }
.c-menu-btn { display: none; }
.c-nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 1.4rem; }
.c-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.c-nav a:hover { text-decoration: underline; }
.s-lang { border-color: var(--line); }

@media (max-width: 59.99rem) {
  .c-nav { order: 10; flex: 1 0 100%; }
  html.js .c-menu-btn {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--espresso); border-radius: 999px;
    background: transparent; color: var(--espresso); font: 600 0.9rem/1 var(--body); cursor: pointer; order: 3;
  }
  html.js .c-menu-btn[aria-expanded="true"] { background: var(--espresso); color: var(--cream); }
  .c-lang { order: 2; }
  html.js .c-nav:not(.is-open) { display: none; }
  .c-nav ul { flex-direction: column; gap: 0; padding-bottom: 0.75rem; }
  .c-nav li + li { border-top: 1px solid var(--line); }
  .c-nav a { width: 100%; min-height: 3rem; font-size: 1.05rem; }
  html:not(.js) .c-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; }
  html:not(.js) .c-nav li + li { border: 0; }
}
@media (max-width: 23rem) {
  .c-logo-text small { display: none; }
  .c-header-row { gap: 0.5rem; }
  .s-lang a { min-width: 2.5rem; padding: 0 0.5rem; }
  html.js .c-menu-btn { padding: 0 0.75rem; }
}

/* Hero */
.c-hero { position: relative; padding: 0; min-height: clamp(32rem, 82vh, 46rem); display: grid; align-items: end; color: var(--on-dark); isolation: isolate; }
.c-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 85%; z-index: -2; }
.c-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(28 18 12 / 0.2) 0%, rgb(28 18 12 / 0.55) 45%, rgb(28 18 12 / 0.88) 100%); }
.c-hero-copy { padding-block: 3rem clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.c-kicker { font-size: 0.95rem; letter-spacing: 0.06em; color: var(--on-dark-muted); }
.c-hero h1 { margin-top: 0.6rem; font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem); line-height: 1.02; font-weight: 500; max-width: 12ch; }
html[lang="ja"] .c-hero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.4rem); line-height: 1.35; max-width: none; font-weight: 600; }
.c-hero-lead { margin-top: 1rem; max-width: 32rem; font-size: 1.15rem; color: var(--on-dark); }
.c-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--cream); }
.c-btn-solid { background: var(--cream); color: var(--espresso); }
.c-btn-solid:hover { background: #fff; }
.c-btn-line { color: var(--cream); }
.c-btn-line:hover { background: rgb(246 239 228 / 0.14); }
.c-hero :focus-visible { outline-color: var(--cream); }

/* News bar under the hero: the path to current announcements */
.c-newsbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.35rem 1rem; padding: 0.9rem var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); text-decoration: none; }
.c-newsbar-label { padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--caramel); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.c-newsbar-text { font-weight: 500; }
.c-newsbar-text time { color: var(--roast); margin-right: 0.5rem; font-variant-numeric: tabular-nums; }
.c-newsbar-more { grid-column: 2; font-size: 0.9rem; font-weight: 600; color: var(--caramel); }
.c-newsbar:hover .c-newsbar-text { text-decoration: underline; }
@media (min-width: 48rem) {
  .c-newsbar { grid-template-columns: auto minmax(0, 1fr) auto; max-width: none; }
  .c-newsbar-more { grid-column: auto; }
}

/* Intro */
.c-intro-grid { display: grid; gap: 1.5rem; }
.c-intro-grid div p + p { margin-top: 1rem; }
.c-intro-grid div { font-size: 1.15rem; max-width: 38rem; }
@media (min-width: 52rem) { .c-intro-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; } }

/* Menu */
.c-menu { background: var(--paper); border-block: 1px solid var(--line); }
.c-menu-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.25rem; }
.c-menu-photos figure:first-child { grid-column: 1 / -1; }
.c-menu-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.c-menu-photos figure:first-child img { aspect-ratio: 16 / 10; }
.c-menu-photos figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--roast); }
@media (min-width: 48rem) {
  .c-menu-photos { grid-template-columns: 1.3fr 1fr 1fr; gap: 1.25rem; }
  .c-menu-photos figure:first-child { grid-column: auto; }
  .c-menu-photos img, .c-menu-photos figure:first-child img { aspect-ratio: 4 / 5; }
}
.c-menu-grid { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 52rem) { .c-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; } }
.c-menu-grid h3 { font-size: 1.4rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--espresso); }
.c-items { list-style: none; padding: 0; }
.c-items li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.mi-row { display: flex; align-items: baseline; gap: 0.6rem; }
.mi-row h4 { font-size: 1.1rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.55rem; }
.mi-sub { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 500; font-size: 0.82rem; color: var(--roast); letter-spacing: 0.04em; flex-basis: 100%; order: 3; }
.mi-tag { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid var(--caramel); color: var(--caramel); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.mi-dots { flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--roast); opacity: 0.5; transform: translateY(-0.3em); }
.mi-price { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-items p { margin-top: 0.3rem; color: var(--roast); font-size: 0.95rem; max-width: 30rem; }

/* First visit: the one dark band */
.c-first { background: var(--espresso); color: var(--on-dark); }
.c-first .c-label { color: #E9B489; }
.c-first .c-lead { color: var(--on-dark-muted); }
.c-first-grid { display: grid; gap: 2.5rem; }
.c-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 1rem; }
.c-steps li { counter-increment: st; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border: 1px solid rgb(246 239 228 / 0.2); border-radius: 10px; display: grid; gap: 0.3rem; }
.c-steps li::before { content: counter(st); position: absolute; left: 1.15rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--espresso); font-family: "Fraunces", serif; font-weight: 700; }
.c-steps b { font-size: 1.1rem; }
.c-steps span { color: var(--on-dark-muted); }
.c-facts { display: grid; gap: 0; border-top: 1px solid rgb(246 239 228 / 0.2); }
.c-facts div { display: grid; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid rgb(246 239 228 / 0.2); }
.c-facts dt { font-weight: 700; color: #E9B489; font-size: 0.9rem; }
.c-facts dd { color: var(--on-dark); }
.c-first :focus-visible { outline-color: var(--cream); }
@media (min-width: 52rem) {
  .c-first-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 4rem; }
  .c-steps { grid-column: 2; grid-row: 1 / span 2; }
  .c-facts { grid-column: 1; grid-row: 2; align-self: end; }
  .c-facts div { grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
}

/* The space */
.c-space-grid { display: grid; gap: 2.5rem; }
.c-space-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.c-seats { list-style: none; padding: 0; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.c-seats li { display: grid; gap: 0.15rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.c-seats span { color: var(--roast); }
.c-space-detail { margin-top: 2rem; width: min(100%, 16rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (min-width: 64rem) {
  .c-space-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 5rem; align-items: start; }
  .c-space-photo { position: sticky; top: 6rem; }
  .c-space-photo img { aspect-ratio: 4 / 5; }
}

/* News */
.c-news { background: var(--paper); border-block: 1px solid var(--line); }
.c-news-grid { display: grid; gap: 2rem; }
.c-news-list { list-style: none; padding: 0; border-top: 2px solid var(--espresso); }
.c-news-list li { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.c-news-list time { font-family: "Fraunces", Georgia, serif; font-size: 0.95rem; color: var(--caramel); font-variant-numeric: tabular-nums; font-weight: 600; }
.c-news-list h3 { margin-top: 0.25rem; font-size: 1.25rem; }
.c-news-list p { margin-top: 0.35rem; color: var(--roast); }
@media (min-width: 52rem) { .c-news-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; } }

/* Hours and access */
.c-visit-grid { display: grid; gap: 2.5rem; }
.c-hours { margin-top: 1.75rem; border-top: 2px solid var(--espresso); }
.c-hours div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.c-hours dt { font-weight: 700; }
.c-hours dd small { display: block; color: var(--roast); font-size: 0.85rem; }
.c-way-title { margin-top: 2.25rem; font-size: 1.3rem; }
.c-way { margin-top: 0.75rem; padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.c-way li::marker { color: var(--caramel); font-weight: 700; }
.c-map svg { width: 100%; height: auto; display: block; }
.c-map figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--roast); }
.m-bg { fill: var(--paper); stroke: var(--line); }
.m-river { fill: none; stroke: #BFD3D6; stroke-width: 26; stroke-linecap: round; }
.m-rail { stroke: var(--roast); stroke-width: 6; }
.m-rail-dash { stroke: var(--paper); stroke-width: 3; stroke-dasharray: 10 10; }
.m-station { fill: var(--espresso); }
.m-route { fill: none; stroke: var(--caramel); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; }
.m-bridge { fill: var(--cream); stroke: var(--roast); stroke-width: 2; }
.m-pin { fill: var(--caramel); }
.m-pin-dot { fill: var(--cream); }
.m-text { font: 700 15px "DM Sans", "Zen Kaku Gothic New", sans-serif; fill: var(--espresso); }
.m-small { font: 500 12px "DM Sans", "Zen Kaku Gothic New", sans-serif; fill: var(--roast); }
.m-italic { font-style: italic; }
@media (min-width: 52rem) { .c-visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } .c-map { position: sticky; top: 6rem; } }

/* Footer */
.c-footer { background: var(--espresso); color: var(--on-dark); padding-block: 3rem 1.5rem; }
.c-footer-grid { display: grid; gap: 1.5rem; }
.c-footer-name { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.c-footer p { color: var(--on-dark-muted); font-size: 0.9rem; }
.c-footer .c-footer-name { color: var(--on-dark); font-size: 1.6rem; }
.c-footer-meta { display: grid; gap: 0.5rem; justify-items: start; }
.c-footer a { color: var(--on-dark); font-weight: 600; }
.c-footer :focus-visible { outline-color: var(--cream); }
.c-footer .s-lang { margin-top: 0.75rem; border-color: rgb(246 239 228 / 0.3); }
.c-footer .s-lang a { color: var(--on-dark); }
.c-footer .s-lang a[aria-current] { background: var(--cream); color: var(--espresso); }
@media (min-width: 52rem) { .c-footer-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }

.sample-note { color: var(--roast); }
.c-first .sample-note { color: var(--on-dark-muted); }

/* Phones: keep logo, language switch and menu button on one row */
@media (max-width: 30rem) {
  .c-header-row { gap: 0.5rem; }
  .c-logo-mark { width: 1.6rem; height: 1.6rem; }
  .c-logo-text b { font-size: 1.05rem; }
  .s-lang a { min-width: 2.4rem; padding: 0 0.5rem; }
  html.js .c-menu-btn { padding: 0 0.8rem; }
}
@media (max-width: 22.5rem) {
  .c-header-row { gap: 0.4rem; }
  .c-logo { gap: 0.4rem; }
  .c-logo-mark { width: 1.4rem; height: 1.4rem; }
  .c-logo-text b { font-size: 0.95rem; letter-spacing: 0; }
  .s-lang a { min-width: 2.25rem; padding: 0 0.4rem; font-size: 0.8rem; }
  html.js .c-menu-btn { padding: 0 0.6rem; font-size: 0.8rem; }
}
@media (max-width: 22.5rem) {
  .c-logo-mark { display: none; }
  .c-wrap { padding-inline: 0.9rem; }
}
html[lang="ja"] .m-italic { font-style: normal; }
.c-fine { max-width: 38rem; }
