.fanza-sale-wrapper {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    color: #333;
}

/* 10円セール特別アピールバナー */
.fanza-10yen-banner {
    background: linear-gradient(135deg, #ff0055 0%, #ff5500 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
    animation: pulse-banner 2s infinite alternate;
}

@keyframes pulse-banner {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.fanza-update-info {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-bottom: 16px;
}

/* カードグリッド構造 */
.fanza-products-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 個別商品カード */
.fanza-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.fanza-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* カードヘッダー・メイン情報 */
.fanza-card-main {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .fanza-card-main {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    .fanza-title {
        font-size: 1.05rem;
    }
    .fanza-price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    .fanza-sale-price {
        font-size: 1.4rem;
    }
    .fanza-cta-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 16px;
    }
}

/* パッケージ画像エリア */
.fanza-package-thumb {
    width: 100%;
    text-align: center;
}

.fanza-package-thumb-link {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.fanza-package-thumb-link img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    object-fit: cover;
    display: block;
}

/* 割引率バッジ (画像内の左下に完全固定) */
.fanza-discount-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff0055 0%, #ff0033 100%);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 2;
    pointer-events: none;
    line-height: 1;
}

/* 商品詳細情報 */
.fanza-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fanza-title {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.fanza-review {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 12px 8px;
    border: 1px solid #f2c46d;
    border-radius: 8px;
    background: #fff8e7;
    color: #7a4b00;
    line-height: 1;
}

.fanza-review-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #a15c00;
}

.fanza-review-score {
    color: #c2410c;
    font-size: 1.55rem;
    line-height: 1;
}

.fanza-review-max {
    color: #8a6a3b;
    font-size: 0.85rem;
}

/* 価格表示 */
.fanza-price-box {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.fanza-list-price {
    font-size: 0.95rem;
    color: #888;
    text-decoration: line-through;
}

.fanza-sale-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #d90429;
}

.fanza-sale-price small {
    font-size: 0.9rem;
    font-weight: normal;
}

.fanza-sale-end {
    font-size: 0.85rem;
    color: #d90429;
    background: #ffe6e8;
    border: 1px solid #ffccd1;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* アフィリエイトボタン */
.fanza-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d90429 0%, #ef233c 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 14px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.35);
    transition: all 0.2s ease;
}

.fanza-cta-button:hover {
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
    box-shadow: 0 6px 18px rgba(217, 4, 41, 0.5);
    transform: translateY(-2px);
}

/* サンプル動画・画像エリア */
.fanza-media-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fanza-media-title {
    font-size: 1rem;
    font-weight: bold;
    border-left: 4px solid #d90429;
    padding-left: 10px;
    margin: 0 0 10px 0;
}

/* レスポンシブ 動画プレイヤー */
.fanza-video-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 3 / 2;
    height: auto;
    margin: 0 auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.fanza-video-container iframe,
.fanza-video-container video,
.fanza-video-container object,
.fanza-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    overflow: hidden !important;
    touch-action: none !important;
}

/* サンプル画像ギャラリー (グリッド表示) */
.fanza-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.fanza-gallery-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: opacity 0.2s ease;
}

.fanza-gallery-item:hover {
    opacity: 0.85;
}

.fanza-gallery-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}