﻿:root {
    --bg-dark: #0d0d0f;
    --bg-card: #1a1a1e;
    --bg-elevated: #222228;
    --primary: #d4a017;
    --primary-bright: #f0c040;
    --primary-grad: linear-gradient(135deg, #f0c040, #c8860a);
    --text-main: #f5f5f5;
    --text-sub: #9a9aa3;
    --text-muted: #6b6b75;
    --danger: #e74c3c;
    --success: #2ecc71;
    --border: #2e2e36;
    --safe-area-bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; scrollbar-gutter: stable; }
body {
    margin: 0;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: calc(130px + var(--safe-area-bottom));
}
.demo-banner {
    margin: 10px 16px 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.45);
    color: #f5e6b8;
    font-size: 12px;
    line-height: 1.5;
}
.demo-banner strong { color: var(--primary-bright); }
.screen { display: none; animation: fadeIn 0.25s ease-out; }
.screen.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(13, 13, 15, 0.98), rgba(13, 13, 15, 0.85));
    backdrop-filter: blur(8px);
}
.icon-btn {
    width: 40px; height: 40px; border: none; background: transparent;
    color: var(--primary-bright); font-size: 20px; cursor: pointer; border-radius: 10px;
}
.shop-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px; font-weight: 700; color: var(--primary-bright);
    margin: 0; letter-spacing: 0.04em; text-align: center; flex: 1;
}
.search-wrap { padding: 0 16px 12px; }
.search-field {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 14px;
}
.search-field input {
    flex: 1; border: none; background: transparent;
    color: var(--text-main); font-size: 15px; outline: none;
}
.category-scroll-wrap { display: flex; align-items: center; gap: 6px; padding: 0 10px 14px; }
.category-scroll-btn {
    flex-shrink: 0; width: 34px; height: 34px;
    border: 1px solid rgba(212, 160, 23, 0.45); border-radius: 50%;
    background: rgba(212, 160, 23, 0.12); color: var(--primary-bright);
    font-size: 13px; cursor: pointer; padding: 0;
}
.category-scroll-btn.is-faded { opacity: 0.22; pointer-events: none; }
.category-scroll {
    flex: 1; min-width: 0; display: flex; gap: 8px;
    overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; padding: 8px 18px; border-radius: 999px;
    border: 1px solid rgba(212, 160, 23, 0.45); background: transparent;
    color: var(--text-main); font-size: 13px; font-family: inherit; cursor: pointer;
}
.chip.active {
    background: var(--primary-grad); border-color: transparent;
    color: #1a1200; font-weight: 700;
}
.menu-body { padding: 0 16px 16px; }
.featured-card {
    position: relative; border-radius: 18px; overflow: hidden;
    margin-bottom: 18px; min-height: 200px; background: var(--bg-card);
}
.featured-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
}
.featured-label { font-size: 11px; letter-spacing: 0.12em; color: var(--primary-bright); margin-bottom: 4px; }
.featured-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.featured-sub { font-size: 12px; color: var(--text-sub); margin: 0 0 8px; }
.featured-desc { font-size: 12px; color: #ccc; margin: 0 0 10px; line-height: 1.45; }
.featured-price { font-size: 22px; font-weight: 700; color: var(--primary-bright); }
.menu-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border-radius: 16px; padding: 10px; margin-bottom: 12px;
}
.menu-row.sold-out { opacity: 0.55; }
.menu-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.sold-out-pill {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
    padding: 4px 8px; border-radius: 6px;
}
.menu-thumb-wrap { position: relative; flex-shrink: 0; }
.menu-row-info { flex: 1; min-width: 0; }
.menu-row-name { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.menu-row-en { font-size: 11px; color: var(--text-muted); margin: 0 0 4px; }
.menu-row-desc {
    font-size: 11px; color: var(--text-sub); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.menu-row-price { font-size: 16px; font-weight: 700; color: var(--primary-bright); margin-bottom: 8px; }
.btn-add {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: var(--primary-grad); color: #1a1200; font-size: 22px;
    font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.btn-add:disabled { background: #444; color: #888; cursor: not-allowed; }
.order-bar {
    position: fixed; left: 16px; right: 16px;
    bottom: calc(68px + var(--safe-area-bottom));
    max-width: 448px; margin: 0 auto;
    background: var(--primary-grad); border-radius: 16px; padding: 14px 18px;
    display: none; align-items: center; justify-content: space-between;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45); z-index: 90; cursor: pointer;
}
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(64px + var(--safe-area-bottom));
    background: rgba(13, 13, 15, 0.96); border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; align-items: center;
    padding-bottom: var(--safe-area-bottom); z-index: 100;
}
.nav-item { flex: 1; text-align: center; color: var(--text-muted); font-size: 10px; cursor: pointer; }
.nav-item.active { color: var(--primary-bright); }
.nav-icon { display: block; font-size: 20px; margin-bottom: 2px; }
.section-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; padding: 16px 16px 0; color: var(--primary-bright); }
.panel { padding: 0 16px 16px; }
.list-card {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); padding: 14px; border-radius: 14px; margin-bottom: 10px;
}
.qty-wrap { display: flex; align-items: center; gap: 12px; }
.qty-btn {
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: var(--bg-elevated); color: var(--text-main); font-size: 18px; cursor: pointer;
}
.status-msg { text-align: center; font-size: 14px; margin: 10px 16px; }
.error { color: var(--danger); }
.success { color: var(--success); }
.empty-msg { text-align: center; color: var(--text-sub); padding: 32px 16px; }
.modal {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 200; align-items: flex-end; justify-content: center;
}
.modal.show { display: flex; }
.modal-card {
    width: min(480px, 100%); max-height: 90vh; overflow: auto;
    background: var(--bg-card); border-radius: 22px 22px 0 0;
    padding: 20px 18px calc(24px + var(--safe-area-bottom));
    border-top: 1px solid var(--border);
}
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.modal-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.modal-price { font-size: 18px; color: var(--primary-bright); font-weight: 700; }
.modal-close {
    border: none; background: var(--bg-elevated); color: var(--text-sub);
    width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer;
}
.modal-section-title { font-size: 13px; color: var(--text-sub); margin: 16px 0 10px; }
.topping-option {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer;
}
.topping-option.selected { border-color: var(--primary-bright); background: rgba(212, 160, 23, 0.08); }
.topping-group {
    border: 1px solid var(--border); border-radius: 14px; padding: 12px;
    margin-bottom: 12px; background: var(--bg-elevated);
}
.topping-group-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.topping-group-hint { font-size: 12px; color: var(--text-sub); margin-bottom: 10px; }
.topping-option-name { flex: 1; font-size: 14px; font-weight: 500; }
.topping-option-desc { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.topping-option-price { font-size: 13px; color: var(--primary-bright); font-weight: 700; }
.qty-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-elevated); border-radius: 14px; padding: 10px 14px;
}
.qty-control { display: flex; align-items: center; gap: 16px; }
.qty-control button {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-main); font-size: 20px; cursor: pointer;
}
.modal-add-btn {
    width: 100%; margin-top: 18px; padding: 16px; border: none; border-radius: 14px;
    background: var(--primary-grad); color: #1a1200; font-size: 16px; font-weight: 800; cursor: pointer;
}
.btn-primary {
    width: 100%; padding: 16px; border: none; border-radius: 14px;
    background: var(--primary-grad); color: #1a1200; font-size: 16px; font-weight: 700; cursor: pointer;
}
.demo-toast {
    position: fixed; left: 16px; right: 16px; bottom: calc(80px + var(--safe-area-bottom));
    max-width: 448px; margin: 0 auto; padding: 14px 16px; border-radius: 14px;
    background: rgba(26, 26, 30, 0.96); border: 1px solid var(--border);
    color: var(--text-main); font-size: 14px; z-index: 300; display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.demo-toast.show { display: block; }
.lp-demo-site-footer {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px calc(24px + var(--safe-area-bottom));
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    font-size: 12px;
    border-top: 1px solid var(--border);
}
.lp-demo-site-footer a {
    color: var(--text-sub);
    text-decoration: none;
}
.lp-demo-site-footer a:hover {
    color: var(--primary-bright);
}
