﻿/* ==============================
   全体設定
============================== */
body {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    margin: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('../images/bg-wood.jpg') no-repeat center center fixed;
    background-size: cover;
}

main {
    flex: 1;
}

/* ==============================
   ヘッダー
============================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    color: #4b3621;
    transition: background-color 0.3s ease;
    z-index: 1;
}

    header:hover {
        background-color: rgba(0, 0, 0, 0.65);
    }

/* PC向けのヘッダー調整 */
@media (min-width: 768px) {
    header {
        padding: 1.5em 2em;
    }
}

/* ロゴ画像 */
header img {
    height: 60px;
    vertical-align: middle;
}

@media (min-width: 768px) {
    header img {
        height: 80px;
    }
}

/* ナビゲーション */
nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
}

nav a{
    text-decoration: none;
    color: #4b3621;
    font-weight: bold;
    transition: color 0.3s ease;
}

header:hover nav a {
    color: #f5f0e6;
}


/* 言語切り替えリンク（常時右上固定） */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    font-size: 14px;
    padding: 0.3em 0.7em;
    border-radius: 5px;
}

    .language-switcher a {
        margin: 0 4px;
        text-decoration: none;
        color: #4b3621;
        font-weight: bold;
    }

header:hover .language-switcher{
    color: #f5f0e6;
}

header:hover .language-switcher a{
    color: #f5f0e6;
}

nav a:hover,
nav a.active,
.language-switcher a:hover {
    border-bottom: 2px solid #f5f0e6;
}

/* PC時にnavとの間隔を確保 */
@media screen and (min-width: 769px) {
    header {
        padding-top: 3em; /* 上に余白を追加してnavと重ならないように */
        position: relative;
    }
}

/* スマホでも言語切替が右上に表示されるように */
@media screen and (max-width: 768px) {
    .language-switcher {
        font-size: 13px;
        right: 0.5rem;
        top: 0.5rem;
        padding: 0.3em 0.5em;
    }

    header {
        padding-top: 3em; /* 上余白でnavとずらす */
    }
}


/* ==============================
   タイトル・タブ
============================== */
.page-title {
    text-align: center;
    font-size: 2em;
    margin: 1em 0;
    color: #4b3621;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5em; /* スマホでは少し狭める */
    margin: 2em 0 1em;
    flex-wrap: nowrap; /* 改行を禁止 */
    overflow-x: auto; /* 横スクロール対応（万が一はみ出す場合） */
}

    .tabs button {
        font-family: 'Yu Mincho', serif;
        font-size: 1em;
        font-weight: bold;
        color: #4b3621;
        background: #f5f0e6;
        border: 2px solid #4b3621;
        border-radius: 0.3em;
        cursor: pointer;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
        transition: background 0.3s, color 0.3s;
        white-space: nowrap; /* 改行させない */
        flex: 0 0 auto; /* ボタンの縮小を防ぐ */
        padding: 0.5em 1em; /* スマホ用に少し狭めてもOK */
    }

        .tabs button:hover {
            background: #e0d6c1;
        }

        .tabs button.active {
            background: #4b3621;
            color: white;
        }

/* ==============================
   メニューセクション
============================== */
.menu-section {
    display: none;
    padding: 2em 1em;
    margin: 1em;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    max-width: 1000px;
}

    .menu-section.active {
        display: block;
    }

@media (min-width: 768px) {
    .menu-section {
        margin: 2em auto;
        padding: 2.5em 3em;
    }
}

/* スマホ用調整 */
@media (max-width: 600px) {
    .tabs {
        gap: 0.3em; /* 余白をさらに詰める */
    }

        .tabs button {
            font-size: 0.85em; /* 文字を少し小さく */
            padding: 0.4em 0.8em; /* パディングも狭める */
            white-space: nowrap; /* 改行させない */
        }
}

.menu-section h2 {
    font-size: 1em;
    color: #4b3621;
    border-bottom: 2px solid #4b3621;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

.subsection {
    margin-top: 2em;
}

    .subsection h3 {
        font-size: 1.3em;
        color: #4b3621;
        margin-bottom: 0.5em;
        padding-bottom: 0.3em;
    }

/* ==============================
   メニュー項目
============================== */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .menu-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 8px;
        background-color: #f9f9f9;
    }

    .menu-item.no-image {
        justify-content: center;
    }

        .menu-item.no-image .menu-text {
            text-align: center;
        }

.menu-text {
    flex-grow: 1;
}

    .menu-text h3 {
        margin: 0 0 0.2em;
        font-size: 1.1em;
        color: #333;
    }

    .menu-text p {
        margin: 0;
        color: #d2691e;
        font-weight: bold;
    }

/* ==============================
   画像モーダル
============================== */
#image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

    #image-modal.hidden {
        display: none;
    }

.modal-content {
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

    .modal-content img {
        display: block;
        max-width: 100%;
        max-height: 90vh;
        height: auto;
        margin: auto;
    }

.modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    line-height: 28px;
    text-align: center;
    background: #fff;
    border: 2px solid #aaa;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ==============================
   フッター
============================== */
.site-footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 2rem 1rem;
    font-family: 'Noto Serif JP', serif;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-info p,
.footer-links a {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #ddd;
}

    .footer-info a:hover,
    .footer-links a:hover {
        text-decoration: underline;
        color: #fff;
    }

.footer-links {
    margin: 1rem 0;
}

.shop-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: 0.1em;
}