/* 基本設定 */
:root {
    --main-color: #1a1a1a; /* 基調の黒 */
    --background-color: #ffffff; /* 基調の白 */
    --light-gray: #f7f7f7;
    --accent-color: #bfa86b; /* アクセントの金色 */
    --text-color: #333333;
    --font-family-base: 'Noto Sans JP', sans-serif;
    --font-family-title: 'Shippori Mincho', serif;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    line-height: 1.8;
}

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

/* ヘッダー */
.header {
    background-color: var(--background-color);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo {
    font-family: var(--font-family-title);
    font-size: 24px;
    margin: 0;
    color: var(--main-color);
    z-index: 1001; /* メニューより手前に表示 */
}
.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}
.header-nav li {
    margin-left: 30px;
}
.header-nav a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: bold;
    white-space: nowrap;
}
.nav-button {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s;
}
.nav-button:hover {
    background-color: var(--main-color);
    color: var(--background-color);
}

/* ハンバーガーボタンはPCでは非表示 */
.hamburger-button {
    display: none;
}


/* (省略) メインビジュアル以下のPCスタイルは変更なし */
.hero { background-image: url('images/Ine.jpg'); background-size: cover; background-position: center; color: var(--background-color); text-align: center; padding: 150px 20px; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-text h2 { font-family: var(--font-family-title); font-size: 48px; margin: 0 0 20px 0; animation: fadeIn 1.5s ease-out forwards; }
.hero-text p { font-size: 18px; margin: 0; animation: fadeIn 1.2s ease-out 1.5s forwards; opacity: 0; }
.content-section { padding: 80px 0; }
.section-title { font-family: var(--font-family-title); font-size: 36px; text-align: center; margin-top: 0; margin-bottom: 60px; }
.bg-light { background-color: var(--light-gray); }
.bg-dark { background-color: var(--main-color); color: var(--background-color); }
.text-white { color: var(--background-color); }
.text-center { text-align: center; margin-top: 40px; }
.intro-content { display: flex; justify-content: center; align-items: flex-start; gap: 60px; }
.intro-image { flex-shrink: 0; }
.intro-image img { max-width: 300px; border-radius: 50%; }
.intro-text { writing-mode: vertical-rl; height: 400px; padding-right: 20px; }
.intro-text h4, .intro-text p, .intro-text .btn { opacity: 0; transform: translateY(-20px); transition: opacity 1.2s ease, transform 1.2s ease; }
.intro-text.is-visible h4 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.intro-text.is-visible p { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.intro-text.is-visible .btn { opacity: 1; transform: translateY(0); transition-delay: 1.5s; }
.intro-text h4 { font-size: 24px; font-family: var(--font-family-title); margin: 0 0 0 20px; }
.intro-text p { margin-right: 1em; }
.awards-list { display: flex; justify-content: center; gap: 40px; text-align: center; }
.award-item { border: 2px solid var(--accent-color); padding: 20px 40px; }
.award-year { font-size: 16px; margin: 0; }
.award-name { font-size: 24px; font-weight: bold; margin: 10px 0; }
.award-prize { font-size: 18px; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-item { text-align: center; }
.product-item img { width: 100%; height: auto; margin-bottom: 15px; aspect-ratio: 4 / 3; object-fit: cover; }
.product-item h4 { font-family: var(--font-family-title); font-size: 22px; margin: 0 0 10px 0; }
.blog-list { max-width: 800px; margin: 0 auto; border-top: 1px solid #ddd; }
.blog-item { display: flex; padding: 20px 0; border-bottom: 1px solid #ddd; text-decoration: none; color: var(--text-color); transition: background-color 0.3s; }
.blog-item:hover { background-color: #fff; }
.blog-date { margin: 0; margin-right: 30px; }
.blog-title { margin: 0; font-weight: bold; }
.btn { display: inline-block; padding: 12px 30px; text-decoration: none; border: 2px solid var(--main-color); color: var(--main-color); font-weight: bold; border-radius: 5px; transition: all 0.3s; }
.btn:hover { background-color: var(--main-color); color: var(--background-color); }
.btn-primary { background-color: var(--main-color); color: var(--background-color); padding: 15px 50px; font-size: 18px; }
.btn-primary:hover { opacity: 0.8; }
.btn-outline { border-color: var(--background-color); color: var(--background-color); }
.btn-outline:hover { background-color: var(--background-color); color: var(--main-color); }
.footer { background-color: var(--main-color); color: var(--background-color); text-align: center; padding: 40px 20px; }
.footer p { margin: 5px 0; }
.page-hero { background-color: var(--light-gray); text-align: center; padding: 60px 20px; }
.page-hero h1 { font-family: var(--font-family-title); font-size: 38px; margin: 0 0 10px 0; }
.page-hero p { margin: 0; color: #999; font-size: 14px; letter-spacing: 2px; }
.header-logo a { text-decoration: none; color: var(--main-color); }
.about-section { padding: 80px 0; }
.about-section .container.narrow { max-width: 800px; }
.about-title { font-family: var(--font-family-title); text-align: center; font-size: 32px; margin-top: 0; margin-bottom: 40px; }
.about-section p { font-size: 16px; line-height: 2; margin-bottom: 2em; }
.crop-story { display: flex; gap: 30px; align-items: center; margin-bottom: 40px; }
.crop-story img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.crop-story h3 { font-family: var(--font-family-title); font-size: 22px; margin: 0 0 10px 0; }
.crop-story p { font-size: 15px; line-height: 1.8; margin-bottom: 0; }
.fade-in-target { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
.fade-in-target.is-visible { opacity: 1; transform: translateY(0); }


/* ==========================================================
   タブレット・スマートフォン用の設定 (画面幅が900px以下の場合)
========================================================== */
@media (max-width: 900px) {

    /* ▼▼▼ ハンバーガーメニュー関連のスタイル ▼▼▼ */
    .hamburger-button {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001; /* メニューより手前に */
    }
    .hamburger-button span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--main-color);
        transition: all 0.3s;
    }
    .hamburger-button span:nth-of-type(1) { top: 0; }
    .hamburger-button span:nth-of-type(2) { top: 11px; }
    .hamburger-button span:nth-of-type(3) { bottom: 0; }

    /* メニューオープン時のハンバーガーボタン（x印になる） */
    body.nav-open .hamburger-button span:nth-of-type(1) {
        top: 11px;
        transform: rotate(45deg);
    }
    body.nav-open .hamburger-button span:nth-of-type(2) {
        opacity: 0;
    }
    body.nav-open .hamburger-button span:nth-of-type(3) {
        top: 11px;
        transform: rotate(-45deg);
    }

    /* ナビゲーションメニュー本体のスタイル */
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none; /* 見えてないときはクリックできないように */
        transition: opacity 0.4s;
    }
    body.nav-open .header-nav {
        opacity: 1;
        pointer-events: auto; /* 見えているときはクリック可能に */
    }
    .header-nav ul {
        flex-direction: column; /* 縦並びに */
    }
    .header-nav li {
        margin: 0;
        padding: 20px 0;
    }
    .header-nav a {
        font-size: 18px;
    }
    .nav-button {
        border: none;
        padding: 0;
        background-color: transparent;
    }
    .nav-button:hover {
        color: var(--main-color);
        opacity: 0.7;
    }
    /* ▲▲▲ ここまでハンバーガーメニュー関連 ▲▲▲ */


    /* 以下、既存のスマホ用スタイルの調整 */
    .hero { padding: 100px 20px; }
    .hero-text h2 { font-size: 32px; }
    .hero-text p { font-size: 16px; }
    .content-section { padding: 60px 20px; }
    .section-title { font-size: 28px; margin-bottom: 40px; }
    .intro-content { flex-direction: column; align-items: center; gap: 30px; }
    .intro-image img { max-width: 250px; }
    .intro-text { writing-mode: horizontal-tb; height: auto; padding-right: 0; text-align: center; }
    .intro-text h4 { margin: 0 0 20px 0; }
    .intro-text p { text-align: left; }
    .awards-list { flex-direction: column; gap: 20px; }
    .product-grid { grid-template-columns: 1fr; gap: 40px; }
    .blog-item { flex-direction: column; gap: 5px; }
    .page-hero h1 { font-size: 30px; }
    .about-section { padding: 60px 20px; }
    .about-title { font-size: 26px; }
    .crop-story { flex-direction: column; text-align: center; }
    .crop-story img { width: 120px; height: 120px; margin-bottom: 10px; }
}

/* ===============================================
   オンライン直売所ページ (shop.html)
=============================================== */
.shop-grid {
    display: grid;
    /* PCでは4列表示 */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.shop-item {
    text-align: center;
    border: 1px solid #eee;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.shop-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.shop-item img {
    width: 100%;
    height: auto;
    /* ★画像を正方形にする設定 */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 20px;
}

.shop-item h4 {
    font-family: var(--font-family-title);
    font-size: 20px;
    margin: 0 0 10px 0;
}

.shop-item .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
    margin: 0 0 20px 0;
}

.shop-item .tax-note {
    font-size: 12px;
    font-weight: normal;
    color: #777;
}

/* 売り切れボタンのスタイル */
.btn.sold-out {
    background-color: #ccc;
    border-color: #ccc;
    color: #fff;
    pointer-events: none; /* クリックできないようにする */
}


/* ===============================================
   ショップページのレスポンシブ設定
=============================================== */

/* タブレット・スマホ(横)用 (900px以下) */
@media (max-width: 900px) {
    .shop-grid {
        /* 2列表示に変更 */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* スマホ(縦)用 (480px以下) */
@media (max-width: 480px) {
    .shop-item {
        padding: 15px;
    }
    .shop-item h4 {
        font-size: 18px;
    }
    .shop-item .price {
        font-size: 16px;
    }
}