/* ========================================
   基本設定
======================================== */
:root {
    --primary-color: #3d2817;
    --secondary-color: #6b4423;
    --accent-color: #8b6f47;
    --background-light: #f5f1ed;
    --background-dark: #2a1810;
    --text-dark: #2a1810;
    --text-light: #f5f1ed;
    --border-color: #d4c4b0;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   コンテナ
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
======================================== */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo p {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* ナビゲーション */
nav {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: var(--secondary-color);
}

/* ========================================
   ヒーロースライダー
======================================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: var(--background-dark);
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* スライダーボタン */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* スライダードット */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--text-light);
}

/* ========================================
   セクション共通
======================================== */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ========================================
   最新情報
======================================== */
.latest-news {
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-date {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-card p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ========================================
   商品プレビュー
======================================== */
.products-preview {
    background-color: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-dark);
}

/* ========================================
   よびたて珈琲セクション
======================================== */
.yobitate-section {
    background-color: white;
}

.yobitate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.yobitate-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.yobitate-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 8px;
}

/* ========================================
   Instagram フィード
======================================== */
.instagram-feed {
    background-color: var(--background-light);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.instagram-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

/* ========================================
   ボタン
======================================== */
.btn-primary,
.btn-link {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--accent-color);
    padding: 0;
}

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

/* ========================================
   ページヘッダー
======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========================================
   商品詳細ページ
======================================== */
.products-detail {
    background-color: white;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.product-detail-card.reverse {
    direction: rtl;
}

.product-detail-card.reverse > * {
    direction: ltr;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 8px;
}

.product-detail-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: left;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-info {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.product-info p {
    margin-bottom: 0.5rem;
}

/* 商品ノート */
.products-note {
    background-color: var(--background-light);
}

.note-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 2;
}

/* ========================================
   よびたて珈琲ページ
======================================== */
.yobitate-intro {
    background-color: white;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.intro-content .highlight {
    text-align: center;
    font-size: 1.3rem;
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: 8px;
}

/* フローステップ */
.yobitate-flow {
    background-color: var(--background-light);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.flow-step {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.flow-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.flow-note {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--secondary-color);
}

/* 詳細グリッド */
.yobitate-details {
    background-color: white;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 8px;
}

.detail-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-item ul {
    list-style: none;
}

.detail-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.detail-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 奉納セクション */
.yobitate-offerings {
    background-color: var(--background-light);
    text-align: center;
    padding: 6rem 0;
    color: var(--text-light);
    position: relative;
}

.yobitate-offerings h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.yobitate-offerings .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.95;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* PDFダウンロード */
.pdf-download {
    background-color: white;
    text-align: center;
}

.pdf-download p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ========================================
   お知らせページ
======================================== */
.news-list {
    background-color: white;
}

.news-detail-card {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 1rem;
}

.news-category.marche {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.news-category.roast {
    background-color: #fff3e0;
    color: #e65100;
}

.news-category.voice {
    background-color: #e3f2fd;
    color: #1565c0;
}

.news-category.info {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

.news-detail-card h2 {
    font-size: 2rem;
    margin: 1rem 0;
    text-align: left;
}

.news-content {
    margin-top: 2rem;
}

.news-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.event-info,
.roast-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.event-info h3,
.roast-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-info ul,
.roast-info ul {
    list-style: none;
}

.event-info li,
.roast-info li {
    padding: 0.5rem 0;
}

/* お客様の声 */
.customer-voice {
    background-color: white;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
    font-style: italic;
}

.thanks-note {
    text-align: center;
    margin-top: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* 連絡先ボックス */
.contact-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ========================================
   CTAセクション
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--background-light);
}

.contact-info {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* ========================================
   フッター
======================================== */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p,
.footer-contact p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    /* ナビゲーション */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        width: 250px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    /* スライダー */
    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }

    /* セクション */
    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* グリッド */
    .yobitate-content,
    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-card.reverse {
        direction: ltr;
    }

    /* フッター */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}
