/* =========================================================
   VOD検索データベース — スタイルシート v4
   TOPページデザインに統一
   カラー: #212529 / #495057 / #6c757d / #f8f9fa / #fff
========================================================= */

/* =========================================================
   SWELLテーマ干渉リセット
   .post_content 内でのスタイル上書きを防止
========================================================= */
.vod-search-page {
    max-width: none;
    margin: 0;
    padding: 0;
}
.vod-search-page *,
.vod-search-page *::before,
.vod-search-page *::after {
    box-sizing: border-box;
}
/* post_content内のimg幅リセット */
.post_content .vod-search-page img {
    max-width: 100%;
    height: auto;
}
/* post_content内のh2/h3スタイルリセット */
.post_content .vod-work-card-title,
.post_content .vod-modal-title,
.post_content .vod-modal-section-title,
.post_content .vod-search-hero-title {
    background: none !important;
    color: inherit;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative;
}
.post_content .vod-work-card-title::before,
.post_content .vod-work-card-title::after,
.post_content .vod-modal-title::before,
.post_content .vod-modal-title::after,
.post_content .vod-modal-section-title::before,
.post_content .vod-modal-section-title::after,
.post_content .vod-search-hero-title::before,
.post_content .vod-search-hero-title::after {
    display: none !important;
    content: none !important;
}
/* ヒーローのh1色 */
.post_content .vod-search-hero-title {
    color: #fff !important;
}
/* カードタイトルh3色 */
.post_content .vod-work-card-title {
    color: #212529 !important;
}
/* モーダルタイトルh2色 */
.post_content .vod-modal-title {
    color: #212529 !important;
}
/* モーダルセクションタイトルh3色 */
.post_content .vod-modal-section-title {
    color: #212529 !important;
}

/* =========================================================
   免責文言
========================================================= */
.vod-search-disclaimer {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}
.vod-search-disclaimer p {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* =========================================================
   ヒーロー（TOPと同じグレーグラデ）
========================================================= */
.vod-search-hero {
    background: #212529;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 24px;
}
.vod-search-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.vod-search-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
}
.vod-search-hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.8;
}

/* =========================================================
   コンテナ
========================================================= */
.vod-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* =========================================================
   フィルター
========================================================= */
.vod-search-filters {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 28px;
}

/* キーワード */
.vod-filter-keyword {
    margin-bottom: 24px;
}
.vod-filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}
.vod-keyword-wrap {
    display: flex;
    gap: 10px;
}
.vod-keyword-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
    background: #fff;
    font-family: 'LINE Seed JP', sans-serif;
}
.vod-keyword-input:focus {
    border-color: #212529;
}
.vod-search-submit {
    padding: 12px 24px;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    font-family: 'LINE Seed JP', sans-serif;
}
.vod-search-submit:hover {
    background: #495057;
}

/* フィルターグリッド */
.vod-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* タグボタン（TOPのgenre-tab / tag-tabスタイル準拠） */
.vod-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vod-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'LINE Seed JP', sans-serif;
}
.vod-tag:hover {
    border-color: #333;
}
.vod-tag.active {
    background: #333;
    color: #fff;
}
.vod-tag-count {
    font-size: 0.8rem;
    opacity: 0.8;
}
.vod-tag-service { padding: 10px 16px; }
.vod-tag-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* アクティブフィルター */
.vod-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.vod-active-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}
.vod-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.vod-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #333;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
}
.vod-active-tag-remove {
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    color: rgba(255,255,255,0.6);
    background: none;
    border: none;
    padding: 0 2px;
    font-family: 'LINE Seed JP', sans-serif;
}
.vod-active-tag-remove:hover { color: #fff; }
.vod-clear-all {
    padding: 6px 14px;
    background: none;
    border: 2px solid #212529;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #212529;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'LINE Seed JP', sans-serif;
}
.vod-clear-all:hover {
    background: #212529;
    color: #fff;
}

/* =========================================================
   検索ステータス
========================================================= */
.vod-search-status {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}
.vod-search-status strong { color: #212529; }

/* =========================================================
   初期・ローディング・空
========================================================= */
.vod-search-initial,
.vod-search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
.vod-initial-icon,
.vod-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.vod-search-initial p,
.vod-search-empty p {
    font-size: 1rem;
    margin: 0 0 6px;
}
.vod-empty-hint { font-size: 0.9rem; color: #999; }
.vod-search-loading { text-align: center; padding: 60px 20px; }
.vod-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #dee2e6;
    border-top-color: #212529;
    border-radius: 50%;
    animation: vod-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes vod-spin { to { transform: rotate(360deg); } }

/* =========================================================
   結果グリッド（TOPのposts-grid準拠）
   !important でSWELLテーマ干渉を防止
========================================================= */
.vod-results-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =========================================================
   作品カード（TOPのpost-card準拠）
========================================================= */
.vod-work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.vod-work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* カードヘッダー（タイトル + ジャンルバッジ） */
.vod-work-card-header {
    padding: 14px 14px 6px;
}
.vod-work-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 2px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vod-work-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0;
}

/* カード画像（16:9） — aspect-ratioで安定表示 */
.vod-work-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}
.vod-work-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vod-work-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #f0f0f0;
    color: #ccc;
}
.vod-genre-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #666;
}

