/* /css/shop-display.css - 完全統合版（サイズ調整済み） */

/* ===========================
  Shop Display Common Styles - 完全統合版
  店舗表示共通スタイル
  =========================== */

/* ===========================
  共通変数定義 - サイズ調整
  =========================== */
  :root {
    --shop-card-radius: 10px;
    --shop-card-image-height: 180px;  /* カード画像の高さを固定 */
    --shop-card-image-width: 100%;    /* カード画像の幅 */
    --shop-list-image-size: 100px;    /* リスト画像のサイズを固定 */
    --shop-list-image-size-mobile: 60px; /* モバイル用リスト画像サイズ */
    --shop-shadow: 0 1px 4px rgba(0,0,0,0.08);
    --shop-shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
    --premium-gradient: linear-gradient(135deg, #FFD700, #FFA500);
}

/* ===========================
   カード表示（グリッド）- 基本スタイル
   =========================== */
.shop-card {
    background: white;
    border-radius: var(--shop-card-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    font-size: 0.9rem;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shop-shadow-hover);
}

.shop-card.premium {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--premium-gradient) border-box;
}

/* ===========================
   カード画像の完全固定
   =========================== */
.shop-image-container,
.shop-card-image {
    position: relative;
    width: 100%;
    height: var(--shop-card-image-height);
    overflow: hidden;
    background: #f5f5f5; /* 画像読み込み前の背景色 */
}

/* リンクタグの場合も同じサイズに */
.shop-card-image-link {
    display: block;
    width: 100%;
    height: var(--shop-card-image-height);
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.shop-image,
.shop-card-image img,
.shop-card-image-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* ホバー時のズーム効果 */
.shop-card:hover .shop-image,
.shop-card:hover .shop-card-image img,
.shop-card:hover .shop-card-image-link img {
    transform: scale(1.05);
}

/* コンテンツ部分 */
.shop-content,
.shop-card-content {
    padding: 1rem;
}

/* タグ部分 */
.shop-tags,
.shop-card-tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.shop-category,
.category-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #666;
}

.shop-city,
.location-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 0.7rem;
    color: #999;
}

/* タイトル */
.shop-name,
.shop-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.shop-name:hover,
.shop-card-title:hover {
    color: #667eea;
}

/* 宣言文 */
.shop-declaration,
.shop-card-declaration {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 統計情報 */
.shop-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.6rem;
    padding: 0.5rem 0;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: #666;
}

.stat-icon-card {
    font-size: 0.9rem;
}

.stat-value-card {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

/* アクションボタン */
.shop-actions/*,
.shop-card-actions*/ {
    display: flex;
    gap: 0.4rem;
    padding-top: 0;
    align-items: center; /* ボタンの高さを揃える */
}

.shop-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.5rem;
}

.shop-card-actions .favorite-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.shop-card-actions .detail-btn {
    flex: 1;
    height: 42px;
    padding: 0 1rem;
}

/* いいね・お気に入りボタンを正方形に */
.like-btn,
.favorite-btn {
    /* 正方形にするため width と height を同じに設定 */
    width: 40px;
    height: 40px;
    padding: 0;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    flex: 0 0 auto; /* flexで固定サイズに */
}

.action-btn,
.message-btn {
    flex: 1;
    padding: 0.4rem 0.3rem;
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.action-btn:hover,
.like-btn:hover:not(.liked),
.favorite-btn:hover:not(.favorited),
.message-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* いいねボタン */
.like-btn:hover:not(.liked) {
    background: #ffebee;
    border-color: #ffcdd2;
}

.like-btn.liked {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border-color: #ff6b6b;
    color: white;
}

/* お気に入りボタン */
.favorite-btn:hover:not(.favorited) {
    background: #fffbf0;
    border-color: #ffe082;
}

.favorite-btn.favorited {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: white;
}

/* カード表示でのアイコンのみ表示 */
.shop-card .like-btn span:not(.like-icon),
.shop-card .favorite-btn span:not(.favorite-icon) {
    display: none;
}

/* カード表示でのボタンサイズ調整 */
.shop-card .like-btn,
.shop-card .favorite-btn {
    width: 36px;
    height: 36px;
}

/* 詳細ボタン */
.detail-btn {
    flex: 1;
    height: 36px; /* like/favoriteボタンと同じ高さに */
    padding: 0 0.8rem;
    background: #667eea;
    color: white;
    border: 1.5px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.detail-btn:hover {
    background: #764ba2;
    border-color: #764ba2;
    transform: translateY(-2px);
}

.shop-card .detail-btn {
    flex: 1;
    padding: 0 0.8rem;
}

/* アイコン */
.like-icon,
.favorite-icon {
    font-size: 1.1rem;
}

/* プレミアムバッジ */
.premium-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--premium-gradient);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* 動画バッジ */
.has-video-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    z-index: 10;
}

