/* ---
Base Styles & Variables
--- */
:root {
    --font-serif: 'Noto Serif JP', serif;
    /* 英語フォントを細い明朝体に変更 */
    --font-english-serif: 'Cormorant Garamond', serif;
    --font-handwriting: 'Caveat', cursive;
    --color-primary: #F4E9E8; /* くすみピンク */
    --color-secondary: #EADFD7; /* ベージュ */
    --color-text: #5C4B4A; /* ブラウン */
    --color-accent: #B28E6E; /* ゴールド風 */
    --color-white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.content-section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-primary);
}

.section-title {
    /* 英語フォントの指定を変更 */
    font-family: var(--font-english-serif);
    font-size: 4rem;
    font-weight: 300; /* 細いウェイトを指定 */
    text-align: center;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: var(--font-handwriting);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-serif);
    border-radius: 50px;
    margin-top: 30px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c4a38a;
    opacity: 1;
}

/* ---
Animation
--- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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


/* ---
Loader
--- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-english-serif);
    font-weight: 300;
    font-size: 3.5rem;
    color: var(--color-white);
    animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}


/* ---
Header & Navigation
--- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 40px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-english-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color 0.4s ease; /* 色が滑らかに変わるよう設定 */
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.global-nav a {
    font-family: var(--font-english-serif);
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.4s ease; /* 色が滑らかに変わるよう設定 */
}

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

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

/* ▼▼▼【修正点】▼▼▼ */
/* スクロールしていない時のヘッダーの文字色を白に変更 */
.header:not(.is-scrolled) .logo a,
.header:not(.is-scrolled) .global-nav a {
    color: var(--color-white);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字に影を付けて視認性を上げる */
}

/* スクロールしていない時のナビゲーション下線の色を白に変更 */
.header:not(.is-scrolled) .global-nav a::after {
    background: var(--color-white);
}

/* スクロールしていない時のハンバーガーメニューの色を白に変更 */
.header:not(.is-scrolled) .mobile-nav-toggle::before,
.header:not(.is-scrolled) .mobile-nav-toggle::after {
    background: var(--color-white);
}
/* ▲▲▲【修正点】▲▲▲ */


.mobile-nav-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.mobile-nav-toggle::before,
.mobile-nav-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    /* 色が滑らかに変わるよう設定 */
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, background-color 0.4s ease;
}


/* ---
Hero Section
--- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomIn 10s ease-in-out forwards;
    z-index: -1;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

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

.hero-catchphrase {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--color-white);
    background-color: rgba(92, 75, 74, 0.5);
    padding: 20px 40px;
    display: inline-block;
    animation: fadeInText 2s ease 1s forwards;
    opacity: 0;
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* ---
Concept Section
--- */
#concept .concept-body {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#concept .concept-body p {
    margin-bottom: 2em;
}


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

.menu-category-header {
    margin-bottom: 40px;
    text-align: center;
}

.menu-category-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.menu-category-title {
    font-family: var(--font-english-serif);
    font-weight: 300;
    font-size: 3.5rem;
    color: var(--color-accent);
}

.menu-category-title small {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-top: 5px;
}

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

.menu-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(178, 142, 110, 0.2);
}

.menu-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.menu-card-body {
    padding: 25px;
}

.menu-card-body h4 {
    font-family: var(--font-english-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.menu-card-body p {
    margin: 10px 0;
    font-size: 0.9rem;
}

.menu-card-body .price {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: right;
    font-family: var(--font-english-serif);
    font-weight: 700;
}

/* ---
Chef Section
--- */
.chef-profile {
    display: flex;
    align-items: center;
    gap: 60px;
}

.chef-image {
    flex: 1 0 40%;
    max-width: 40%;
}

.chef-image img {
    border-radius: 10px;
}

.chef-text {
    flex: 1 1 60%;
}

.chef-text h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}
.chef-text h3 span {
    font-size: 1.1rem;
    display: block;
    font-family: var(--font-english-serif);
    font-weight: 700;
    color: var(--color-text);
    margin-top: 5px;
}
.chef-text p {
    margin-top: 20px;
}
.chef-message {
    font-family: var(--font-handwriting);
    font-size: 1.8rem;
    line-height: 1.5;
    margin-top: 30px !important;
    color: var(--color-accent);
}


/* ---
Information Section
--- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.info-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

.info-details dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px 10px;
}

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

/* ---
Footer
--- */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-english-serif);
    font-weight: 700;
    font-size: 1.8rem;
}

.footer-sns a {
    color: var(--color-white);
    font-size: 1rem;
    border: 1px solid var(--color-white);
    padding: 8px 15px;
    border-radius: 20px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}


/* ---
Responsive Design (for Mobile)
--- */
@media (max-width: 768px) {
    .section-title { font-size: 2.8rem; }
    .section-subtitle { font-size: 1.5rem; }
    .content-section { padding: 80px 0; }
    .container { padding: 0 20px; }

    .global-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9998;
    }
    .global-nav[data-visible="true"] {
        transform: translateX(0);
    }
    .global-nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .global-nav a {
        font-size: 1.5rem;
        color: var(--color-text); /* モバイルメニュー展開時は常に濃い色に */
        text-shadow: none; /* モバイルメニュー展開時は影を消す */
    }
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 25px;
        right: 20px;
        z-index: 9999;
        background: transparent;
        border: 0;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }
    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-text);
        transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, background-color 0.4s ease;
    }
    /* スクロールしていない時でも、メニュー展開時はボタンの色を濃い色に */
    .mobile-nav-toggle[aria-expanded="true"]::before,
    .mobile-nav-toggle[aria-expanded="true"]::after {
        background: var(--color-text);
    }

    .mobile-nav-toggle::before { top: 0; }
    .mobile-nav-toggle::after { bottom: 0; }
    .mobile-nav-toggle[aria-expanded="true"]::before {
        top: 9px;
        transform: rotate(45deg);
    }
    .mobile-nav-toggle[aria-expanded="true"]::after {
        top: 9px;
        transform: rotate(-45deg);
    }

    .hero-catchphrase { font-size: 1.8rem; padding: 15px 25px; }
    
    .menu-category-title { font-size: 2.8rem; }
    .menu-grid { grid-template-columns: 1fr; }

    .chef-profile {
        flex-direction: column;
        gap: 30px;
    }
    .chef-image { max-width: 80%; }
    .chef-text { text-align: center; }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
