:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #0c2461;
    /* Dark Blue from Logo */
    --color-secondary: #f5f5f5;
    --color-muted: #555;

    --font-jp: 'Zen Old Mincho', serif;
    --font-base: 'Noto Sans JP', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

/* Textured Background */
body {
    background-color: var(--color-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--color-text);
    font-family: var(--font-base);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ... existing styles ... */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay ul {
    text-align: center;
}

.mobile-menu-overlay li {
    margin: var(--spacing-md) 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay a {
    font-family: var(--font-jp);
    font-size: 2rem;
    color: var(--color-text);
}

.mobile-menu-overlay a:hover {
    color: var(--color-accent);
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


h1,
h2,
h3 {
    font-family: var(--font-jp);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-lg);
    /* Reduced padding for logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    transition: padding 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Removed text-based logo styles */

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-family: var(--font-jp);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
    position: relative;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 16s infinite;
}

/* Dark overlay on top of slides */
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 4s;
}

.hero-slide:nth-child(3) {
    animation-delay: 8s;
}

.hero-slide:nth-child(4) {
    animation-delay: 12s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    4% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    29% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    /* Added text shadow for legibility */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-jp);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--color-accent);
    /* Solid background for better visibility */
    color: #ffffff;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: transparent;
    border-color: #ffffff;
    /* White border on hover against dark hero bg */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Common Sections */
.section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.subtitle {
    display: block;
    color: var(--color-accent);
    font-family: var(--font-base);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.menu-item {
    background-color: var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: #555;
    font-size: 0.8rem;
}

.menu-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.menu-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.price {
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* Story Section */
.story-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md) 0;
}

.story-text {
    max-width: 700px;
    margin: 0 auto;
}

.story-text .lead {
    font-size: 1.5rem;
    font-family: var(--font-jp);
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.story-text p {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
}

/* Location */
.location-content {
    display: flex;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.info-card {
    background-color: var(--color-secondary);
    padding: var(--spacing-lg);
    border: 1px solid #ddd;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-container {
    flex: 1 1 300px;
    min-height: 300px;
}

.site-footer {
    padding: var(--spacing-md);
    text-align: center;
    background-color: #0c2461;
    /* Use accent color for footer instead of black for consistency? Or stick to black and fix text. Let's use accent for a nice touch or just #050505 with light text. User liked dark blue. Let's try Dark Blue background for footer. */
    background-color: var(--color-accent);
    color: #ffffff;
    /* High contrast */
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .main-nav {
        display: none;
    }

    /* Simplified for now */
    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 0 var(--spacing-md);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .menu-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .menu-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    /* Custom Scrollbar for Menu */
    .menu-grid::-webkit-scrollbar {
        height: 4px;
    }

    .menu-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .menu-grid::-webkit-scrollbar-thumb {
        background: var(--color-accent);
        border-radius: 10px;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .story-text .lead {
        font-size: 1.25rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    border-top: 1px solid var(--color-accent);
    padding: var(--spacing-md);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 600px;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.cta-button.small {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
    background-color: var(--color-accent);
    color: #ffffff;
    border: 1px solid var(--color-accent);
}

.cta-button.small:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
}

.cta-button.secondary {
    background: transparent;
    border-color: var(--color-muted);
    color: var(--color-text);
    /* Use text color instead of muted for better visibility */
}

.cta-button.secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: transparent;
}

/* Accessibility Toolbar */
.accessibility-tools {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.a11y-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.a11y-btn:hover {
    transform: scale(1.1);
}

.a11y-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 180px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.accessibility-tools.active .a11y-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.a11y-menu button {
    background: none;
    border: 1px solid #ddd;
    color: var(--color-text);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.a11y-menu button:hover {
    background-color: #eee;
}

.a11y-menu button:focus {
    outline: 2px solid var(--color-accent);
}

/* Accessibility Modes */
body.high-contrast {
    --color-bg: #000;
    --color-text: #fff;
    --color-accent: #ffeb3b;
    --color-secondary: #000;
    --color-muted: #ddd;
    background-image: none !important;
}

body.high-contrast a {
    text-decoration: underline;
}

body.links-highlight a {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
}