:root {
    --bg-color: #fdfaf6;
    --text-main: #2b2520;
    --text-muted: #6b5e52;
    --card-bg: #ffffff;
    --primary: #9b2c2c;
    --primary-hover: #7b1c1c;
    --accent: #d97706;
    --accent-light: #fef3c7;
    --gold: #d97706;
    --border-color: #ebdcd0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
    --radius-md: 14px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 80px; /* Space for compact sticky nav */
}

/* Compact Sticky Navigation Header */
.compact-sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Row 1: Day Navigation */
.nav-scroll-container {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px 2px;
    width: 100%;
    box-sizing: border-box;
}
.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.sticky-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.sticky-plan-btn:hover {
    background: var(--primary-hover);
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
    margin: 0 2px;
    flex-shrink: 0;
}

/* Catalog Mode Switcher (All 216 / Gourmet 108 / Comfort 108) */
.catalog-mode-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}
.catalog-pill {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 500;
    color: #475569;
    background: transparent;
    padding: 3px 10px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.catalog-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}
.catalog-pill.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.catalog-pill[data-catalog="comfort"].active {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
}
.catalog-pill[data-catalog="gourmet"].active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(155, 44, 44, 0.3);
}

.day-jump-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: #f5efe9;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.day-jump-pill:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: #fde68a;
}
.day-jump-pill.active {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

/* Row 2: Search & Filter Bar */
.filter-scroll-container {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 12px;
    width: 100%;
    box-sizing: border-box;
}
.filter-scroll-container::-webkit-scrollbar {
    display: none;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-box-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 4px 75px 4px 28px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-family: inherit;
    color: #1e293b;
    outline: none;
    width: 220px;
    transition: all 0.25s ease;
}
.search-box-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    width: 300px;
}
.search-clear-btn {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
    z-index: 2;
}
.search-clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
}
.search-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0.6;
}
.semantic-status-badge {
    position: absolute;
    right: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    background: transparent;
    color: inherit;
    padding: 2px 4px;
    border-radius: 10px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
}
.semantic-status-badge.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    padding: 2px 7px;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}
.semantic-status-badge.loading {
    background: #e0e7ff;
    color: #4338ca;
    animation: pulse 1.5s infinite;
}
.ai-match-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
    margin-left: auto;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.96); }
}