/* カードボディ */
.vod-work-card-body {
    padding: 12px 1.5rem;
    flex: 1;
}
.vod-work-card-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* VODバッジ（カード上）— 黒白 */
.vod-card-vod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.vod-card-vod-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}
/* 全タイプ黒白統一 */
.vod-card-vod-badge.type-svod,
.vod-card-vod-badge.type-tvod,
.vod-card-vod-badge.type-exclusive,
.vod-card-vod-badge.type-exclusive_svod,
.vod-card-vod-badge.type-ppv,
.vod-card-vod-badge.type-free,
.vod-card-vod-badge.type-live {
    background: #333;
    color: #fff;
}
.vod-card-vod-badge.vod-badge-exclusive {
    border: none;
}
.vod-badge-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
}

/* カードCTA */
.vod-work-card-cta {
    padding: 8px 1.5rem 1rem;
    text-align: right;
}
.vod-card-detail-hint {
    font-size: 0.78rem;
    color: #6c757d;
    font-weight: 500;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.vod-work-card:hover .vod-card-detail-hint {
    opacity: 1;
    color: #212529;
}

/* もっと見る（TOPのmore-button準拠） */
.vod-load-more-wrap { text-align: center; margin-top: 2rem; }
.vod-load-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #212529;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'LINE Seed JP', sans-serif;
}
.vod-load-more-btn:hover {
    background: #495057;
}


/* =========================================================
   モーダル（ポップアップ）
========================================================= */
.vod-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
.vod-modal.is-open { display: flex; }
.vod-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.vod-modal-dialog {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: vod-modal-in 0.2s ease-out;
}
@keyframes vod-modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* トップバー（PC: 右上配置、SP: 固定バー） */
.vod-modal-topbar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 10px 12px;
}
.vod-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #212529;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
    color: #212529;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.vod-modal-close:hover {
    background: #212529;
    color: #fff;
}
.vod-modal-close-icon {
    font-size: 1rem;
    line-height: 1;
}
.vod-modal-close-label {
    display: none; /* PCでは非表示 */
}
.vod-modal-body {
    overflow-y: auto;
    padding: 1.5rem;
    flex: 1;
}

/* モーダルヘッダー（タイトル → タグ → 画像 → 説明の縦並び） */
.vod-modal-header {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}
.vod-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 10px;
    line-height: 1.4;
}
.vod-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.vod-modal-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 14px;
}
.vod-modal-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vod-modal-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #f0f0f0;
    color: #ccc;
}
.vod-month-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e0e0e0;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #666;
}
.vod-modal-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* モーダルセクション */
.vod-modal-section {
    margin-bottom: 1.5rem;
}
.vod-modal-section:last-child { margin-bottom: 0; }
.vod-modal-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

/* VODサービス一覧 */
.vod-modal-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vod-modal-svc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.vod-modal-svc-item:hover {
    background: #fff;
    border-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.vod-modal-svc-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.vod-modal-svc-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: #fff;
    padding: 2px;
}
.vod-modal-svc-logo-placeholder {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e0e0e0;
    border-radius: 6px;
    flex-shrink: 0;
}
.vod-modal-svc-info { flex: 1; min-width: 0; }
.vod-modal-svc-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    margin-right: 6px;
}
.vod-avail-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    vertical-align: middle;
    background: #333;
    color: #fff;
}
.vod-avail-type-badge.type-svod,
.vod-avail-type-badge.type-tvod,
.vod-avail-type-badge.type-exclusive,
.vod-avail-type-badge.type-exclusive_svod,
.vod-avail-type-badge.type-ppv,
.vod-avail-type-badge.type-free,
.vod-avail-type-badge.type-live {
    background: #333;
    color: #fff;
}
.vod-avail-exclusive-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #e50914;
    color: #fff;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}
.vod-modal-svc-detail {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 3px;
    line-height: 1.4;
}
.vod-modal-svc-cta {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #212529;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.3s ease;
}
.vod-modal-svc-item:hover .vod-modal-svc-cta {
    background: #495057;
}

