/* 01. Theme — one muted terracotta accent, warm neutral surfaces. */
:root {
  --paper: #f8f5ef;
  --surface: #eee8df;
  --ink: #302923;
  --muted: #756a60;
  --accent: #98624d;
  --line: #d9cfc3;
  --serif: Georgia, 'Times New Roman', 'Yu Mincho', serif;
  --sans: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 2; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--paper); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(2.8rem, 4.5vw, 4.5rem); line-height: 1.14; }
h3 { font-size: 1.25rem; line-height: 1.7; }
p + p { margin-top: 1.25rem; }
.section-wrap { max-width: 1280px; margin: auto; padding: 120px 64px; }
.eyebrow { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 500; line-height: 1.8; letter-spacing: .2em; color: var(--accent); margin-bottom: 26px; }
.heading-ja { display: block; font-family: var(--sans); font-size: .95rem; line-height: 1.8; letter-spacing: .12em; margin-top: 22px; }
.section-subtitle { font-size: 1rem; letter-spacing: .08em; margin-top: 30px; }
.note, .muted { color: var(--muted); font-size: .875rem; }
.note { margin-top: 28px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 20; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 12px; }
/* 02. Shared header and links */
.site-header { max-width: 1440px; margin: auto; padding: 30px 5%; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.logo, .footer-brand { display: inline-block; font-family: var(--serif); font-size: 2.9rem; line-height: 1; letter-spacing: -.06em; }
.logo span, .footer-brand span { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .28em; line-height: 1.8; margin-top: 12px; }
.site-header nav { display: flex; gap: 40px; }
.site-header nav a { font-size: .75rem; letter-spacing: .13em; padding: 12px 0; position: relative; }
.site-header nav a::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); }
.site-header nav a[aria-current] { color: var(--accent); }
.nav-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 55px; min-height: 54px; padding: 13px 25px; border: 1px solid var(--accent); color: var(--accent); font-size: .875rem; transition: color .2s, background .2s; }
.button:hover { color: var(--paper); background: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--accent); padding: 10px 0; font-size: .875rem; }
.text-link:hover { color: var(--accent); }
/* 03. Home — oversized editorial typography and generous breathing room */
.hero { margin: 0 auto; max-width: 1440px; padding: 0 5%; }
.hero-top, .hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 22px 0; font-size: .75rem; letter-spacing: .13em; color: var(--muted); }
.hero-copy { padding: 80px 0 72px; }
.hero h1 { font-size: clamp(4.5rem, 9.8vw, 9.5rem); line-height: 1.03; color: var(--ink); }
.hero h1::first-line { color: var(--accent); }
.hero-japanese { margin-top: 35px; font-size: 1.2rem; letter-spacing: .18em; }
.hero-detail { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 48px; }
.hero-detail p { color: var(--muted); line-height: 2.1; }
.hero-detail .button { flex-shrink: 0; }
.hero-bottom { border-bottom: 1px solid var(--line); }
.hero-bottom span:last-child { color: var(--ink); font-size: .875rem; letter-spacing: .05em; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.intro > div:last-child { padding-top: 48px; }
.intro > div:last-child p { color: var(--muted); line-height: 2.3; }
.intro .text-link { margin-top: 30px; }
.featured { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 60px; }
.favorites { display: grid; grid-template-columns: repeat(3, 1fr); }
.favorites article { padding: 12px 35px 10px; border-left: 1px solid var(--line); }
.favorites article:first-child { padding-left: 0; border: 0; }
.favorites article:last-child { padding-right: 0; }
.item-number { display: block; font-size: .75rem; letter-spacing: .15em; color: var(--accent); margin-bottom: 30px; }
.favorites h3 { margin-bottom: 18px; }
.favorites p { color: var(--muted); line-height: 2.1; }
.price { display: block; font-family: var(--serif); font-size: 1.6rem; margin-top: 25px; }
.visit { background: var(--surface); max-width: none; text-align: center; padding: 110px 24px; }
.visit > p:not(.eyebrow) { margin: 24px 0; }
.visit .button { margin-top: 15px; }
/* 04. Interior pages */
.inner-main { padding-top: 75px; }
.page-heading { padding-bottom: 75px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(4.3rem, 9vw, 8rem); line-height: 1.08; margin-bottom: 32px; }
.page-heading > p:last-child { color: var(--muted); }
.menu-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; padding: 75px 0; border-bottom: 1px solid var(--line); }
.menu-section h2 { font-size: clamp(2.7rem, 4vw, 3.9rem); }
dl { margin: 0; }
.menu-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.menu-list > div:first-child { padding-top: 0; }
.menu-list > div:last-child { border: 0; padding-bottom: 0; }
.menu-list dt { font-size: 1.05rem; }
.menu-list small { display: block; font-size: .875rem; color: var(--muted); margin-top: 7px; }
.menu-list dd { margin: 0; white-space: nowrap; font-family: var(--serif); font-size: 1.4rem; }
.menu-note { color: var(--muted); padding-top: 40px; font-size: .875rem; }
.menu-note p + p { margin-top: 8px; }
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; padding: 90px 0 110px; }
.story-title { padding: 50px 40px; background: var(--surface); }
.story-title h2 { color: var(--accent); font-size: clamp(3.3rem, 5vw, 5rem); }
.story-copy { padding-top: 22px; line-height: 2.4; color: var(--muted); }
.signature { text-align: right; color: var(--ink); padding-top: 15px; }
.values { padding-top: 75px; border-top: 1px solid var(--line); }
.values h2 { margin-bottom: 60px; }
.end-link { text-align: center; margin-top: 75px; }
.access-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; padding: 75px 0 90px; }
.address-card { padding: 45px; background: var(--surface); align-self: start; }
.address-card h2 { font-family: 'Yu Mincho', serif; font-size: 2rem; letter-spacing: .1em; }
.address-lead { margin: 30px 0; }
.address-card > p:last-child { color: var(--muted); font-size: .875rem; }
.store-details > div { display: grid; grid-template-columns: 95px 1fr; gap: 25px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.store-details > div:first-child { padding-top: 0; }
.store-details dt { font-size: .875rem; color: var(--muted); }
.store-details dd { margin: 0; }
.directions { border-top: 1px solid var(--line); padding-top: 70px; }
.directions ol { list-style: none; padding: 0; margin: 55px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.directions li > span { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--accent); }
.directions h3 { margin: 15px 0; }
.directions li p { color: var(--muted); }
/* 05. Shared footer */
.site-footer { padding: 75px 5% 24px; border-top: 1px solid var(--line); max-width: 1440px; margin: auto; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr .6fr; gap: 45px; padding-bottom: 65px; }
.footer-brand { font-size: 3.5rem; }
.footer-tagline { font-size: .875rem; color: var(--muted); margin-top: 25px; }
.footer-hours .eyebrow, .footer-social .eyebrow { margin-bottom: 20px; }
.footer-hours p:last-child { font-size: .875rem; }
.footer-hours span { color: var(--muted); }
.footer-social .text-link { padding-top: 0; }
.footer-social .note { margin-top: 10px; font-size: .75rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 23px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-bottom p, .footer-bottom small, .footer-bottom a { font-size: .75rem; color: var(--muted); }
.footer-bottom a { letter-spacing: .1em; padding: 8px 0; }
/* 06. Tablet and mobile */
@media (max-width: 1000px) {
  .section-wrap { padding: 90px 40px; }
  .intro, .story, .access-grid, .menu-section { gap: 45px; }
  .site-header nav { gap: 25px; }
  .favorites article { padding-left: 22px; padding-right: 22px; }
  .footer-main { grid-template-columns: 1.2fr 1fr; }
  .footer-social { grid-column: 2; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 24px 6%; gap: 24px; }
  .logo { font-size: 2.5rem; }
  .site-header nav { width: 100%; display: flex; gap: 8px 22px; flex-wrap: wrap; }
  .site-header nav a { min-height: 44px; }
  .nav-ready .nav-toggle { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); color: var(--ink); background: transparent; min-height: 44px; padding: 7px 12px; font-size: .875rem; }
  .nav-ready nav { display: none; }
  .nav-ready nav.is-open { display: flex; }
  .hero { padding: 0 6%; }
  .hero-top { align-items: start; font-size: .75rem; letter-spacing: .06em; }
  .hero-top span:last-child { text-align: right; }
  .hero-copy { padding: 60px 0 45px; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 5.7rem); }
  .hero-japanese { font-size: 1rem; }
  .hero-detail { flex-direction: column; align-items: start; gap: 28px; margin-top: 30px; }
  .hero-detail br { display: none; }
  .hero-bottom { flex-direction: column; align-items: start; gap: 10px; font-size: .75rem; }
  .section-wrap { padding: 75px 6%; }
  .intro, .story, .access-grid, .menu-section { grid-template-columns: 1fr; gap: 35px; }
  .intro > div:last-child { padding-top: 0; }
  .section-heading { flex-direction: column; align-items: start; gap: 25px; margin-bottom: 35px; }
  .favorites { grid-template-columns: 1fr; }
  .favorites article, .favorites article:first-child, .favorites article:last-child { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .item-number { margin-bottom: 16px; }
  .price { margin-top: 15px; }
  .visit { padding: 80px 6%; }
  .page-heading { padding-bottom: 45px; }
  .page-heading h1 { font-size: clamp(3.6rem, 14vw, 6rem); }
  .menu-section { padding: 50px 0; }
  .story { padding: 50px 0 65px; }
  .story-title, .address-card { padding: 35px 28px; }
  .story-copy { padding-top: 0; }
  .values { padding-top: 55px; }
  .values h2 { margin-bottom: 25px; }
  .access-grid { padding: 50px 0 65px; }
  .store-details > div { grid-template-columns: 75px 1fr; gap: 18px; }
  .directions ol { grid-template-columns: 1fr; gap: 32px; margin-top: 35px; }
  .directions li { display: flex; gap: 24px; }
  .directions h3 { margin-top: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-bottom: 45px; }
  .footer-social { grid-column: auto; }
  .site-footer { padding: 55px 6% 24px; }
  .footer-bottom { flex-direction: column; align-items: start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 07. Home photographic hero and recommendation cards */
.home-page .hero {
  max-width: none;
  padding: 0 max(6%, calc((100vw - 1240px) / 2));
  color: var(--paper);
  background-color: #302923;
  background-image: linear-gradient(90deg, rgba(30, 23, 18, .79) 0%, rgba(30, 23, 18, .58) 48%, rgba(30, 23, 18, .15) 100%), url('images/cafe-interior.png');
  background-size: cover;
  background-position: center;
}
.home-page .hero-top,
.home-page .hero-bottom {
  color: var(--paper);
  border-color: rgba(248, 245, 239, .3);
}
.home-page .hero-top { border-top: 0; }
.home-page .hero-copy { padding: 85px 0 70px; }
.home-page .hero h1 {
  color: var(--paper);
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: 1.08;
}
.home-page .hero h1::first-line { color: inherit; }
.home-page .hero .eyebrow,
.home-page .hero-detail p,
.home-page .hero-bottom span:last-child { color: var(--paper); }
.home-page .hero-detail { display: block; margin-top: 25px; }
.home-page .hero-detail p { max-width: 560px; }
.home-page .hero .button {
  margin-top: 30px;
  color: var(--paper);
  border-color: var(--paper);
}
.home-page .hero .button:hover { background: var(--paper); color: var(--ink); }
.home-page .hero-bottom { border-bottom: 0; }
.home-page .menu-cards { gap: 24px; }
.home-page .menu-cards article {
  display: flex;
  flex-direction: column;
  padding: 38px 30px;
  border: 1px solid var(--line);
  background: #f1ece4;
}
.home-page .menu-cards .item-number { margin-bottom: 42px; }
.home-page .menu-cards h3 { font-size: 1.2rem; }
.home-page .menu-cards p { padding-bottom: 30px; }
.home-page .menu-cards .price {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .home-page .hero {
    background-position: 62% center;
    background-image: linear-gradient(90deg, rgba(30, 23, 18, .79), rgba(30, 23, 18, .6)), url('images/cafe-interior.png');
  }
  .home-page .hero-copy { padding: 58px 0 45px; }
  .home-page .hero h1 { font-size: clamp(3rem, 11.5vw, 5rem); }
  .home-page .hero-top { flex-wrap: wrap; gap: 6px 20px; }
  .home-page .hero-japanese { letter-spacing: .1em; }
  .home-page .menu-cards { gap: 18px; }
  .home-page .menu-cards article { padding: 30px 26px; }
  .home-page .menu-cards .item-number { margin-bottom: 24px; }
}

/* 08. Interior page controls, practical information, and live map */
[hidden] { display: none !important; }
.menu-controls { padding-top: 45px; }
.menu-controls .eyebrow { margin-bottom: 18px; }
.menu-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.menu-filters button {
  min-height: 48px;
  padding: 9px 28px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.menu-filters button:hover { border-color: var(--accent); }
.menu-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.filter-status { font-size: .875rem; color: var(--muted); margin-top: 18px; }
.cafe-info { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 80px; padding-top: 80px; margin-top: 85px; border-top: 1px solid var(--line); }
.cafe-info > .note { grid-column: 1 / -1; margin: 0; }
.map-section { padding: 70px 0 85px; border-top: 1px solid var(--line); }
.map-notice { padding: 22px 26px; margin: 32px 0; border-left: 2px solid var(--accent); background: var(--surface); font-size: .875rem; }
.access-map { display: block; width: 100%; height: 480px; border: 1px solid var(--line); background: var(--surface); }
.map-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.map-caption p, .map-credit { color: var(--muted); font-size: .875rem; }
.map-credit { margin-top: 16px; }
.map-credit a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .menu-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .menu-filters button { padding: 10px 16px; }
  .cafe-info { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; margin-top: 60px; }
  .map-section { padding: 55px 0; }
  .access-map { height: 360px; }
  .map-notice { padding: 20px; }
}

/* 09. Optional interaction polish: content is visible by default. */
.hamburger { display: grid; gap: 5px; width: 22px; flex: 0 0 22px; }
.hamburger > span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] .hamburger > span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger > span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger > span:last-child { transform: translateY(-6px) rotate(-45deg); }
.button, .menu-filters button, .favorites article { transition: transform .22s, box-shadow .22s, background-color .22s, color .22s; }
.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(48, 41, 35, .08);
  line-height: 1.2;
  transition: transform .22s, background-color .22s, color .22s;
}
.back-to-top > span:first-child { font-size: 1.4rem; }
.back-to-top > span:last-child { font-size: .75rem; letter-spacing: .12em; margin-top: 5px; }
.site-footer { padding-bottom: 105px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover, .menu-filters button:hover, .back-to-top:hover { transform: translateY(-3px); }
  .favorites article:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(48, 41, 35, .07); }
  .back-to-top:hover { background: var(--accent); color: var(--paper); }
}
@media (max-width: 760px) {
  .nav-ready .nav-toggle { cursor: pointer; }
  .back-to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 48px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .menu-filters button:hover, .favorites article:hover, .back-to-top:hover { transform: none; }
}