.filter-pill {
    background: #ffffff;
    border: 1px solid #e2d7ce;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}
.filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-pill.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

/* Hero Banner */
.eats-hero {
    background: linear-gradient(135deg, #781d1d 0%, #450a0a 100%);
    color: #ffffff;
    text-align: center;
    padding: 35px 20px 30px;
    margin-bottom: 25px;
}
.eats-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.eats-hero p {
    font-size: 0.95rem;
    color: #fed7aa;
    max-width: 760px;
    margin: 0 auto 12px;
    line-height: 1.45;
}
.eats-concept-badge {
    display: inline-block;
    background: rgba(217, 119, 6, 0.25);
    border: 1px solid rgba(253, 186, 116, 0.5);
    color: #fef08a;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 50px;
}

/* Day Section Block */
.day-eats-section {
    margin-bottom: 45px;
    scroll-margin-top: 105px;
}
.day-header-box {
    background: #ffffff;
    border-left: 5px solid var(--accent);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.day-header-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.day-header-title h2 {
    font-size: 1.35rem;
    color: #1e293b;
    font-weight: 700;
}
.day-time-badge {
    background: #fef3c7;
    color: #b45309;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #fde68a;
}
.day-zone-info {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 4px;
}
.day-highlight-info {
    font-size: 0.88rem;
    color: #9b2c2c;
    font-weight: 500;
}

/* Restaurant Cards Grid (Compact & Sleek) */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    min-height: 400px;
    contain: layout;
}
.restaurant-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.restaurant-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.restaurant-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f8fafc;
}
.restaurant-category {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
    margin-bottom: 6px;
}
.cat-rice { background: #fef9c3; color: #854d0e; border: 1px solid #fef08a; }
.cat-protein { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.cat-seafood { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.cat-noodles { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.cat-soba { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cat-other { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }

/* Comfort Food Explicit Badges & Styles */
.comfort-badge {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}
.comfort-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #6ee7b7;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}
.turnaround-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
}
.hero-catalog-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.comfort-hero-badge {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(110, 231, 183, 0.5) !important;
    color: #a7f3d0 !important;
}
.restaurant-card.is-comfort {
    border-color: #d1fae5;
}
.restaurant-card.is-comfort:hover {
    border-color: #6ee7b7;
}

.restaurant-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
}
.restaurant-title-ja {
    font-size: 0.8rem;
    color: #64748b;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 2px;
}
.branch-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 2px 7px;
    border-radius: 6px;
    margin-top: 4px;
}

.restaurant-body {
    padding: 12px 16px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-budget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
}
.rating-tags {
    display: flex;
    align-items: center;
    gap: 5px;
}
.tabelog-badge {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.76rem;
}
.google-badge {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.76rem;
}
.budget-badge {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.78rem;
}

/* Hero Dish Card Snippet */
.hero-dish-snippet {
    background: #fffbeb;
    border: 1px dashed #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}
.hero-dish-snippet strong {
    color: #78350f;
}

.non-beef-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 6px;
    width: fit-content;
}

.restaurant-meta-loc {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f8fafc;
}
.card-menu-cue {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c2410c;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.restaurant-card:hover .card-menu-cue {
    color: #9a3412;
    text-decoration: underline;
}
.btn-view-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-view-menu:hover {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fdba74;
}
.btn-eat-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f0f9ff;
    color: #0284c7;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #bae6fd;
    transition: all 0.2s ease;
}
.btn-eat-map:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Empty state notification */
.empty-filter-msg {
    display: none;
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.95rem;
    border: 1px dashed #cbd5e1;
    margin: 20px 0;
}

/* ========================================================
   ✨ MODAL POPUP DIALOG FOR TOP 3 MENU & DETAILS
   ======================================================== */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 24px 12px;
    padding-top: max(24px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    opacity: 0;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}
.modal-backdrop.open {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
}
.modal-dialog {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    height: min(calc(100vh - 48px), 880px);
    height: min(calc(100dvh - 48px), 880px);
    height: min(calc(100svh - 48px), 880px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    max-height: calc(100svh - 48px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: auto;
    flex-shrink: 0;
}
.modal-backdrop.open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 14px 18px 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    background: #fafaf9;
    flex-shrink: 0;
    gap: 2px;
}
.modal-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    width: 100%;
}
.modal-badges-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex-grow: 1;
}
.modal-title-en {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    width: 100%;
}
.modal-title-ja {
    font-size: 0.9rem;
    color: #64748b;
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 1px;
    width: 100%;
}
.modal-header .branch-badge {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 5px 10px;
    border-radius: 8px;
    margin-top: 6px;
}
.modal-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Modal Quick Info Bar */
.modal-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
}
.modal-info-item {
    display: flex;
    flex-direction: column;
}
.modal-info-full {
    grid-column: 1 / -1;
}
.modal-info-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
}
.modal-info-val {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

/* Recommended Menu Section & Interactive Tabs */
.modal-menu-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 4px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 12px;
    scrollbar-width: none;
}
.modal-menu-tabs::-webkit-scrollbar {
    display: none;
}
.modal-to-top-btn {
    position: absolute;
    bottom: 66px;
    right: 20px;
    z-index: 20;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.modal-to-top-btn.visible {
    display: inline-flex;
}
.modal-to-top-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
}
.dish-icon {
    margin-right: 6px;
    display: inline-block;
    vertical-align: baseline;
}
.modal-tab-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: inherit;
    flex-shrink: 0;
}
.modal-tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.modal-tab-btn.active {
    background: #c2410c;
    color: #ffffff;
    border-color: #c2410c;
    box-shadow: 0 2px 6px rgba(194, 65, 12, 0.3);
}
.modal-tab-badge {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    font-weight: 700;
}
.modal-tab-btn.active .modal-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.modal-menu-panel {
    display: none;
    flex-direction: column;
    gap: 10px;
}
.modal-menu-panel.active {
    display: flex;
}
.menu-category-divider {
    font-size: 0.84rem;
    font-weight: 700;
    color: #9a3412;
    background: #fff7ed;
    border-left: 3px solid #ea580c;
    padding: 4px 10px;
    border-radius: 4px;
    margin: 10px 0 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.menu-item-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}