/* 関連記事 */
.vod-modal-articles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vod-modal-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.vod-modal-article:hover {
    background: #fff;
    border-color: #dee2e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.vod-modal-article-thumb {
    width: 80px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #e0e0e0;
}
.vod-modal-article-thumb-ph {
    width: 80px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e0e0e0;
    border-radius: 6px;
    flex-shrink: 0;
}
.vod-modal-article-info { flex: 1; min-width: 0; }
.vod-modal-article-title {
    display: block;
    font-size: 0.88rem;
    color: #212529;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}
.vod-modal-article-link {
    font-size: 0.78rem;
    color: #212529;
    font-weight: 500;
}
.vod-modal-article:hover .vod-modal-article-link {
    color: #495057;
}

/* =========================================================
   レスポンシブ — タブレット (768px以下)
========================================================= */
@media (max-width: 768px) {

    /* ── ヒーロー ── */
    .vod-search-hero {
        padding: 48px 16px 40px;
    }
    .vod-search-hero-title {
        font-size: 1.75rem;
    }
    .vod-search-hero-desc {
        font-size: 0.95rem;
    }

    /* ── 免責文言 ── */
    .vod-search-disclaimer {
        padding: 0 16px;
        margin-bottom: 16px;
    }
    .vod-search-disclaimer p {
        font-size: 0.72rem;
    }

    /* ── コンテナ ── */
    .vod-search-container {
        padding: 0 12px 40px;
    }

    /* ── フィルター ── */
    .vod-search-filters {
        padding: 16px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    .vod-filter-keyword {
        margin-bottom: 16px;
    }
    .vod-keyword-wrap {
        flex-direction: column;
    }
    .vod-keyword-input {
        padding: 11px 14px;
        font-size: 16px; /* iOS zoom防止 */
        border-radius: 8px;
    }
    .vod-search-submit {
        width: 100%;
        padding: 12px;
    }

    /* フィルターグリッド */
    .vod-filter-grid {
        gap: 14px;
    }
    .vod-filter-label {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }

    /* タグ — 横スクロール化 */
    .vod-filter-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .vod-filter-tags::-webkit-scrollbar {
        display: none;
    }
    .vod-tag {
        padding: 9px 14px;
        font-size: 0.82rem;
        flex-shrink: 0;
        min-height: 40px;
    }
    .vod-tag-service {
        padding: 8px 12px;
    }

    /* アクティブフィルター */
    .vod-active-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 14px;
        padding-top: 12px;
    }
    .vod-active-tags {
        width: 100%;
    }
    .vod-clear-all {
        width: 100%;
        text-align: center;
        padding: 8px 14px;
    }

    /* ── ステータス ── */
    .vod-search-status {
        margin-bottom: 14px;
        font-size: 0.88rem;
    }

    /* ── グリッド ── */
    .vod-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ── カード ── */
    .vod-work-card-header {
        padding: 12px 14px 0;
    }
    .vod-work-card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        margin-bottom: 2px;
    }
    .vod-work-card-body {
        padding: 10px 14px;
    }
    .vod-work-card-desc {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }
    .vod-card-vod-badges {
        gap: 4px;
    }
    .vod-card-vod-badge {
        font-size: 0.68rem;
        padding: 3px 6px;
    }
    .vod-badge-logo {
        width: 12px;
        height: 12px;
    }
    .vod-work-card-cta {
        padding: 6px 14px 10px;
    }
    .vod-card-detail-hint {
        font-size: 0.72rem;
    }

    /* ── 初期・空・ローディング ── */
    .vod-search-initial,
    .vod-search-empty {
        padding: 40px 16px;
    }
    .vod-initial-icon,
    .vod-empty-icon {
        font-size: 2.4rem;
    }

    /* ── もっと見るボタン ── */
    .vod-load-more-btn {
        width: 100%;
        padding: 14px 20px;
    }

    /* ── モーダル ── */
    .vod-modal-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        animation: vod-modal-in-sp 0.25s ease-out;
    }
    @keyframes vod-modal-in-sp {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* SP: トップバーを固定のクローズバーに変換 */
    .vod-modal-topbar {
        position: relative;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background: #fff;
        border-bottom: 1px solid #e9ecef;
        flex-shrink: 0;
    }
    .vod-modal-close {
        width: 100%;
        height: 48px;
        border-radius: 0;
        border: none;
        border-bottom: none;
        background: #fff;
        color: #212529;
        font-size: 0.9rem;
        font-weight: 600;
        box-shadow: none;
        gap: 6px;
    }
    .vod-modal-close:hover {
        background: #f8f9fa;
        color: #212529;
    }
    .vod-modal-close-label {
        display: inline; /* SPでは「閉じる」テキスト表示 */
        font-family: 'LINE Seed JP', sans-serif;
    }
    .vod-modal-close-icon {
        font-size: 0.85rem;
    }

    .vod-modal-body {
        padding: 16px;
        -webkit-overflow-scrolling: touch;
    }
    .vod-modal-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .vod-modal-tags {
        gap: 4px;
        margin-bottom: 10px;
    }
    .vod-modal-img-wrap {
        margin-bottom: 10px;
    }
    .vod-modal-desc {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* モーダル — セクション */
    .vod-modal-section {
        margin-bottom: 1.25rem;
    }
    .vod-modal-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    /* モーダル — VODサービスリスト */
    .vod-modal-services {
        gap: 8px;
    }
    .vod-modal-svc-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
    }
    .vod-modal-svc-left {
        gap: 10px;
    }
    .vod-modal-svc-logo,
    .vod-modal-svc-logo-placeholder {
        width: 32px;
        height: 32px;
    }
    .vod-modal-svc-name {
        font-size: 0.85rem;
    }
    .vod-avail-type-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .vod-modal-svc-detail {
        font-size: 0.72rem;
    }
    .vod-modal-svc-cta {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 0.82rem;
    }

    /* モーダル — 関連記事 */
    .vod-modal-articles {
        gap: 8px;
    }
    .vod-modal-article {
        padding: 10px 12px;
        gap: 10px;
    }
    .vod-modal-article-thumb,
    .vod-modal-article-thumb-ph {
        width: 64px;
        height: 42px;
    }
    .vod-modal-article-title {
        font-size: 0.82rem;
    }
    .vod-modal-article-link {
        font-size: 0.72rem;
    }
}