/* ===========================
   リスト表示 - 基本スタイル
   =========================== */
.shop-list-item {
    background: white;
    border-radius: var(--shop-card-radius);
    padding: 0.75rem;
    display: flex;
    gap: 1rem;
    box-shadow: var(--shop-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.shop-list-item:hover {
    box-shadow: var(--shop-shadow-hover);
    transform: translateY(-2px);
}

.shop-list-item.premium {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--premium-gradient) border-box;
}

/* ===========================
   リスト画像の完全固定
   =========================== */
.shop-list-image {
    position: relative;
    width: var(--shop-list-image-size);
    height: var(--shop-list-image-size);
    min-width: var(--shop-list-image-size);
    max-width: var(--shop-list-image-size);
    min-height: var(--shop-list-image-size);
    max-height: var(--shop-list-image-size);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5; /* 画像読み込み前の背景色 */
}

/* リンクタグの場合も同じサイズに */
.shop-list-image-link {
    display: block;
    position: relative;
    width: var(--shop-list-image-size);
    height: var(--shop-list-image-size);
    min-width: var(--shop-list-image-size);
    max-width: var(--shop-list-image-size);
    min-height: var(--shop-list-image-size);
    max-height: var(--shop-list-image-size);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    text-decoration: none;
}

.shop-list-image img,
.shop-list-image-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}

.shop-list-image .premium-badge {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
}

.shop-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.shop-list-header > div:first-child {
    flex: 1;
}

.shop-list-tags {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.shop-list-tags .tags-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex: 0 1 auto;
    order: 1;
}

.shop-list-tags .shop-stats {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
    order: 2;
}

.shop-list-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.3rem;
}

.shop-list-item .shop-name {
    font-size: 1rem;
    margin-bottom: 0;
    flex: 1;
}

.shop-list-title-row .shop-list-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.shop-stats {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
    align-items: center;
}

