:root {
    /* Colors */
    --color-bg: #f4f1ea; /* 少し温かみのあるオフホワイト */
    --color-bg-secondary: #ebe8e1;
    --color-text: #3d3d3d;
    --color-text-light: #7a7a7a;
    --color-primary: #5c5046; /* 落ち着いたブラウン */
    --color-accent: #b08d55; /* ゴールド/ベージュ系 */
    --color-white: #ffffff;
    --color-line: #dcd9d0;
    
    /* Fonts */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Lato', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 2;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.4;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* --- Utility Classes --- */
.u-serif { font-family: var(--font-serif); }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-20 { margin-bottom: 20px; }
.u-mb-40 { margin-bottom: 40px; }
.u-mb-60 { margin-bottom: 60px; }
.u-text-center { text-align: center; }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.4s var(--ease-out), background-color 0.4s ease;
    mix-blend-mode: difference;
    color: var(--color-white);
}

.header.scrolled {
    padding: 15px 50px;
    background-color: rgba(244, 241, 234, 0.9);
    mix-blend-mode: normal;
    color: var(--color-text);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    z-index: 1001;
}

.header-nav {
    display: flex;
    gap: 40px;
}

.header-nav a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* --- Page Header (Common) --- */
.page-header {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 画像を少し暗くする */
    z-index: 0;
}

.page-header-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* 文字に影をつけて読みやすく */
}

.page-title {
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.page-subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid currentColor;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-text);
    z-index: -1;
    transition: width 0.4s var(--ease-out);
}

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

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    max-width: 400px;
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-up.is-inview {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header {
        padding: 20px;
        mix-blend-mode: normal;
        background-color: transparent;
    }
    
    .header.scrolled {
        padding: 15px 20px;
    }

    .header .logo {
        color: var(--color-text); /* モバイルでは常に見やすく */
    }

    .menu-toggle {
        display: block;
        color: var(--color-text);
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s var(--ease-out);
        z-index: 999;
    }

    .header-nav.is-active {
        right: 0;
    }

    .header-nav a {
        font-size: 1.5rem;
        color: var(--color-text);
    }

    .page-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   Page Specific Styles
   ========================================= */

/* Home Hero */
.home-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10vw;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--color-bg) 0%, rgba(244, 241, 234, 0.8) 20%, rgba(244, 241, 234, 0) 100%);
}

.home-hero-content {
    max-width: 600px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.hero-main-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-primary);
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .home-hero {
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }
    .hero-bg {
        width: 100%;
    }
    .hero-bg::after {
        background: rgba(244, 241, 234, 0.85); /* モバイル時は文字が見やすいように背景を濃く */
    }
    .hero-main-title {
        font-size: 3rem;
    }
}

/* Section Common */
.section-padding {
    padding: 120px 0;
}

/* Home About Preview */
.home-about-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.home-about-img {
    flex: 1;
    position: relative;
}

.home-about-img img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--color-bg-secondary);
}

.home-about-text {
    flex: 1;
}

/* Menu Page */
.menu-category {
    margin-bottom: 80px;
}

.menu-category-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.menu-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: var(--color-accent);
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.menu-item-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--color-line);
    transition: transform 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-5px);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    border-bottom: 1px dotted var(--color-line);
    padding-bottom: 5px;
}

.menu-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-primary);
}

.menu-price {
    font-weight: bold;
    color: var(--color-accent);
}

/* Gallery Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--color-line);
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
}

.contact-form button:hover {
    background-color: var(--color-text);
    color: #fff;
}

@media (max-width: 768px) {
    .home-about-layout,
    .contact-container {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
