/* ==========================================================================
   oppai-alien.com - レイアウト確認用スタイル (Cyber & Glamorous Dark)
   ========================================================================== */

:root {
    --bg-main: #0a0a0e;
    --bg-card: #121219;
    --text-primary: #e2e2ec;
    --text-muted: #8a8a9c;
    --accent-pink: #ff2a6d;
    --accent-purple: #9b51e0;
    --accent-blue: #3b82f6;
    --accent-glow: rgba(255, 42, 109, 0.5);
    --border-color: #261a2c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
}

.site-header {
    background-color: rgba(18, 18, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo a {
    font-size: 1.6rem; font-weight: 900; color: #ffffff; text-decoration: none; letter-spacing: 0.05em;
}
.logo .highlight { color: var(--accent-pink); text-shadow: 0 0 10px var(--accent-glow); }
.r18-badge {
    background-color: transparent;
    color: var(--accent-pink);
    border: 2px solid var(--accent-pink);
    font-size: 0.75rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 0 0 5px var(--accent-glow);
    box-shadow: 0 0 5px var(--accent-glow);
    white-space: nowrap;
}
.global-nav ul { display: flex; list-style: none; gap: 20px; }
.nav-link { color: var(--text-primary); text-decoration: none; font-weight: bold; transition: color 0.3s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--accent-pink); }

.header-right { display: flex; align-items: center; }
.menu-overlay { display: none; }
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 25px;
}
.section-title {
    font-size: 1.3rem;
    border-left: 4px solid var(--accent-pink);
    padding-left: 12px;
    margin-bottom: 0;
}
.more-link {
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 12px;
    transition: all 0.2s ease;
}
.more-link:hover {
    background: var(--border-color);
    color: #fff;
}

.not-found-block { text-align: center; padding: 60px 20px; }
.not-found-title { font-size: 1.3rem; margin-bottom: 12px; }
.not-found-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

.sort-select-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}
.sort-select {
    background: #1a1a22;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.result-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -14px 0 20px;
}

.item-grid { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.item-card {
    position: relative;
    display: block;
    background: linear-gradient(145deg, #14141d, #0d0d14);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    z-index: 1;
}
.new-badge {
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow);
}
.sale-badge {
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(155, 81, 224, 0.5);
}
.coming-soon-badge {
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}
@media (any-hover: hover) and (any-pointer: fine) {
    .item-card:hover {
        transform: translateY(-4px);
        border-color: var(--accent-pink);
        box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
    }
}
.item-card-link { display: block; text-decoration: none; color: inherit; }
.item-card-detail-link {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(60, 60, 68, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 10px;
    text-decoration: none;
    z-index: 1;
}
.item-card img,
.item-card-noimage { width: 100%; aspect-ratio: 8 / 5; object-fit: contain; display: block; background-color: #1a1a22; }
.item-card-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.item-card-body { padding: 12px; }
.item-card-title {
    font-size: 0.9rem; color: #fff; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-card-actress {
    font-size: 0.8rem; color: var(--accent-purple); margin-top: 6px;
}
.item-card-meta {
    font-size: 0.78rem; color: var(--text-muted); margin-top: 8px;
    display: flex; justify-content: space-between;
}
.item-card-price { color: var(--accent-pink); font-weight: bold; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-block;
    min-width: 36px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
}
.page-link:hover { border-color: var(--accent-pink); color: var(--accent-pink); }
.page-link.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: #fff;
    font-weight: bold;
}
.page-link.disabled { color: var(--text-muted); pointer-events: none; opacity: 0.5; }
.page-ellipsis { color: var(--text-muted); padding: 0 4px; }
/* 最初・最後のページへ飛ぶ「«」「»」。番号リンクを隠すスマホでだけ表示する */
.page-edge { display: none; min-width: 32px; padding-left: 8px; padding-right: 8px; }
@media (max-width: 360px) {
    .pagination { gap: 4px; }
    .pagination .page-link { padding-left: 8px; padding-right: 8px; }
}
.page-indicator {
    display: none;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-primary);
    padding: 8px 10px;
}

.site-footer {
    background-color: #060608;
    border-top: 1px solid var(--border-color);
    text-align: center; padding: 40px 20px; font-size: 0.85rem; color: var(--text-muted);
    margin-top: 40px;
}
.credit-box { margin-bottom: 15px; }
.footer-sns { margin-bottom: 15px; }
.footer-sns a { color: var(--text-primary); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
    .footer-sns a:hover { color: var(--accent-pink); }
}

/* ヘッダーのメニューは項目が8つあるので、1120px以下ではハンバーガーに畳む */
@media (max-width: 1120px) {
    .header-container { position: relative; }

    .hamburger-btn { display: block; }

    .header-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #121219;
        border-bottom: 2px solid var(--accent-pink);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 14px;
    }
    .header-right.open { display: flex; }
    /* メニューを開いている間の、後ろの暗い膜（ヘッダーの下、ほかの内容の上） */
    .menu-overlay.show { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, 0.6); }
    .global-nav ul { flex-direction: column; gap: 14px; }
}

