/* ========================================
   店舗詳細ページ専用CSS
   ファイル名: shop-detail.css
   説明: カスタム投稿タイプ「店舗」の個別ページ用スタイル
======================================== */

/* ========================================
   基本設定
======================================== */

/* 投稿ページ全体 */
body.single #content,
body.single .content {
    max-width: 100%;
    padding: 0;
    margin: 0;
    background-color: var(--light-cream);
}

body.single #content-in {
    max-width: 100%;
    padding: 0;
}

/* メインラッパー */
.single .main-wrapper {
    max-width: 1400px;
    margin: 50px auto;
    padding: 40px 30px;
}

/* ========================================
   パンくずリスト
======================================== */

.single .breadcrumb,
.single .breadcrumbs {
	color: var(--dark-brown);
    background: var(--white);
    padding: 15px 25px;
    font-size: 14px;
    margin: 0 !important;
	background-color: var(--white);
	border-bottom: 2px solid var(--primary-color);
}

.single .breadcrumb a,
.single .breadcrumbs a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.single .breadcrumb a:hover,
.single .breadcrumbs a:hover {
    color: var(--primary-color);
}

.single .breadcrumb span,
.single .breadcrumbs span {
    margin: 0 8px;
    color: var(--text-gray);
}

/* ========================================
   タイトルエリア
======================================== */

.shop-title-area,
.single .entry-header {
    background: var(--white);
    margin-bottom: 0 !important;
    padding: 35px 0px;
}

.shop-title,
.single .entry-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

/* 店舗タグ */
.shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.shop-tag {
    background: var(--light-cream);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #E0E0E0;
    color: var(--text-dark);
}

/* メタ情報 */
.shop-meta-info,
.single .entry-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* シェアボタン */
.share-buttons-area {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Zen Maru Gothic', sans-serif;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.line {
    background: #06C755;
}

.share-btn.copy {
    background: #6B6B6B;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========================================
   2カラムレイアウト（店舗詳細）
======================================== */

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

.shop-main-content {
    min-width: 0;
}

/* ========================================
   コンテンツセクション共通
======================================== */

.content-section {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.content-section-title,
.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================
   Instagramリール埋め込みセクション
======================================== */

.reel-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8E0 100%);
    border: 2px solid var(--primary-color);
}

.reel-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.reel-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(200, 75, 49, 0.15);
    transition: transform 0.3s;
}

.reel-wrapper:hover {
    transform: translateY(-5px);
}

.instagram-embed {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 14px;
    border: 1px solid #E0E0E0;
}

.instagram-embed iframe,
.instagram-embed blockquote {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.instagram-media {
	min-width: auto;
}

.instagram-cta {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
}

.instagram-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Zen Maru Gothic', sans-serif;
    transition: all 0.3s;
}

.instagram-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
    color: var(--white);
}

/* ========================================
   紹介文
======================================== */

.description-text,
.shop-description {
    font-size: 16px;
    line-height: 2;
    color: var(--dark-brown);
}

.description-text p,
.shop-description p {
    margin-bottom: 15px;
}

.description-text p:last-child,
.shop-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   メニューテーブル
======================================== */

.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.menu-table th,
.menu-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.menu-table th {
    background: var(--light-cream);
    font-weight: 700;
    color: var(--primary-color);
}

.menu-table tr:hover {
    background: #F5F5F5;
}

.popular-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

.menu-price,
.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

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

.info-table,
.shop-info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td,
.shop-info-table th,
.shop-info-table td {
	font-size: 16px;
    padding: 15px;
    border-bottom: 1px solid #E0E0E0;
    vertical-align: top;
}

.info-table th,
.shop-info-table th {
    background: var(--light-cream);
    font-weight: 700;
    width: 140px;
    text-align: left;
    color: var(--text-dark);
}

.info-table td,
.shop-info-table td {
    color: var(--dark-brown);
    line-height: 1.8;
}

.info-table td a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-table td a:hover {
    color: #A83D27;
    text-decoration: underline;
}

.info-table i,
.shop-info-table i {
    margin-right: 4px;
    color: var(--primary-color);
}

/* ========================================
   マップ
======================================== */

.map-container {
    margin-top: 20px;
}

.map-embed {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Zen Maru Gothic', sans-serif;
    transition: all 0.3s;
}

