:root{
  --theme-header:#17293d;
  --theme-button:#111827;
  --theme-button-text:#ffffff;
  --theme-bg:#f5f7fb;
  --theme-surface:#ffffff;
  --theme-text:#1f2937;
  --theme-muted:#64748b;
  --theme-border:#e5e7eb;
  --theme-soft:#f1f5f9;
  --theme-soft-2:#e5e7eb;
  --theme-hover:#0b1220;
  --theme-accent:#2563eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--theme-bg);
  color: var(--theme-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.start-page,
.order-page {
  min-height: 100vh;
}

.start-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.start-card {
  width: 100%;
  max-width: 560px;
  background: var(--theme-surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.start-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.store-hero {
  text-align: center;
  margin-bottom: 24px;
}

.store-logo-wrap {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--theme-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--theme-text);
}

.store-subtitle {
  margin: 8px 0 0;
  color: var(--theme-muted);
  font-size: 14px;
}

.form-section {
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--theme-text);
}

.lang-grid,
.order-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.choice-btn {
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--theme-soft-2);
  color: var(--theme-text);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.choice-btn:hover {
  transform: translateY(-1px);
  background: #dbe1e8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.choice-btn.active {
  background: var(--theme-button);
  color: var(--theme-button-text);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
}

.choice-btn:focus-visible,
.primary-btn:focus-visible,
.ghost-btn:focus-visible,
.counter-btn:focus-visible,
.tab-btn:focus-visible,
.category-card:focus-visible,
.add-cart-btn:focus-visible,
.cart-btn:focus-visible,
.qty-btn:focus-visible,
.breadcrumb-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

.choice-btn:active,
.primary-btn:active,
.ghost-btn:active,
.counter-btn:active,
.tab-btn:active,
.category-card:active,
.add-cart-btn:active,
.cart-btn:active,
.qty-btn:active,
.breadcrumb-btn:active {
  transform: scale(0.98);
}

.party-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.counter-btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--theme-button);
  color: var(--theme-button-text);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.counter-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-hover);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.20);
}

.party-size-display {
  min-width: 96px;
  height: 56px;
  border-radius: 14px;
  background: var(--theme-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--theme-text);
}

.start-actions {
  margin-top: 8px;
}

.primary-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  background: var(--theme-button);
  color: var(--theme-button-text);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-hover);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22);
}

.ghost-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--theme-soft-2);
  color: var(--theme-button);
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.ghost-btn:hover {
  transform: translateY(-1px);
  background: #dbe1e8;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.order-page {
  padding-bottom: 100px;
  background: var(--theme-bg);
}

.order-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--theme-bg) 96%, white 4%);
  backdrop-filter: blur(8px);
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--theme-border);
}

.order-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.store-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.store-mini-logo {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--theme-soft-2);
}

.store-mini-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--theme-text);
}

.store-mini-meta {
  color: var(--theme-muted);
  font-size: 12px;
}

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

.cart-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--theme-button);
  color: var(--theme-button-text);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
}

.cart-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-hover);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.20);
}

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

.level1-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--theme-soft-2);
  color: var(--theme-button);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.tab-btn:hover {
  transform: translateY(-1px);
  background: #dbe1e8;
}

.tab-btn.active {
  background: var(--theme-button);
  color: var(--theme-button-text);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.breadcrumb-area {
  margin-top: 10px;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb-btn {
  background: transparent;
  color: #334155;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb-btn:hover {
  color: var(--theme-text);
}

.breadcrumb-sep {
  color: #94a3b8;
  font-size: 12px;
}

.order-content {
  padding: 16px 14px;
}

.empty-state {
  background: var(--theme-surface);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: var(--theme-muted);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  margin-bottom: 16px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.empty-state:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

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

.category-card,
.menu-card {
  background: var(--theme-surface);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.category-card:hover,
.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.category-card {
  min-height: 100px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  color: var(--theme-text);
}

.menu-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.menu-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--theme-soft-2);
  color: var(--theme-button);
  font-size: 11px;
  font-weight: 700;
}

.menu-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--theme-text);
}

.menu-desc {
  color: var(--theme-muted);
  font-size: 13px;
  line-height: 1.5;
  min-height: 38px;
}

.menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.menu-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--theme-text);
}

.add-cart-btn {
  min-width: 90px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--theme-button);
  color: var(--theme-button-text);
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.12);
}

.add-cart-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-hover);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.18);
}

.cart-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 70vh;
  background: var(--theme-surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.12);
  padding: 16px 14px 20px;
  overflow: auto;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cart-panel-header h2 {
  margin: 0;
  font-size: 18px;
  color: var(--theme-text);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--theme-soft);
  border-radius: 14px;
  padding: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.cart-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.cart-item-left {
  min-width: 0;
}

.cart-item-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--theme-text);
}

.cart-item-price {
  color: var(--theme-muted);
  font-size: 12px;
  margin-top: 4px;
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--theme-button);
  color: var(--theme-button-text);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.10);
}

.qty-btn:hover {
  transform: translateY(-1px);
  background: var(--theme-hover);
  box-shadow: 0 8px 14px rgba(17, 24, 39, 0.16);
}

.qty-text {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  color: var(--theme-text);
}

.cart-summary {
  margin-top: 16px;
  border-top: 1px solid var(--theme-border);
  padding-top: 16px;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--theme-text);
}

@media (min-width: 768px) {
  .order-header,
  .order-content {
    max-width: 900px;
    margin: 0 auto;
  }

  .category-grid,
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-panel {
    left: auto;
    width: 420px;
    right: 20px;
    bottom: 20px;
    border-radius: 24px;
    max-height: 80vh;
  }
}

/* ===============================
   CUSTOMER MENU SOLD OUT
================================ */

.menu-card.is-soldout{
  opacity:0.6;
}

.menu-badge--soldout{
  background:#fee2e2;
  color:#991b1b;
  font-weight:700;
}

.add-cart-btn.is-disabled,
.add-cart-btn:disabled{
  opacity:0.7;
  cursor:not-allowed;
  pointer-events:none;
  background:#e5e7eb;
  color:#6b7280;
  border-color:#d1d5db;
}

.menu-card.is-soldout .menu-name,
.menu-card.is-soldout .menu-desc,
.menu-card.is-soldout .menu-price{
  color:#6b7280;
}