@media (max-width: 600px) {
    .site-header { padding: 10px 0; }
    .logo a { font-size: 1.3rem; }

    .hide-mobile { display: none; }
    .page-indicator { display: inline-block; }
    .page-edge { display: inline-block; }
    .r18-badge { font-size: 0.65rem; padding: 1px 5px; }
}

.age-gate {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 8, 0.96);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.age-gate.show { display: flex; }
body.no-scroll { overflow: hidden; }
.age-gate-box {
    max-width: 420px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
}
.age-gate-message {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.age-gate-yes,
.age-gate-no {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
}
.age-gate-yes {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 42, 109, 0.5);
}
.age-gate-no {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.item-grid > .breadcrumb:last-child { margin-top: 30px; margin-bottom: 0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-pink); }
.breadcrumb span { color: var(--text-primary); }

.video-main {
    display: grid;
    grid-template-columns: minmax(280px, 480px) 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.video-main-image { display: block; position: relative; }
.video-main-image img,
.video-main-image .item-card-noimage {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: contain;
    background-color: #1a1a22;
    border-radius: 12px;
    display: block;
}
.video-main-image .item-card-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    border-left: 4px solid var(--accent-pink);
    padding-left: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.actress-title-block {
    border-left: 4px solid var(--accent-pink);
    padding-left: 14px;
    margin-bottom: 20px;
}
.actress-title-block .actress-card-ruby { font-size: 0.85rem; }
.actress-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
}
.video-meta {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.video-meta th, .video-meta td {
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.video-meta th {
    width: 90px;
    padding-right: 16px;
    color: var(--text-muted);
    font-weight: normal;
    vertical-align: top;
    white-space: nowrap;
}
.video-meta td { color: var(--text-primary); }
.meta-link { color: var(--accent-pink); margin-right: 8px; }
.genre-tag {
    display: inline-block;
    background: var(--border-color);
    color: var(--text-primary);
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 2px 4px 2px 0;
    text-decoration: none;
}
.campaign-tag {
    text-decoration: none;
    display: inline-block;
    background: var(--accent-purple);
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 2px 12px;
    margin: 4px 8px 4px 0;
    border-radius: 4px;
}
.video-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
}
.video-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-pink);
}
/* セール中の価格：通常価格（取り消し線）→ 現在価格 */
.video-price-wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.video-price-list { color: var(--text-muted); font-size: 0.9rem; }
.video-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 0 18px rgba(255, 42, 109, 0.5);
    transition: all 0.2s ease;
}
.video-cta-btn:hover { transform: scale(1.03); box-shadow: 0 0 28px rgba(255, 42, 109, 0.8); }

