/* =================== Reset / Base =================== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

:root {
    /* Dark theme palette */
    --bg: #0c0b10;
    --panel: #14131b;
    --panel-2: #1a1923;
    --line: rgba(255, 255, 255, .06);
    --txt: #f5f7ff;
    --txt-dim: #c6c9d3;
    --txt-mute: #9aa0ad;
    --brand: #ff2e8f;
    --brand-2: #b34aff;
    --brand-3: #ff6bb5;
    --accent: #3dd6d0;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --radius: 14px;
}

body.theme-dark {
    background: radial-gradient(1200px 600px at 20% -10%, rgba(179, 74, 255, .16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 46, 143, .12), transparent 60%),
    var(--bg);
    color: var(--txt);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
}

body {
    background-color: #111;
    color: #eee;
    font-family: 'Noto Sans JP', sans-serif;
}

.container {
    width: 100%;
    max-width: 1180px;
    padding: 0 16px;
    margin: 0 auto;
}

#main {
    padding: 26px 0 60px;
}

/* =================== Header =================== */
.site-header {
    position: sticky;      /* ← fixed から sticky に変更 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    font-weight: 900;
    letter-spacing: .4px;
    font-size: 22px;
    color: var(--txt);
}

.brand span {
    color: var(--brand);
}

.nav {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav__link {
    color: var(--txt-dim);
    padding: 8px 12px;
    border-radius: 10px;
}

.nav__link:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--txt);
}

.nav__link.is-active {
    background: linear-gradient(90deg, rgba(255, 46, 143, .25), rgba(179, 74, 255, .22));
    color: #fff;
}

.search {
    display: flex;
    gap: 8px;
    /*margin-left: 12px;*/
}

@media (max-width: 900px) {
    .header__inner {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        width: 100%;
    }

    .search {
        order: 2;
        /*flex: 1 1 100%;*/
    }
}

/* =================== Footer =================== */
.site-footer {
    border-top: 1px solid var(--line);
    background: #0b0a0f;
}

.footer__inner {
    padding: 24px 0;
    display: grid;
    gap: 8px;
    grid-template-columns:1fr auto auto;
    align-items: center;
}

.footer__brand {
    font-weight: 800;
    color: var(--txt);
}

.footer__links a {
    color: var(--txt-mute);
    margin-right: 12px;
}

.footer__links a:hover {
    color: var(--txt);
}

.footer__copy {
    grid-column: 1 / -1;
    color: var(--txt-mute);
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 720px) {
    .footer__inner {
        grid-template-columns:1fr;
    }
}

/* =================== Components =================== */
.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

h1, .section-title {
    font-size: 22px;
    font-weight: 900;
    margin: 6px 0 16px;
    letter-spacing: .3px;
}

h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 22px 0 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    background: #2a2a34;
    border: 1px solid var(--line);
    transition: transform .06s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn--primary {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-color: transparent;
}

.btn--primary:hover {
    filter: brightness(1.05);
}

.btn--sm {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.btn--ghost {
    border: 1px solid #444;
    color: #ddd;
    background: transparent;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
}

.btn--ghost:hover {
    border-color: #e91e63;
    color: #fff;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f0e15;
    color: var(--txt);
    border: 1px solid var(--line);
}

.input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 46, 143, .2);
    border-color: rgba(255, 46, 143, .4);
}

