/* ==========================================================================
   🐾 わんケア 愛犬車椅子実例・動画ギャラリー 専用スタイルシート
   WanCare Case Study & Video Gallery Custom CSS (Unified Design System)
   ========================================================================== */

/* ===== Cocoonテーマ等のグローバルCSS干渉に対する完全ガード ===== */
body.wancare-unified-page {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif !important;
    color: #2D2926 !important;
    background-color: #FAF9F7 !important;
    -webkit-font-smoothing: antialiased;
}

/* ===== 🚨 WordPress / Cocoon CSS競合の完全無力化（クリック妨害・全画面被り防止ガード） ===== */
header.header,
.header,
header,
.wc-hd-header {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-image: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important; /* ヘッダー外枠はクリック透過 */
}

/* ヘッダー内部の実体パーツのみ pointer-events: auto を有効化 */
header.header > *,
.header .header-top,
.header .header-nav,
.header .top-inner,
.header .nav-inner,
.header .nav-menu,
.header a,
.header button,
.header input,
.header select,
.wc-hd-container,
.wc-hd-container * {
    pointer-events: auto !important;
}

/* メガメニュー＆ドロップダウン（非ホバー時は完全透過） */
.header .megamenu,
.header .dropdown-menu {
    pointer-events: none !important;
}
.header .has-dropdown:hover .megamenu,
.header .has-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* スマホドロワー（閉塞時は完全不可視＆クリック透過） */
.header .sp-drawer,
.sp-drawer,
.wc-drawer {
    visibility: hidden !important;
    pointer-events: none !important;
}
.header .sp-drawer.open,
.header .sp-drawer.is-open,
.sp-drawer.open,
.sp-drawer.is-open,
.wc-drawer.open,
.wc-drawer.is-open {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* メインコンテンツ領域のオフセット＆クリック保証 */
.wancare-case-single-page,
.wancare-unified-page main,
.wc-main,
.container,
.wc-gallery-section,
.wc-filter-bar {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* ===== 🌿 本店共通固定ヘッダー 完全独立スタイル (wc-hd- 構造) ===== */
.wc-hd-header {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: none !important;
}
.wc-hd-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.wc-hd-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.wc-hd-logo {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.wc-hd-logo-link {
    text-decoration: none !important;
    display: block !important;
}
.wc-hd-logo-img {
    height: 40px !important;
    width: auto !important;
    display: block !important;
    max-width: 200px !important;
}

.wc-hd-nav {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    float: none !important;
}
.wc-hd-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.wc-hd-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: inline-block !important;
}
.wc-hd-link {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2D2926 !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    white-space: nowrap !important;
}
.wc-hd-link:hover,
.wc-hd-link.active {
    color: #2D6A4F !important;
    background: rgba(45, 106, 79, 0.07) !important;
}

/* CTAボタン */
.wc-hd-btn-trial {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: #E65100 !important;
    text-decoration: none !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}
.wc-hd-btn-trial:hover {
    background: #BF360C !important;
    transform: translateY(-1px) !important;
}
.wc-hd-btn-line {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: #06C755 !important;
    text-decoration: none !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}
.wc-hd-btn-line:hover {
    background: #05b34c !important;
    transform: translateY(-1px) !important;
}

/* ハンバーガーボタン */
.wc-hd-hamburger {
    display: none !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 20px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-left: auto !important;
}
.wc-hd-hamburger span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: #2D2926 !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

@media (max-width: 768px) {
    .wc-hd-nav {
        display: none !important;
    }
    .wc-hd-hamburger {
        display: flex !important;
    }
    .wc-hd-container {
        padding: 10px 16px !important;
    }
    .wc-hd-logo-img {
        height: 34px !important;
    }
}

/* 🌿 ヒーローヘッダー (フォレストグリーン & エメラルド) */
.gallery-hero {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 60%, #40916C 100%);
    color: #FFFFFF;
    padding: 48px 0 44px;
    position: relative;
    overflow: hidden;
}
.gallery-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.gallery-hero .breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}
.gallery-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}
.gallery-hero .breadcrumb a:hover {
    color: #D4A373;
    text-decoration: underline;
}
.gallery-hero .gallery-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.gallery-hero .gallery-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 860px;
    margin-bottom: 24px;
}

/* ヒーロー内 特長バッジ */
.gallery-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gallery-hero-badges .badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
}
.gallery-hero-badges .badge-item svg {
    color: #D4A373;
}

/* 📱 スマホ用ドロワーメニューのクリック妨害防止（閉塞時は完全不可視＆クリック透過） */
.sp-drawer,
.wc-drawer {
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 60px);
    background: #FAF9F7;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    padding: 24px 20px 100px;
    visibility: hidden !important;
    pointer-events: none !important;
}

