@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Colors */
    --color-base-dark: #2C241B;
    --color-base-smoke: #1A1A1A;
    --color-base-grey: #8D8073;
    --color-accent-beige: #C7B299;
    --color-white: #F4F1EA;
    --color-text-main: #F4F1EA;
    --color-text-inverse: #2C241B;

    /* Fonts */
    --font-heading: 'HGSeikaishotaiPRO', 'HG正楷書体-PRO', 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-standard: all 0.4s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-base-smoke);
    /* Slightly darker bg */
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

/* Fade Animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--color-accent-beige);
    color: var(--color-accent-beige);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--color-accent-beige);
    color: var(--color-base-dark);
}

/* Side Menu */
.menu-trigger-area {
    position: fixed;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 1001;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transition: background 0.3s;
}

.menu-trigger-area:hover {
    background: rgba(0, 0, 0, 0.7);
}

.menu-trigger-area span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger Animation */
.menu-trigger-area.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-trigger-area.open span:nth-child(2) {
    opacity: 0;
}

.menu-trigger-area.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent-beige);
    /* Changed to use existing variable */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-base-dark);
    /* Changed to use existing variable */
}

#side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden default */
    width: 280px;
    height: 100vh;
    background: rgba(44, 36, 27, 0.95);
    /* Dark brown semi-transparent */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-md);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

#side-menu.visible {
    left: 0;
}

.menu-logo {
    width: 100px;
    margin-bottom: var(--spacing-lg);
    /* Removed filter to show original logo colors */
}

.nav-links li {
    margin-bottom: var(--spacing-md);
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    opacity: 0.7;
    display: block;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateX(10px);
}

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

.nav-links a:hover::after {
    width: 30px;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.hero-logo {
    width: 120px;
    margin: 0 auto var(--spacing-md);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-catch {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-suben {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-weight: 300;
}

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

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent-beige);
}

/* Grid Layouts */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.img-col .img-placeholder {
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Menu Grid */
.menu-grid {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item.alt-layout {
    flex-direction: row-reverse;
}

.menu-img {
    flex: 0 0 40%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.menu-info {
    flex: 1;
}

.menu-info h3 {
    color: var(--color-accent-beige);
    font-size: 1.5rem;
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    background: #111;
    color: #666;
    font-size: 0.8rem;
}

.footer-logo {
    width: 80px;
    margin: 0 auto var(--spacing-sm);
    opacity: 0.5;
    filter: grayscale(1);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .hero-catch {
        font-size: 2.2rem;
    }

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

    .menu-item,
    .menu-item.alt-layout {
        flex-direction: column;
    }

    .menu-img {
        width: 100%;
        height: 200px;
    }
}

/* Desktop Sidebar Persistence */
@media (min-width: 769px) {
    body {
        padding-left: 140px;
    }

    #side-menu {
        left: 0;
        width: 140px;
        padding: var(--spacing-lg) var(--spacing-xs);
        box-shadow: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-logo {
        width: 70px;
    }

    .menu-trigger-area {
        display: none;
    }
}