.input--sm {
    padding: 8px 10px;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #12111a, #151420);
    border: 1px solid var(--line);
    border-radius: 12px;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table thead th {
    color: var(--txt-mute);
    font-weight: 800;
    font-size: 13px;
    background: #12111a;
}

/* Pager（共通） */
.pager {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pager a {
    color: #ddd;
    background: #222;
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
    border: 1px solid #333;
}

.pager a:hover {
    background: #333;
}

.pager a.is-current {
    background: #e91e63;
    color: #fff;
    border-color: #e91e63;
}

.pager a.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.pager__ellipsis {
    color: #777;
    align-self: center;
}

/* =================== VIDEO CARD GRID =================== */
.grid {
    display: grid;
    gap: 16px;
    grid-template-columns:repeat(12, 1fr);
}

@media (max-width: 1200px) {
    .grid {
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .grid {
        gap: 12px;
    }
}

.col-12 {
    grid-column: span 12;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

@media (max-width: 1024px) {
    .col-3 {
        grid-column: span 4;
    }
}

@media (max-width: 720px) {
    .col-3, .col-4, .col-6 {
        grid-column: span 6;
    }
}

@media (max-width: 500px) {
    .col-3, .col-4, .col-6 {
        grid-column: span 12;
    }
}

/* Video Card（横長サムネ） */
.vcard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, #13121a, #161525);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .25s ease, border-color .25s ease;
}

.vcard:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 46, 143, .35);
    box-shadow: 0 18px 50px rgba(255, 46, 143, .15);
}

/* 800:538（≈1.49）で高さを安定化。上下余白は黒帯 */
.vcard__thumb {
    position: relative;
    aspect-ratio: 800 / 538;
    background: #0e0d14;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ▼ 一覧カード（横長サムネ）も縦長対応 */
.vcard__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* cover → contain */
    object-position: center center;
    background-color: #000; /* 黒背景で上下左右に余白ができても自然に */
}

.vcard__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
}

.vcard__body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vcard__title {
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vcard__meta {
    color: var(--txt-mute);
    font-size: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vcard__link {
    display: block;
    color: inherit;
}

/* =================== LIST PAGES（一覧カード型：genres/actresses/manufacturers） =================== */
/* タグ・一覧共通グリッド（メーカー／女優／ジャンル） */
.tag-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.tag-grid li {
    list-style: none;
}

/* カード本体（リンク） */
.tag-grid .name-grid__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    width: 100%;
    padding: 10px 12px;
    line-height: 1.4;

    /* 2行まで想定した高さ（必要なら調整OK） */
    min-height: calc(1.4em * 2 + 20px);

    color: #eee;
    background: #222;
    border-radius: 10px;
    text-decoration: none;

    transition: background .25s, color .25s, transform .2s;

    white-space: normal;
    word-break: break-word;
}

/* ホバー時 */
.tag-grid .name-grid__link:hover {
    background: #e91e63;
    color: #fff;
    transform: translateY(-2px);
}

/* ラベル（名前）部分：左側を広くとる */
.name-grid__label {
    flex: 1;
}

/* 件数表示（◯本） */
.name-grid__count {
    font-size: 0.8rem;
    color: #bbb;
    margin-left: 0.4rem;
    white-space: nowrap;
}

/* =================== SIMPLE GRID (front.video.*) =================== */
/*.video-grid {*/
/*    display: grid;*/
/*    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));*/
/*    gap: 18px;*/
/*}*/

.video-card {
    display: block;
    background: #1a1a1f;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}

.video-card .thumb {
    aspect-ratio: 16/9;
    background: #111;
}

.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card .meta {
    padding: 10px 12px;
}

.video-card .meta .ttl {
    color: #fff;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 6px;
}

.video-card .meta .date {
    color: #aaa;
    font-size: .8rem;
}

/* =================== TOP: Pickup Hero Slider（共通 .hero を使用） =================== */
/* 共通：高さ固定（トップスライダー／詳細メインの両方で利用） */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 12px;
    background: #111;
    border: 1px solid var(--line);
    height: clamp(200px, 45vh, 480px); /* 端末に応じて高さ固定 */
}

/* トップスライダーの構造がある場合に横スク動作 */
.hero__inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

.hero__slide {
    flex: 0 0 100%;
    position: relative;
    scroll-snap-align: center;
    display: block;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

/* ▼ hero (トップスライダー & 詳細ページメイン) */
.hero__slide img,
.hero > img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ← contain に変更（縦長対応） */
    object-position: center center;
    display: block;
    background-color: #000; /* 黒帯で余白を目立たなく */
    transition: transform .4s ease;
}

/* ▼ hover 時のズーム効果を抑える（cover でないので不要） */
.hero__slide:hover img {
    transform: none;
}

/* キャプション（タイトル帯） */
.hero__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
    color: #fff;
    padding: 14px 20px;
}