.video-gallery-section { margin-bottom: 40px; }
.video-gallery-section .section-title { margin-bottom: 20px; }
.video-sample-movie {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 3 / 2;
    background-color: #1a1a22;
    border-radius: 12px;
    overflow: hidden;
}
.video-sample-movie iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
}
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.video-gallery img {
    width: 100%;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    border-radius: 8px;
    background-color: #1a1a22;
    display: block;
    cursor: zoom-in;
}

.image-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 8, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.image-lightbox.show { display: flex; }
.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    cursor: default;
}
.lightbox-close,
.lightbox-arrow {
    position: absolute;
    background: rgba(18, 18, 25, 0.7);
    border: 1px solid var(--border-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--accent-pink); }
.lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
}
.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 600px) {
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
}

.video-cta-bottom { text-align: center; margin-bottom: 40px; }
.card-row + .video-cta-bottom,
.actress-grid + .video-cta-bottom { margin-top: 30px; }

.actress-profile {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.actress-profile-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #1a1a22;
    border-radius: 12px;
    display: block;
}
.actress-profile-image .actress-card-noimage {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1a1a22;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 700px) {
    .video-main { grid-template-columns: 1fr; }
    .actress-profile { grid-template-columns: 1fr; }
}

.name-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.name-card {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(145deg, #14141d, #0d0d14);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.name-card-name {
    min-width: 0;
    overflow-wrap: anywhere;
}
.name-card-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
    .name-card:hover {
        border-color: var(--accent-pink);
        box-shadow: 0 0 14px rgba(255, 42, 109, 0.3);
    }
}
@media (max-width: 700px) {
    .name-grid { grid-template-columns: 1fr; }
}
.actress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.actress-card {
    position: relative;
    display: block;
    background: linear-gradient(145deg, #14141d, #0d0d14);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .actress-card:hover {
        transform: translateY(-4px);
        border-color: var(--accent-pink);
        box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
    }
}
.actress-card-link { display: block; text-decoration: none; color: inherit; }
.actress-card-detail-link {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(60, 60, 68, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 10px;
    text-decoration: none;
    z-index: 1;
}
.actress-card img,
.actress-card-noimage {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background-color: #1a1a22;
}
.actress-card-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.actress-card-body { padding: 10px; text-align: center; }
.actress-card-ruby {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.actress-card-name {
    font-size: 0.85rem;
    color: #fff;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.actress-card-measurements {
    font-size: 0.75rem;
    color: var(--accent-pink);
    margin-top: 4px;
}
.actress-card-video-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ページの一番上へ戻るボタン（script.jsが生成し、少しスクロールしたら表示する） */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--accent-pink);
    background: rgba(40, 14, 28, 0.92);
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 0 14px rgba(255, 42, 109, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        background: var(--accent-pink);
        color: #fff;
    }
}

