/*
 * shop-detail.css
 * 店舗詳細ページ専用スタイルシート
 * single-shop.php と合わせて使用してください
 *
 * カラートークン（event-detail.cssと統一）
 * --color-primary      : #8b4513  ブラウン
 * --color-primary-dark : #5c3317  ダークブラウン
 * --color-accent       : #d4a373  キャメル
 * --color-bg-warm      : #f9f3ed  暖かみのある背景
 * --color-bg-section   : #f8f9fa  セクション背景
 * --color-border       : #e0d5c9  ボーダー
 * --color-text         : #2c3e50  本文テキスト
 * --color-text-muted   : #6c757d  補足テキスト
 */

/* ===================================
   0. CSS カスタムプロパティ
   =================================== */
.shop-detail {
    --color-primary:      #8b4513;
    --color-primary-dark: #5c3317;
    --color-accent:       #d4a373;
    --color-bg-warm:      #f9f3ed;
    --color-bg-section:   #f8f9fa;
    --color-border:       #e0d5c9;
    --color-text:         #2c3e50;
    --color-text-muted:   #6c757d;
    --radius-card:        10px;
    --shadow-card:        0 2px 10px rgba(0, 0, 0, 0.07);
    --transition-base:    all 0.25s ease;
}


/* ===================================
   1. ヘッダー・ヒーローエリア
   =================================== */
.shop-header {
    position: relative;
    margin-bottom: 3rem;
}

/* アイキャッチ画像 */
.shop-hero-image {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.shop-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 画像の上に重ねるグラデーションオーバーレイ */
.shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(44, 28, 14, 0.65) 100%
    );
}

/* ヘッダーテキストエリア */
.shop-header-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem 0;
}

/* アイキャッチ画像がある場合：テキストをオーバーレイ上に重ねる */
.shop-hero-image + .shop-header-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
}

/* アイキャッチ画像がある場合のテキスト色 */
.shop-hero-image ~ .shop-header-inner .shop-badges .shop-badge {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.shop-hero-image ~ .shop-header-inner .shop-name {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.shop-hero-image ~ .shop-header-inner .shop-header-address {
    color: rgba(255, 255, 255, 0.85);
}


/* ===================================
   2. 業態バッジ
   =================================== */
.shop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.shop-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 20px;
    border: 2px solid transparent;
}

/* 洋菓子：ブラウン */
.business-type-yogashi {
    background: #fff0e6;
    color: #8b4513;
    border-color: #d4a373;
}

/* 和菓子：深緑 */
.business-type-wagashi {
    background: #f0f5ed;
    color: #4a7c59;
    border-color: #88b09a;
}

/* パン：ゴールデン */
.business-type-pan {
    background: #fffbe6;
    color: #7a6000;
    border-color: #c9a227;
}

/* カフェ：テラコッタ */
.business-type-cafe {
    background: #fdf0ee;
    color: #9e3a26;
    border-color: #cc7060;
}

/* フォールバック */
.business-type-default {
    background: #f0f0f0;
    color: #555;
    border-color: #ccc;
}


/* ===================================
   3. 店舗名・住所（ヘッダー）
   =================================== */
.shop-name {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.shop-header-address {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}


/* ===================================
   3.5. パンくずリスト
   =================================== */
.shop-breadcrumb {
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
}

/* 独自実装（フォールバック）のスタイル */
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--color-border);
    font-size: 0.9rem;
    user-select: none;
}

.breadcrumb-current {
    color: var(--color-text-muted);
    font-weight: 600;
    /* 長い店舗名は省略 */
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cocoonのパンくずが出力される場合の上書き調整 */
.shop-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}


/* ===================================
   4. メインコンテンツグリッド
   =================================== */
.shop-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* 2カラムグリッド：左（説明）＋ 右（情報ボックス） */
.shop-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}


/* ===================================
   5. セクション共通スタイル
   =================================== */
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--color-primary);
}


/* ===================================
   6. シェフ・店主紹介カード
   =================================== */
.shop-chef-section {
    margin-bottom: 2.5rem;
}

.chef-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--color-bg-warm);
    border-radius: var(--radius-card);
    padding: 1.5rem;
}

/* 写真 */
.chef-photo-wrap {
    flex-shrink: 0;
}

.chef-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    display: block;
}

/* テキスト */
.chef-text {
    flex: 1;
}

.chef-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 0.5rem;
    letter-spacing: 0.03em;
}

.chef-comment {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    quotes: none;
}

/* Cocoonテーマのデフォルトスタイル打ち消し */
.chef-comment::before,
.chef-comment::after {
    content: none !important;
    display: none !important;
}


/* ===================================
   7. 店舗の特徴（wysiwyg出力）
   =================================== */
.shop-features-section {
    margin-bottom: 2.5rem;
}

/* wysiwyg 出力の内部タグにスタイルをリセット */
.shop-features-body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--color-text);
}

.shop-features-body h2,
.shop-features-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 1.5rem 0 0.5rem;
}

.shop-features-body p {
    margin-bottom: 1rem;
}

.shop-features-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.shop-features-body ul,
.shop-features-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.shop-features-body li {
    margin-bottom: 0.4rem;
}


/* ===================================
   8. NSB参加商品・プロジェクト
   =================================== */
.shop-nsb-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 100%);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.nsb-lead {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
}

