/*
Theme Name: Astra Child - Square Market Hub
Description: Square Market Hub用の子テーマ
Template: astra
Version: 1.0.0
*/

/* 親テーマのスタイルを読み込み */
@import url("../astra/style.css");

/* ===== Square Market Hub カスタムスタイル ===== */

/* 全体的な調整 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー調整 */
.site-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

/* メイン要素の基本スタイル */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.btn-outline:hover {
    background: #4CAF50;
    color: white;
}

/* 開発中表示用のスタイル */
.dev-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
}

/* プレースホルダー用スタイル */
.placeholder-content {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 40px;
    text-align: center;
    color: #6c757d;
    margin: 20px 0;
}


/* =================================
   レイアウト幅の調整
   ================================= */

/* 生産者一覧・商品一覧ページの幅を広げる */
.archive.post-type-archive-producer .ast-container,
.archive.post-type-archive-product .ast-container {
    max-width: 1400px !important;
    /* デフォルトの1200pxから拡大 */
    width: 95% !important;
}

/* より広いレイアウトが必要な場合 */
@media (min-width: 1200px) {

    .archive.post-type-archive-producer .ast-container,
    .archive.post-type-archive-product .ast-container {
        max-width: 1600px !important;
        width: 90% !important;
    }
}

/* フルワイドレイアウトオプション（最大限活用） */
.full-width-layout .ast-container {
    max-width: none !important;
    width: 95% !important;
    padding: 0 2.5%;
}

/* グリッドレイアウトの調整 */
.producers-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px;
}

/* 大画面での最適化 */
@media (min-width: 1400px) {
    .producers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 25px;
    }
}

@media (min-width: 1600px) {
    .producers-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 30px;
    }
}

/* 商品グリッドも同様に調整 */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px;
}

@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 25px;
    }
}

/* フィルターセクションの幅調整 */
.producer-filters,
.product-filters {
    width: 100%;
    margin: 0 auto 30px auto;
}

/* ページヘッダーの調整 */
.page-header {
    width: 100%;
    margin: 0 auto 40px auto;
}




/* =====================================
   生産者詳細ページスタイル
===================================== */

/* 生産者コンテンツ全体 */
.producer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 生産者ヘッダー */
.producer-header {
    background: #f5f5f5;
    color: #2c3e50;
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.producer-header .producer-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.producer-header .producer-subtitle {
    font-size: 1.2em;
    margin: 0;
    color: #34495e;
    opacity: 0.9;
}

/* 生産者詳細レイアウト */
.producer-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* 左カラム：基本情報 */
.producer-info-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

/* アイキャッチ画像 */
.producer-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.producer-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 基本情報 */
.producer-basic-info h3,
.producer-links h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: #5a6c7d;
    text-align: right;
    word-break: break-word;
}

/* 関連リンク */
.producer-links {
    margin-top: 30px;
}

.link-item {
    display: block;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #667eea;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.link-item:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    text-decoration: none;
    color: white !important;
}

/* 右カラム：詳細説明 */
.producer-content-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 生産者紹介 */
.producer-description {
    margin-bottom: 40px;
}

.producer-description h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.description-content {
    line-height: 1.8;
    color: #495057;
    font-size: 1.05em;
}

.description-content p {
    margin-bottom: 1.5em;
}

/* 商品セクション（修正版） */
.producer-products-section {
    margin-top: 30px;
}

