/* Reset & Base Styles */
:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --accent-color: #c5a059;
    --secondary-bg: #1a1a1a;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.1em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeOut 1s ease-in-out 2s forwards;
    pointer-events: none;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent-color);
    animation: floatUp 1s ease-out;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes floatUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2em;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav a {
    font-size: 0.9rem;
    color: #bbb;
    position: relative;
    padding-bottom: 5px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/sauce_katsu.jpg');
    /* Use a high quality food image */
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate;
    z-index: -1;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.0);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.4em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.hero-title {
    font-size: 4rem;
    color: #fff;
    letter-spacing: 0.3em;
    margin-left: 0.3em;
    /* optical alignment */
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.8s forwards;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out 3.5s forwards;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
}

/* Sections Common */
.section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.section-title.center {
    text-align: center;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    transition: transform 0.6s ease;
    filter: sepia(0.2) contrast(1.1);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    padding: 2rem;
}

.section-title.vertical-text {
    writing-mode: vertical-rl;
    font-size: 3rem;
    line-height: 1.5;
    height: 300px;
    margin-right: 2rem;
    float: left;
    /* Simulate layout */
}

.text-body {
    font-size: 1.1rem;
    color: #bbb;
    line-height: 2.2;
}

/* Menu Gallery Section */
.menu {
    background-color: var(--secondary-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-overlay p {
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Access Section */
.access {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/exterior.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    padding: 120px 0;
}

.access-box {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.info-item h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-item p {
    color: #ddd;
}

/* Footer */
.footer {
    background-color: #000;
    color: #555;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }

    .nav {
        display: none;
        /* Mobile menu implementation omitted for brevity, keeping it simple */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title.vertical-text {
        writing-mode: horizontal-tb;
        height: auto;
        margin-right: 0;
        margin-bottom: 2rem;
        float: none;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}