﻿/* ==============================
   共通設定（フォント・背景）
============================== */
body {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    margin: 0;
    background: url('../images/bg-wood.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 1em;
    max-width: 1000px;
    margin: auto;
}

/* ==============================
   ヘッダー
============================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    color: #4b3621;
    transition: background-color 0.3s ease;
    z-index: 1;
    position: relative;
}

    header:hover {
        background-color: rgba(0, 0, 0, 0.65);
    }

    header img {
        height: 60px;
        vertical-align: middle;
    }

@media (min-width: 768px) {
    header {
        padding: 1.5em 2em;
    }

        header img {
            height: 80px;
        }

    header {
        padding-top: 3em;
    }
}

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,
header:hover .language-switcher a {
    color: #f5f0e6;
}

nav a:hover,
nav a.active,
.language-switcher a:hover {
    border-bottom: 2px solid #f5f0e6;
}

@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;
    }
}

/* ==============================
   タイトル（ロゴ背景付き）
============================== */
.intro {
    text-align: center;
    margin-bottom: 2.5em;
}

    .intro h1 {
        font-size: 2.2em;
        color: #4b3621;
        border-bottom: 2px solid #4b3621;
        padding: 1em 2em;
        position: relative;
        display: inline-block;
        z-index: 1;
        margin-top: 0.1em;
    }

        .intro h1::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('../images/logo.png');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            opacity: 0.5;
            z-index: -1;
        }

/* ==============================
   歴史セクション
============================== */
.history-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2em;
    margin-bottom: 3em;
    background-color: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 1.5em;
}

    .history-block img {
        flex: 1 1 300px;
        max-width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    }

    .history-block .text {
        flex: 2 1 200px;
    }

    .history-block h2 {
        font-size: 1.5em;
        color: #4b3621;
        margin-bottom: 0.5em;
        border-bottom: 1px solid #888;
        padding-bottom: 0.3em;
    }

    .history-block p {
        font-size: 1.05em;
        line-height: 1.8;
        color: #4b3621;
    }

/* ==============================
   フッター
============================== */
.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;
}
/* ==============================
   スマホ向け調整
============================== */
@media (max-width: 768px) {
    .history-block {
        flex-direction: column;
        text-align: center;
    }

        .history-block .text {
            text-align: left;
        }

    main {
        padding: 1.5em 1em;
        margin: 1em;
        border-radius: 10px;
    }

    .intro h1 {
        font-size: 1.6em;
    }
}
