:root {
  --bg: #f6f0e6;
  --paper: #fffaf2;
  --ink: #3b2a20;
  --muted: #8a7563;
  --accent: #a0522d;
  --line: #e2d5c3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Serif JP", serif;
  line-height: 1.7;
}
.hero {
  text-align: center;
  padding: 72px 16px 48px;
  background: linear-gradient(180deg, #3b2a20, #5a4032);
  color: #f6f0e6;
}
.eyebrow {
  margin: 0;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .8rem;
  opacity: .7;
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin: .2em 0;
}
.lead { margin: 0; opacity: .85; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(246, 240, 230, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.tabs a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.tabs a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}
.menu-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 32px;
  scroll-margin-top: 72px;
  box-shadow: 0 2px 12px rgba(59, 42, 32, .05);
}
.menu-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.menu-section h2 .en {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-style: italic;
}
.menu-section h2 .ja { font-size: .9rem; color: var(--muted); }
ul { list-style: none; margin: 0; padding: 0; }
.item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: none; }
.item-head { display: flex; align-items: baseline; gap: 8px; }
.name { font-weight: 600; font-size: 1.05rem; }
.tag {
  font-style: normal;
  font-size: .7rem;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  vertical-align: middle;
}
.dots { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); }
.price { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; font-weight: 700; }
.item-en {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--muted);
}
.desc { margin: 4px 0 0; font-size: .9rem; color: #5e4a3c; }

footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--muted);
  font-size: .9rem;
}
footer p { margin: 4px 0; }
.note { font-size: .8rem; }

@media (max-width: 480px) {
  .menu-section { padding: 24px 18px; }
}

/* ---- 注文 ---- */
.item-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-n { min-width: 1.4em; text-align: center; font-weight: 600; color: var(--muted); }
.qty.active .qty-n { color: var(--accent); }
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  z-index: 20;
}
.cart[hidden] { display: none; }
.order-btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.order-btn:disabled { opacity: .5; }
body:has(.cart:not([hidden])) footer { padding-bottom: 110px; }
dialog {
  width: min(440px, calc(100% - 32px));
  border: none;
  border-radius: 14px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgba(30, 20, 15, .5); }
dialog h3 { margin: 0 0 12px; }
#order-lines li { display: grid; grid-template-columns: 1fr auto 5em; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
#order-lines li span:last-child { text-align: right; }
.order-total { text-align: right; font-weight: 600; margin: 8px 0 16px; }
dialog label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: .85rem; color: var(--muted); }
dialog input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.order-error { color: #b3261e; min-height: 1.2em; margin: 0 0 8px; font-size: .85rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-actions .ghost { font: inherit; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #2e7d32;
  color: #fff;
  border-radius: 8px;
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 32px);
}
.toast[hidden] { display: none; }