/* =========================================================
   レスポンシブ — スマホ小 (480px以下)
========================================================= */
@media (max-width: 480px) {

    /* ── ヒーロー ── */
    .vod-search-hero {
        padding: 36px 14px 32px;
    }
    .vod-search-hero-title {
        font-size: 1.35rem;
    }
    .vod-search-hero-desc {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* ── コンテナ ── */
    .vod-search-container {
        padding: 0 10px 32px;
    }

    /* ── フィルター ── */
    .vod-search-filters {
        padding: 14px;
        border-radius: 8px;
    }
    .vod-tag {
        padding: 8px 12px;
        font-size: 0.78rem;
        min-height: 36px;
        border-radius: 6px;
    }
    .vod-tag-service {
        padding: 7px 10px;
    }
    .vod-tag-logo {
        width: 16px;
        height: 16px;
    }

    /* ── グリッド ── */
    .vod-results-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* ── カード ── */
    .vod-work-card {
        border-radius: 10px;
    }
    .vod-work-card:hover {
        transform: none; /* SPではホバーエフェクト無効 */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .vod-work-card-header {
        padding: 10px 12px 0;
    }
    .vod-work-card-title {
        font-size: 0.82rem;
        line-height: 1.4;
    }
    .vod-genre-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
    .vod-work-card-body {
        padding: 8px 12px;
    }
    .vod-work-card-desc {
        font-size: 0.78rem;
    }
    .vod-card-vod-badge {
        font-size: 0.62rem;
        padding: 2px 5px;
        gap: 2px;
    }
    .vod-badge-logo {
        width: 10px;
        height: 10px;
    }
    .vod-work-card-cta {
        padding: 4px 12px 8px;
    }

    /* ── もっと見るボタン ── */
    .vod-load-more-btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    /* ── モーダル — さらにコンパクトに ── */
    .vod-modal-body {
        padding: 14px;
    }
    .vod-modal-title {
        font-size: 0.92rem;
    }
    .vod-modal-img-wrap {
        margin-bottom: 8px;
    }
    .vod-genre-badge,
    .vod-month-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }
    .vod-modal-desc {
        font-size: 0.78rem;
    }
    .vod-modal-section-title {
        font-size: 0.85rem;
    }
    .vod-modal-svc-item {
        padding: 10px;
    }
    .vod-modal-svc-name {
        font-size: 0.8rem;
    }
    .vod-modal-svc-cta {
        padding: 9px 12px;
        font-size: 0.78rem;
    }
    .vod-modal-article {
        padding: 8px 10px;
        gap: 8px;
    }
    .vod-modal-article-thumb,
    .vod-modal-article-thumb-ph {
        width: 56px;
        height: 36px;
        border-radius: 4px;
    }
    .vod-modal-article-title {
        font-size: 0.78rem;
    }

    /* ── アクティブフィルター ── */
    .vod-active-tag {
        font-size: 0.72rem;
        padding: 3px 10px;
    }
}

/* =========================================================
   レスポンシブ — 超小画面 (360px以下)
========================================================= */
@media (max-width: 360px) {
    .vod-search-hero-title {
        font-size: 1.15rem;
    }
    .vod-search-hero-desc {
        font-size: 0.8rem;
    }
    .vod-search-filters {
        padding: 12px;
    }
    .vod-tag {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    .vod-work-card-header {
        padding: 8px 10px 0;
    }
    .vod-work-card-title {
        font-size: 0.78rem;
    }
    .vod-modal-title {
        font-size: 0.85rem;
    }
}