.hero__caption h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 640px) {
    .hero {
        height: clamp(160px, 40vh, 320px);
    }

    .hero__caption h3 {
        font-size: .9rem;
    }
}

/* =================== DETAIL: Main Viewer（.hero 直下に img の場合） =================== */
.hero > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* サムネ帯：固定サイズ＆横スクロール */
.thumb-strip {
    display: flex;
    gap: 10px;
    padding: 10px 2px 2px;
    margin-top: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.thumb {
    flex: 0 0 auto;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    scroll-snap-align: start;
}

.thumb img {
    width: 140px;
    height: 79px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (max-width: 640px) {
    .thumb img {
        width: 110px;
        height: 62px;
    }
}

/* =================== DETAIL: Meta =================== */
.badge {
    display: inline-block;
    background: #ff4da6;
    color: #fff;
    font-size: .8rem;
    padding: 4px 8px;
    border-radius: 10px;
    margin: 6px 0 10px;
}

.meta-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #15151a;
    border: 1px solid rgba(255, 255, 255, .06);
}

.meta-title {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 10px;
}

.meta-grid {
    display: grid;
    gap: 10px;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}

.meta-grid dt {
    color: #aaa;
    font-size: .85rem;
}

.meta-grid dd {
    margin: 2px 0 0;
    color: #eaeaea;
}

.meta-grid .chip {
    display: inline-block;
    margin: 2px 6px 2px 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #23232a;
    color: #ddd;
    text-decoration: none;
    font-size: .85rem;
    border: 1px solid rgba(255, 255, 255, .05);
}

.meta-grid .chip:hover {
    background: #e91e63;
    color: #fff;
}

/* あらすじ */
.desc {
    color: #ddd;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* ボタンエリア（上下2段でも自然に並ぶ） */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.actions .btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
}

.actions .btn--primary {
    background: #e91e63;
    color: #fff;
}

.actions .btn--primary:hover {
    filter: brightness(1.05);
}

.actions .btn--ghost {
    background: transparent;
    color: #ddd;
    border: 1px solid #444;
}

.actions .btn--ghost:hover {
    color: #fff;
    border-color: #e91e63;
}

/* =================== Forms / Misc =================== */
.form-grid label {
    display: block;
    margin-bottom: 12px;
    color: var(--txt);
}

.form-grid input[type="text"], .form-grid input[type="email"], .form-grid textarea {
    width: 100%;
    background: #1b1b1b;
    color: #eee;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
}

.form-grid input:focus, .form-grid textarea:focus {
    border-color: #f6c;
}

.deflist {
    display: grid;
    grid-template-columns:160px 1fr;
    gap: 8px 16px;
}

.deflist dt {
    color: #bbb;
}

.deflist dd {
    color: #eee;
    margin: 0;
}

.nav__link.is-active {
    color: #f6c;
}

/* 既存色踏襲 */

/* 必須バッジ（フォーム） */
.badge.required {
    margin-left: 6px;
    padding: 2px 6px;
    font-size: .75rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #f09, #f6c);
    border-radius: 4px;
    vertical-align: middle;
    letter-spacing: .03em;
    box-shadow: 0 0 6px rgba(255, 0, 128, .4);
}

label:hover .badge.required {
    background: linear-gradient(90deg, #ff33aa, #ff77dd);
    box-shadow: 0 0 10px rgba(255, 0, 128, .6);
}

/* =================== Age Modal =================== */
.age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: ageOverlayFade .35s ease both;
}

.age-modal__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(60, 0, 60, .85), rgba(0, 0, 0, 1));
}

