/* ===========================================================================
   アフィリエイトサイト カスタムCSS
   親テーマ（Cocoon/GeneratePress）の追加スタイル
   =========================================================================== */

/* アフィリエイトリンクボタン */
.btn-affiliate {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 0.05em;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.4);
    transition: all 0.2s ease;
    margin: 12px 0;
}
.btn-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.5);
    color: #fff !important;
}
.btn-fanza {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    box-shadow: 0 3px 8px rgba(25, 118, 210, 0.4);
}
.btn-fanza:hover {
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.5);
}

/* ジャンルタグ */
.genre-tag {
    display: inline-block;
    background: #ede7f6;
    color: #4527a0;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 0.8em;
    margin: 2px;
    text-decoration: none;
}
.genre-tag:hover {
    background: #d1c4e9;
    color: #311b92;
}

/* 広告開示文 */
.aff-disclosure, .ad-disclosure {
    background: #f8f8f8;
    border-left: 3px solid #ccc;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.82em;
    color: #777;
    line-height: 1.6;
}

/* ランキングリスト */
.ranking-list {
    counter-reset: ranking;
    list-style: none;
    padding: 0;
}
.ranking-list li {
    counter-increment: ranking;
    position: relative;
    padding: 12px 12px 12px 52px;
    border-bottom: 1px solid #eee;
}
.ranking-list li::before {
    content: counter(ranking);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #b71c1c;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}
.ranking-list li:nth-child(1)::before { background: #f9a825; }
.ranking-list li:nth-child(2)::before { background: #757575; }
.ranking-list li:nth-child(3)::before { background: #a1887f; }

/* モバイル対応 */
@media (max-width: 600px) {
    .work-card {
        flex-direction: column;
    }
    .work-card .work-thumb {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .btn-affiliate {
        display: block;
        text-align: center;
        padding: 16px;
    }
}

/* ===========================================================================
   DIFF-03: コスパスコアバッジ
   =========================================================================== */
.value-score-bar {
    margin-bottom: 12px;
}
.value-score-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: bold;
    letter-spacing: 0.03em;
}
.value-score-high {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.value-score-mid {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}
.value-score-low {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f48fb1;
}

/* ===========================================================================
   DIFF-06: セールバッジ
   =========================================================================== */
.sale-badge {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.78em;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
}
.sale-price {
    color: #d32f2f;
    font-weight: bold;
    margin-right: 4px;
}
.sale-works-list del {
    color: #999;
    font-size: 0.88em;
    margin-right: 4px;
}

/* ===========================================================================
   DIFF-07: サークル信頼性スコア
   =========================================================================== */
.circle-consistency-bar {
    margin-bottom: 16px;
}
.circle-consistency-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: bold;
}
.consistency-high { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.consistency-mid  { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.consistency-low  { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }
.consistency-bar-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 6px;
    width: 200px;
    max-width: 100%;
}
.consistency-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #43a047, #66bb6a);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ===========================================================================
   DIFF-02: 関連作品セクション
   =========================================================================== */
.related-works-section {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 24px 0;
}
.related-works-section h3 {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
    border-left: 3px solid #b71c1c;
    padding-left: 8px;
}
.related-works-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    font-size: 0.9em;
}
.related-works-list li {
    margin-bottom: 4px;
}

/* ===========================================================================
   DIFF-04: 隠れた名作バッジ
   =========================================================================== */
.gem-badge {
    display: inline-block;
    background: #7b1fa2;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
}
.hidden-gems-list .hidden-gem-item {
    padding: 10px 12px 10px 52px;
}

/* ===========================================================================
   DIFF-01: AIサマリーブロック
   =========================================================================== */
.ai-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #7e57c2;
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
    font-style: italic;
    color: #37474f;
    line-height: 1.8;
    margin: 16px 0;
}

/* ===========================================================================
   DIFF-09: ウォッチリストボタン
   =========================================================================== */
.watchlist-wrap {
    margin: 20px 0 8px;
    text-align: right;
}
.watchlist-btn {
    background: #fff;
    border: 2px solid #b0bec5;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.88em;
    cursor: pointer;
    color: #546e7a;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}
.watchlist-btn:hover {
    border-color: #f57f17;
    color: #e65100;
    background: #fff8e1;
}
.watchlist-btn.watched {
    background: #fff8e1;
    border-color: #f9a825;
    color: #e65100;
    font-weight: bold;
}

@media (max-width: 600px) {
    .watchlist-btn {
        width: 100%;
        text-align: center;
    }
    .consistency-bar-track {
        width: 100%;
    }
}
