:root {
  --paper: #fbfbf8;
  --soft: #efede7;
  --ink: #181713;
  --muted: #69645b;
  --line: rgba(24, 23, 19, 0.14);
  --dark: #11100d;
  --accent: #8d6b3d;
  --good: #264f36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(251, 251, 248, 0.82), rgba(251, 251, 248, 0.96) 42%, rgba(251, 251, 248, 0.98)),
    url("assets/menu-ginza.png") center top / cover fixed;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

a,
button,
input,
fieldset,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 54px);
  background: rgba(251, 251, 248, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand span {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--accent);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions a,
.cart-pill,
.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
}

main {
  padding-bottom: 80px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(24px, 5vw, 74px);
  align-items: end;
  padding: clamp(48px, 8vw, 104px) clamp(16px, 5vw, 70px);
  min-height: 420px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  background:
    linear-gradient(90deg, rgba(10, 9, 7, 0.72), rgba(10, 9, 7, 0.3) 55%, rgba(10, 9, 7, 0.08)),
    url("assets/menu-ginza.png") center 48% / cover;
  color: #f8f4eb;
}

.eyebrow,
.pickup-card span,
.search-box span {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 0.96;
}

h1 {
  max-width: 980px;
  margin-top: 16px;
  font-size: clamp(4rem, 12vw, 11rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 2.1rem;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(248, 244, 235, 0.78);
  font-size: 1.04rem;
  line-height: 1.7;
}

.pickup-card {
  border: 1px solid rgba(248, 244, 235, 0.28);
  background: rgba(8, 8, 7, 0.52);
  backdrop-filter: blur(14px);
  padding: 24px;
}

.pickup-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
}

.pickup-card p {
  margin-bottom: 0;
  color: rgba(248, 244, 235, 0.72);
}

.toolbar {
  position: sticky;
  top: 69px;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px clamp(16px, 5vw, 70px);
  background: rgba(251, 251, 248, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.search-box {
  display: grid;
  gap: 6px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-tabs button.is-active,
.category-tabs button:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(24px, 4vw, 54px) clamp(16px, 5vw, 70px);
}

.menu-list {
  display: grid;
  gap: 42px;
}

.box-mode-banner {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(174, 132, 71, 0.35);
  background: rgba(251, 251, 248, 0.78);
  backdrop-filter: blur(12px);
  padding: 16px;
}

.box-mode-banner strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.box-mode-banner span {
  color: var(--ink);
  font-weight: 800;
}

.box-mode-banner small {
  color: var(--muted);
  line-height: 1.45;
}

.box-mode-banner .box-delivery-warning {
  color: #b3261e;
  font-weight: 900;
}

.menu-section {
  scroll-margin-top: 150px;
}

.menu-section header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid rgba(24, 23, 19, 0.34);
  padding-bottom: 14px;
}

.menu-count {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.dish-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  border: 1px solid rgba(24, 23, 19, 0.1);
  background: rgba(251, 251, 248, 0.82);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.dish-card.has-image {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dish-thumb {
  grid-row: 1 / span 3;
  width: 86px;
  height: 86px;
  object-fit: cover;
  background: var(--soft);
}

.dish-card.is-box-included {
  border-color: rgba(174, 132, 71, 0.46);
}

.dish-card h4 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.08;
}

.dish-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  margin-right: 10px;
  color: var(--accent);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.dish-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.dish-card.has-image p {
  grid-column: 2 / -1;
}

.dish-price {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.add-button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dish-card.has-image .add-button {
  grid-column: 2 / -1;
}

.add-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.add-button:disabled,
.add-button:disabled:hover {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
  cursor: not-allowed;
}

.cart-panel {
  position: sticky;
  top: 150px;
  max-height: calc(100svh - 170px);
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  padding: 22px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.cart-header-actions {
  display: flex;
  gap: 8px;
}

.close-cart {
  display: none;
}

.cart-empty {
  color: var(--muted);
  padding: 24px 0;
  line-height: 1.6;
}

.cart-items {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cart-item strong {
  font-size: 0.95rem;
}

.cart-item small {
  color: var(--muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.order-form {
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.service-choice {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 13px;
}

.service-choice legend {
  padding: 0 6px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-choice label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.service-choice input {
  width: auto;
  accent-color: var(--accent);
}

.order-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  outline: none;
  resize: vertical;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.order-form .service-choice input {
  width: auto;
  padding: 0;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--accent);
}

.delivery-address.is-hidden {
  display: none;
}

.delivery-rules {
  margin: 0;
  border: 1px solid rgba(174, 132, 71, 0.35);
  background: rgba(174, 132, 71, 0.08);
  color: var(--muted);
  padding: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.delivery-box-warning {
  display: block;
  margin-top: 8px;
  color: #b3261e;
  font-weight: 900;
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 1.25rem;
}

.send-order {
  border: 0;
  background: var(--good);
  color: white;
  padding: 15px 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.send-order:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mobile-cart-bar {
  display: none;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .toolbar,
  .menu-area {
    grid-template-columns: 1fr;
  }

  .toolbar {
    top: 63px;
  }

  .dish-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: fixed;
    z-index: 40;
    inset: 0;
    max-height: none;
    border: 0;
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .cart-panel.is-open {
    transform: translateX(0);
  }

  .close-cart {
    display: inline-flex;
  }

  .mobile-cart-bar {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 12px;
    background: rgba(251, 251, 248, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-cart-bar button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 15px 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (max-width: 560px) {
  .app-header {
    padding: 14px 16px;
  }

  .header-actions a {
    display: none;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .hero {
    padding-top: 38px;
  }

  .menu-section header {
    align-items: start;
    flex-direction: column;
  }
}
