/* ============================================================
   DMM Plugin - Frontend Styles v8
   ============================================================ */

/* ヒーローブロック */
.dmm-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 20px 0 28px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
}
@media (max-width: 640px) {
    .dmm-hero { flex-direction: column; }
}
.dmm-hero__jacket { flex-shrink: 0; text-align: center; }
.dmm-hero__jacket img.dmm-jacket-img {
    width: 200px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: transform .2s;
}
.dmm-hero__jacket img.dmm-jacket-img:hover { transform: scale(1.03); }
.dmm-hero__info { flex: 1; }

/* レビュースター */
.dmm-hero__stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.dmm-stars {
    font-size: 20px;
    color: #f5a623;
    letter-spacing: 2px;
}
.dmm-review-score {
    font-size: 22px;
    font-weight: bold;
    color: #e60012;
}
.dmm-review-count {
    font-size: 13px;
    color: #666;
}

/* 情報テーブル */
.dmm-info-table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0 16px;
    font-size: 14px;
}
.dmm-info-table th,
.dmm-info-table td {
    border: 1px solid #ddd;
    padding: 7px 10px;
    text-align: left;
}
.dmm-info-table th {
    background: #f0f0f0;
    font-weight: bold;
    width: 100px;
    white-space: nowrap;
    color: #444;
}
.dmm-price-inline {
    font-size: 16px;
    color: #e60012;
}

/* ─── CTAボタン共通 ─── */
.dmm-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
}
.dmm-btn-primary {
    background: linear-gradient(135deg, #e60012 0%, #c0000f 100%);
    color: #fff !important;
    padding: 14px 28px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(230,0,18,.35);
}
.dmm-btn-primary:hover {
    background: linear-gradient(135deg, #ff1a2e 0%, #d4000f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230,0,18,.45);
    color: #fff !important;
}
.dmm-btn-xl {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e60012 0%, #c0000f 100%);
    color: #fff !important;
    padding: 18px 32px;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(230,0,18,.4);
    border-radius: 10px;
    animation: dmm-pulse 2.5s infinite;
}
.dmm-btn-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(230,0,18,.5);
    color: #fff !important;
}

@keyframes dmm-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(230,0,18,.4); }
    50%       { box-shadow: 0 6px 28px rgba(230,0,18,.65); }
}

/* 上部CTA */
.dmm-cta-top { margin-top: 16px; }
.dmm-cta-note {
    font-size: 11px;
    color: #888;
    margin: 6px 0 0;
    text-align: center;
}

/* ─── AI記事本文 ─── */
.dmm-ai-content {
    margin: 28px 0;
    line-height: 1.85;
    font-size: 15px;
}
.dmm-ai-content h2 {
    font-size: 18px;
    border-left: 5px solid #e60012;
    padding: 6px 12px;
    background: #fff5f5;
    margin: 24px 0 12px;
}
.dmm-section-title {
    font-size: 18px;
    border-left: 5px solid #e60012;
    padding: 6px 12px;
    background: #fff5f5;
    margin: 28px 0 16px;
}

/* ─── レビューセクション ─── */
.dmm-reviews-section {
    margin: 28px 0;
    padding: 20px;
    background: #fffbf0;
    border: 1px solid #f5e6b0;
    border-radius: 10px;
}
.dmm-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 16px 0;
}
.dmm-review-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #f0e0a0;
    border-radius: 8px;
    padding: 14px 16px;
}
.dmm-review-avatar {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.dmm-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin: 0;
}
.dmm-reviews-more-link {
    text-align: right;
    font-size: 13px;
    margin-top: 12px;
}
.dmm-reviews-more-link a {
    color: #e60012;
    font-weight: bold;
}
.dmm-reviews-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: normal;
    background: #f5a623;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ─── サンプル動画 ─── */
.dmm-sample-video { margin: 28px 0; text-align: center; }
.dmm-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    background: #000;
    border-radius: 6px;
}
.dmm-video-wrap iframe,
.dmm-video-wrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 6px;
}
.dmm-video-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}
.dmm-video-cta {
    margin-top: 14px;
}

/* ─── サンプル画像スライダー ─── */
.dmm-sample-images { margin: 28px 0; }
.slick-slider .slick-slide { margin: 0 6px; }
.slick-slider .slick-list { margin: 0 -6px; }
.slick-slider img { max-width: 100%; height: auto; border-radius: 4px; }

/* ─── 購入促進ブロック（強化CTA）─── */
.dmm-purchase-block {
    margin: 36px 0 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 60%, #fff5f5 100%);
    border: 2px solid #e60012;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(230,0,18,.1);
}
.dmm-pb-inner { max-width: 520px; margin: 0 auto; }

/* 社会的証明バッジ */
.dmm-social-proof {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.dmm-sp-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #444;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 20px;
}
.dmm-sp-gold {
    background: linear-gradient(135deg, #f5d020 0%, #f5a623 100%);
    color: #5a3a00;
}

.dmm-pb-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 16px;
    line-height: 1.5;
}

/* 価格表示 */
.dmm-pb-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px dashed #ddd;
}
.dmm-pb-price-label {
    font-size: 13px;
    color: #888;
}
.dmm-pb-price-value {
    font-size: 32px;
    font-weight: bold;
    color: #e60012;
    line-height: 1;
}
.dmm-pb-price-value small {
    font-size: 16px;
    margin-left: 3px;
}

/* チェックリスト */
.dmm-pb-checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    font-size: 14px;
    color: #444;
    text-align: left;
    display: inline-block;
}
.dmm-pb-checklist li { margin: 6px 0; }

/* セカンダリリンク */
.dmm-link-secondary {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: #e60012 !important;
    text-decoration: underline !important;
}

/* ─── Powered by ─── */
.dmm-powered-by {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    margin-top: 20px;
}
.dmm-powered-by a { color: #aaa; }

/* ─── アイキャッチ オーバーレイ（記事一覧・個別記事） ─── */
/* AFFINGERのサムネイルラッパーにオーバーレイを追加 */
.dmm-thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}
.dmm-thumb-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s ease;
}
.dmm-thumb-wrap:hover img { transform: scale(1.04); }

.dmm-thumb-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
    padding: 10px 10px 8px;
    pointer-events: none;
}
.dmm-thumb-badge {
    display: inline-block;
    background: #e60012;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}
.dmm-thumb-actress {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    display: block;
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dmm-thumb-meta {
    color: rgba(255,255,255,.8);
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

/* 記事個別ページのアイキャッチ */
.dmm-post-eyecatch {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.dmm-post-eyecatch img {
    width: 100%;
    height: auto;
    display: block;
}
.dmm-post-eyecatch .dmm-thumb-overlay {
    padding: 14px 16px 12px;
}
.dmm-post-eyecatch .dmm-thumb-actress { font-size: 16px; }
.dmm-post-eyecatch .dmm-thumb-badge   { font-size: 13px; padding: 3px 10px; }

/* サンプル動画プレースホルダー */
.dmm-video-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 560px;
}
.dmm-video-placeholder-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px;
}
