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

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

/* 店舗情報テーブル - 最小限のスタイルのみ */
.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: var(--color_bg_light, #f5f5f5);
    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;
           }
}