/* 動画詳細・女優詳細の共有ボタン（FANZAボタンより目立たないよう控えめにする） */
.share-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 40px;
}
.video-cta-bottom + .share-buttons { margin-top: -22px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #1a1a22;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.share-btn svg { width: 20px; height: 20px; display: block; }
.share-btn-x { background: #000; border-color: #3a3a44; }
.share-btn-line { background: #000; border-color: #3a3a44; }
.share-btn-line svg { width: 26px; height: 26px; }
.share-btn-copy { background: #000; border-color: #3a3a44; color: #fff; }
.share-btn-copy .icon-check { display: none; }
.share-btn-copy.copied { border-color: var(--accent-pink); color: var(--accent-pink); }
.share-btn-copy.copied .icon-copy { display: none; }
.share-btn-copy.copied .icon-check { display: block; }
@media (hover: hover) and (pointer: fine) {
    .share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 42, 109, 0.35); }
}
/* 女優詳細の「新着動画」「評価の高い動画」：動画カード1枚を、出演動画の一覧より大きく出す */
.actress-latest { margin-bottom: 40px; }
.actress-latest .item-card { max-width: 460px; }
.actress-latest .item-card-body { padding: 16px; }
.actress-latest .item-card-title { font-size: 1.05rem; }
.actress-latest .item-card-actress { font-size: 0.9rem; }
.actress-latest .item-card-meta { font-size: 0.88rem; }

/* 女優のサンプル動画一覧（/actresses/{ID}/samples）：PCは左にプレーヤー・右に詳細とボタン、スマホは上にプレーヤー・下に詳細とボタン */
.video-cta-btn-sub {
    background: transparent;
    border: 2px solid var(--accent-pink);
    color: var(--accent-pink);
    box-shadow: none;
    /* 名前が長い女優（例：河北彩花（河北彩伽））でも、スマホで見切れないよう、折り返す */
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
}
.video-cta-btn-sub:hover { background: rgba(255, 42, 109, 0.12); box-shadow: 0 0 18px rgba(255, 42, 109, 0.5); }
.video-cta-bottom + .video-cta-sub { margin-top: -22px; }
.sample-list { margin-bottom: 30px; }
.sample-item {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}
.sample-item:last-child { border-bottom: 0; margin-bottom: 0; }
.pagination + .sample-back { margin-top: 44px; }
.sample-player .video-sample-movie { max-width: none; }
.sample-title { font-size: 1.05rem; line-height: 1.5; margin: 0 0 10px; }
.sample-title a { color: #fff; text-decoration: none; }
.sample-title a:hover { color: var(--accent-pink); }
.sample-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.sample-info .video-meta { margin-bottom: 16px; }
/* 価格：表の外、FANZAボタンの上に、赤字のボールドで出す（動画詳細の価格と同じ色・太さ） */
.sample-price { color: var(--accent-pink); font-size: 1.3rem; font-weight: bold; margin-bottom: 12px; }
.sample-cta { white-space: normal; text-align: center; }
@media (max-width: 900px) {
    .sample-item { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sample-cta { display: block; }
}

/* 女優詳細のSNSボタン（共有ボタンと同じ丸いアイコン。プロフィールの表の下に、左づめで縦に並べる） */
.sns-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 0;
}
.sns-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
}
.sns-name { min-width: 0; overflow-wrap: anywhere; }
.sns-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #3a3a44;
    border-radius: 50%;
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sns-btn svg { width: 20px; height: 20px; display: block; }
@media (hover: hover) and (pointer: fine) {
    .sns-link:hover .sns-btn { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255, 42, 109, 0.35); }
    .sns-link:hover .sns-name { color: var(--accent-pink); }
}
/* 「リンクをコピー」を押したときの吹き出し（ボタンの上、右端をそろえて出す） */
.share-btn-copy { position: relative; }
.share-balloon {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
    z-index: 5;
}
.share-balloon::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 14px;
    border: 6px solid transparent;
    border-top-color: var(--accent-pink);
}
.share-balloon.show { opacity: 1; transform: none; }

/* DMMのウィジェット（300×250）。読み込み前後で画面がずれないよう、枠の高さを先に確保する */
.dmm-widget {
    width: 300px;
    max-width: 100%;
    min-height: 250px;
    margin: 30px auto;
}
.dmm-widget iframe { display: block; }

/* DMMのバナー（PC用とスマホ用を両方出力して、画面幅でどちらかを隠す）。高さを先に確保して、ずれを防ぐ */
.dmm-banner-wrap { margin: 20px auto; text-align: center; }
.dmm-banner ins { display: block; text-decoration: none; }
.dmm-banner img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.dmm-banner-pc { min-height: 100px; }
.dmm-banner-sp { display: none; min-height: 50px; }
@media (max-width: 700px) {
    .dmm-banner-pc { display: none; }
    .dmm-banner-sp { display: block; }
}

