/**
 * 店舗表示ブロック - 共通スタイル（最小限）
 * 
 * 【編集ガイド】
 * 共通スタイルの変更: このファイル（store-common.css）のみ編集
 * フロントエンド専用: store-single.cssを編集
 * エディタ専用: editor.cssを編集
 * 
 * 【方針】
 * - SWELLの標準ブロックスタイルを完全に尊重
 * - 独自の幅制御、背景色、カードスタイルは一切追加しない
 * - 必要最小限のスタイルのみ定義
 */

/* 店舗表示コンテナ - SWELLの標準に完全に従う */
.barom-store-display {
    /* SWELLの標準ブロックスタイルに完全に任せる */
}

/* =============================================================================
   来店ポイントバッジ（旧: QR設置店バッジ）
   ============================================================================= */

/**
 * 来店ポイントバッジ - 共通スタイル
 * 画像バッジを使用（ptget_badge.webp）
 * 使用箇所: 店舗一覧サムネイル、店舗カード、店舗詳細ブロック
 * デザイン: 画像の左上に重なる形で配置
 */
.qr-installed-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 0 0 8px 0;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

/* 画像バッジ版 - 背景やパディングを無効化 */
/* widthをサムネイルコンテナに対する%で指定 */
.qr-installed-badge--image {
    top: 5px;
    left: 5px;
    width: 22%;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    clip-path: none;
}

/* アイコン部分（テキスト or 絵文字 or 画像） */
.qr-installed-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

/* 画像アイコン用（絵文字版フォールバック） */
.qr-installed-badge__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 画像バッジ版の画像サイズ - バッジ要素の100%を使用 */
.qr-installed-badge--image .qr-installed-badge__icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* 光彩 + ドロップシャドウで目立たせる */
    filter:
        drop-shadow(0 0 6px rgba(255, 215, 0, 0.7))
        drop-shadow(0 0 12px rgba(255, 215, 0, 0.4))
        drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

/* テキスト部分（オプション） */
.qr-installed-badge__text {
    font-size: inherit;
}

/* バッジ（アイコンのみ版） - 絵文字版のフォールバック用 */
.qr-installed-badge--icon-only {
    padding: 10px 12px;
}

/* SWELL投稿リスト内のバッジ配置 */
/* サムネイルコンテナをposition: relativeに（overflowはSWELLに任せる） */
.p-postList__thumb,
.c-postThumb,
.c-postThumb__figure {
    position: relative;
}

.p-postList__thumb .qr-installed-badge,
.c-postThumb .qr-installed-badge,
.c-postThumb__figure .qr-installed-badge {
    position: absolute;
}

/* 画像バッジ版の位置（リスト用） */
.p-postList__thumb .qr-installed-badge--image,
.c-postThumb .qr-installed-badge--image,
.c-postThumb__figure .qr-installed-badge--image {
    top: 5px;
    left: 5px;
}

/* 店舗カード内のバッジ配置 */
.card-image,
.store-card {
    position: relative;
}

.card-image .qr-installed-badge,
.store-card .qr-installed-badge {
    position: absolute;
}

/* 画像バッジ版の位置（カード用） */
.card-image .qr-installed-badge--image,
.store-card .qr-installed-badge--image {
    top: 5px;
    left: 5px;
}

/* 店舗詳細ブロック内のバッジ配置 */
.store-banner-image {
    position: relative;
}

.store-banner-image .qr-installed-badge {
    position: absolute;
}

/* 店舗詳細バナー用（記事内）- バナーは大きいので比率は小さめ */
.store-banner-image .qr-installed-badge--image {
    width: 18%;
}

/* 画像バッジの位置は .qr-installed-badge--image で指定（top: 5px, left: 5px） */

