/**
 * 店舗詳細ページ専用スタイル
 * 
 * このファイルには店舗詳細ページ（single-shop.php）で使用される
 * スタイルのみを記述してください。
 */

/* ========================================
   店舗詳細ページ
======================================== */

/* 全体レイアウト */
.shop-detail {
    background: #f8f9fa;
    min-height: 100vh;
}
nav.machonavi-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 10px;
}


/* ========================================
   ヘッダー部分
======================================== */
.shop-detail-header {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.shop-header-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* メイン情報 */
.shop-main-info {
    padding-right: 20px;
}

.shop-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.shop-catch-copy {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.shop-meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.shop-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.shop-status.status-open {
    background: #e8f5e9;
    color: #2e7d32;
}

.shop-status.status-closed {
    background: #ffebee;
    color: #c62828;
}

.shop-area {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.shop-area i {
    color: #ff6b6b;
}

/* 電話番号 */
.shop-contact-tel {
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.shop-contact-tel i {
    color: #ff6b6b;
    font-size: 20px;
}

.shop-contact-tel a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.shop-contact-tel a:hover {
    color: #ff6b6b;
}

/* 投票エリア */
.shop-vote-area {
    margin: 25px 0;
}

.shop-vote-area .machonavi-vote-button {
    margin-bottom: 8px;
}

.vote-subtitle {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 8px;
}

/* ヘッダー画像 - 4:3アスペクト比固定 */
.shop-header-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shop-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 親テーマの影響を打ち消す */
.shop-detail img {
    max-width: none !important;
    height: auto !important;
}

.shop-header-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ========================================
   メインコンテンツ
======================================== */
.shop-detail-content {
    padding: 40px 0;
}

/* セクション共通 */
.detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-section h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b6b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h2 i {
    color: #ff6b6b;
    font-size: 20px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.section-content {
    color: #666;
    line-height: 1.8;
}

/* 情報テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    width: 30%;
    padding: 15px;
    background: #f8f9fa;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    border-radius: 4px 0 0 4px;
}

.info-table td {
    padding: 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.info-table tr:last-child td {
    border-bottom: none;
}
table.info-table a {
    color: #558adc;
}

/* Google Maps */
.shop-map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.map-notice,
.map-error {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    color: #666;
    margin-top: 20px;
}

.map-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* キャストグリッド */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cast-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.cast-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cast-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cast-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.cast-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-card-content {
    padding: 15px;
    text-align: center;
}

.cast-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.cast-nickname {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.cast-card-content button.vote-btn.voted {
    margin: 10px auto 0px auto;
}

/* ========================================
   1カラムレイアウト（サイドバー削除済み）
======================================== */
.main-column-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 情報カード */
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
}

/* 基本情報サマリー */
.shop-info-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.info-item i {
    color: #ff6b6b;
    width: 20px;
    text-align: center;
}

.info-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #ff6b6b;
}

/* SNSリンク */
.sns-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.sns-link i {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.sns-link span {
    flex: 1;
    text-align: left;
}

.sns-link.instagram {
    background: #f8f9fa;
    color: #E4405F;
    border: 1px solid #E4405F;
}

.sns-link.instagram:hover {
    background: #E4405F;
    color: #fff;
}

.sns-link.twitter {
    background: #f8f9fa;
    color: #1DA1F2;
    border: 1px solid #1DA1F2;
}

.sns-link.twitter:hover {
    background: #1DA1F2;
    color: #fff;
}

/* 近隣店舗リスト */
.nearby-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nearby-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nearby-list li:last-child {
    border-bottom: none;
}

.nearby-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}

.nearby-list a:hover {
    color: #ff6b6b;
}

/* 人気コラムウィジェット */
.info-card .popular-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-card .popular-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-card .popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-card .rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

/* ========================================
   おすすめ店舗セクション
======================================== */
.recommended-shops-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.recommended-shops-section .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.recommended-shops-section .section-title i {
    color: #ff6b6b;
}

.recommended-shops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.recommended-shop-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
}

.recommended-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.recommended-shop-card .pr-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.recommended-shop-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recommended-shop-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.recommended-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recommended-shop-card:hover .recommended-shop-image img {
    transform: scale(1.05);
}

.recommended-shop-content {
    padding: 20px;
}

.recommended-shop-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recommended-shop-area {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.recommended-shop-area i {
    color: #ff6b6b;
    font-size: 12px;
}

/* ========================================
   ランキングCTAセクション
======================================== */
.ranking-cta-section {
    padding: 60px 0;
    background: #fff;
}

.ranking-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ranking-cta-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.ranking-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.ranking-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.ranking-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.ranking-cta-button i {
    font-size: 24px;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 1024px) {
    .shop-header-content {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .shop-header-image {
        height: 250px;
    }
    
    .recommended-shops-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* ヘッダー */
    .shop-detail-header {
        padding: 20px 0;
    }
    
    .shop-header-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-title {
        font-size: 24px;
    }
    
    .shop-catch-copy {
        font-size: 16px;
    }
    
    .shop-contact-tel {
        font-size: 20px;
    }
    
    .shop-header-image {
        height: 200px;
        order: -1;
    }
    
    /* メインコンテンツ */
    .shop-detail-content {
        padding: 20px 0;
    }
    
    /* サイドバーを削除して1カラムレイアウト */
.main-column-full {
    width: 100%;
    max-width: none;
}
    
    .sub-column {
        position: static;
        margin-top: 30px;
    }
    
    .detail-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .detail-section h2 {
        font-size: 18px;
    }
    
    /* テーブル */
    .info-table th {
        width: 35%;
        padding: 12px;
        font-size: 13px;
    }
    
    .info-table td {
        padding: 12px;
        font-size: 13px;
    }
    
    /* 地図 */
    .shop-map {
        height: 300px;
    }
    
    /* キャストグリッド */
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .cast-card-image {
        height: 150px;
    }
    
    /* おすすめ店舗セクション */
    .recommended-shops-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .recommended-shops-section .section-title {
        font-size: 22px;
    }
    
    .recommended-shops-grid {
        grid-template-columns: 1fr;
    }
    
    /* ランキングCTA */
    .ranking-cta-section {
        padding: 40px 0;
    }
    
    .ranking-cta-buttons {
        grid-template-columns: 1fr;
    }
    
    .ranking-cta-button {
        font-size: 16px;
        padding: 16px 24px;
    }
}