/* 「ページが見つかりません」の共通ブロック（大きな404と、主要ページへのボタンの列） */
.not-found-code {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-pink);
    text-shadow: 0 0 20px var(--accent-glow);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.not-found-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.not-found-link {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: linear-gradient(145deg, #14141d, #0d0d14);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
@media (hover: hover) and (pointer: fine) {
    .not-found-link:hover {
        border-color: var(--accent-pink);
        color: var(--accent-pink);
    }
}

/* 絞り込み結果が0件のときの案内 */
.no-results { text-align: center; color: var(--text-muted); padding: 40px 0 60px; }

/* ワクワクメールのバナー（画像は640×200。スマホでは幅に合わせて縮める） */
.wakuwaku-banner { max-width: 680px; margin: 30px auto 0; padding: 0 20px; text-align: center; }
.wakuwaku-banner a { display: block; }
.wakuwaku-banner img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; }
/* 本文の幅（.item-grid）の中では、左右の余白が二重にならないようにする */
.item-grid .wakuwaku-banner { padding: 0; }

/* バナーの上の会員数（iframe。高さを先に確保して、画面のずれを防ぐ） */
/* iframeの中の文字は黒系で変えられないため、暗い背景に溶けないよう、白い背景を敷く */
.wakuwaku-banner-members { width: 200px; max-width: 100%; height: 26px; margin: 6px auto 0; line-height: 0; background: #fff; border-radius: 4px; overflow: hidden; }
.wakuwaku-banner-members iframe { border: 0; max-width: 100%; }

/* 動画詳細の関連動画 */
.video-related { margin-bottom: 40px; }
/* キャンペーンのタイトル（価格とFANZAボタンの上） */
/* 動画詳細：その動画が対象のセールのカード（ホームと同じ部品）。複数あるときは、縦に並べる */
.video-campaigns { display: grid; gap: 10px; margin-bottom: 12px; }
.video-campaigns .campaign-card { padding: 12px 14px; }
.video-campaigns .campaign-card-title { font-size: 1.1rem; }
/* PC：ホームのセールのカード（3列のうちの1枚）と、同じ横の長さにする。ホームは、本文の幅を3等分（すき間12px×2）。
   スクロールバーの分がずれないよう、画面の幅（vw）ではなく、本文の幅（cqw）で計算する */
@media (min-width: 901px) {
    .item-grid:has(.video-campaigns) { container-type: inline-size; }
    .video-campaigns .campaign-card { width: calc((100cqw - 24px) / 3); max-width: 100%; }
}

/* ホームの「開催中のセール」 */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.campaign-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--accent-purple);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
}
.campaign-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.campaign-card-sale {
    background: var(--accent-purple);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 999px;
}
.campaign-card-remain {
    color: var(--accent-pink);
    font-size: 0.8rem;
    font-weight: bold;
}
.campaign-card-title {
    color: var(--accent-pink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.campaign-card-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
}
.campaign-card-meta + .campaign-card-meta { margin-top: 2px; }
@media (hover: hover) and (pointer: fine) {
    .campaign-card:hover { background: rgba(155, 81, 224, 0.12); }
}
@media (max-width: 900px) {
    .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .campaign-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 絞り込み中の表示（解除できる横長の丸いチップ）。「発売中」「発売中＋近日発売」のタグより控えめにする */
.filter-chip-row { margin-bottom: 10px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 3px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
}
.filter-chip-x { font-size: 0.9rem; line-height: 1; }
@media (hover: hover) and (pointer: fine) {
    .filter-chip:hover { color: var(--text-primary); }
}

/* 動画一覧のジャンル絞り込み：PCは左のサイドバー、スマホ・タブレットはドロワー */
.list-layout { display: flex; align-items: flex-start; gap: 24px; }
.list-main { flex: 1; min-width: 0; }
.filter-sidebar {
    flex: 0 0 200px;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 12px;
}
.filter-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 2px; }
/* 見出しの開閉（<details>）：見出しが「めくれる」ボタン。たたんでいる間は、中身の分の余白をあけない */
summary.filter-sidebar-head { list-style: none; cursor: pointer; }
summary.filter-sidebar-head::-webkit-details-marker { display: none; }
.filter-section:not([open]) > summary.filter-sidebar-head { margin-bottom: 0; }
.filter-sidebar-arrow {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 2px 3px 4px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.filter-section[open] > summary .filter-sidebar-arrow { margin-bottom: 0; margin-top: 5px; transform: rotate(-135deg); }
.filter-sidebar-title { font-size: 1rem; font-weight: 800; line-height: 1.2; padding-left: 8px; border-left: 3px solid var(--accent-pink); }
.filter-sidebar-close { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.filter-genre-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.filter-genre-list a {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #b4b4c4;
    font-size: 0.8rem;
    font-weight: normal;
    text-decoration: none;
}
.filter-genre-list li.selected a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--accent-pink);
    color: #fff;
    font-weight: bold;
}
.filter-genre-x { font-size: 1rem; line-height: 1; }
.filter-section + .filter-section { margin-top: 18px; }
.filter-more-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #b4b4c4;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
}
.filter-more-btn[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
    .filter-more-btn:hover { background: rgba(255, 42, 109, 0.18); color: #fff; }
}
.filter-sidebar-head-next { margin-top: 18px; }
/* 名前の検索欄（AV女優一覧のサイドバー）：入力欄の右端の中に、虫眼鏡のボタン */
.filter-search { position: relative; }
/* 女優詳細の「別名」：1つずつ改行して、見やすく並べる */
.actress-alias-item { line-height: 1.6; }
.actress-alias-item + .actress-alias-item { margin-top: 6px; }
.filter-search input[type="search"] {
    width: 100%;
    padding: 8px 38px 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.85rem;
    -webkit-appearance: none;
    appearance: none;
}
.filter-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.filter-search input[type="search"]::placeholder { color: var(--text-muted); }
.filter-search input[type="search"]:focus { outline: none; border-color: var(--accent-pink); }
.filter-search button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .filter-search button:hover { color: var(--accent-pink); }
}
.kana-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.kana-grid-link {
    display: block;
    padding: 7px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #b4b4c4;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}
.kana-grid-link.selected { background: var(--accent-pink); color: #fff; font-weight: bold; }
@media (hover: hover) and (pointer: fine) {
    .kana-grid-link:not(.selected):hover { background: rgba(255, 42, 109, 0.18); color: #fff; }
}
.filter-genre-all {
    display: block;
    margin-top: 10px;
    padding: 10px 8px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
    text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
    .filter-genre-all:hover { color: var(--text-primary); }
}
.filter-sidebar-overlay { display: none; }
.filter-top-row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
/* 0件のとき（並べ替え行がない）は、件数表示を、チップの直下に詰めない */
.filter-top-row + .result-count { margin-top: 0; }
.filter-drawer-btn {
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--accent-pink);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 7px 18px;
    box-shadow: 0 0 12px rgba(255, 42, 109, 0.45);
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .filter-genre-list li:not(.selected) a:hover { background: rgba(255, 42, 109, 0.18); color: #fff; }
}
@media (max-width: 900px) {
    .list-layout { display: block; }
    .filter-drawer-btn { display: inline-flex; }
    .filter-drawer-btn { margin-bottom: 2px; }
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1100;
        width: min(80vw, 300px);
        flex: none;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s;
    }
    .filter-sidebar.open { transform: translateX(0); visibility: visible; }
    .filter-sidebar { padding-top: 48px; }
    .filter-sidebar-close { display: block; position: absolute; top: 8px; right: 10px; padding: 4px 10px; }
    .filter-sidebar-overlay.show { display: block; position: fixed; inset: 0; z-index: 1099; background: rgba(0, 0, 0, 0.6); }
}