/* レスポンシブ - バッジ */
@media (max-width: 768px) {
    .qr-installed-badge {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .qr-installed-badge__icon {
        font-size: 1em;
    }

    .qr-installed-badge__icon img {
        width: 20px;
        height: 20px;
    }

    .qr-installed-badge--icon-only {
        padding: 8px 10px;
    }

    /* 画像バッジ版のモバイルサイズ - 余白を小さく */
    .qr-installed-badge--image {
        top: 3px;
        left: 3px;
        width: 22%;
        padding: 0;
    }

    .qr-installed-badge--image .qr-installed-badge__icon img {
        filter:
            drop-shadow(0 0 5px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 10px rgba(255, 215, 0, 0.5))
            drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
    }

    /* 記事内バナー用 - モバイルでは比率を大きく */
    .store-banner-image .qr-installed-badge--image {
        width: 22%;
    }
}

/* =============================================================================
   来店ポイントCTAセクション
   ============================================================================= */

.store-point-cta {
    margin: 0 0 1.5rem 0;
    padding: 1.5rem;
    background: url('../../../../assets/image/ptget_cta_bg.webp') center/cover no-repeat;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.store-point-cta__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.store-point-cta__badge {
    flex-shrink: 0;
}

.store-point-cta__badge img {
    width: 80px;
    height: auto;
    filter:
        drop-shadow(0 0 8px rgba(255, 215, 0, 0.8))
        drop-shadow(0 0 16px rgba(255, 215, 0, 0.5));
}

.store-point-cta__text {
    flex: 0 1 auto;
    text-align: center;
}

.store-point-cta__message {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.store-point-cta__message strong {
    color: #ffd700;
    font-weight: 700;
}

.store-point-cta__button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #1a1a1a !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    transition: all 0.2s ease;
}

.store-point-cta__button:hover {
    background: linear-gradient(135deg, #ffe44d 0%, #daa520 100%);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
    color: #1a1a1a !important;
    text-decoration: none;
}

.store-point-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.store-point-cta__link {
    font-size: 0.85rem;
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.store-point-cta__link:hover {
    color: #ffd700;
}

/* レスポンシブ - CTAセクション */
@media (max-width: 768px) {
    .store-point-cta {
        padding: 1.25rem;
    }

    .store-point-cta__content {
        flex-direction: column;
        text-align: center;
    }

    .store-point-cta__badge img {
        width: 70px;
    }

    .store-point-cta__message {
        font-size: 0.95rem;
    }

    .store-point-cta__actions {
        align-items: center;
    }

    .store-point-cta__button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

/* =============================================================================
   店舗情報テーブル
   ============================================================================= */

/* 店舗情報テーブル - 最小限のスタイルのみ */
.store-info-table {
    margin: 1.5rem 0;
    border: 1px solid var(--color_border, #ddd);
    overflow: hidden;
}

.store-info-row {
    display: flex;
    border-bottom: 1px solid var(--color_border, #ddd);
}

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

.store-info-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    min-width: 150px;
    background: #201525;
    border-right: 1px solid var(--color_border, #ddd);
    font-weight: 600;
    color: var(--color_text, #333);
}

.store-info-value {
    padding: 1rem;
    flex: 1;
}

.store-info-value a {
    color: var(--color_link, #0073aa);
    text-decoration: underline;
}

.store-info-value a:hover {
    color: var(--color_link_hover, #005a87);
}

/* マップ埋め込み */
.store-map-embed {
    margin-top: 1rem;
    width: 100%;
}

.store-map-embed iframe {
    width: 100% !important;
    height: 300px;
    border: none;
    border-radius: 4px;
    display: block;
}

/* ギャラリースライダー */
.store-gallery-slider {
}

.gallery-slider-container {
    position: relative;
    overflow: hidden;
}

.gallery-slide {
    display: none;
}

.gallery-slide.active {
    display: block;
}

.gallery-image-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05); /* 余白部分に薄いグレーの半透明背景 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* 画像全体を表示しつつ中央配置 */
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* クーポンセクション */
.store-section.-coupons {
    margin: 1.5rem 0;
    background: transparent;
    border-radius: 6px;
}

.store-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.875rem 0;
    color: var(--color_text, #333);
    font-size: 1rem;
    font-weight: 700;
}

/* レビューセクション */
.store-reviews-section {
    margin: 0.75rem 0;
}

.reviews-grid {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.review-card {
    background: transparent;
    border: 1px solid var(--color_border, #ddd);
    border-radius: 4px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}


.review-body {
    margin-top: 0;
}

.avatar-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: var(--color_bg_light, #f5f5f5);
    border: 1px solid var(--color_border, #ddd);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.review-author {
    font-weight: 600;
    color: var(--color_text, #333);
    font-size: 0.85rem;
    margin: 0;
}

.review-date {
    font-size: 0.75rem;
    color: var(--color_text_sub, #666);
    margin: 0;
}

.review-rating {
    margin: 0;
}

.star {
    font-size: 0.9rem;
    margin-right: 1px;
}

.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #ddd;
}

.review-body {
    color: var(--color_text, #333);
    line-height: 1.4;
    font-size: 0.85rem;
}

.review-body p {
    margin: 0 0 0.25rem 0;
}

.review-body p:last-child {
    margin-bottom: 0;
}

/* エクストラセクション */
.store-extra-section {
    margin: 1.5rem 0;
}

/* クーポンセクション */
.store-coupons-section {
    margin: 1.5rem 0;
}

.store-coupons-section .no-coupons {
    padding: 2rem;
    text-align: center;
    color: var(--color_text_sub, #666);
    background: var(--color_bg_light, #f9f9f9);
    border: 1px solid var(--color_border, #ddd);
    border-radius: 6px;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .store-info-row {
        flex-direction: column;
    }
    
    .store-info-label {
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid var(--color_border, #ddd);
    }
    
    /* モバイル時のギャラリースライダー余白調整 */
    .store-gallery-slider {
        margin: 1rem 0;
    }
    
    .gallery-prev,
    .gallery-next {
        padding: 8px;
        font-size: 14px;
    }
    
    .gallery-prev {
        left: 5px;
    }
    
    .gallery-next {
        right: 5px;
    }
    
        /* モバイル時のレビューカード調整 */
        .review-card {
            padding: 0.4rem;
            gap: 0.4rem;
        }
        
        .review-header {
            gap: 0.3rem;
        }
           
           .avatar-icon {
               width: 28px;
               height: 28px;
               font-size: 14px;
           }
           
           .review-author {
               font-size: 0.8rem;
           }
           
           .review-date {
               font-size: 0.7rem;
           }
           
           .star {
               font-size: 0.8rem;
           }
}