.age-modal__content {
    position: relative;
    z-index: 2;
    background: #17171c;
    border: 1px solid rgba(255, 102, 204, .15);
    padding: 28px 32px;
    max-width: 460px;
    width: calc(100% - 32px);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(255, 0, 180, .25);
    animation: agePop .45s cubic-bezier(.22, 1, .36, 1) .08s both;
}

.age-modal__logo {
    margin-bottom: 8px;
}

.age-modal__logo .logo {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: .02em;
    display: inline-block;
    background: linear-gradient(90deg, #ff2aa1 0%, #ff77dd 50%, #ffc0e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(255, 0, 170, .35);
}

.age-modal__logo .logo span {
    color: #fff;
    text-shadow: none;
}

.age-modal__title {
    margin: 6px 0 6px;
    font-size: 1.35rem;
    color: #ffd7f2;
}

.age-modal__text {
    color: #ddd;
    line-height: 1.9;
}

.age-modal__buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.btn--secondary {
    background: #2c2c32;
    color: #cfcfe6;
}

.btn--secondary:hover {
    background: #3a3a43;
    color: #fff;
}

@keyframes ageOverlayFade {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes agePop {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .age-modal, .age-modal__content {
        animation: none;
    }
}

/* === HOTFIX: Top Slider (hero) をスライダー専用に固定 === */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .06);

    /* 画面に応じて高さ固定（上下は切らない前提なら後段の contain が効く） */
    height: clamp(200px, 45vh, 420px);
}

.hero__inner {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hero__slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    scroll-snap-align: center;
    overflow: hidden;
}

/* ここを contain にする事で縦長でも上下が切れない（左右は黒帯 or 一部カット） */
.hero__slide img {
    width: 100%;
    height: 100% !important; /* 画像が画面いっぱいに伸びるのを防いで枠にフィット */
    object-fit: contain; /* ← cover ではなく contain に統一 */
    object-position: center center;
    background: #000; /* 余白は黒帯 */
    display: block;
}

/* タイトル帯 */
.hero__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent);
}

/* === HOTFIX: Detail Main Viewer（詳細ページは .viewer に分離） === */
.viewer {
    background: #111;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    overflow: hidden;
    height: clamp(220px, 56vh, 560px); /* 端末に応じて高さ固定 */
}

.viewer > img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 縦長でも上下を切らない */
    object-position: center center;
    background: #000;
    display: block;
}

/* サムネ帯は固定サイズ＋横スクロール（再掲） */
.thumb-strip {
    display: flex;
    gap: 10px;
    padding: 10px 2px 2px;
    margin-top: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.thumb {
    flex: 0 0 auto;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    scroll-snap-align: start;
}

.thumb img {
    width: 140px;
    height: 79px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (max-width: 640px) {
    .thumb img {
        width: 110px;
        height: 62px;
    }
}

/* === TOP HERO SLIDER: 強制上書き（最後に置く） === */
section.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, .06);
    height: clamp(200px, 45vh, 420px) !important; /* 画面に応じて高さ固定 */
}

section.hero > .hero__inner {
    display: flex !important;
    height: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

section.hero > .hero__inner > .hero__slide {
    flex: 0 0 100% !important;
    position: relative !important;
    height: 100% !important;
    scroll-snap-align: center;
    overflow: hidden;
}

section.hero > .hero__inner > .hero__slide > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important; /* 枠の高さにフィット */
    object-fit: contain !important; /* 縦長でも上下が切れない（左右は黒帯orカット） */
    object-position: center center !important;
    background: #000 !important; /* 余白を黒帯に */
}

/* ================================
   HOTFIX: Top page video-section slider
   ================================ */

/* セクション自体の余白だけ整える（任意） */
.video-section {
    margin-bottom: 28px;
}

/* スライダーコンテナ：横スク＋スナップ */
.video-section .video-section__slider,
.video-section .slider,
.video-section .scroller {
    display: flex !important;
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 8px 2px 4px;
}