.sp-drawer.open,
.sp-drawer.is-open,
.wc-drawer.open,
.wc-drawer.is-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 🏷️ フィルター＆ナビゲーションセクション */
.gallery-filter-area {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 0;
    position: sticky;
    top: 64px; /* 固定ヘッダーの高さ考慮 */
    z-index: 90;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    pointer-events: auto !important;
}
.gallery-filter-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.filter-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.filter-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2D6A4F;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
}
.breed-filter-btn {
    appearance: none;
    border: 1.5px solid #D8E2DC;
    background: #FFFFFF;
    color: #4A5568;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}
.breed-filter-btn .count-badge {
    background: #E2E8F0;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    pointer-events: none;
}
.breed-filter-btn:hover {
    background: #E8F5E9;
    color: #2D6A4F;
    border-color: #A3D9C9;
}
.breed-filter-btn.active,
.breed-filter-btn.is-active {
    background: #2D6A4F;
    color: #FFFFFF;
    border-color: #2D6A4F;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
}
.breed-filter-btn.active .count-badge,
.breed-filter-btn.is-active .count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* リアルタイム件数表示 */
.filter-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #718096;
    padding-top: 4px;
}
.filter-results-count strong {
    color: #2D6A4F;
    font-size: 1.1rem;
}

/* 🐾 ギャラリーカードグリッド */
.gallery-main-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 10;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    position: relative;
    z-index: 10;
}

/* 単体動画カード */
.gallery-card {
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #EAEAEA;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 5;
    cursor: pointer !important;
    pointer-events: auto !important;
}
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(45, 106, 79, 0.15);
    border-color: #52B788;
}

/* カード全体をクリック可能に */
.gallery-card a,
.gallery-card .card-thumbnail-wrap,
.gallery-card .card-body {
    pointer-events: auto;
}

/* サムネイル部 */
.card-thumbnail-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #111111;
    overflow: hidden;
}
.card-thumbnail-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-card:hover .card-thumbnail-wrap img {
    transform: scale(1.05);
}

/* 再生ボタンオーバーレイ */
.card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(45, 106, 79, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}
.gallery-card:hover .card-play-overlay {
    background: #E65100;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(230, 81, 0, 0.4);
}

/* カードコンテンツ */
.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.tag-breed {
    background: #E8F5E9;
    color: #2D6A4F;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.tag-cart {
    background: #FFF3E0;
    color: #E65100;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.card-title-main {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.4;
    margin-bottom: 8px;
}
.card-title-sub {
    font-size: 0.84rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-action {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #EDF2F7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #2D6A4F;
    font-weight: 700;
}
.card-footer-action .action-arrow {
    transition: transform 0.2s ease;
}
.gallery-card:hover .card-footer-action .action-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   🎬 実例詳細ページ (single-case_study.php) 専用スタイル
   ========================================================================== */
.case-study-single-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.case-header {
    margin-bottom: 28px;
}
.case-header .breadcrumb {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 14px;
}
.case-header .breadcrumb a {
    color: #2D6A4F;
    text-decoration: none;
}
.case-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* レスポンシブ動画プレイヤー */
.case-video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 32px;
}
.case-video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 愛犬＆車椅子スペックカード */
.dog-spec-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
    margin-bottom: 36px;
}
.dog-spec-card .card-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2D6A4F;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid #E8F5E9;
    margin-bottom: 20px;
}
.dog-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.dog-spec-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dog-spec-row.full-width {
    grid-column: span 2;
}
.spec-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #718096;
}
.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: #2D3748;
}
.highlight-quote {
    margin-top: 20px;
    padding: 16px 20px;
    background: #F0FDF4;
    border-left: 4px solid #2D6A4F;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: #1B4332;
    line-height: 1.6;
}

/* 記事本文 */
.case-story-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    margin-bottom: 40px;
    line-height: 1.85;
}

/* 📢 本店共通 高CVコンバージョンバナー (Forest Green + Orange) */
.wancare-unified-cta {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    border-radius: 20px;
    padding: 44px 32px;
    color: #FFFFFF;
    text-align: center;
    box-shadow: 0 12px 32px rgba(27, 67, 50, 0.25);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.wancare-unified-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.wancare-unified-cta .cta-lead {
    font-size: 0.95rem;
    font-weight: 700;
    color: #D4A373;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.wancare-unified-cta .cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.35;
}
.wancare-unified-cta .cta-desc {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.65;
}
.wancare-unified-cta .cta-buttons-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-wancare-trial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E65100;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.35);
    transition: all 0.3s ease;
}
.btn-wancare-trial:hover {
    background: #BF360C;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.45);
}
.btn-wancare-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06C755;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
    transition: all 0.3s ease;
}
.btn-wancare-line:hover {
    background: #05A847;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.45);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 32px 0 28px;
    }
    .gallery-hero .gallery-title {
        font-size: 1.45rem;
    }
    .gallery-hero .gallery-subtitle {
        font-size: 0.92rem;
    }
    .gallery-filter-area {
        top: 60px;
        padding: 16px 0;
    }
    .breed-filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dog-spec-grid {
        grid-template-columns: 1fr;
    }
    .dog-spec-row.full-width {
        grid-column: span 1;
    }
    .wancare-unified-cta {
        padding: 32px 20px;
    }
    .wancare-unified-cta .cta-title {
        font-size: 1.35rem;
    }
    .btn-wancare-trial,
    .btn-wancare-line {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}
