/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    margin-bottom: 0;
}

.site-header {
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}

.site-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

body:not(.avr24) .header {
    background-color: #b399d9;
    /* Light purple background */
    border-bottom: 1px solid #e0e0e0;
    /* padding: 20px 0; */
}

.header-in {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

body:not(.avr24) .header-in {
    padding: 20px 20px 10px 20px;
}

.header-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.header-logo .fanza-logo-img {
    display: block;
    width: 88px;
    height: auto;
}

.fc2-ranking-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.fc2-ranking-image {
    display: block;
    width: 88px;
    height: 35px;
    border: 0;
}

.fc2-ranking-text {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #fff;
    text-decoration: none;
    line-height: 1.1;
    border-bottom: 0;
    text-align: center;
    width: 88px;
    white-space: nowrap;
}

.fc2-ranking-link:hover {
    text-decoration: none;
}

.fanza-logo-pr {
    display: block;
    font-size: 10px;
    line-height: 1;
    text-align: center;
    color: #fff;
    width: 88px;
    align-self: center;
}

.mobile-menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100%;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: #f0f0f0;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}

.mobile-menu-title {
    font-size: 14px;
    font-weight: bold;
}

.mobile-menu-list {
    display: grid;
    gap: 8px;
}

.mobile-menu-item {
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

body:not(.avr24) .mobile-menu-toggle {
    background: #ffffff;
    color: #6a0dad;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body:not(.avr24) .mobile-menu-panel {
    background: #ffffff;
    box-shadow: -6px 0 16px rgba(0, 0, 0, 0.2);
}

body:not(.avr24) .mobile-menu-title {
    color: #333;
}

body:not(.avr24) .mobile-menu-item {
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

body:not(.avr24) .mobile-menu-item:hover {
    background: #f3e9ff;
    border-color: #b399d9;
}

.wrap {
    position: relative;
}

.cf::before,
.cf::after {
    content: "";
    display: table;
}

.cf::after {
    clear: both;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

body:not(.avr24) .site-title {
    color: #fff;
}

.site-title-break {
    display: none;
}

.site-title-sep {
    display: inline;
}

.site-title-main {
    color: var(--primary);
}

.title-pr {
    font-size: 14px;
    margin-bottom: 15px;
}

body:not(.avr24) .title-pr {
    color: #fff;
}

/* Header Search */
.header-search {
    margin: 15px auto;
    max-width: 500px;
    width: 100%;
}

.mobile-quick-links {
    display: none;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px auto 0;
}

.mobile-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

body:not(.avr24) .mobile-quick-link {
    background: #ffffff;
    color: #6a0dad;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

body:not(.avr24) .mobile-quick-link:hover {
    background: #f3e9ff;
}

.mobile-quick-icon {
    font-size: 14px;
    line-height: 1;
}

.search-form {
    display: flex;
    gap: 0;
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-button {
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.avr24) .search-form {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body:not(.avr24) .search-input {
    color: #333;
    background-color: #fff;
}

body:not(.avr24) .search-input::placeholder {
    color: #999;
}

body:not(.avr24) .search-button {
    background-color: #b399d9;
    color: #fff;
}

body:not(.avr24) .search-button:hover {
    background-color: #9966cc;
}

.search-icon {
    font-size: 18px;
    line-height: 1;
}

/* Header Navigation */
.header-nav {
    margin-top: 0;
}

body:not(.avr24) .header-nav {
    background-color: #b399d9;
    padding: 10px 0;
    border-radius: 4px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list li:last-child {
    border-right: none;
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: unset;
}

@media (max-width: 768px) {
    body:not(.avr24) .nav-link {
        border: none;
    }
}

.nav-icon {
    font-size: 16px;
    display: inline-block;
}

.nav-caret {
    margin-left: 4px;
    color: var(--primary);
}

body:not(.avr24) .nav-link {
    color: #ffffff;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    box-shadow: none;
}

body:not(.avr24) .nav-link.is-active {
    background-color: #ffffff;
    color: #6a0dad;
    border-color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

body:not(.avr24) .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding-top: 12px;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu .nav-link {
    display: block;
    white-space: nowrap;
    text-align: left;
    border-radius: 0;
    border: none;
}

body:not(.avr24) .nav-dropdown-menu {
    background: #fff;
    border: 1px solid #e0e0e0;
}

body:not(.avr24) .nav-dropdown-menu .nav-link {
    color: #333;
    padding: 8px 16px;
    background: transparent;
    border: none;
}

body:not(.avr24) .nav-dropdown-menu .nav-link:hover {
    background: #f5f0fa;
}

/* Main Content */
.main {
    padding: 20px 0;
}

.current-filter {
    font-size: 14px;
    margin: 0 0 15px;
}

.genre-lead {
    display: none;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
    padding: 0 25px;
}

.genre-lead.is-visible {
    display: block;
}

body:not(.avr24) .genre-lead {
    color: #333;
}

body:not(.avr24) .current-filter {
    color: #555;
}

/* Review List */
.review-list {
    margin-bottom: 40px;
}

.review-entry {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

body:not(.avr24) .review-entry {
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

body:not(.avr24) .review-entry:last-child {
    border-bottom: none;
}

/* Review Image */
.review-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 400px;
    height: fit-content;
    aspect-ratio: 3 / 2;
    max-height: 480px;
    overflow: hidden;
}

body:not(.avr24) .review-image-wrapper {
    background-color: #000;
}

.review-image-wrapper a:not(.sample-play-button) {
    display: block;
    width: 100%;
    height: 100%;
}

.sample-play-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.sample-play-button:hover {
    background: rgba(0, 0, 0, 0.75);
}

.sample-play-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #6a0dad;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}

.platform-fanza {
    background-color: #6a0dad;
}

/* Review Content */
.review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-date-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.review-date {
    font-size: 14px;
}

body:not(.avr24) .review-date {
    color: #666;
}

.review-rating-inline {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.review-rating-inline .star {
    color: #ffa500;
    font-size: 16px;
    line-height: 1;
}

.review-rating-inline .star-full {
    color: #ffa500;
}

.review-rating-inline .star-half {
    color: transparent;
    background: linear-gradient(90deg, #ffa500 50%, #ddd 50%);
    -webkit-background-clip: text;
    background-clip: text;
}

.review-rating-inline .star-empty {
    color: #ddd;
}

.review-stars {
    color: #ffa500;
    font-size: 14px;
}

.review-rating-value {
    font-size: 13px;
    color: #888;
    margin-left: 4px;
}

.review-rating-count {
    font-size: 12px;
    color: #aaa;
    margin-left: 2px;
}

/* ===================== User Review Button ===================== */
.user-review-btn {
    background: none;
    border: 1px solid #ffa500;
    color: #ffa500;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 6px;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    white-space: nowrap;
    vertical-align: middle;
}
.user-review-btn:hover {
    background: #ffa500;
    color: #000;
}

/* ===================== User Review Modal ===================== */
.user-review-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.user-review-modal.is-open {
    display: flex;
}
.user-review-dialog {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    width: min(95vw, 640px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.user-review-header {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.user-review-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.user-review-close {
    flex-shrink: 0;
    color: #999;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.user-review-close:hover {
    color: #fff;
}
.user-review-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.user-review-loading,
.user-review-empty,
.user-review-error {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 0.88rem;
}
.user-review-item {
    padding: 14px 20px;
    border-bottom: 1px solid #282840;
    font-size: 0.82rem;
    line-height: 1.75;
    color: #bbb;
}
.user-review-item:last-child {
    border-bottom: none;
}
.user-review-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.user-review-stars {
    color: #ffa500;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
}
.user-review-badge {
    font-size: 0.65rem;
    background: rgba(255, 92, 109, 0.15);
    color: #ff5c6d;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.user-review-nickname {
    font-weight: 600;
    color: #ddd;
    font-size: 0.78rem;
}
.user-review-date {
    font-size: 0.72rem;
    color: #666;
}
.user-review-comment {
    margin: 0;
    color: #bbb;
    font-size: 0.82rem;
    line-height: 1.8;
}
.user-review-retry {
    background: none;
    border: 1px solid #555;
    color: #999;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 12px;
    font-family: inherit;
}
.user-review-retry:hover {
    border-color: #ffa500;
    color: #ffa500;
}

@media (max-width: 768px) {
    .user-review-dialog { width: 95vw; max-height: 85vh; }
    .user-review-header { padding: 14px 16px; }
    .user-review-item { padding: 12px 16px; }
    .user-review-btn { font-size: 10px; padding: 2px 6px; }
}

.review-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.review-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

body:not(.avr24) .review-link:hover {
    color: #6a0dad;
}

.review-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.review-platform {
    display: inline-block;
}

.review-description {
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0;
    padding: 10px;
    border-radius: 4px;
}

.review-actress {
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 0;
}

.review-maker {
    font-size: 13px;
    line-height: 1.6;
}

body:not(.avr24) .review-description {
    color: #555;
    background-color: #f9f9f9;
    border-left: 3px solid #ff69b4;
}

body:not(.avr24) .review-actress {
    color: #555;
}

body:not(.avr24) .review-maker {
    color: #555;
}

.review-actress-link {
    display: inline;
    border: none;
    background: none;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.review-maker-link {
    display: inline;
    border: none;
    background: none;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.review-genre-link {
    display: inline;
    border: none;
    background: none;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    margin: 0 3px 3px;
}

body:not(.avr24) .review-actress-link,
body:not(.avr24) .review-maker-link,
body:not(.avr24) .review-genre-link {
    color: #6a0dad;
}

body:not(.avr24) .review-actress-link:hover,
body:not(.avr24) .review-maker-link:hover,
body:not(.avr24) .review-genre-link:hover {
    color: #4a0a8d;
}

/* Sample Images Slider */
.sample-images-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    border-radius: 0;
}

.sample-images-slider .sample-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sample-images-slider .sample-image.active {
    opacity: 1;
}

.sample-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.sample-video-modal.is-open {
    display: flex;
}

.sample-video-dialog {
    position: relative;
    width: min(90vw, 720px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.sample-video-media-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(var(--sample-video-scale, 1));
    transform-origin: center;
}

.sample-video-player {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    background: #000000;
}

.sample-video-iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    max-height: 80vh;
    display: block;
    border: none;
    background: transparent;
}

@media (pointer: coarse) {
    .sample-video-modal {
        padding: 0;
        background: rgba(0, 0, 0, 0.6);
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .sample-video-dialog {
        width: 100vw;
        width: 100dvw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        max-width: none;
        overflow: hidden;
        justify-content: center;
    }

    .sample-video-media-wrapper {
        width: 720px;
        height: 480px;
    }

    .sample-video-iframe,
    .sample-video-player {
        width: 720px;
        height: 480px;
        max-height: none;
        aspect-ratio: auto;
    }
}

.sample-video-media.is-hidden {
    display: none;
}

.sample-video-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sample-video-close:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

.review-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 24px;
}

.review-modal.is-open {
    display: flex;
}

.review-dialog {
    position: relative;
    width: 430px;
    height: 932px;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 12px;
    overflow: hidden;
}

.review-modal-body {
    position: relative;
    width: 100%;
    height: 100%;
}

.review-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #ffffff;
}

.review-modal-iframe.is-hidden {
    display: none;
}

.review-modal-genres {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 56px 16px 16px;
    gap: 12px;
    overflow: auto;
}

.review-modal-genres.is-hidden {
    display: none;
}

.review-modal-genre-header {
    font-size: 14px;
    font-weight: bold;
}

.review-modal-genre-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    flex: 1;
}

.review-modal-genres .review-modal-genre-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-modal-makers .review-modal-genre-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.maker-modal-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maker-modal-category-title {
    font-size: 13px;
    font-weight: bold;
}

.maker-modal-category-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.review-modal-genre-placeholder {
    grid-column: 1 / -1;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
    height: 100%;
}

.genre-modal-item,
.maker-modal-item {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
}

.review-modal-genres .genre-modal-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    min-height: 44px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    border: 1px solid var(--border);
}

.review-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

body:not(.avr24) .review-modal {
    background: rgba(0, 0, 0, 0.6);
}

body:not(.avr24) .review-dialog {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

body:not(.avr24) .review-modal-genres {
    background: #ffffff;
}

body:not(.avr24) .review-modal-genre-header {
    color: #333;
}

body:not(.avr24) .review-modal-genre-placeholder {
    color: #666;
}

body:not(.avr24) .maker-modal-category-title {
    color: #333;
}

body:not(.avr24) .genre-modal-item,
body:not(.avr24) .maker-modal-item {
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    color: #333;
}

body:not(.avr24) .review-modal-genres .genre-modal-item {
    background: #f7f7f7;
    color: #333;
    border-color: #d0d0d0;
}

@media (hover: hover) and (pointer: fine) {
    body:not(.avr24) .review-modal-genres .genre-modal-item:hover {
        background: #ffffff;
        color: #333;
        border-color: #b399d9;
    }
}

body:not(.avr24) .review-modal-genres .genre-modal-item.is-active {
    background: #b399d9;
    color: #ffffff;
    border-color: #b399d9;
    font-weight: 700;
}

body:not(.avr24) .genre-modal-item.is-active,
body:not(.avr24) .maker-modal-item.is-active {
    background: #b399d9;
    color: #ffffff;
    border-color: #b399d9;
    font-weight: bold;
}

/* ジャンル複数選択状態 */
body:not(.avr24) .genre-modal-item.is-selected {
    background: #b399d9;
    color: #ffffff;
    border-color: #b399d9;
    font-weight: bold;
}

body:not(.avr24) .genre-modal-item.is-selected::after {
    content: " \2713";
    font-size: 11px;
    margin-left: 2px;
}

/* ジャンル検索ボタンフッター */
.genre-search-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
}

body:not(.avr24) .genre-search-footer {
    background: #fff;
    border-top-color: #e0e0e0;
}

.genre-search-btn {
    width: 100%;
    padding: 14px;
    background: #b399d9;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.genre-search-btn:hover {
    opacity: 0.9;
}

.genre-search-count:not(:empty)::before {
    content: "\FF08";
}

.genre-search-count:not(:empty)::after {
    content: "\4EF6\9078\629E\4E2D\FF09";
}

/* メーカーテーブルビュー形式 */
.maker-all-btn {
    width: 100%;
    margin-bottom: 16px;
}

.maker-category-section {
    margin-bottom: 20px;
}

.maker-category-title {
    font-size: 13px;
    font-weight: bold;
    color: #ff6b9d;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

.maker-list {
    display: flex;
    flex-direction: column;
    background: #333;
}

.maker-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #1a1a1a;
    border: none;
    border-bottom: 1px solid #333;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.15s;
}

.maker-list-item:hover {
    background: #2a2a2a;
}

.maker-list-item.is-active {
    background: #2d2d2d;
    border-left: 3px solid #ff6b9d;
}

.maker-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: #fff;
}

.maker-info {
    flex: 1;
    min-width: 0;
}

.maker-name {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.maker-comment {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ライトテーマ用 */
body:not(.avr24) .maker-category-title {
    color: #6b4ca0;
    border-bottom-color: #ddd;
}

body:not(.avr24) .maker-list {
    background: #eee;
}

body:not(.avr24) .maker-list-item {
    background: #fff;
    border-bottom-color: #eee;
}

body:not(.avr24) .maker-list-item:hover {
    background: #f5f5f5;
}

body:not(.avr24) .maker-list-item.is-active {
    background: #f0ebf7;
    border-left-color: #6b4ca0;
}

body:not(.avr24) .maker-name {
    color: #333;
}

body:not(.avr24) .maker-comment {
    color: #666;
}

/* Actress Grid (3-column responsive) */
.actress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.actress-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.actress-grid-item:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
}

.actress-grid-item:active {
    transform: translateY(0);
}

.actress-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.actress-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    background: #333;
}

.actress-rank {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.actress-name {
    font-size: 12px;
    text-align: center;
    color: #fff;
    line-height: 1.3;
    word-break: break-all;
}

.actress-loading,
.actress-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: #999;
    font-size: 14px;
}

/* 女優ページ（SEO用静的ページ） */
.actress-page {
    margin-bottom: 24px;
}

.actress-page .review-modal-genre-header {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b9d;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    margin-bottom: 0;
}

body:not(.avr24) .actress-page .review-modal-genre-header {
    color: #e91e63;
    border-bottom-color: #ddd;
}

/* ライトテーマ用 */
body:not(.avr24) .actress-grid-item {
    background: #fff;
    border-color: #ddd;
}

body:not(.avr24) .actress-grid-item:hover {
    background: #f5f5f5;
}

body:not(.avr24) .actress-image {
    background: #eee;
}

body:not(.avr24) .actress-name {
    color: #333;
}

/* レスポンシブ: 画面幅に応じて縮小 */
@media (max-width: 400px) {
    .actress-grid {
        gap: 8px;
        padding: 12px;
    }

    .actress-grid-item {
        padding: 6px;
    }

    .actress-name {
        font-size: 11px;
    }
}

body:not(.avr24) .review-modal-close {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.review-modal-close:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .review-modal {
        padding: 0;
    }

    .review-dialog {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .review-modal-genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maker-modal-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-modal-genres {
        padding: 56px 12px 12px;
    }

    .review-modal-close {
        top: 12px;
        right: 12px;
    }
}

body.is-modal-open {
    overflow: hidden;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 16px;
}

.star {
    color: #ffa500;
    font-size: 18px;
    line-height: 1;
}

.star-full {
    color: #ffa500;
}

.star-half {
    color: #ffa500;
    opacity: 0.7;
}

.star-empty {
    color: #ddd;
}

.rating-value {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
    font-weight: bold;
}

.review-price {
    font-size: 17px;
    font-weight: bold;
    color: #ff5c6d;
    margin-bottom: 10px;
    text-align: right;
}

.review-action {
    text-align: right;
    margin-top: auto;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.review-read-link {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.2s;
}

body:not(.avr24) .review-read-link {
    color: #6a0dad;
}

body:not(.avr24) .review-read-link:hover {
    color: #4a0a8d;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px 0;
    gap: 16px;
}

.pagination-link {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

body:not(.avr24) .pagination-link {
    color: #6a0dad;
}

body:not(.avr24) .pagination-link:hover {
    color: #4a0a8d;
}

.pagination-prev,
.pagination-next {
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-link.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pagination-number {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.2s;
}

body:not(.avr24) .pagination-number {
    color: #333;
    border: 1px solid #ddd;
}

body:not(.avr24) .pagination-number:hover {
    background-color: #f0f0f0;
}

body:not(.avr24) .pagination-number.active {
    background-color: #6a0dad;
    color: #fff;
    border-color: #6a0dad;
}

.pagination-ellipsis {
    color: #666;
    padding: 0 5px;
}

.fanza-logo {
    margin-top: 15px;
}

.fanza-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.fanza-logo-link:hover {
    opacity: 0.8;
}

.fanza-logo-img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
}

.footer-links {
    list-style: none;
}

.footer-seo-text {
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.footer-menu-links li {
    margin: 0;
}

body:not(.avr24) .footer {
    background-color: #b399d9;
    /* Light purple background */
    border-top: 1px solid #e0e0e0;
}

body:not(.avr24) .footer-seo-text {
    color: #fff;
    opacity: 0.85;
}

.footer-link {
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

body:not(.avr24) .footer-link {
    color: #fff;
}

body:not(.avr24) .footer-link:hover {
    color: #f0f0f0;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    padding-top: 20px;
}

.footer-privacy {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 12px;
    margin: 6px 0 0;
}

.footer-privacy-link {
    color: #d4af37;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-privacy-sep {
    color: rgba(255, 255, 255, 0.6);
}

.footer-privacy-link:hover {
    color: #f5d36f;
}

body:not(.avr24) .footer-copyright {
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

body:not(.avr24) .footer-privacy-link {
    color: #ffd36a;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    z-index: 1000;
}

body:not(.avr24) .back-to-top {
    background-color: #6a0dad;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

body:not(.avr24) .back-to-top:hover {
    background-color: #4a0a8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .site-title {
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
    }

    .site-title-break {
        display: block;
    }

    .site-title-sep {
        display: none;
    }

    .avr24 .site-title::first-line {
        color: var(--primary);
        font-size: 18px;
        font-weight: 700;
    }

    .header-search {
        margin: 15px 10px;
        max-width: 100%;
    }

    .mobile-quick-links {
        display: flex;
        margin: 10px 0;
    }

    .current-filter {
        margin-bottom: 0;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        top: 16px;
        right: 16px;
    }

    .header-logo {
        position: static;
        margin: 10px 20px 0 auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
    }

    .fc2-ranking-link {
        position: fixed;
        left: 16px;
        bottom: 0;
        z-index: 1000;
        transition: transform 0.25s ease, opacity 0.25s ease;
        will-change: transform, opacity;
    }

    .fc2-ranking-link.is-hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    .back-to-top {
        transition: transform 0.25s ease, opacity 0.25s ease;
        will-change: transform, opacity;
    }

    .back-to-top.is-hidden {
        transform: translateY(calc(100% + 16px));
        opacity: 0;
        pointer-events: none;
    }

    .fc2-ranking-image {
        width: auto;
        height: 44px;
    }

    .fc2-ranking-text {
        width: auto;
        font-size: 10px;
        white-space: nowrap;
    }

    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-button {
        padding: 10px 15px;
    }

    .search-icon {
        font-size: 16px;
    }

    .nav-list {
        gap: 15px;
    }

    .nav-link {
        font-size: 13px;
        padding: 10px 15px;
        min-width: 100px;
    }

    .review-entry {
        flex-direction: column;
        gap: 15px;
    }

    .review-image-wrapper {
        width: 100%;
    }

    .review-date-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }

    .review-rating-inline .star {
        font-size: 16px;
    }

    .review-title {
        font-size: 16px;
    }

    .review-date,
    .review-meta,
    .review-rating-inline,
    .review-read-link {
        font-size: 16px;
    }

    .review-description,
    .review-actress,
    .review-actress-link,
    .review-genre-link {
        font-size: 14px;
    }

    .review-description,
    .review-genre-link {
        font-size: 14px;
    }

    .review-description,
    .review-genre-link {
        font-size: 14px;
    }

    .review-maker {
        font-size: 14px;
    }

    .review-description,
    .review-genre-link {
        font-size: 14px;
    }

    .review-action {
        text-align: right;
        margin-top: 10px;
    }

    .review-price {
        text-align: right;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-controls {
        order: 2;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        justify-content: space-around;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header-search {
        margin: 10px 5px;
    }

    .search-input {
        padding: 8px 12px;
        font-size: 16px;
    }

    .search-button {
        padding: 8px 12px;
    }

    .search-icon {
        font-size: 14px;
    }

    .review-date-wrapper {
        gap: 5px;
    }

    .review-rating-inline .star {
        font-size: 16px;
    }

    .review-title {
        font-size: 16px;
    }

    .review-date,
    .review-meta,
    .review-rating-inline,
    .review-read-link {
        font-size: 16px;
    }

    .review-description,
    .review-actress,
    .review-actress-link,
    .review-genre-link {
        font-size: 14px;
    }

    .pagination-number {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* AVR24 Theme (merged from assets/css/theme-avr24.css) */
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface2: #1f1f1f;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.62);
    --primary: #d4af37;
    --primaryLight: #eecf6d;
    --border: rgba(255, 255, 255, 0.09);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --glow: 0 0 22px rgba(212, 175, 55, 0.18);
    --blur: 16px;
    --container: 1040px;
}

body.avr24 {
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system,
        "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.avr24 a {
    color: inherit;
}

.avr24 .container {
    max-width: var(--container);
    padding: 0 28px;
}

.avr24 .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
}

.avr24 .header-in {
    padding: 18px 28px 12px;
}

.avr24 .site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
}

.avr24 .title-pr {
    color: var(--muted);
    font-size: 14px;
}

.avr24 .header-search {
    margin: 16px auto 8px;
}

.avr24 .search-form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.avr24 .search-input {
    background: transparent;
    color: var(--text);
}

.avr24 .search-input::placeholder {
    color: var(--muted);
}

.avr24 .search-button {
    background: transparent;
    color: var(--text);
}

.avr24 .header-nav {
    background: transparent;
    padding: 8px 0 12px;
    border-radius: 0;
}

.avr24 .nav-link {
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 6px 8px;
    position: relative;
}

.avr24 .nav-link:hover {
    color: var(--text);
    background: transparent;
}

.avr24 .nav-link.is-active {
    color: var(--primary);
}

.avr24 .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
    box-shadow: var(--glow);
}

.avr24 .nav-link[data-genre-modal] {
    background: var(--primary);
    color: #111;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid transparent;
    box-shadow: var(--shadow), var(--glow);
}

.avr24 .nav-link[data-genre-modal]:hover {
    background: var(--primaryLight);
    color: #111;
}

.avr24 .nav-link[data-genre-modal].is-active {
    color: #111;
}

.avr24 .nav-link[data-genre-modal].is-active::after {
    content: none;
}

.avr24 .nav-dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
}

.avr24 .nav-dropdown-menu .nav-link {
    color: var(--text);
    padding: 8px 16px;
    background: transparent;
}

.avr24 .nav-dropdown-menu .nav-link:hover {
    background: var(--surface2);
    color: var(--text);
}

.avr24 .mobile-quick-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text);
}

.avr24 .mobile-quick-link:hover {
    background: var(--surface2);
}

.avr24 .review-entry {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 16px;
    overflow: hidden;
}

.avr24 .review-entry:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: var(--shadow), var(--glow);
}

.avr24 .review-image-wrapper {
    border-radius: var(--radius-lg);
    background: #000;
}

.avr24 .review-title {
    color: var(--text);
}

.avr24 .review-link:hover {
    color: var(--primaryLight);
}

.avr24 .review-date,
.avr24 .review-description,
.avr24 .review-actress,
.avr24 .review-maker {
    color: var(--muted);
}

.avr24 .current-filter {
    color: var(--primary);
}

.avr24 .review-description {
    background: var(--surface2);
    border-left-color: var(--primary);
}

.avr24 .review-actress-link,
.avr24 .review-genre-link,
.avr24 .review-maker-link {
    color: var(--primary);
}

.avr24 .review-read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.avr24 .review-read-link:hover {
    background: var(--primaryLight);
    color: #111;
}

.avr24 .pagination-number {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
}

.avr24 .pagination-number.active {
    background: var(--primary);
    color: #111;
    border-color: transparent;
}

.avr24 .pagination-link {
    color: var(--primary);
}

.avr24 .site-footer {
    background: #050505;
    border-top: 1px solid var(--border);
}

.avr24 .footer-seo-text {
    color: var(--muted);
}

.avr24 .footer-link {
    color: var(--muted);
}

.avr24 .footer-link:hover {
    color: var(--text);
}

.avr24 .footer-copyright {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.avr24 .footer-privacy-link {
    color: var(--primary);
}

.avr24 .footer-privacy-sep {
    color: var(--muted);
}

.avr24 .menu-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.avr24 .menu-overlay {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(var(--blur));
    z-index: 1100;
}

.avr24 .menu-drawer {
    width: 80vw;
    max-width: 360px;
    background: #141414;
    backdrop-filter: blur(var(--blur));
    border-left: 1px solid var(--border);
    z-index: 1101;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.avr24 .mobile-menu-item {
    padding: 12px 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
}

.avr24 .mobile-menu-item:hover {
    background: var(--surface2);
}

.avr24 .mobile-menu-title {
    color: var(--primary);
}

body.avr24.avr24-menu-open {
    overflow: hidden;
}

body.avr24.avr24-menu-open .back-to-top,
body.avr24.avr24-menu-open .fc2-ranking-link {
    display: none;
}

.avr24 .back-to-top {
    background: var(--primary);
    color: #111;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: var(--shadow), var(--glow);
    font-weight: 700;
}

.avr24 .back-to-top:hover {
    background: var(--primaryLight);
    color: #111;
}

.avr24 .review-modal {
    background: rgba(0, 0, 0, 0.7);
}

.avr24 .review-dialog {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.avr24 .review-modal-close {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.avr24 .review-modal-genre-header {
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.avr24 .review-modal-genres {
    background: transparent;
}

.avr24 .review-modal-genre-placeholder {
    color: var(--muted);
}

.avr24 .maker-modal-category-title {
    color: var(--text);
}

.avr24 .genre-modal-item,
.avr24 .maker-modal-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
}

.avr24 .review-modal-genres .genre-modal-item {
    background: var(--surface2);
    color: var(--text);
    border-color: var(--border);
}

.avr24 .review-modal-genres .genre-modal-item.is-active {
    background: var(--primary);
    color: #111;
    border-color: transparent;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .avr24 .review-modal-genres .genre-modal-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(212, 175, 55, 0.4);
    }

    .avr24 .genre-modal-item:hover,
    .avr24 .maker-modal-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(212, 175, 55, 0.4);
        color: #fff;
    }

    .avr24 .genre-modal-item.is-selected:hover,
    .avr24 .maker-modal-item.is-selected:hover {
        background: var(--primary);
        color: #fff;
        border-color: transparent;
    }
}

.avr24 .genre-modal-item.is-active,
.avr24 .maker-modal-item.is-active {
    background: var(--primary);
    color: #111;
    border-color: transparent;
}

/* avr24 複数ジャンル選択状態 */
.avr24 .genre-modal-item.is-selected {
    background: var(--primary);
    color: #111;
    border-color: transparent;
    font-weight: bold;
}

.avr24 .genre-modal-item.is-selected::after {
    content: " \2713";
    font-size: 11px;
    margin-left: 2px;
}

/* avr24 検索ボタンフッター */
.avr24 .genre-search-footer {
    background: var(--surface);
    border-top-color: var(--border);
}

.avr24 .genre-search-btn {
    background: var(--primary);
    color: #111;
}

.avr24 .genre-search-btn:hover {
    opacity: 0.9;
}

/* avr24 メーカーテーブルビュー */
.avr24 .maker-category-title {
    color: var(--primary);
    border-bottom-color: var(--border);
}

.avr24 .maker-list {
    background: var(--border);
}

.avr24 .maker-list-item {
    background: var(--surface);
    border-bottom-color: var(--border);
}

.avr24 .maker-list-item:hover {
    background: var(--surface2);
}

.avr24 .maker-list-item.is-active {
    background: var(--surface2);
    border-left-color: var(--primary);
}

.avr24 .maker-name {
    color: var(--text);
}

.avr24 .maker-comment {
    color: var(--muted);
}

/* avr24 Actress Grid */
.avr24 .actress-grid-item {
    background: var(--surface);
    border-color: var(--border);
}

.avr24 .actress-grid-item:hover {
    background: var(--surface2);
}

.avr24 .actress-image {
    background: var(--surface2);
}

.avr24 .actress-name {
    color: var(--text);
}

.avr24 .editorial-block {
    margin: 20px 0 28px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.avr24 .editorial-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.avr24 .editorial-lead {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.avr24 .editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.avr24 .editorial-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
}

.avr24 .editorial-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.avr24 .editorial-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .avr24 .container {
        padding: 0 16px;
    }

    .avr24 .header-in {
        padding: 16px 16px 12px;
    }

    .avr24 .site-title {
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
    }

    .avr24 .review-entry {
        padding: 14px;
    }

    .avr24 .review-image-wrapper {
        border-radius: 0;
    }

    .avr24 .editorial-grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) and (pointer: coarse) {
    .avr24 .review-entry:hover {
        border-color: var(--border);
        box-shadow: var(--shadow);
    }

    .avr24 .genre-modal-item:hover,
    .avr24 .maker-modal-item:hover {
        background: var(--surface2);
        border-color: var(--border);
    }

    .avr24 .genre-modal-item:active,
    .avr24 .maker-modal-item:active {
        background: var(--primary);
        color: #111;
        border-color: transparent;
    }

    /* 選択済みアイテムはhoverスティッキー時も金色を維持 */
    .avr24 .genre-modal-item.is-selected,
    .avr24 .maker-modal-item.is-selected {
        background: var(--primary);
        color: #111;
        border-color: transparent;
    }

    .avr24 .genre-modal-item.is-selected:hover,
    .avr24 .maker-modal-item.is-selected:hover {
        background: var(--primary);
        color: #fff;
        border-color: transparent;
    }

    .avr24 .genre-modal-item:focus,
    .avr24 .genre-modal-item:focus-visible,
    .avr24 .maker-modal-item:focus,
    .avr24 .maker-modal-item:focus-visible {
        outline: none;
        box-shadow: none;
    }

    .avr24 .review-link:hover,
    .avr24 .review-link:focus,
    .avr24 .review-link:active {
        color: var(--text);
    }

    /* SP: 女優カードのホバー浮き上がり効果を無効化 */
    .actress-grid-item:hover {
        transform: none;
    }
}

.ad-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 12000;
}

.ad-overlay.is-active {
    display: flex;
}

.ad-overlay-dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 56px 16px 16px;
}

.ad-overlay-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ad-overlay-slot {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ad-overlay-slot .dmm-widget-placement {
    display: block;
    max-width: 100%;
}

.ad-overlay-close {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    transform: translateX(-50%);
}

.ad-overlay-close.is-hidden {
    opacity: 0;
    pointer-events: none;
}

body.ad-overlay-open {
    overflow: hidden;
}

/* SEO Intro Section */
.seo-intro {
    margin: 16px 0 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.seo-intro .seo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.seo-intro .seo-header-text {
    flex: 1;
    min-width: 0;
}

.seo-intro h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.seo-intro .seo-lead {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
    font-size: 14px;
    opacity: 0.92;
}

.seo-intro .seo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.seo-intro .seo-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

@media (max-width: 768px) {
    .seo-intro {
        margin: 16px 0;
    }

    .seo-intro .seo-header {
        flex-direction: column;
        gap: 12px;
    }

    .seo-intro .seo-toggle {
        align-self: flex-start;
    }
}

.seo-intro .seo-detail {
    margin-top: 8px;
}

.seo-intro .seo-detail h3 {
    margin: 14px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.seo-intro .seo-detail p {
    margin: 0 0 12px;
    line-height: 1.7;
    color: var(--muted);
    font-size: 14px;
}

.seo-intro .seo-detail ul {
    margin: 0 0 12px 1.2em;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
}

.seo-intro .seo-detail ul li {
    margin-bottom: 4px;
}

.seo-intro .seo-note {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Mobile Ads (scroll-triggered, top/bottom) */
.mobile-top-ad,
.mobile-bottom-ad {
    display: none;
}

@media (max-width: 768px) {
    .mobile-top-ad {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px;
        background: rgba(0, 0, 0, 0.8);
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-top-ad.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-bottom-ad {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px;
        background: rgba(0, 0, 0, 0.8);
        opacity: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .mobile-bottom-ad.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* 広告バナーのレスポンシブ対応（比率保持・最大468px） */
    .mobile-top-ad .widget-banner,
    .mobile-bottom-ad .widget-banner {
        display: block;
        width: 468px;
        max-width: calc(100vw - 16px);
        aspect-ratio: 468 / 60;
    }

    .mobile-top-ad .widget-banner iframe,
    .mobile-top-ad .widget-banner img,
    .mobile-bottom-ad .widget-banner iframe,
    .mobile-bottom-ad .widget-banner img {
        width: 100%;
        height: 100%;
        max-width: 468px;
        max-height: 60px;
    }
}

/* PC Ads (scroll-triggered, top/bottom) */
.pc-top-ad,
.pc-bottom-ad {
    display: none;
}

@media (min-width: 769px) {
    .pc-top-ad {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background: rgba(0, 0, 0, 0.8);
        opacity: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .pc-top-ad.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .pc-bottom-ad {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background: rgba(0, 0, 0, 0.8);
        opacity: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .pc-bottom-ad.is-visible {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* ウィジェットバナーをコンテナ内に制限 */
    .pc-top-ad .widget-banner,
    .pc-bottom-ad .widget-banner {
        display: block;
        max-width: 728px;
        max-height: 90px;
    }

    .pc-top-ad .widget-banner iframe,
    .pc-top-ad .widget-banner img,
    .pc-bottom-ad .widget-banner iframe,
    .pc-bottom-ad .widget-banner img {
        max-width: 728px;
        max-height: 90px;
    }
}

/* ============================================================================
   SEO Search Pages
   ============================================================================ */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    padding: 12px 0;
    font-size: 13px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    color: var(--muted);
    opacity: 0.5;
}

/* Search Page Title */
.search-page-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .search-page-title {
        font-size: 20px;
    }
}

/* Search Filters Display */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--muted);
}

.filter-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Price Notice */
.price-notice {
    margin: 0 0 20px;
    padding: 10px 14px;
    background: rgba(255, 193, 7, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: var(--muted);
}

/* Related Links Section */
.related-links {
    margin-top: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.related-links h2 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.related-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-links li a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.related-links li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   Search Page Layout
   ============================================ */

/* Header: static (not sticky), same color as top */
[data-page-type="search"] .site-header {
    position: static;
}

[data-page-type="search"] .header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 28px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* PR badge: red, above title */
[data-page-type="search"] .search-pr {
    color: #ff5c6d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Title: no underline, centered */
[data-page-type="search"] .site-title {
    text-decoration: none;
}

[data-page-type="search"] .main-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 28px 0;
}

/* h1: center, gold highlights */
[data-page-type="search"] .search-page-title {
    text-align: center;
}

.search-highlight {
    color: var(--primary);
}

[data-page-type="search"] .review-entry {
    margin-bottom: 16px;
}

[data-page-type="search"] .footer {
    background: #050505;
    border-top: 1px solid var(--border);
}

[data-page-type="search"] .footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    text-align: center;
}

[data-page-type="search"] .footer-fanza-logo-wrap {
    text-align: center;
    margin-bottom: 12px;
}

[data-page-type="search"] .footer-fanza-logo-wrap .fanza-logo-img {
    width: 88px;
    height: auto;
    display: inline-block;
}

/* FC2ランキング（PC:右側上下中央・常時表示 / SP:右下・スクロール連動） */
.search-fc2-ranking {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.search-fc2-ranking:hover {
    opacity: 0.8;
}

.search-fc2-ranking img {
    display: block;
    width: auto;
    height: 44px;
}

.search-fc2-text {
    font-size: 10px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 768px) {
    [data-page-type="search"] .header-inner {
        padding: 16px 16px 12px;
        flex-wrap: wrap;
    }

    [data-page-type="search"] .site-title {
        font-size: 14px;
        line-height: 1.4;
    }

    [data-page-type="search"] .main-content {
        padding: 16px 16px 0;
    }

    [data-page-type="search"] .footer-inner {
        padding: 0 16px;
    }

    .search-fc2-ranking {
        right: 8px;
        top: auto;
        transform: none;
        bottom: 70px;
        display: none;
        transition: opacity 0.2s, transform 0.25s ease;
    }

    /* 検索ページ: ページネーションは横並びのまま */
    [data-page-type="search"] .pagination {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

}

.mobile-menu-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
    padding: 0 4px 4px;
    border-bottom: 1px solid var(--border);
}

/* MGS h1 金色テキスト */
.mgs-gold {
    color: #ffd700;
}