/* スライド（カード）: 縮まない・幅固定・スナップ */
.video-section .video-card,
.video-section .slide,
.video-section .item,
.video-section a {
    flex: 0 0 auto !important; /* ← これでギュッと細長くならない */
    width: clamp(220px, 26vw, 320px); /* 端末に応じたカード幅 */
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, .06);
}

/* サムネ枠：高さ固定（スマホ〜PC） */
.video-section .video-card .thumb,
.video-section .slide .thumb,
.video-section .item .thumb,
.video-section a .thumb {
    height: clamp(120px, 22vh, 200px); /* ← ここで“高さ”を固定 */
    background: #000;
}

/* サムネ画像：高さフィット（縦長でも上下が切れない） */
.video-section .video-card .thumb img,
.video-section .slide .thumb img,
.video-section .item .thumb img,
.video-section a .thumb img,
.video-section img.thumb,
.video-section img {
    width: 100% !important;
    height: 100% !important; /* 枠の高さにフィット */
    object-fit: contain !important; /* 上下は切らない／左右が黒帯or一部カット */
    object-position: center center !important;
    display: block;
    background: #000; /* 余白は黒帯にする */
}

/* カード本文（あれば） */
.video-section .video-card .meta,
.video-section .slide .meta,
.video-section .item .meta {
    padding: 10px 12px;
    color: #ddd;
}

/* タイトルの2行固定（はみ出し防止） */
.video-section .video-card .title,
.video-section .slide .title,
.video-section .item .title {
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で打ち止め */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   フロント：ジャンル別スライダー動画一覧
   =========================================== */

.video-section {
    margin-bottom: 40px;
    padding-inline: 8px;
}

.video-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.video-section__header h2 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.video-section__header .view-all {
    color: #ff4f8b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity .2s ease;
}

.video-section__header .view-all:hover {
    opacity: .7;
}

/* === 横スクロールスライダー === */
.video-list {
    display: flex; /* ← 横並び */
    gap: 14px;
    overflow-x: auto; /* ← 横スクロール有効 */
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px;
}

/* 各カードの設定 */
.video-card {
    flex: 0 0 auto; /* ← 縮まない・横スク対応 */
    width: clamp(200px, 25vw, 280px); /* ← 端末に応じて幅を調整 */
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    scroll-snap-align: start;
    transition: transform .2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

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

/* サムネ部分 */
.video-card .thumb {
    width: 100%;
    height: clamp(120px, 22vh, 180px);
    background: #000;
}

.video-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ← 縦長でも上下を切らない */
    object-position: center center;
    background: #000; /* 黒帯で自然に補完 */
    display: block;
    transition: transform .3s ease;
}

.video-card:hover .thumb img {
    transform: scale(1.05);
}

/* タイトル・日付などの情報 */
.video-card .meta {
    padding: 10px 12px 14px;
    color: #ccc;
}

.video-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で省略 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* タイトルが1行でも高さを確保 */
}

.video-card .date {
    font-size: 0.8rem;
    color: #aaa;
}

/* スクロールバー非表示（モバイル） */
.video-list::-webkit-scrollbar {
    display: none;
}

/* スマホ向け微調整 */
@media (max-width: 640px) {
    .video-section__header h2 {
        font-size: 1.2rem;
    }

    .video-card {
        width: clamp(160px, 42vw, 220px);
    }

    .video-card .thumb {
        height: clamp(100px, 24vh, 150px);
    }
}

/* === Hero slider controls === */
.hero {
    position: relative;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    transition: background .2s, transform .12s, opacity .2s;
    backdrop-filter: blur(4px);
}

.hero__arrow:hover {
    background: rgba(0, 0, 0, .55);
    transform: translateY(-50%) scale(1.05);
}

.hero__arrow[disabled] {
    opacity: .35;
    pointer-events: none;
}

.hero__arrow--prev {
    left: 10px;
}

.hero__arrow--next {
    right: 10px;
}

.hero__arrow svg {
    width: 18px;
    height: 18px;
}

.hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 4;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    border: 1px solid rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: transform .15s, background .2s, opacity .2s;
}