.shop-stats .stat-item {
    font-size: 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.shop-address {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.4rem;
}

.shop-list-item .shop-declaration {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: #666;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* リスト表示のアクションボタン */
.shop-list-actions {
    display: flex;
    gap: 0.4rem;
}

.shop-list-actions .action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* リスト表示でのボタンサイズ調整 */
.shop-list-actions .like-btn,
.shop-list-actions .favorite-btn {
    width: 36px;
    height: 36px;
}

/* リスト表示の詳細ボタン */
.shop-list-actions .detail-btn {
    height: 36px;
    padding: 0 1.2rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shop-list-actions .detail-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===========================
   グリッド表示のコンテナ
   =========================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 1368px;
    margin: 0 auto;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 1368px;
    margin: 0 auto;
}

/* ===========================
   画像読み込みエラー時の対応
   =========================== */
.shop-card-image::before,
.shop-list-image::before {
    content: '🏪';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
    z-index: 0;
}

/* 画像が読み込まれたら非表示に */
.shop-card-image img:not([src=""]),
.shop-list-image img:not([src=""]) {
    z-index: 1;
}

/* ===========================
   プレビューデバイスモード対応（正確なサイズ指定）
   =========================== */
.preview-wrapper {
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
}

/* デスクトッププレビューモード */
.preview-wrapper.preview-desktop {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* デスクトッププレビューでのサイズ指定 */
.preview-wrapper.preview-desktop .shop-card {
    width: 373px;
    max-width: 373px;
}

.preview-wrapper.preview-desktop .shop-list-item {
    width: 960px;
    max-width: 960px;
}

/* デスクトッププレビューでの画像サイズ固定 */
.preview-wrapper.preview-desktop .shop-list-image,
.preview-wrapper.preview-desktop .shop-list-image-link {
    width: var(--shop-list-image-size);
    height: var(--shop-list-image-size);
    min-width: var(--shop-list-image-size);
    max-width: var(--shop-list-image-size);
    min-height: var(--shop-list-image-size);
    max-height: var(--shop-list-image-size);
}

/* モバイルプレビューモード */
.preview-wrapper.preview-mobile {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* モバイルプレビューでのサイズ指定 */
.preview-wrapper.preview-mobile .shop-card {
    width: 342px;
    max-width: 342px;
}

.preview-wrapper.preview-mobile .shop-list-item {
    width: 358px;
    max-width: 358px;
}

/* モバイルプレビュー内での表示調整 */
.preview-wrapper.preview-mobile .shop-list-item {
    padding: 0.6rem;
    gap: 0.6rem; /* 画像と文字の間隔を調整 */
}

/* モバイルプレビューでの画像サイズ固定 */
.preview-wrapper.preview-mobile .shop-list-image,
.preview-wrapper.preview-mobile .shop-list-image-link {
    width: var(--shop-list-image-size-mobile);
    height: var(--shop-list-image-size-mobile);
    min-width: var(--shop-list-image-size-mobile);
    max-width: var(--shop-list-image-size-mobile);
    min-height: var(--shop-list-image-size-mobile);
    max-height: var(--shop-list-image-size-mobile);
}

.preview-wrapper.preview-mobile .shop-list-tags {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.preview-wrapper.preview-mobile .shop-list-tags .tags-group {
    display: flex;
    gap: 0.3rem;
    flex: 0 1 auto;
    order: 1;
    justify-content: flex-start;
}

.preview-wrapper.preview-mobile .shop-list-tags .shop-stats {
    font-size: 0.7rem;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
    order: 2;
}

.preview-wrapper.preview-mobile .shop-list-tags .category-tag,
.preview-wrapper.preview-mobile .shop-list-tags .location-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

.preview-wrapper.preview-mobile .shop-list-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.preview-wrapper.preview-mobile .shop-list-item .shop-declaration {
    -webkit-line-clamp: 3;
    font-size: 0.75rem;
}

.preview-wrapper.preview-mobile .shop-list-actions .action-btn {
    padding: 0.3rem 0.4rem;
    font-size: 0.7rem;
}

.preview-wrapper.preview-mobile .shop-list-actions .detail-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
}

/* カード表示のモバイルプレビュー */
.preview-wrapper.preview-mobile .shop-card {
    font-size: 0.85rem;
}

.preview-wrapper.preview-mobile .shop-card-content {
    padding: 0.75rem;
}

.preview-wrapper.preview-mobile .shop-card-stats {
    gap: 0.5rem;
}

.preview-wrapper.preview-mobile .shop-card-actions {
    gap: 0.3rem;
}

.preview-wrapper.preview-mobile .shop-card .like-btn,
.preview-wrapper.preview-mobile .shop-card .favorite-btn {
    width: 32px;
    height: 32px;
}

/* デスクトッププレビューではPC版のスタイルを維持 */
.preview-wrapper.preview-desktop .shop-list-item {
    padding: 0.75rem;
    gap: 1rem;
    display: flex;
}

.preview-wrapper.preview-desktop .shop-list-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.preview-wrapper.preview-desktop .shop-list-tags .tags-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    order: 1;
}

.preview-wrapper.preview-desktop .shop-list-tags .shop-stats {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
    order: 2;
    font-size: 0.75rem;
}

/* プレビューコンテンツエリア */
.preview-content {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: 12px;
    overflow-x: auto;
}

/* モーダル内のプレビュー */
#modal-preview-content {
    padding: 1rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: 12px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
}

/* ===========================
   プレビューモーダルのデバイスモード対応
   =========================== */
.preview-controls-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.device-selector-modal {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

/* ===========================
   レスポンシブデザイン - 実際のモバイル表示
   =========================== */
@media (max-width: 768px) {
    :root {
        --shop-card-image-height: 150px; /* モバイルでカード画像を少し小さく */
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* モバイルでのカード表示 */
    .shop-card-content {
        padding: 0.75rem;
    }
    
    .shop-card-stats {
        gap: 0.5rem;
    }
    
    .shop-card-actions {
        gap: 0.3rem;
    }
    
    /* モバイルでのリスト表示 */
    .shop-list-item {
        padding: 0.6rem;
        gap: 0.6rem; /* 画像と文字の間隔を調整 */
    }
    
    /* モバイルでのリスト画像を小さくして文字領域を確保 */
    .shop-list-image,
    .shop-list-image-link {
        width: var(--shop-list-image-size-mobile);
        height: var(--shop-list-image-size-mobile);
        min-width: var(--shop-list-image-size-mobile);
        max-width: var(--shop-list-image-size-mobile);
        min-height: var(--shop-list-image-size-mobile);
        max-height: var(--shop-list-image-size-mobile);
    }

    .shop-list-tags {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
    }

    .shop-list-tags .tags-group {
        display: flex;
        gap: 0.3rem;
        flex: 0 1 auto;
        justify-content: flex-start;
    }   

    .shop-list-tags .shop-stats {
        font-size: 0.7rem;
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .shop-list-tags .category-tag,
    .shop-list-tags .location-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .shop-list-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .shop-stats {
        order: -1;
        margin-bottom: 0.3rem;
    }

    .shop-list-item .shop-declaration {
        -webkit-line-clamp: 3;
        font-size: 0.75rem;
    }
    
    .shop-list-actions {
        display: flex;
        gap: 0.3rem;
    }
    
    .shop-list-actions .action-btn {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .shop-list-actions .detail-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* モバイルでのボタンサイズ調整 */
    .shop-card .like-btn,
    .shop-card .favorite-btn {
        width: 32px;
        height: 32px;
    }
    
    .shop-list-actions .like-btn,
    .shop-list-actions .favorite-btn {
        width: 32px;
        height: 32px;
    }
    
    /* プレビューコントロールのモバイル対応 */
    .preview-controls-modal {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .preview-mode-selector,
    .device-selector-modal {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .preview-mode-btn,
    .device-mode-btn {
        flex: 1;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* さらに小さい画面（iPhone SE等）での調整 */
@media (max-width: 480px) {
    :root {
        --shop-card-image-height: 120px;
        --shop-list-image-size-mobile: 50px; /* さらに小さく */
    }
    
    .shop-card {
        font-size: 0.85rem;
    }
    
    .shop-card-content {
        padding: 0.6rem;
    }
    
    .shop-list-item {
        font-size: 0.85rem;
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    /* 極小画面でのボタン調整 */
    .shop-card .like-btn,
    .shop-card .favorite-btn,
    .shop-list-actions .like-btn,
    .shop-list-actions .favorite-btn {
        width: 30px;
        height: 30px;
    }
    
    .like-icon,
    .favorite-icon {
        font-size: 0.9rem;
    }
    
    .shop-list-actions .action-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* ===========================
   検索結果が空の場合
   =========================== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--shop-card-radius);
    box-shadow: var(--shop-shadow);
}

.no-results p {
    color: #666;
    font-size: 1rem;
}

/* ===========================
   ローディング表示
   =========================== */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    min-height: 300px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.messages-preview-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.message-preview-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.message-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.message-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar-small.anonymous {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.message-preview-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-preview-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.message-preview-time {
    font-size: 0.8rem;
    color: #999;
}

.message-preview-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0.5rem;
}

.message-preview-likes {
    font-size: 0.85rem;
    color: #ff5252;
}

.no-messages-yet {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.no-messages-yet p {
    margin: 0.5rem 0;
}

/* メッセージタブのスタイル */
.message-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.message-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-tab:hover {
    color: #333;
    background: #f8f9fa;
}

.message-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.message-count-badge {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.message-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.message-tab-content.active {
    display: block;
}

/* ===== SEO最適化のためのリンクスタイル ===== */

/* リンクのデフォルトスタイルをリセット */
.shop-card-title a,
.shop-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-card-title a:hover,
.shop-name a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* 詳細ボタンのaタグスタイル */
a.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

a.detail-btn:hover {
    color: white;
    text-decoration: none;
}

/* フォーカス時のアクセシビリティ */
.shop-card:focus-within,
.shop-list-item:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}





/* shop-display.css の最後に以下を追加 */

/* ===========================
   プレビュー用の詳細表示スタイル
   =========================== */

/* Hero Section Preview */
.shop-detail-hero-section-preview {
    padding: 2rem 1rem;
    background: white;
}

.shop-detail-hero-content {
    text-align: center;
}

.shop-detail-shop-name {
    font-size: 2rem;
    font-weight: 800;
    color: #2C3E50;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.shop-detail-shop-tagline {
    font-size: 1rem;
    color: #6B6B6B;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.shop-detail-declaration-hero {
    background: linear-gradient(135deg, rgba(232, 180, 160, 0.15), rgba(168, 192, 154, 0.15));
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0 0 1.5rem 0;
}

.shop-detail-declaration-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #2C3E50;
    font-weight: 500;
    margin: 0;
}

.shop-detail-actions-hero {
    display: flex;
    gap: 0.75rem;
    margin: 0 0 2rem 0;
    justify-content: center;
}

.shop-detail-btn-hero {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.shop-detail-btn-like-hero {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
}

.shop-detail-btn-favorite-hero {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: white;
}

.shop-detail-btn-share-hero {
    background: linear-gradient(135deg, #E8B4A0, #A8C09A);
    color: white;
}

.shop-detail-images-gallery {
    position: relative;
    margin: 0;
}

.shop-detail-carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.shop-detail-carousel-main {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.shop-detail-carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.shop-detail-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-detail-premium-badge-floating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

/* Owner Section Preview */
.shop-detail-owner-section-preview {
    background: #f8f9fa;
    padding: 2rem 1rem;
}

.shop-detail-owner-profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
}

.shop-detail-owner-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-detail-owner-info {
    flex: 1;
}

.shop-detail-owner-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2C3E50;
    margin: 0 0 0.25rem 0;
}

.shop-detail-owner-role {
    color: #E8B4A0;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.shop-detail-owner-message {
    font-style: italic;
    color: #444;
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Map Section Preview */
.shop-detail-map-section-preview {
    padding: 2rem 1rem;
    background: white;
}

.shop-detail-map-container {
    max-width: 600px;
    margin: 0 auto;
}

.shop-detail-map-placeholder {
    height: 250px;
    background: #f0f0f0;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.shop-detail-map-placeholder p {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.shop-detail-map-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.shop-detail-map-info-card {
    background: #FFF8F3;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-detail-map-info-icon {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shop-detail-map-info-content h4 {
    font-size: 0.75rem;
    color: #999;
    margin: 0 0 0.2rem 0;
}

.shop-detail-map-info-content p {
    font-size: 0.9rem;
    color: #2C3E50;
    font-weight: 600;
    margin: 0;
}

.shop-detail-website-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.shop-detail-website-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* モバイルプレビュー調整 */
.preview-wrapper.preview-mobile .shop-detail-shop-name {
    font-size: 1.5rem;
}

.preview-wrapper.preview-mobile .shop-detail-declaration-text {
    font-size: 1rem;
}

.preview-wrapper.preview-mobile .shop-detail-btn-hero {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.preview-wrapper.preview-mobile .shop-detail-carousel-main {
    height: 250px;
}

.preview-wrapper.preview-mobile .shop-detail-owner-photo {
    width: 60px;
    height: 60px;
}

.preview-wrapper.preview-mobile .shop-detail-map-placeholder {
    height: 180px;
}


/* デスクトッププレビューでの詳細表示 - 横幅フル活用 */
.preview-wrapper.preview-desktop .shop-detail-preview {
    width: 100%;
    max-width: 100%;
}

/* デスクトッププレビューでのコンテンツ幅調整 */
.preview-wrapper.preview-desktop .shop-detail-hero-content {
    max-width: 100%;
}

.preview-wrapper.preview-desktop .shop-detail-carousel-container {
    max-width: 800px;  /* 画像は適度なサイズを維持 */
    margin: 0 auto;
}

.preview-wrapper.preview-desktop .shop-detail-owner-profile {
    max-width: 900px;
    margin: 0 auto;
}

.preview-wrapper.preview-desktop .shop-detail-map-container {
    max-width: 100%;  /* 地図セクションは横幅フル */
}

/* モバイルプレビューでの詳細表示サイズ指定はそのまま維持 */
.preview-wrapper.preview-mobile .shop-detail-preview {
    width: 390px;
    max-width: 390px;
}


/* ===========================
   モバイル版ボタン高さ統一
   =========================== */
   @media (max-width: 768px) {
    /* shop-card のボタン高さ統一 */
    .shop-card-actions .favorite-btn,
    .shop-card-actions .detail-btn {
        min-height: 34px;  /* タップターゲット最小サイズ */
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
    }
    
    /* shop-list のボタン高さ統一 */
    .shop-list-actions .action-btn,
    .shop-list-actions .detail-btn {
        min-height: 29px;  /* 統一高さ */
        height: 29px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
        line-height: 1;
    }
    
    /* ボタン内のアイコンとテキストの調整 */
    .shop-card-actions .favorite-icon {
        line-height: 1;
        font-size: 1.2rem;
    }
    
    .shop-list-actions .favorite-btn {
        font-size: 1.2rem;
        padding: 0 0.75rem;  /* アイコンのみなので幅を狭く */
    }
}

/* さらに小さいスマホ（375px以下）の調整 */
@media (max-width: 375px) {
    .shop-card-actions .favorite-btn,
    .shop-card-actions .detail-btn,
    .shop-list-actions .action-btn,
    .shop-list-actions .detail-btn {
        min-height: 30px;  /* 少し小さく */
        height: 30px;
        font-size: 0.875rem;
    }
}