.map-link-btn:hover {
    background: #A83D27;
    transform: translateY(-2px);
    color: var(--white);
}

/* ========================================
   関連記事
======================================== */

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-shop-card {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8E0 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    border: 2px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    align-items: center;
	overflow: hidden;
}

.related-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(200, 75, 49, 0.2);
    border-color: var(--primary-color);
}

.post-card-image {
	height: 210px
}

.shop-info {
	padding: 20px 24px;
}

.related-shop-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.related-shop-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.related-shop-tag {
    font-size: 12px;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    color: var(--text-gray);
}

/* ========================================
   店舗詳細ページサイドバー
======================================== */

.shop-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.shop-sidebar-section {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sidebar-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* サイトについて */
.site-about {
    text-align: center;
}

.site-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #A83D27);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 36px;
}

.site-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 人気記事リスト */
.popular-shops-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-shop-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
}

.popular-shop-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.popular-shop-link {
    text-decoration: none;
    color: var(--dark-brown);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: color 0.3s;
}

.popular-shop-link:hover {
    color: var(--primary-color);
}

.popular-rank {
    background: var(--primary-color);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-shop-content {
    flex: 1;
}

.popular-shop-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-shop-meta {
    font-size: 12px;
    color: var(--text-gray);
}

/* タグクラウド */
.sidebar-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-button {
    background: var(--light-cream) !important;
    padding: 6px 12px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    color: var(--dark-brown) !important;
    border: 1px solid #E0E0E0 !important; 
    transition: all 0.3s !important;
}

.sidebar-cloud-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* サイドバー広告バナー（店舗詳細） */
.shop-sidebar .ad-banner {
    margin-bottom: 0;
}

.shop-sidebar .ad-banner-medium {
    height: 250px;
}

.shop-sidebar .ad-banner-tall {
    height: 600px;
}

.ad-banner-large,
.ad-banner-medium {
    margin-bottom: 35px;
}

/* ========================================
   店舗詳細ページレスポンシブ
======================================== */

/* タブレット（〜1024px） */
@media (max-width: 1024px) {
    .shop-content-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .shop-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .shop-title,
    .single .entry-title {
        font-size: 32px !important;
    }

    .content-section {
        padding: 30px 25px;
    }

    .reel-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* タブレット小・スマホ横（〜768px） */
@media (max-width: 768px) {
    .single .main-wrapper {
        padding: 30px 15px;
    }

    .shop-title-area,
    .single .entry-header {
        padding: 25px 0px;
    }

    .shop-title,
    .single .entry-title {
        font-size: 28px !important;
    }
	
	.share-buttons-area {
        gap: 10px;
    }
	
    .share-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .content-section {
        padding: 25px 20px;
    }

    .content-section-title,
    .section-heading {
        font-size: 20px;
    }

    .reel-container {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .shop-content-wrapper {
        gap: 40px;
    }

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

    .menu-table th,
    .menu-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .info-table th,
    .shop-info-table th {
        width: 110px;
        font-size: 13px;
    }

    .info-table td,
    .shop-info-table td {
        font-size: 14px;
    }
}

/* スマホ（〜480px） */
@media (max-width: 480px) {
    .single .main-wrapper {
        padding: 20px 10px;
    }

    .shop-title,
    .single .entry-title {
        font-size: 24px !important;
    }

    .breadcrumb,
    .breadcrumbs {
        padding: 12px 15px;
        font-size: 12px;
    }

    .share-buttons-area {
		width: 100%;
        gap: 8px;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
        font-size: 11px;
        padding: 8px 10px;
        border-radius: 20px;
        min-height: 36px;
    }
	
	.share-btn i {
        font-size: 12px;
    }

    .content-section {
        padding: 20px 15px;
    }

    .menu-table th,
    .menu-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .info-table th,
    .shop-info-table th {
        width: 90px;
        font-size: 12px;
        padding: 12px 8px;
    }

    .info-table td,
    .shop-info-table td {
        font-size: 13px;
        padding: 12px 8px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .map-embed {
        height: 250px;
    }
}

/* 極小スマホ（〜360px） */
@media (max-width: 360px) {
    .share-btn {
        font-size: 10px;
        padding: 6px 8px;
        gap: 4px;
        min-height: 32px;
    }
    
    .share-btn i {
        font-size: 11px;
    }
    
    .shop-title,
    .single .entry-title {
        font-size: 20px !important;
    }
}