.hero__dot[aria-current="true"] {
    background: #fff;
    transform: scale(1.25);
}

/* 小さめ端末で矢印サイズ少し下げる */
@media (max-width: 640px) {
    .hero__arrow {
        width: 36px;
        height: 36px;
    }

    .hero__arrow svg {
        width: 16px;
        height: 16px;
    }
}

.ad-slot {
    display: block;
    width: 100%;
    margin: 16px 0;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    background: #0f0f14;
    border: 1px dashed rgba(255, 255, 255, .15);
    color: #aaa;
    border-radius: 12px;
    text-decoration: none;
}

.ad-slot--sidebar .ad-placeholder {
    height: 250px;
}

.ad-slot--banner .ad-placeholder {
    height: 90px;
}

.infinite-loading {
    text-align: center;
    padding: 16px;
    color: #bbb;
    font-size: 14px;
}

/* =========================
   Header / Global Nav
   ========================= */

:root {
    /* ヘッダーの高さ（PC/スマホ共通） */
    --header-height: 72px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;                 /* ナビ本体より上に表示 */
    background: linear-gradient(90deg, #0b0512 0%, #14021c 100%);
}

.site-header .header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

/* ロゴ */
.site-header .brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-right: 24px;
}

/* PC ナビ */
.site-header .nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 32px;
}

