@charset "UTF-8";
/*
Theme Name: cocoon-child-master
Template:   cocoon-master
Version:    1.1.3
Description: Cocoon専用の子テーマ
Skin:       
*/

/* ここから下にCSSを記述してください */

/* Font Awesome アイコンフォントの読み込み (必ず一番上に記述) */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

/* ============================================================
   DAF/FDF 共通女優カードスタイル (超圧縮・スマホ最適化版)
   ============================================================ */

/* コンテナ設定 */
.daf-universal-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 15px 0;
}

@media (min-width: 576px) { .daf-universal-container { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 768px) { .daf-universal-container { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1200px) { .daf-universal-container { grid-template-columns: repeat(6, 1fr); } }

/* カード本体 */
.actress-card.fdf-voltage-card {
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.actress-card:hover { transform: translateY(-3px); border-color: #555; }

/* 画像エリア */
.actress-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 200 / 267;
    background: #000;
}

.actress-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* コンテンツエリア (スマホで極限まで詰める) */
.actress-card-content { padding: 6px 8px; flex-grow: 1; display: flex; flex-direction: column; }

.actress-name {
    margin: 0 0 2px 0 !important;
    line-height: 1.1 !important;
    font-size: 14px;
    font-weight: 800;
}

.actress-name a { color: #fff; text-decoration: none; }

.actress-name .ruby {
    display: block;
    font-size: 10px;
    color: #888;
    font-weight: normal;
}

/* スペックタグ */
.actress-specs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 4px;
}

.spec-tag {
    font-size: 9px;
    color: #ccc;
    background: #333;
    padding: 0px 4px;
    border-radius: 2px;
    border: 1px solid #444;
}

/* ボルテージカード */
.finder-score-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 4px 6px;
    margin-top: auto;
    border-left: 2px solid #444;
}

.score-label { font-size: 8px; color: #888; margin-bottom: 0; line-height: 1; }

.score-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.score-value-wrap { display: flex; align-items: baseline; line-height: 1; }
.icon-bolt { font-size: 14px; color: #ffcc00; margin-right: 1px; }
.score-value { font-family: sans-serif; font-weight: 900; font-size: 18px; color: #fff; }

.rank-badge {
    font-size: 9px;
    padding: 0px 4px;
    color: #fff;
    border-radius: 3px;
    font-weight: bold;
    font-style: italic;
    transform: skewX(-10deg);
}

.score-work-count { font-size: 9px; color: #aaa; margin-top: 2px; }

/* スマホ用特殊圧縮 (DAFから移植) */
@media (max-width: 768px) {
    .actress-name { font-size: 11px !important; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .actress-name .ruby { display: none !important; }
    .score-value { font-size: 16px !important; }
    .spec-tag { transform: scale(0.9); transform-origin: left top; }
}

/* ティア別カラー */
.tier-GOD { background: linear-gradient(45deg, #ff00cc, #3333ff) !important; animation: rainbow-glow 4s ease infinite; }
.tier-SSS { background: #d0021b !important; }
.tier-SS  { background: #f5a623 !important; }
.tier-S   { background: #f8e71c !important; color: #000 !important; }
.tier-A   { background: #4a90e2 !important; }

/* 1. アニメーションの定義 */
@keyframes rainbow-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. 女優カードの外枠カラーを復活 (tierクラスをカード本体に適用) */
.actress-card.fdf-voltage-card.tier-GOD { border: 2px solid #ff00cc; box-shadow: 0 0 10px rgba(255, 0, 204, 0.4); }
.actress-card.fdf-voltage-card.tier-SSS { border: 2px solid #d0021b; }
.actress-card.fdf-voltage-card.tier-SS  { border: 2px solid #f5a623; }
.actress-card.fdf-voltage-card.tier-S   { border: 2px solid #f8e71c; }
.actress-card.fdf-voltage-card.tier-A   { border: 2px solid #4a90e2; }

/* 3. ランクバッジ(GOD)のアクション復活 */
.rank-badge.tier-GOD {
    background: linear-gradient(270deg, #ff00cc, #3333ff, #00ccff, #ff00cc) !important;
    background-size: 400% 400% !important;
    animation: rainbow-glow 4s ease infinite !important;
    color: #fff !important;
}

/* スマホでの「欠け」を防止する設定 */
@media (max-width: 768px) {
    .actress-card-content {
        padding: 4px 6px !important;
        overflow: hidden; /* はみ出し防止 */
    }
    
    .actress-specs-container {
        gap: 2px !important;
        width: 100%;
    }

    /* 改行用スペーサーをスマホのみ有効化 */
    .daf-sp-br {
        display: block !important;
    }

    .spec-tag {
        font-size: 8.5px !important;
        padding: 0 2px !important;
        white-space: nowrap;
    }
    
    .score-value {
        font-size: 15px !important; /* 少し小さくして収める */
    }
    
    .score-work-count {
        font-size: 8px !important;
    }
}

/* 共通コンテナ内のカード幅を最適化 */
.daf-universal-container .actress-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    /* ランキング特有の不要なマージンをリセット */
    .dmm-actress-finder-results {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .daf-universal-container {
        gap: 6px !important; /* スマホでは隙間をさらに詰める */
        padding: 0 4px !important;
    }

    .actress-card-content {
        padding: 4px 5px !important;
    }

    .score-value {
        font-size: 15px !important;
    }
}