root {
    --primary-color: #ff4757;
    --text-color: #2f3542;
    --bg-color: #f1f2f6;
    --card-bg: #ffffff;
}

/* 基本は非表示 */
.p-mainVisual {
    display: none;
}

/* トップページのみ表示する */
.home .p-mainVisual {
    display: block;
}

.post_content h3 {
    margin: 0;
}


.afilidmm-page-wrapper {
    max-width: 960px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    width: 820px;
}

@media (max-width: 600px) {
    .afilidmm-page-wrapper {
        width: 100%;
    }
}

/* パンくずリスト */
.afilidmm-breadcrumb {
    font-size: 13px;
    margin-bottom: 20px;
    color: #747d8c;
}
.afilidmm-breadcrumb a { color: var(--primary-color); text-decoration: none; }

/* 共通パーツ */
.page-header { border-bottom: 3px solid var(--primary-color); margin-bottom: 30px; }
.page-title { font-size: 28px; font-weight: bold; padding-bottom: 10px; margin: 0; }
.section-title { font-size: 20px; border-left: 5px solid var(--primary-color); padding-left: 15px; margin: 40px 0 20px; }

.item-card.actree-cart img {
    width: 100%;
    height: auto;
}


.textwidget.custom-html-widget {
    text-align: end;
    justify-items: right;
}

.ai-micro_copy {
    text-align: center;
    justify-self: center;
}

/* AI要約ボックス */
.ai-description-box, .ai-summary-section {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.ai-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-color);
    color: #d4af37;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
}

