:root {
    --color-bg: #f4f1ea;
    --color-text: #4a3b32;
    --color-accent: #5c7c56;
    --color-accent-dark: #3e533a;
    --color-white: #ffffff;
    --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-serif);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.logo-fade {
    font-size: 3rem;
    font-weight: 700;
    animation: fadeIn 2s ease-in-out;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s, padding 0.3s;
}

.header.scrolled {
    background-color: rgba(244, 241, 234, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 40px;
}

.back-link {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.7;
}

.header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: block;
    }

    .nav-menu ul {
        display: flex;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 0.95rem;
        position: relative;
    }

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

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

    .menu-toggle {
        display: none;
    }
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #daddd8;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 2.5rem;
    letter-spacing: 0.5em;
    font-weight: 500;
    margin: 0 auto;
    color: var(--color-white);
    /* Changed to white for better visibility on image */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Added text shadow */
    height: 300px;
}

.catchphrase {
    animation: fadeUp 1.5s ease-out 0.5s backwards;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    /* Changed to white */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 60px;
    background-color: var(--color-white);
    /* Changed to white */
}

/* Sections */
.section {
    padding: 100px 20px;
}

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

.section-header {
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.vertical-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vertical-header h2 {
    font-size: 2rem;
    letter-spacing: 0.2em;
}

.vertical-header .en {
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--color-accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    width: 100%;
    height: 400px;
    background-image: url('about_bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '翠月';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    writing-mode: vertical-rl;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.6),
        0 2px 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 15px;
    border-radius: 4px;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: justify;
}

/* Menu */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.menu-item {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
    cursor: pointer;
}

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

.menu-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 2px;
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-img {
    transform: scale(1.05);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--color-bg);
    border-radius: 8px;
    padding: 40px;
    z-index: 2001;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: translateY(30px);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text);
    z-index: 10;
}

.modal-img-wrapper {
    flex: 0 0 45%;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    flex: 1;
    text-align: left;
}

#modal-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

#modal-price {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
}

#modal-desc {
    line-height: 2;
    font-size: 1rem;
    color: var(--color-text);
    text-align: justify;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        padding: 30px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-img-wrapper {
        width: 100%;
    }
}

.menu-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--color-bg);
    padding-bottom: 10px;
}

.menu-info .price {
    font-family: var(--font-sans);
    color: var(--color-accent);
    font-weight: bold;
    margin-bottom: 15px;
}

.menu-info .desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Access */
.access-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .access-content {
        grid-template-columns: 1fr 1fr;
    }
}

.access-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px 0;
    margin-bottom: 30px;
}

.access-info dt {
    font-weight: bold;
    color: var(--color-accent);
}

.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--color-text);
    border-radius: 0;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
}

/* Footer */
.footer {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    padding: 60px 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: var(--font-sans);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

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

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 767px) {
    .vertical-text {
        font-size: 2rem;
        height: 250px;
    }

    .section {
        padding: 60px 20px;
    }
}