/* PC の検索フォームは右端固定 */
.site-header .search {
    margin-left: auto;            /* これで必ず一番右側になる */
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .search .input {
    min-width: 220px;
}

/* ハンバーガーボタン（スマホ用） */
.site-header .nav-toggle {
    display: none;                /* PC では非表示 */
    margin-left: auto;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: radial-gradient(circle at 20% 0%, #ff2e8f, #b14dff 70%, #6f42ff 100%);
    box-shadow: 0 0 20px rgba(255, 46, 143, 0.7);
    position: relative;
}

.site-header .nav-toggle span,
.site-header .nav-toggle span::before,
.site-header .nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
    content: "";
}

.site-header .nav-toggle span {
    top: 50%;
    transform: translate(-50%, -50%);
}

.site-header .nav-toggle span::before {
    top: -7px;
}

.site-header .nav-toggle span::after {
    top: 7px;
}

/* 開いているときは「×」っぽく */
.site-header.is-open .nav-toggle span {
    background: transparent;
}

.site-header.is-open .nav-toggle span::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.site-header.is-open .nav-toggle span::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

/* ---------------------------------
   スマホレイアウト（〜1199px）
   --------------------------------- */
@media (max-width: 1199px) {

    .site-header .header__inner {
        padding-inline: 16px;
    }

    /* PC の nav / search は隠す */
    .site-header .nav,
    .site-header .search {
        display: none;
    }

    /* 代わりにハンバーガー表示 */
    .site-header .nav-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    /* モバイル用フルスクリーンメニュー
       → header 要素直下の .nav を overlay として再利用する前提なら、
         .nav に .nav--mobile クラスを追加して使うのが安全 */
    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: var(--header-height);      /* ロゴ＋ボタンの下から表示 */
        bottom: 0;
        box-sizing: border-box;
        padding: 20px 24px 32px;
        background:
                radial-gradient(circle at top, rgba(255, 46, 143, 0.23), transparent 65%),
                #050509;
        display: none;
        flex-direction: column;
        gap: 16px;
        overflow-y: auto;
        z-index: 90;                    /* ヘッダーより下 */

    }

    .site-header.is-open + .mobile-nav,
    .site-header.is-open ~ .mobile-nav {
        display: flex;
    }

    /* モバイルメニュー内の検索 */
    .mobile-nav .search {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .mobile-nav .search .input {
        width: 100%;
    }

    /* モバイルメニューのリンクを大きなボタン風に */
    .mobile-nav .nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-nav .nav__link {
        display: block;
        padding: 14px 20px;
        border-radius: 999px;
        font-weight: 600;
        text-align: left;
        color: #fff;
        text-decoration: none;
        background: linear-gradient(90deg, #ff2e8f, #b14dff);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    }
}

/* ---------------------------------
   PC（1200px〜）
   --------------------------------- */
@media (min-width: 1200px) {

    .site-header .header__inner {
        gap: 16px;
    }

    .site-header .nav-toggle {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .site-header .nav__link {
        color: #fff;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 999px;
    }

    .site-header .nav__link.is-active {
        background: linear-gradient(90deg, #ff2e8f, #b14dff);
    }
}

/* 検索フォームの高さ固定（PC / スマホ オーバーレイ共通） */
.header__search-input,
.search .input {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 1rem !important;
    border-radius: 999px !important;
}

.header__search-button,
.search .btn {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 1.2rem !important;
    border-radius: 999px !important;
    white-space: nowrap;
}

/* ===========================
   Header Search: height fix
   （入力欄／ボタンの高さだけ調整）
   =========================== */

/* PC 共通：ヘッダー内の検索フォーム */
.site-header .search {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 入力欄：高さ固定 */
.site-header .search .input {
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ボタン：高さ＆文字の折り返し防止 */
.site-header .search .btn {
    height: 44px;
    min-width: 80px;              /* 2文字「検索」が折り返されない程度 */
    padding: 0 16px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;          /* 「検」「索」が縦に並ばないように */
}

/* ---------------------------
   モバイル用メニュー内の検索
   （ハンバーガー展開時）
   --------------------------- */

.mobile-nav-panel .search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;          /* 検索とメニューの間の余白（必要に応じて調整） */
}

.mobile-nav-panel .search .input {
    flex: 1 1 auto;
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
}

.mobile-nav-panel .search .btn {
    flex: 0 0 auto;
    height: 44px;
    min-width: 80px;
    padding: 0 16px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* モバイル時はヘッダー内の検索フォームは非表示（ハンバーガー内のみ表示） */
@media (max-width: 1199px) {
    .site-header .search {
        display: none;
    }
}

/* ===== 最終オーバーライド：ヘッダー & ドロワーメニュー ===== */

/* PC 共通：検索ボタンの文字が縦にならないようにしておく */
.site-header .search button,
.mobile-nav-panel .search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 40px;
    min-width: 72px;
    line-height: 1;
    white-space: nowrap;
}

/* SP レイアウト（〜1199px） */
@media (max-width: 1199px) {

    /* ヘッダーは「ロゴ＋ハンバーガー」だけにする */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
    }

    /* ヘッダー内の検索フォームとメニューは SP では完全に隠す */
    .site-header .search,
    .site-header .global-nav {
        display: none !important;
    }

    /* ドロワーパネル本体 */
    .mobile-nav-panel {
        position: fixed;
        inset: 0;
        padding: 80px 16px 24px;   /* 上にヘッダー分の余白 */
        display: none;
        flex-direction: column;
        gap: 24px;
        z-index: 999;              /* ヘッダーの一段下 */
        overflow-y: auto;
    }

    /* ドロワー内の検索フォーム */
    .mobile-nav-panel .search {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-nav-panel .search input[type="text"],
    .mobile-nav-panel .search input[type="search"] {
        height: 40px;
    }

    /* ドロワー内メニュー（ボタン風のやつ） */
    .mobile-nav-panel .mobile-nav-menu {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-nav-panel .mobile-nav-menu a {
        display: block;
        padding: 16px 24px;
        border-radius: 999px;
        font-weight: 600;
        text-align: left;
    }

    /* ハンバーガー操作時の開閉制御 */
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .mobile-nav-panel {
        display: flex;
    }
}

.site-header {
    position: sticky;      /* ← fixed から sticky に変更 */
}



/* =========================
 * 動画一覧レイアウト
 * ========================= */

.video-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;           /* 左右の余白を揃えるための調整 */
}

.video-card {
    box-sizing: border-box;
    width: 50%;               /* スマホ(狭い画面)で 1 行 2 件 */
    padding: 0 8px 16px;      /* カード間のすき間 */
}

/* カードの中身を高さ揃えしやすくする（任意だけどオススメ） */
.video-card .vcard__link {
    display: block;
    height: 100%;
}

.video-card .thumb {
    border-radius: 16px;
    overflow: hidden;
}

/* 768px〜 では 3 カラム */
@media (min-width: 768px) {
    .video-card {
        width: 33.3333%;
    }
}

/* 1024px〜 では 4 カラム */
@media (min-width: 1024px) {
    .video-card {
        width: 25%;
    }
}

.section--related {
    margin-top: 3rem;
}

.section--related .section-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.85rem;
    margin: 10px 0 20px;
    color: #ccc;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 6px;
    position: relative;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 6px;
    color: #666;
}

.breadcrumb a {
    color: #ddd;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #fff;
    font-weight: bold;
}

/* 内部リンクブロック */
.internal-links {
    margin: 32px 0 40px;
    padding: 16px 20px;
    border-radius: 8px;
    background: radial-gradient(circle at top, #2a1a3a 0, #120c18 60%, #080509 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.internal-links__title {
    font-size: 1rem;
    margin: 0 0 12px;
    color: #f8f0ff;
    font-weight: 600;
}

.internal-links__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.internal-links__list li + li {
    margin-top: 6px;
}

.internal-links__list a {
    font-size: 0.9rem;
    color: #ff75c8;
    text-decoration: none;
}

.internal-links__list a:hover {
    text-decoration: underline;
    color: #ff9fe0;
}

/* ===== 動画詳細ページ：アクションボタン周り ===== */

.video-detail .actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;   /* ← stretch をやめる */
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-detail .external-action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 360px;
}

/* 共通ボタン */
.video-detail .btn {
    display: inline-flex;      /* ←インライン扱いにして高さを内容に合わせる */
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* ゴーストボタン（一覧に戻る） */
.video-detail .btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
}

/* --- 内部リンクブロック ------------------------------------ */
.internal-links {
    margin-top: 2.4rem;
    padding: 1.6rem;
    background: #1b1b1b;
    border-radius: 12px;
}

.internal-links__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.internal-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.internal-links__list li {
    margin-bottom: 0.6rem;
}

.internal-links__list a {
    color: #ff64b4;
    text-decoration: none;
}

.internal-links__list a:hover {
    text-decoration: underline;
}

.pager {
    margin: 24px 0 8px;
    text-align: center;
}

.pager__list {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pager__item a,
.pager__item span {
    display: inline-block;
    min-width: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    color: #f5f5f5;
    background: rgba(0,0,0,0.4);
}

.pager__item a:hover {
    background: #ff2e8f;
    border-color: #ff2e8f;
}

.pager__item.is-current span {
    background: #ff2e8f;
    border-color: #ff2e8f;
    font-weight: 600;
}

.pager__item.is-disabled span {
    opacity: 0.4;
    cursor: default;
}

/* =========================================
   Page descriptive block (Actress / Maker / Genre)
   ========================================== */

.page-description {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem 1.75rem;
    background: #111;
    border-radius: 12px;
    border: 1px solid #333;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ddd;
}

.page-description__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.page-description p {
    margin: 0;
}

.page-description p + p {
    margin-top: 0.7rem;
}

.page-description__highlight {
    color: #ff2e8f;
    font-weight: 600;
}

/* =========================
   Ad blocks
   ========================= */
.ad-block {
    margin: 16px 0;
    text-align: center;
}

.ad-block--wide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.ad-block a {
    display: inline-block;
}

/* バナー画像をレスポンシブに */
.ad-block img {
    max-width: 100%;
    height: auto;
}

/* PC / SP 切り替え用 */
.ad--pc-only {
    display: none;
}

.ad--sp-only {
    display: block;
}

@media (min-width: 768px) {
    .ad--pc-only {
        display: block;
    }
    .ad--sp-only {
        display: none;
    }
}