/* カード型グリッド */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.item-card {
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.item-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.item-info { padding: 15px; }
.item-title { font-size: 16px; font-weight: bold; margin: 0 0 10px; }
.item-summary { font-size: 13px; color: #57606f; height: 3.6em; overflow: hidden; }

/* CTAボタン */
.cta-container { text-align: center; margin: 50px 0; }
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: 0.3s;
}
.btn-primary:hover { background: #ff6b81; transform: scale(1.05); }

/* モバイル対応 */
@media (max-width: 600px) {
    .page-title { font-size: 22px; }
    .item-grid { grid-template-columns: 1fr; }
}


/* 女優・作品ページ全体のコンテナ */
.afilidmm-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

/* ABテストスロットの枠 */
.afilidmm-slot {
    margin: 20px 0;
    padding: 15px;
    border: 1px dashed #ccc;
    background-color: #f9f9f9;
}

/* 作品グリッド */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 作品カード */
.item-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.2s;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.item-card p {
    font-size: 0.9rem;
    color: #666;
}

/* アフィリエイトリンク用ボタンスタイル */
.btn-affiliate-small {
    display: block;
    background: #2ecc71; /* 緑色のボタン */
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-top: 10px;
}
.btn-affiliate-small:hover {
    background: #27ae60;
}

.cta-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* 女優プロフィールカード全体 */
.actress-profile-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.profile-image img {
    width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 4px solid #fff;
}

.profile-details {
    flex: 1;
    min-width: 300px;
}

.actress-name {
    font-size: 32px;
    border-bottom: 2px solid #ff4757;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.actress-ruby {
    font-size: 16px;
    color: #888;
    margin-left: 15px;
    font-weight: normal;
}

/* スペック表 */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    width: 120px;
    text-align: left;
    background: #f8f9fa;
    padding: 12px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.spec-table td {
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
    }
    .profile-image img {
        width: 100%;
        max-width: 300px;
    }
}


.item-detail-container { background: #fff; padding: 20px; }

.item-main-title { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
.item-meta-top { color: #666; font-size: 14px; margin-bottom: 20px; }
.review-stars { color: #f1c40f; font-weight: bold; margin-right: 15px; }

.item-top-section { display: flex; gap: 30px; margin-bottom: 40px; }
.main-jacket { width: 400px; height: auto; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.item-purchase-box {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #eee;
    text-align: center;
    align-self: flex-start;
}
.price-tag { font-size: 20px; margin-bottom: 20px; }
.price-tag span { color: #e74c3c; font-size: 32px; font-weight: bold; }

.btn-buy-now {
    display: block;
    background: linear-gradient(to bottom, #ff4757, #ff6b81);
    color: #fff;
    text-decoration: none;
    padding: 20px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.gallery-grid img { width: 100%; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.gallery-grid img:hover { opacity: 0.8; }

.detail-table { width: 100%; margin-top: 20px; border-top: 2px solid #eee; }
.detail-table th { text-align: left; padding: 10px; background: #f9f9f9; width: 150px; }
.detail-table td { padding: 10px; border-bottom: 1px solid #eee; }

@media (max-width: 768px) {
    .item-top-section { flex-direction: column; }
    .main-jacket { width: 100%; }
}


/* ボタンが生きているように動くアニメーション */
/* 動くボタンのベーススタイル */
.btn-cta-pulse {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 18px 35px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    transition: transform 0.2s ease;
    z-index: 1;
}

/* 常に波紋が広がるパルスアニメーション */
.btn-cta-pulse::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50px;
    background: rgba(255, 71, 87, 0.6);
    z-index: -1;
    animation: btn-pulse-loop 2s infinite;
}

@keyframes btn-pulse-loop {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}

.btn-cta-pulse:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);
}

/* マイクロコピーの装飾 */
.micro-copy {
    display: block;
    font-size: 14px;
    color: #ff4757;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
}



/*  スマホ用：追従型固定CTAボタン */
/* PCでは隠す */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    /* 固定枠の設定 */
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: -100px; /* 最初は隠しておく（JSで出す） */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
        z-index: 9999;
        padding: 10px 15px;
        transition: bottom 0.4s ease; /* スライド表示用 */
        border-top: 2px solid #ff4757;
    }

    /* 表示状態のクラス（JSで付与） */
    .mobile-sticky-cta.is-active {
        bottom: 0;
    }

    .sticky-cta-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .sticky-info {
        flex: 1;
    }

    .sticky-micro-copy {
        display: block;
        font-size: 10px;
        color: #ff4757;
        font-weight: bold;
    }

    .sticky-item-name {
        display: block;
        font-size: 12px;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    /* 固定ボタンのデザイン */
    .btn-sticky-action {
        background: #ff4757;
        color: #fff !important;
        text-decoration: none !important;
        padding: 12px 20px;
        border-radius: 30px;
        font-size: 14px;
        font-weight: bold;
        box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
        flex-shrink: 0;
    }

    /* コンテンツがボタンに隠れないよう、bodyの下に余白を作る */
    body {
        padding-bottom: 80px;
    }
}


.video-iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 476px;
    margin: 0 auto;
    /* アスペクト比を維持するための工夫 */
    aspect-ratio: 476 / 306;
}

.video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.item-video-section p.description {
    text-align: end;
}

@media (max-width: 768px) {
    .item-video-section iframe {
        max-width: 100%;
        max-height: 60vw;
    }
}


.tablenav-pages {
    display: flex;
    justify-self: center;
    justify-content: center;
}

.swl-pagination {
    display: flex;
    justify-content: center;
    justify-self: center;
    place-self: center;
}
@media (max-width: 768px) {
    .swl-pagination {
        justify-content: left;
        justify-self: left;
        place-self: left;
    }
}

.page-numbers {
    width: fit-content;
}


/* 検索結果専用のスタイル */
.actress-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.actress-spec-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.actress-spec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.actress-spec-card a { text-decoration: none; color: inherit; display: block; }

.actress-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
}
.actress-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-image-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #ccc; font-size: 12px;
}

.actress-info-box { padding: 10px; }
.actress-name-title { font-size: 15px; margin: 0 0 5px; font-weight: bold; line-height: 1.2; }
.actress-ruby-small { display: block; font-size: 10px; color: #999; font-weight: normal; margin-top: 2px; }

.actress-specs-summary { font-size: 11px; color: #444; margin-bottom: 5px;  margin-top: 10px;}
.spec-item { display: inline-block; margin-right: 5px; background: #fdf2f4; color: #e91e63; padding: 1px 4px; border-radius: 3px; font-weight: bold; }
.actress-from { font-size: 10px; color: #888; }

/* スマホ対応（2列にする） */
@media (max-width: 480px) {
    .actress-spec-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .actress-name-title { font-size: 14px; }
}



/* 検索ヘッダー周り */
.afilidmm-page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f2f6;
}

/* 女優カードを横並びにする共通設定 */
.actress-spec-grid {
    display: grid !important; /* 強制的にグリッド適用 */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* 180px幅で入るだけ並べる */
    gap: 20px; /* カード同士の間隔 */
    margin-top: 20px;
    width: 100%;
}

/* カード自体の横幅が100%になって縦に積まれないようにする */
.actress-spec-card {
    display: block;
    width: 100%; /* グリッドの1マス分を埋める */
}

/* スマホでは2列にする */
@media (max-width: 480px) {
    .actress-spec-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列固定 */
        gap: 10px;
    }
}


.search-conditions-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-tag {
    background: #ff4757;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.search-count {
    font-size: 13px;
    color: #747d8c;
    margin-left: 5px;
}

/* 0件ヒット時のスタイル */
.no-results-box {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 15px;
    border: 2px dashed #ddd;
}

.no-results-box p {
    font-size: 18px;
    font-weight: bold;
    color: #2f3542;
}

.re-search-hint {
    margin-top: 20px;
    font-size: 14px;
    color: #747d8c;
}

/* リッチ検索パネルのスタイル */
.afilidmm-rich-filter {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-group { margin-bottom: 15px; }
.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.filter-input, .filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* チップ形式のラジオボタン */
.chip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}
.chip input { display: none; }
.chip span {
    display: block;
    background: #f1f2f6;
    text-align: center;
    padding: 5px 0;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}
.chip input:checked + span {
    background: var(--swl-color-main, #ff4757);
    color: #fff;
    font-weight: bold;
}

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.filter-submit-btn {
    width: 100%;
    background: var(--swl-color-main, #ff4757);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.filter-submit-btn:hover { opacity: 0.9; transform: translateY(-2px); }




/* 免責事項ウィジェットの調整 */
.afilidmm-compliance-widget {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* SWELLのメインカラーをアクセントにする場合 */
.afilidmm-compliance-widget strong {
    color: var(--swl-color-main);
}

/* 50音インデックスパネル専用 */
.kana-groups-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kana-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 5px;
}

.kana-row:last-child { border-bottom: none; }

.kana-label {
    font-size: 10px;
    color: #999;
    min-width: 35px;
    font-weight: bold;
}

.kana-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

/* チップのデザイン（検索パネルのチップと統一） */
.kana-link-chip {
    display: block;
    background: #f1f2f6;
    color: #333;
    text-decoration: none !important;
    padding: 4px 0;
    width: 34px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
    border: 1px solid transparent;
}

.kana-link-chip:hover {
    background: #e1e2e6;
    transform: translateY(-1px);
}

/* 選択中の文字をハイライト */
.kana-link-chip.is-active {
    background: var(--swl-color-main, #ff4757);
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.3);
}

/* スマホ対応：さらにコンパクトに */
@media (max-width: 480px) {
    .kana-link-chip {
        width: 30px;
        font-size: 11px;
    }
    .kana-label {
        min-width: 30px;
        font-size: 9px;
    }
}

.afilidmm-rich-filter { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 15px; }
.filter-group { margin-bottom: 12px; }
.filter-group label { display: block; font-size: 12px; font-weight: bold; margin-bottom: 5px; color: #666; }
.filter-input, .filter-select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.chip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.chip input { display: none; }
.chip span { display: block; background: #f5f5f5; text-align: center; padding: 4px 0; border-radius: 4px; font-size: 11px; cursor: pointer; border: 1px solid transparent; }
.chip input:checked + span { background: var(--swl-color-main, #ff4757); color: #fff; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-actions { margin-top: 15px; text-align: center; }
.filter-submit-btn { width: 100%; background: var(--swl-color-main, #ff4757); color: #fff; border: none; padding: 12px; border-radius: 30px; font-weight: bold; cursor: pointer; }
.filter-clear-link { display: inline-block; margin-top: 10px; font-size: 12px; color: #999; text-decoration: none; }
.filter-clear-link:hover { color: #666; }


/* サイドバー用ミニリスト */
.sidebar-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-item-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    padding: 5px;
    border-radius: 6px;
    transition: background 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

.mini-item-entry:hover {
    background: #fdf2f4; /* ほのかな赤み */
}

.mini-item-entry:last-child {
    border-bottom: none;
}

.mini-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #eee;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mini-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-date {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

/* ボタンをさらに強調する場合 */
.afilidmm-sidebar-new-arrivals .filter-submit-btn {
    font-size: 13px;
    padding: 10px;
}


.ranking-type-title {
    font-size: 18px !important; 
    font-weight: bold !important; 
    margin: 30px 0 15px !important; 
    color: var(--swl-color-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ranking-score-mini {
    font-size: 10px;
    color: #999;
    margin-top: 5px;
}

.actress-specs-summary .spec-item {
    background: #f0f0f1;
    color: #555;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    font-size: 11px;
}

.actress-ranking-wrap .ranking-card-inner {
    display: flex;
}
.ranking-card-inner {
    margin-left: 10px;
}

.actress-ranking-wrap .ranking-thumb {
    margin-right: 10px;
}
.item-rank-card .ranking-thumb {
    width: 100%; /* 作品ジャケ写は少し小さめでもOK */
    height: auto;
}

.item-rank-card .ranking-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.item-ranking-wrap .spec-item {
    color: #e67e22; /* レビュー数はオレンジ系で強調 */
    font-weight: bold;
}


.is-style-default>.c-tabList .c-tabList__button:hover, .is-style-default>.c-tabList .c-tabList__button[aria-selected=true] {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 進捗バーのベース */
.progress-bar-container {
    background: #f0f0f1;
    border-radius: 20px;
    height: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
}

/* 動く光の筋（シマーエフェクト） */
.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background-image: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 100%時の特別な輝き */
.rank-god {
    animation: pulse-gold 2s infinite;
    background-size: 200% 100% !important;
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 5px #FFD700; }
    50% { box-shadow: 0 0 20px #FFD700; }
    100% { box-shadow: 0 0 5px #FFD700; }
}

.rank-label {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

/* ランキングバッジのベース（共通） */
.rank-badge-circle {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* 丸背景 */
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 1位：金（ゴールドグラデーション） */
.rank-badge-circle.is-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffae00 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 2位：銀（シルバーグラデーション） */
.rank-badge-circle.is-silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 3位：銅（ブロンズグラデーション） */
.rank-badge-circle.is-bronze {
    background: linear-gradient(135deg, #dbb471 0%, #926239 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 4位以下：白（枠線あり） */
.rank-badge-circle.is-white {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd; /* 白背景なので境界線を入れる */
    font-size: 14px; /* 4位以降は少し数字を小さくしても良い */
}

/* カード側の余白調整（バッジがはみ出すため） */
.ranking-card {
    position: relative;
    margin: 15px 8px 10px 0;
}

/* サイドバー用スロットコンテナ */
.afilidmm-sidebar-slot-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

/* スロット内の画像がサイドバーからはみ出さないように強制 */
.afilidmm-sidebar-slot-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* スロット内のボタンや枠線の微調整 */
.afilidmm-sidebar-slot-container .afilidmm-slot {
    border: none; /* サイドバーでは枠線を消すなど、お好みで */
    padding: 0;
    background: transparent;
}

/* 女優ページ作品一覧ボタン */
.btn-act-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #fff !important;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* 動画作品 (FANZA標準) */
.link-digital { background: #ff4757; }
.link-digital:hover { background: #ff6b81; transform: translateY(-2px); }

/* 見放題 (パープル) */
.link-monthly { background: #6c5ce7; }
.link-monthly:hover { background: #a29bfe; transform: translateY(-2px); }

/* 通販 (オレンジ) */
.link-mono { background: #f39c12; }
.link-mono:hover { background: #f1c40f; transform: translateY(-2px); }

.btn-act-list .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.swl-pagination span.page-numbers.current {
    margin-top: 6px !important;
}

.item-card {
    position: relative; /* バッジ配置用 */
}

.movie-icon-badge {
    z-index: 5;
    pointer-events: none;
}

/* フィルター部分の調整 */
.movie-filter-toggle input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

/* --- 検索結果・一覧の全体コンテナ --- */
.afilidmm-search-result-wrap {
    padding: 10px 0;
}

/* --- カードグリッド（スマホ2列 / PC 4〜5列） --- */
.actress-spec-grid, .item-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important; /* スマホは2列固定 */
    gap: 12px !important;
    padding: 5px;
}

@media (min-width: 768px) {
    .actress-spec-grid, .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 20px !important;
    }
}

/* --- 女優・作品カード共通 --- */
.actress-spec-card, .item-card {
    background: #fff;
    border: none !important; /* 枠線を消して影で見せる */
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 柔らかい影 */
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* --- 画像エリア --- */
.actress-thumb, .item-card img {
    width: 100%;
    aspect-ratio: 3 / 4; /* 女優は縦長、作品は適宜 */
    object-fit: contain;
    background: #f8f9fa;
}

/* --- テキスト情報エリア --- */
.actress-info-box, .item-card-body {
    padding: 10px 8px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- 名前/タイトル --- */
.actress-name-title, .item-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 6px 0 !important;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で省略 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- スペック情報のタグ化 --- */
.actress-specs-summary, .item-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.spec-item {
    background: #f1f2f6 !important;
    color: #57606f !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: bold;
}

/* カップ数だけ色を変えて目立たせる（アクセント） */
.spec-item.is-cup {
    background: #fff0f3 !important;
    color: var(--swl-color-main, #ff4757) !important;
}

/* --- ボタンのスマホ最適化 --- */
.btn-affiliate-small {
    background: var(--swl-color-main, #ff4757) !important;
    font-size: 12px !important;
    padding: 8px 5px !important;
    border-radius: 20px !important;
    text-align: center;
    margin-top: auto;
}

/* --- 絞り込みヘッダーの整理 --- */
.search-result-header {
    margin-bottom: 20px;
    padding: 0 5px;
}

.image-filter-toggle {
    background: #fff !important;
    border: 1px solid #eee !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.afilidmm-loader {
    padding: 40px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
    background: #fcfcfc;
    border-radius: 10px;
    border: 1px dashed #ddd;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 読み込みが終わるまで枠を確保 */
.js-afilidmm-async {
    min-height: 200px;
}

.afilidmm-load-more-container {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.js-afilidmm-load-more {
    background: #fff !important;
    color: var(--swl-color-main) !important;
    border: 2px solid var(--swl-color-main) !important;
    padding: 10px 40px !important;
    border-radius: 50px !important;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.js-afilidmm-load-more:hover {
    background: var(--swl-color-main) !important;
    color: #fff !important;
}

/* 女優ランキングカード全体のレイアウト */
.ranking-card {
    position: relative;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.ranking-card:hover {
    transform: translateX(5px); /* 横並びなので横に少し動く演出 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ★画像とテキストを横並びにする核心部分 */
.ranking-card-inner {
    display: flex; /* 横並び */
    align-items: center; /* 垂直方向の中央揃え */
    padding: 10px;
    gap: 15px; /* 画像とテキストの間隔 */
}

/* 画像エリアの固定幅 */
.ranking-thumb {
    width: 80px; /* 画像の横幅 */
    height: 100px; /* 画像の縦幅 */
    flex-shrink: 0; /* 画像が潰れないように固定 */
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいに収める */
}

/* テキスト情報エリア */
.ranking-info {
    flex-grow: 1; /* 残りの幅をすべて使う */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* 文字溢れ対策 */
}

.ranking-name {
    font-size: 16px !important;
    font-weight: bold;
    margin: 0 0 5px 0 !important;
    color: #333;
}

/* スペック情報のタグ（以前のデザインを維持） */
.actress-specs-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.spec-item {
    font-size: 10px;
    background: #f1f2f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
}

/* スマホ用：画像サイズを少し小さくして調整 */
@media (max-width: 480px) {
    .ranking-thumb {
        width: 60px;
        height: 80px;
    }
    .ranking-name {
        font-size: 14px !important;
    }
    .ranking-card-inner {
        gap: 10px;
        padding: 8px;
    }
}