/* =====================
Best Select Media
トップページ サイト型スタイル
v2.0 - ボタン・カード強化版
===================== */

/* 全体 */
#fanza-top-page {
    width: 100%;
    margin: 0;
    padding: 10px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

/* 18歳確認バナー */
.age-notice {
    background: #1a1a2e;
    color: #ff6b6b;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #ff6b6b;
}

/* セクション */
.fanza-section {
    margin-bottom: 30px;
    padding: 0 4px;
}

/* セクションヘッダー */
.fanza-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 12px;
    background: #c0392b;
}

.fanza-section-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 0;
}

.fanza-section-header .more-link,
.fanza-more-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    transition: background 0.2s;
}

.fanza-section-header .more-link:hover {
    background: rgba(255,255,255,0.35);
}

/* セクション別ヘッダー色 */
.fanza-section-header.av { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.fanza-section-header.av-new { background: linear-gradient(135deg, #d35400, #e67e22); }
.fanza-section-header.doujin { background: linear-gradient(135deg, #7d3c98, #8e44ad); }
.fanza-section-header.comic { background: linear-gradient(135deg, #1a5276, #2980b9); }
.fanza-section-header.ranking { background: linear-gradient(135deg, #b7950b, #d4ac0d); }

/* 商品グリッド */
.fanza-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* 商品カード */
.fanza-item {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.fanza-item:hover {
    transform: translateY(-4px);
    border-color: #e74c3c;
    box-shadow: 0 6px 20px rgba(231,76,60,0.3);
}

/* ランクバッジ */
.fanza-item .rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
    z-index: 2;
    line-height: 1.4;
}
.fanza-item .rank-badge.gold   { background: #d4ac0d; color: #1a1a1a; }
.fanza-item .rank-badge.silver { background: #95a5a6; color: #1a1a1a; }
.fanza-item .rank-badge.bronze { background: #ca6f1e; }

/* 商品画像 - 横長3:2比率に統一 */
.fanza-item-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #111;
    display: block;
}

.fanza-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.3s;
}

.fanza-item:hover .fanza-item-image img {
    transform: scale(1.04);
}

/* 商品情報 */
.fanza-item-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fanza-item-title {
    font-size: 12px;
    color: #eee;
    margin: 0 0 4px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fanza-item-actress {
    font-size: 11px;
    color: #ff9999;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fanza-item-price {
    font-size: 13px;
    color: #ffd700;
    font-weight: bold;
    margin: 0 0 8px 0;
}

/* ★★★ ボタン強化 ★★★ */
.fanza-item-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-top: auto;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(231,76,60,0.4);
    position: relative;
    overflow: hidden;
}

.fanza-item-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}

.fanza-item-btn:hover {
    background: linear-gradient(135deg, #ff5a47, #e74c3c);
    box-shadow: 0 4px 12px rgba(231,76,60,0.6);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.fanza-item-btn:hover::after {
    background: rgba(255,255,255,0.08);
}

/* ランキング番号付きカード */
.fanza-item.ranked::before {
    content: attr(data-rank);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 8px 0;
    z-index: 3;
}
.fanza-item.ranked[data-rank="1"]::before { background: linear-gradient(135deg, #f1c40f, #d4ac0d); color: #1a1a1a; font-size: 16px; }
.fanza-item.ranked[data-rank="2"]::before { background: linear-gradient(135deg, #bdc3c7, #95a5a6); color: #1a1a1a; }
.fanza-item.ranked[data-rank="3"]::before { background: linear-gradient(135deg, #e59866, #ca6f1e); }

/* DMM クレジット */
.dmm-credit {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
}
.dmm-credit a { color: #888; text-decoration: none; }

/* レスポンシブ */
@media screen and (max-width: 1024px) {
    .fanza-grid { grid-template-columns: repeat(4, 1fr); }
}

@media screen and (max-width: 768px) {
    .fanza-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .fanza-item-title { font-size: 11px; }
    .fanza-item-btn { font-size: 11px; padding: 7px 6px; }
    .fanza-section-header h2 { font-size: 15px; }
}

@media screen and (max-width: 480px) {
    .fanza-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}


/* ============================================
   収益改善 v2 - CTR・購買意欲強化 2026/5/26
   ============================================ */

/* ボタン：パルスアニメーション */
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(220,50,50,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(220,50,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,50,50,0); }
}
.fanza-item-btn {
  animation: pulse-red 2s infinite;
}
.fanza-item-btn:hover {
  transform: scale(1.05) !important;
  transition: transform 0.15s ease !important;
}

/* カード画像ホバーズーム */
.fanza-item-thumb img {
  transition: transform 0.3s ease;
}
.fanza-item:hover .fanza-item-thumb img {
  transform: scale(1.06);
}

/* 価格強調 */
.fanza-item-price {
  color: #e63939 !important;
  font-weight: 700 !important;
}

/* ランキングバッジ */
.fanza-rank-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  z-index: 10; color: #333;
}