.nsb-products-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nsb-product-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    transition: var(--transition-base);
}

.nsb-product-item:hover {
    background: var(--color-bg-warm);
    border-color: var(--color-primary);
}

.nsb-product-icon {
    font-size: 0.85rem;
}

.nsb-back-link {
    margin: 0;
    font-size: 0.85rem;
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.link-arrow::after {
    content: " →";
}

.link-arrow:hover {
    text-decoration: underline;
}


/* ===================================
   9. 基本情報ボックス（右カラム）
   =================================== */
.shop-info-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 80px; /* テーマのヘッダー高さに合わせて調整 */
}

.info-box-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

/* 情報リスト（dl要素） */
.shop-info-list {
    margin: 0;
    padding: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.5rem 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: start;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.4;
    padding-top: 0.1rem;
}

.info-icon {
    font-size: 0.9rem;
}

.info-value {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* 電話リンク */
.tel-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.tel-link:hover {
    text-decoration: underline;
}

/* 駐車場ステータス */
.parking-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.parking-status {
    font-weight: 600;
}

.parking-あり {
    color: #2e7d32;
}

.parking-なし {
    color: #c62828;
}

.parking-近隣にあり {
    color: #e65100;
}

.parking-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}


/* 公式ウェブサイトボタン */
.info-website {
    margin-top: 1.25rem;
}

.btn-website {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition-base);
    text-align: center;
}

.btn-website:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.btn-external-icon {
    font-style: normal;
    font-size: 1rem;
}


/* SNSリンク */
.info-sns {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.info-sns-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sns-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sns-link {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
    border: 1.5px solid transparent;
}

/* SNS別カラー */
.sns-instagram {
    background: #fde2f3;
    color: #c2185b;
    border-color: #f06292;
}
.sns-instagram:hover {
    background: #c2185b;
    color: #ffffff;
}

.sns-facebook {
    background: #e8f0fe;
    color: #1565c0;
    border-color: #64b5f6;
}
.sns-facebook:hover {
    background: #1565c0;
    color: #ffffff;
}

.sns-x {
    background: #f0f0f0;
    color: #111;
    border-color: #999;
}
.sns-x:hover {
    background: #111;
    color: #ffffff;
}

.sns-youtube {
    background: #fdecea;
    color: #c62828;
    border-color: #ef9a9a;
}
.sns-youtube:hover {
    background: #c62828;
    color: #ffffff;
}

.sns-tiktok {
    background: #e8fdf8;
    color: #00695c;
    border-color: #4db6ac;
}
.sns-tiktok:hover {
    background: #00695c;
    color: #ffffff;
}


/* ===================================
   10. 店舗ギャラリー
   =================================== */
.shop-gallery-section {
    margin-bottom: 3rem;
}

.shop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* 最初の1枚を大きく表示 */
.shop-gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    aspect-ratio: 4 / 3;
    margin: 0;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: #ffffff;
    font-size: 0.8rem;
    line-height: 1.4;
}


/* ===================================
   11. 地図・アクセスセクション
   =================================== */
.shop-map-section {
    margin-bottom: 3rem;
}

.shop-map-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.map-info-panel {
    background: var(--color-bg-warm);
    border-radius: var(--radius-card);
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
}

.map-info-panel p {
    margin: 0 0 0.75rem;
}

.map-info-panel p:last-child {
    margin-bottom: 0;
}

.shop-map-embed {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* iframeのwidth/heightを上書きしてレスポンシブに */
.shop-map-embed iframe {
    display: block;
    width: 100% !important;
    height: 380px !important;
    border: 0;
}


/* ===================================
   12. ページ下部CTA
   =================================== */
.shop-back-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #8b4513 0%, #d4a373 100%);
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

.back-cta-text {
    width: 100%;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.btn-back-to-list,
.btn-to-events {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
}

.btn-back-to-list {
    background: #ffffff;
    color: var(--color-primary);
}

.btn-back-to-list:hover {
    background: #fff8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--color-primary-dark);
}

.btn-to-events {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-to-events:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}


/* ===================================
   13. レスポンシブ対応
   =================================== */

/* タブレット（〜1024px） */
@media (max-width: 1024px) {

    .shop-main-grid {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

    .shop-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-gallery-grid .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .shop-map-inner {
        grid-template-columns: 1fr;
    }

    .map-info-panel {
        order: 2;
    }

    .shop-map-embed {
        order: 1;
    }
}

/* スマートフォン（〜768px） */
@media (max-width: 768px) {

    /* ヒーロー画像 */
    .shop-hero-image {
        height: 280px;
    }

    /* 店舗名 */
    .shop-name {
        font-size: 1.6rem;
    }

    /* 2カラム → 1カラム */
    .shop-main-grid {
        grid-template-columns: 1fr;
    }

    /* 情報ボックスはスクロール固定を解除 */
    .shop-info-box {
        position: static;
    }

    /* シェフカード：縦並び */
    .chef-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* ギャラリー：1カラム */
    .shop-gallery-grid {
        grid-template-columns: 1fr;
    }

    .shop-gallery-grid .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* CTA */
    .shop-back-cta {
        padding: 2rem 1.5rem;
    }

    .btn-back-to-list,
    .btn-to-events {
        width: 100%;
        text-align: center;
    }

    /* 情報リスト：縦並び */
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}