.menu-item-card.lunch-item {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.menu-item-card.ordinary-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.menu-item-title-box {
    flex-grow: 1;
}
.menu-item-primary {
    font-size: 0.94rem;
    font-weight: 700;
    color: #78350f;
    line-height: 1.35;
}
.menu-item-card.lunch-item .menu-item-primary {
    color: #166534;
}
.menu-item-card.ordinary-item .menu-item-primary {
    color: #1e293b;
}
.menu-item-secondary {
    font-size: 0.82rem;
    font-weight: 500;
    color: #92400e;
    margin-top: 1px;
    line-height: 1.3;
}
.menu-item-card.lunch-item .menu-item-secondary {
    color: #15803d;
}
.menu-item-card.ordinary-item .menu-item-secondary {
    color: #64748b;
}
.menu-item-ordering-jp {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.74rem;
    max-width: 100%;
    flex-wrap: wrap;
}
.jp-order-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}
.jp-order-text {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #475569;
    font-weight: 500;
}
.menu-item-card.lunch-item .menu-item-ordering-jp {
    background: rgba(22, 101, 52, 0.06);
    border-color: rgba(22, 101, 52, 0.15);
}
.menu-item-card.lunch-item .jp-order-label {
    color: #16a34a;
}
.menu-item-card.lunch-item .jp-order-text {
    color: #166534;
}
.menu-item-card.ordinary-item .menu-item-ordering-jp {
    background: rgba(30, 41, 59, 0.04);
    border-color: rgba(30, 41, 59, 0.1);
}
.menu-item-card.ordinary-item .jp-order-label {
    color: #64748b;
}
.menu-item-card.ordinary-item .jp-order-text {
    color: #334155;
}
.menu-item-price {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.menu-item-card.lunch-item .menu-item-price {
    background: #dcfce7;
    border-color: #86efac;
    color: #15803d;
}
.menu-item-card.ordinary-item .menu-item-price {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
.menu-item-desc {
    font-size: 0.84rem;
    color: #451a03;
    line-height: 1.45;
    margin-top: 4px;
}
.menu-item-card.lunch-item .menu-item-desc {
    color: #14532d;
}
.menu-item-card.ordinary-item .menu-item-desc {
    color: #334155;
}

/* Non-Beef / Beef-Only Section in Modal */
.modal-non-beef-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #14532d;
    line-height: 1.45;
}
.modal-non-beef-box strong {
    color: #15803d;
}
.modal-beef-only-box {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}
.modal-beef-only-box strong {
    color: #dc2626 !important;
}

/* Atmosphere & Address */
.modal-text-block {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 12px;
}
.phone-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.phone-link:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafaf9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.btn-modal-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #bbf7d0;
    transition: all 0.2s ease;
}
.btn-modal-phone:hover {
    background: #dcfce7;
}
.btn-modal-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0284c7;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 9px 16px;
    border-radius: 8px;
    text-decoration: none;
    flex-grow: 1;
    transition: background 0.2s ease;
}
.btn-modal-maps:hover {
    background: #0369a1;
}
.btn-modal-tabelog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #fed7aa;
    transition: all 0.2s ease;
}
.btn-modal-tabelog:hover {
    background: #ffedd5;
}