.producer-products-section .section-title {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

/* 関連商品グリッド（改善版） */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* プレースホルダー画像 */
.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #667eea;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 商品カテゴリバッジ */
.product-categories {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 10px;
    border: 1px solid #ffcc02;
}

/* 在庫状況 */
.product-stock {
    margin: 10px 0;
}

.stock-available {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-unavailable {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 商品アクション */
.product-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.view-product-btn,
.add-to-cart-btn {
    display: inline-block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.view-product-btn {
    background: #667eea;
    color: white;
}

.view-product-btn:hover {
    background: #5a6fd8;
    color: white;
    text-decoration: none;
}

.add-to-cart-btn {
    background: #28a745;
    color: white;
}

.add-to-cart-btn:hover {
    background: #218838;
}

/* 商品なしメッセージ（改善版） */
.no-products-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #dee2e6;
    margin-top: 20px;
}

.no-products-message h4 {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.no-products-message p {
    color: #6c757d;
    margin-bottom: 5px;
    font-style: italic;
}

.no-products-message .note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 旧スタイル（互換性維持） */
.producer-products h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.product-excerpt {
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.no-products {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 問い合わせフォームセクション */
.producer-contact-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h3 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.contact-header p {
    color: #6c757d;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .producer-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .producer-header .producer-title {
        font-size: 2em;
    }

    .producer-content {
        padding: 15px;
    }

    .producer-info-section,
    .producer-content-section {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .producer-header {
        padding: 30px 20px;
    }

    .producer-header .producer-title {
        font-size: 1.8em;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label,
    .info-value {
        text-align: left;
        min-width: auto;
    }

    .info-value {
        margin-top: 5px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .producer-content {
        padding: 10px;
    }

    .producer-info-section,
    .producer-content-section,
    .producer-contact-section {
        padding: 15px;
    }

    .producer-header .producer-title {
        font-size: 1.5em;
    }

    .product-image {
        height: 180px;
    }
}



/* =====================================
   問い合わせフォームセクション（修正版）
===================================== */

.producer-contact-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid #e1e8ed;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.contact-header p {
    color: #6c757d;
    font-size: 1.1em;
}

.contact-form-container {
    max-width: 800px;
    /* 幅を広げる */
    margin: 0 auto;
}

/* Contact Form 7 基本スタイル */
.wpcf7-form {
    margin: 0;
}

.wpcf7-form p {
    margin-bottom: 15px;
    /* 余白を狭める */
}

/* フォーム行スタイル */
.form-row {
    margin-bottom: 15px;
    /* 余白を狭める */
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    /* ラベルとインプットの余白を狭める */
    color: #2c3e50;
    font-size: 15px;
    /* フォントサイズを調整 */
}

/* フォーム要素の統一スタイル */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    /* 最大幅を制限 */
    padding: 15px !important;
    /* パディングを増やす */
    border: 2px solid #e1e8ed !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: white !important;
    line-height: 1.4 !important;
    min-height: 50px !important;
    /* 最小高さを指定 */
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* テキストエリアの高さ調整 */
.wpcf7-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
    padding: 15px !important;
}

/* セレクトボックスの改善 */
.wpcf7-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1.41 0L6 4.58L10.59 0L12 1.41L6 7.41L0 1.41z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px 8px !important;
    padding-right: 45px !important;
    cursor: pointer !important;
    height: 50px !important;
    /* 高さを明示的に指定 */
    line-height: 1.4 !important;
}

/* セレクトボックスのオプション */
.wpcf7-form select option {
    padding: 10px !important;
    line-height: 1.4 !important;
}

/* 送信ボタンエリア */
.form-submit {
    text-align: center;
    margin-top: 25px;
    /* 余白を調整 */
}

.wpcf7-form input[type="submit"],
.wpcf7-submit {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 15px 50px !important;
    /* パディングを増やす */
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-width: 150px !important;
    /* 最小幅を指定 */
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: #218838 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* Contact Form 7 メッセージスタイル */
.wpcf7-response-output {
    border: none !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    font-weight: bold !important;
}

.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

/* バリデーションエラーのフィールド */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* スピナー（送信中の表示） */
.wpcf7-spinner {
    margin-left: 10px !important;
}

/* フォームの全体的な見た目調整 */
.contact-form-container .wpcf7 {
    background: white;
    padding: 40px;
    /* パディングを増やす */
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* プレースホルダーのスタイル */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999 !important;
    font-size: 15px !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .producer-contact-section {
        padding: 20px;
        margin-top: 20px;
    }

    .contact-header h3 {
        font-size: 1.5em;
    }

    .contact-form-container {
        max-width: 100%;
    }

    .contact-form-container .wpcf7 {
        padding: 25px;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form select,
    .wpcf7-form textarea {
        font-size: 16px !important;
        /* iOSのズーム防止 */
        padding: 12px !important;
    }

    .wpcf7-submit {
        padding: 12px 40px !important;
        font-size: 15px !important;
    }
}



/* =================================
   生産者一覧ページ（archive-producer.php）
   ================================= */

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.page-title {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* フィルターセクション */
.producer-filters {
    margin-bottom: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-title {
    margin-bottom: 15px;
    color: #2c5530;
    font-size: 1.2rem;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-filter {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.category-filter:focus {
    outline: none;
    border-color: #4CAF50;
}

.filter-submit {
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.filter-submit:hover {
    background: #45a049;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 500;
    color: #666;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #e8f5e8;
    color: #2c5530;
    border-radius: 20px;
    font-size: 0.9rem;
}

.remove-filter {
    color: #666;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.remove-filter:hover {
    color: #ff4444;
}

/* 検索結果情報 */
.search-results-info {
    margin-bottom: 20px;
    text-align: center;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

/* 生産者グリッド */
.producers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.producer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.producer-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.producer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producer-card:hover .producer-card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.producer-card-content {
    padding: 20px;
}

.producer-card-title a {
    color: #2c5530;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.producer-card-title a:hover {
    color: #4CAF50;
}

.producer-meta {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.producer-location,
.producer-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.producer-products {
    margin: 12px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.producer-products strong {
    color: #2c5530;
}

.producer-certifications {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.certification-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    border: 1px solid #bbdefb;
}

.producer-excerpt {
    margin: 15px 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.producer-categories {
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.categories-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.category-tag {
    font-size: 0.8rem;
    padding: 3px 8px;
    background: #fff3e0;
    color: #f57c00;
    border-radius: 10px;
    border: 1px solid #ffcc02;
}

.producer-card-actions {
    margin-top: 20px;
    text-align: center;
}

.view-producer-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-producer-btn:hover {
    background: #45a049;
    color: white;
}

/* 結果なしメッセージ */
.no-producers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-results-message h3 {
    color: #666;
    margin-bottom: 15px;
}

.no-results-message p {
    color: #888;
    margin-bottom: 10px;
}

.reset-filter-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

.reset-filter-btn:hover {
    background: #45a049;
    color: white;
}

/* ページネーション */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: #4CAF50;
    color: white;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .producers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .producer-meta {
        flex-direction: column;
    }

    .producer-categories,
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .producer-filters {
        padding: 15px;
    }

    .producer-card-content {
        padding: 15px;
    }

    .page-header {
        padding: 30px 15px;
    }
}


/**************************************/
/* =====================================
   ホームページスタイル
===================================== */
/**************************************/

.homepage-container {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1em;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: translateY(-5px);
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-primary:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #28a745;
    border-color: #28a745;
}

.btn-secondary:hover {
    background: #28a745;
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-small:hover {
    background: #218838;
    border-color: #218838;
    text-decoration: none;
    color: white;
}

.btn-white {
    background: white;
    color: #667eea;
    border-color: white;
}

.btn-white:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #667eea;
}

/* セクション共通スタイル */
.features-section,
.featured-producers,
.featured-products {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: bold;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* 特徴セクション */
.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-item p {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 1em;
}

/* 注目の生産者セクション */
.featured-producers {
    background: #f8f9fa;
}

.producers-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.producer-showcase-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.producer-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.producer-showcase-image {
    height: 200px;
    overflow: hidden;
}

.producer-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producer-showcase-card:hover .producer-showcase-image img {
    transform: scale(1.05);
}

.producer-showcase-content {
    padding: 25px;
}

.producer-showcase-content h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.producer-showcase-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.producer-showcase-content h3 a:hover {
    color: #667eea;
}

.producer-products,
.producer-location {
    margin: 8px 0;
    color: #5a6c7d;
    font-size: 0.95em;
}

.producer-excerpt {
    color: #6c757d;
    line-height: 1.5;
    margin: 15px 0 20px 0;
    font-size: 0.95em;
}

/* 人気商品セクション */
.featured-products {
    background: white;
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-showcase-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-showcase-image {
    height: 180px;
    overflow: hidden;
}

.product-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-showcase-card:hover .product-showcase-image img {
    transform: scale(1.05);
}

.product-showcase-content {
    padding: 20px;
}

.product-showcase-content h4 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.product-showcase-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-showcase-content h4 a:hover {
    color: #667eea;
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 8px;
}

.product-producer {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .section-title {
        font-size: 2em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .producers-showcase {
        grid-template-columns: 1fr;
    }

    .products-showcase {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-section,
    .featured-producers,
    .featured-products,
    .cta-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .cta-content h2 {
        font-size: 2em;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .feature-item {
        padding: 30px 20px;
    }

    .producer-showcase-content,
    .product-showcase-content {
        padding: 20px;
    }

    .products-showcase {
        grid-template-columns: 1fr;
    }
}




/* =====================================
   お問い合わせページスタイル
===================================== */

.contact-page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-page-content h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
}

.contact-page-content>p {
    text-align: center;
    font-size: 1.1em;
    color: #5a6c7d;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.faq-section {
    margin: 50px 0;
}

.faq-section h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.faq-item {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.faq-item p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
}

.contact-info {
    background: #667eea;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.contact-info h3 {
    color: white;
    margin-bottom: 15px;
}

.contact-info p {
    line-height: 1.6;
    margin: 0;
}



/* =====================================
   商品一覧ページスタイル
===================================== */

/* 商品フィルターセクション */
.product-filters {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-filters .filter-form .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.product-filters .filter-buttons {
    display: flex;
    gap: 10px;
    align-items: end;
}

/* 商品グリッド */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* 商品カード */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 商品画像 */
.product-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* 商品情報 */
.product-info {
    padding: 20px;
}

.product-name {
    margin-bottom: 12px;
    font-size: 1.2em;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #667eea;
}

.product-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.product-producer {
    margin: 8px 0;
    color: #5a6c7d;
    font-size: 0.95em;
}

.product-producer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.product-producer a:hover {
    text-decoration: underline;
}

/* カテゴリタグ */
.product-categories {
    margin: 12px 0;
}

.category-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 6px;
    margin-bottom: 4px;
    font-weight: 500;
}

/* 商品アクション */
.product-actions {
    margin-top: 15px;
    text-align: center;
}

/* 商品が見つからない場合 */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 20px;
}

.no-products p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.no-products a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .product-filters .filter-form .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-filters .filter-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .filter-submit,
    .filter-reset {
        width: 100%;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* =======================================
   生産者と商品の関連付け機能用スタイル
   ======================================= */

/* Square連携バッジ */
.square-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #0073aa;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

/* 商品カードの改善 */
.producer-products-section .product-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.producer-products-section .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.producer-products-section .product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.producer-products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producer-products-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

.producer-products-section .product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.producer-products-section .placeholder-icon {
    font-size: 48px;
    opacity: 0.6;
}

.producer-products-section .product-info {
    padding: 15px;
}

.producer-products-section .product-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.producer-products-section .product-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.producer-products-section .product-title a:hover {
    color: #0073aa;
}

.producer-products-section .product-price {
    font-size: 18px;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 8px;
}

.producer-products-section .product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.producer-products-section .product-meta {
    margin-bottom: 10px;
    min-height: 16px;
}

.producer-products-section .square-sync-info {
    color: #0073aa;
    font-size: 12px;
    font-weight: bold;
    background: #f0f8ff;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.producer-products-section .product-actions {
    margin-top: 12px;
}

.producer-products-section .view-product-btn {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.producer-products-section .view-product-btn:hover {
    background: #005177;
    color: white;
    transform: translateY(-1px);
}

/* 商品数表示 */
.producer-products-section .products-count-info {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 1px solid #0073aa;
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.producer-products-section .products-count-info p {
    margin: 0;
    color: #0073aa;
    font-weight: 600;
}

/* 商品グリッド */
.producer-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 全商品表示リンク */
.producer-products-section .view-all-products {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.producer-products-section .view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2c5282 0%, #2a4d7c 100%);
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(44, 82, 130, 0.2);
}

.producer-products-section .view-all-btn:hover {
    background: linear-gradient(135deg, #2a4d7c 0%, #1e3a5f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(44, 82, 130, 0.3);
}

/* 商品なしメッセージの改善 */
.producer-products-section .no-products-message {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.producer-products-section .message-content h4 {
    color: #666;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.producer-products-section .admin-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    margin: 20px auto;
    border-radius: 6px;
    max-width: 400px;
}

.producer-products-section .admin-note {
    color: #856404;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.producer-products-section .admin-note a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.producer-products-section .admin-note a:hover {
    text-decoration: underline;
}

.producer-products-section .note {
    color: #888;
    font-style: italic;
    margin-top: 15px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .producer-products-section .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .producer-products-section .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .producer-products-section .product-image {
        height: 150px;
    }

    .producer-products-section .view-all-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .producer-products-section .products-count-info {
        padding: 10px 15px;
    }

    .producer-products-section .no-products-message {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .producer-products-section .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .producer-products-section .product-info {
        padding: 12px;
    }

    .producer-products-section .view-all-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .producer-products-section .product-card {
        background: #2d3748;
        border-color: #4a5568;
    }

    .producer-products-section .product-title a {
        color: #e2e8f0;
    }

    .producer-products-section .product-description {
        color: #a0aec0;
    }

    .producer-products-section .no-products-message {
        background: #2d3748;
        border-color: #4a5568;
    }

    .producer-products-section .message-content h4 {
        color: #a0aec0;
    }
}


/* =======================================
   生産者マップページのスタイル
   ======================================= */

.producer-map-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.map-title {
    text-align: center;
    color: #2c5282;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.map-description {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.6;
}

.map-filters {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#producer-map {
    width: 100%;
    height: 600px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-legend {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.map-legend h3 {
    margin: 0 0 15px 0;
    color: #2c5282;
}

.legend-items {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.marker-red {
    color: #e74c3c;
    font-size: 16px;
}

.marker-blue {
    color: #3498db;
    font-size: 16px;
}

.marker-green {
    color: #2ecc71;
    font-size: 16px;
}

.marker-orange {
    color: #f39c12;
    font-size: 16px;
}

#producer-info-panel {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Google Maps ポップアップスタイル */
.gm-style-iw-content {
    padding: 15px !important;
}

.producer-marker-popup {
    max-width: 320px;
}

.producer-marker-popup .producer-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.producer-marker-popup img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.producer-marker-popup .producer-details h4 {
    margin: 0 0 8px 0;
    color: #2c5282;
    font-size: 16px;
    font-weight: 600;
}

.producer-marker-popup .producer-details p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.producer-stats {
    display: flex;
    gap: 6px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.producer-stats .stat {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.producer-marker-popup .button {
    background: #2c5282 !important;
    color: white !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    display: inline-block !important;
    margin-top: 8px !important;
}

.producer-marker-popup .button:hover {
    background: #1a365d !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .producer-map-page {
        padding: 20px 10px;
    }

    .map-title {
        font-size: 2em;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-controls label {
        justify-content: space-between;
    }

    #producer-map {
        height: 400px;
    }

    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
}


/* =======================================
   背景色を白に統一
   ======================================= */

/* サイト全体の背景色を白に */
body {
    background-color: #ffffff !important;
}

/* メインコンテンツエリアの背景色 */
#primary,
.ast-container,
.site-content,
.entry-content {
    background-color: #ffffff !important;
}

/* ヘッダーエリア */
.site-header {
    background-color: #ffffff !important;
}

/* フッターエリア */
.site-footer {
    background-color: #ffffff !important;
}

/* Astraテーマ特有の背景色をリセット */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .comment-respond {
    background-color: #ffffff !important;
}

/* サイドバーの背景色 */
.widget-area,
.secondary {
    background-color: #ffffff !important;
}

/* 個別記事・ページの背景色 */
.ast-single-post .site-content,
.ast-page-builder-template .site-content,
.single .site-content,
.page .site-content {
    background-color: #ffffff !important;
}

/* WooCommerce商品ページの背景色 */
.woocommerce .site-content,
.woocommerce-page .site-content {
    background-color: #ffffff !important;
}

/* 生産者ページの背景色 */
.single-producer .site-content,
.archive-producer .site-content {
    background-color: #ffffff !important;
}

/* コンテンツコンテナ */
.ast-container {
    background-color: transparent !important;
}

/* 記事一覧の背景色 */
.blog .site-content,
.archive .site-content,
.search .site-content {
    background-color: #ffffff !important;
}

/* Astraのカスタマイザー設定を上書き */
.ast-separate-container .ast-article-inner {
    background-color: #ffffff !important;
}

/* ページビルダー対応 */
.elementor-page .site-content,
.fl-builder .site-content {
    background-color: #ffffff !important;
}

/* コメントエリア */
.ast-comment-list,
.comment-respond {
    background-color: #ffffff !important;
}

/* 404ページ */
.error404 .site-content {
    background-color: #ffffff !important;
}

/* 検索結果ページ */
.search-results .site-content {
    background-color: #ffffff !important;
}