:root {
  --bg: #f6efe4;
  --paper: #fffaf2;
  --ink: #3b2a20;
  --muted: #7a6657;
  --line: #dccdb9;
  --terra: #c4683f;
  --olive: #6f7a4f;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 44px);
  transition: background .3s, box-shadow .3s;
}

.header.scrolled { background: rgba(246, 239, 228, .94); box-shadow: 0 1px 0 var(--line); }

.logo { display: grid; line-height: 1.3; font-family: var(--font-head); }
.logo small { font-size: .68rem; letter-spacing: .2em; color: var(--muted); }
.logo span { font-size: 1.4rem; font-weight: 700; letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); font-size: .92rem; font-weight: 500; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--terra); }

.nav .nav-cta {
  padding: 7px 20px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transition: background .2s;
}

.nav .nav-cta:hover { color: var(--paper); background: var(--terra); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- ファーストビュー ---------- */
.hero {
  max-width: var(--max);
  min-height: min(100vh, 800px);
  margin: 0 auto;
  padding: 120px clamp(16px, 4vw, 44px) 70px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}

.hero-label { font-size: .8rem; letter-spacing: .34em; color: var(--terra); font-weight: 700; }

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 4.6rem);
  line-height: 1.35;
  letter-spacing: .08em;
  margin: 14px 0 22px;
}

.hero-sub { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(59, 42, 32, .14); }
.btn-fill { color: var(--paper); background: var(--ink); }
.btn-fill:hover { background: var(--terra); border-color: var(--terra); }
.btn-line:hover { background: var(--paper); }

.hero-visual { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }

.arch {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 250, 242, .34), transparent 46%),
    var(--terra);
  border-radius: 999px 999px 18px 18px;
  box-shadow: 14px 14px 0 var(--line);
}

.cup { width: 78%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cup-body { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.cup-handle { stroke: var(--ink); stroke-width: 4; }
.cup-rim { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.coffee { fill: #5a3a28; }
.cup-line { stroke: var(--terra); stroke-width: 4; }
.saucer { fill: rgba(59, 42, 32, .22); }

.steam path {
  stroke: var(--paper);
  stroke-width: 5;
  opacity: .85;
  animation: steam 4s ease-in-out infinite;
}

.steam path:nth-child(2) { animation-delay: -1.3s; }
.steam path:nth-child(3) { animation-delay: -2.6s; }

@keyframes steam {
  0%, 100% { transform: translateY(8px); opacity: .25; }
  50% { transform: translateY(-6px); opacity: .9; }
}

.stamp {
  position: absolute;
  left: -34px;
  bottom: 26px;
  width: 132px;
  animation: turn 26s linear infinite;
}

.stamp circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.stamp text { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; fill: var(--ink); }
.stamp-cup { fill: none; stroke: var(--olive); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@keyframes turn { to { transform: rotate(360deg); } }

/* ---------- セクション共通 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 110px) clamp(16px, 4vw, 44px); }
.section-head { text-align: center; margin-bottom: 46px; }

.section-label {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--terra);
  letter-spacing: .16em;
  font-size: .95rem;
}

.section h2 {
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4.6vw, 2.3rem);
  letter-spacing: .14em;
  padding-bottom: 14px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 6px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--olive) 2.5px, transparent 3px) 0 0 / 11px 6px repeat-x;
}

/* ---------- おみせのこと ---------- */
.about-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }

.about-copy {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .1em;
}

.about-text p + p { margin-top: 1.2em; }

/* ---------- おしながき ---------- */
.menu { max-width: none; background: var(--paper); }
.menu > * { max-width: calc(var(--max) - 88px); margin-left: auto; margin-right: auto; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }

.menu-card h3 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: .14em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.menu-card h3 span { font-size: .85rem; font-style: italic; color: var(--terra); letter-spacing: .1em; }

.menu-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.menu-list b { display: block; font-weight: 700; }
.menu-list small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.menu-list i { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu-list span { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }

.menu-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- こだわり ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.policy-item {
  padding: 34px 26px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .25s, box-shadow .25s;
}

.policy-item:hover { transform: translateY(-6px); box-shadow: 0 10px 0 var(--line); }

.policy-item svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--terra);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.policy-item h3 { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .1em; margin: 12px 0 8px; }
.policy-item p { color: var(--muted); font-size: .94rem; text-align: left; }

/* ---------- おしらせ ---------- */
.news-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.news-list time { font-family: var(--font-head); color: var(--terra); letter-spacing: .08em; }

/* ---------- 営業案内 ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }

.info > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.info > div:first-child { border-top: 1px dashed var(--line); }
.info dt { font-weight: 700; color: var(--olive); }
.info small { display: block; color: var(--muted); font-size: .84rem; }

.map { min-height: 300px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.map svg { display: block; width: 100%; height: 100%; }
.map-bg { fill: #efe5d4; }
.road { fill: none; stroke: var(--paper); stroke-width: 16; }
.road-thin { fill: none; stroke: var(--paper); stroke-width: 7; }
.block { fill: #e3d6c1; }
.station { fill: var(--olive); }
.map-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; fill: var(--paper); text-anchor: middle; }
.route { fill: none; stroke: var(--terra); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.pin { fill: var(--terra); }
.pin-dot { fill: var(--paper); }

/* ---------- フッター ---------- */
.footer { padding: 56px 16px 44px; text-align: center; color: var(--bg); background: var(--ink); }
.footer-logo { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; letter-spacing: .14em; line-height: 1.4; }
.footer-logo small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .24em; opacity: .7; }
.footer-hours { margin-top: 12px; font-size: .9rem; opacity: .85; }
.copy { margin-top: 26px; font-size: .78rem; opacity: .6; }

/* ---------- スクロール表示 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    font-size: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(59, 42, 32, .14);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 4px; border-bottom: 1px dashed var(--line); }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }

  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; gap: 44px; }
  .hero-visual { order: -1; max-width: 270px; }
  .hero-sub br { display: none; }
  .stamp { left: -22px; width: 104px; }

  .about-body, .menu-grid, .policy-grid, .access-grid { grid-template-columns: 1fr; }
  .about-body { gap: 22px; }
  .map { min-height: 240px; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
  .info > div { grid-template-columns: 88px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