/* Foodie Intelligence Insights Box */
.foodie-intelligence-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 35px;
}
.foodie-intelligence-box summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}
.foodie-intelligence-box summary::-webkit-details-marker {
    display: none;
}
.intel-summary {
    display: none;
}
.intel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 10px;
}
.intel-header h3 {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
}
.intel-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.intel-card {
    background: #fafaf9;
    border: 1px solid #f5f5f4;
    border-radius: 10px;
    padding: 14px;
    font-size: 0.85rem;
    line-height: 1.45;
}
.intel-card h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}
.intel-card p {
    margin-bottom: 6px;
    color: #44403c;
}
.intel-card strong {
    color: #1c1917;
}

/* Footer */
footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 30px 16px;
    font-size: 0.9rem;
    margin-top: 50px;
}
footer a {
    color: #60a5fa;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body { padding-top: 80px; }
    .eats-hero { padding: 25px 14px 20px; }
    .eats-hero h1 { font-size: 1.45rem; }
    .compact-sticky-nav { padding: 6px 0 7px; }
    .nav-scroll-container { padding: 0 8px 2px; }
    .filter-scroll-container { padding: 0 8px; }
    .restaurant-grid { grid-template-columns: 1fr; }
    .day-header-box { padding: 14px; }
    .modal-backdrop {
        padding: 20px 10px;
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
        overflow: hidden;
    }
    .modal-dialog {
        height: calc(100vh - 40px);
        height: calc(100dvh - 40px);
        height: calc(100svh - 40px);
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        max-height: calc(100svh - 40px);
        margin: auto;
        border-radius: 18px;
    }
    .modal-header {
        padding: 12px 16px 8px;
    }
    .modal-body {
        padding: 12px 14px 20px;
        gap: 12px;
    }
    .modal-footer {
        padding: 8px 12px 12px;
        gap: 6px;
    }
    .btn-modal-phone, .btn-modal-tabelog {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .btn-modal-maps {
        font-size: 0.82rem;
        padding: 8px 12px;
    }
    .card-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .foodie-intelligence-box {
        padding: 12px 14px;
        margin-bottom: 20px;
    }
    .intel-summary {
        display: block;
        padding: 2px 0;
        cursor: pointer;
    }
    .intel-summary-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .intel-summary-title {
        font-size: 0.88rem;
        font-weight: 700;
        color: #1e293b;
    }
    .intel-toggle-cue {
        font-size: 0.74rem;
        font-weight: 600;
        color: #4f46e5;
        background: #eef2ff;
        padding: 2px 8px;
        border-radius: 12px;
        white-space: nowrap;
    }
    .foodie-intelligence-box:not([open]) {
        padding: 10px 14px;
    }
    .foodie-intelligence-box:not([open]) .intel-body-content {
        display: none;
    }
    .foodie-intelligence-box[open] .intel-body-content {
        margin-top: 10px;
    }
    .intel-header {
        display: none;
    }
    .search-box-input {
        width: 175px;
        padding-right: 32px;
    }
    .search-box-input:focus {
        width: 220px;
    }
}

@media (min-width: 2560px) {
    body { font-size: 1.08rem; }
    .container { max-width: 1680px; }
    .nav-scroll-container,
    .filter-scroll-container {
        max-width: 1680px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
    .restaurant-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
    .restaurant-card {
        padding: 24px;
        border-radius: 16px;
    }
    .restaurant-name {
        font-size: 1.25rem;
    }
    .eats-hero {
        padding: 50px 20px 42px;
    }
    .eats-hero h1 {
        font-size: 2.5rem;
    }
    .eats-hero p {
        font-size: 1.15rem;
        max-width: 1000px;
    }
    .hero-dish-snippet {
        padding: 14px 16px;
    }
    .modal-dialog {
        max-width: 960px;
        border-radius: 20px;
    }
    .modal-body {
        padding: 28px 32px;
        font-size: 1.02rem;
    }
    .modal-title-en {
        font-size: 1.55rem;
    }
}

/* Reserve layout space to prevent CLS during dynamic CSR injection */
#eats-main-container {
    min-height: 100vh;
    contain: layout;
}
