/*
 * _fund_usage_v2.html 専用の差分スタイル(【Bのみ】資金使途の紹介セクション)。
 * ab_new_style_v2.css の後に読み込み、後勝ちで上書きする想定。
 */

.top-fund-usage {
    margin: 0 0 64px;
}

.top-fund-usage-inner {
    background: linear-gradient(90deg, #E60000 0%, #A50082 100%);
    border-radius: 16px;
    padding: 8px;
}

.top-fund-usage-title {
    background: linear-gradient(90deg, #E60000 70%, #A50081 100%);
    border-radius: 16px 16px 0 0;
    padding: 16px 8px;
    color: #FFF;
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
}

.top-fund-usage-list {
    display: flex;
    gap: 16px;
    background: #FFF;
    border-radius: 0 0 14px 14px;
    padding: 24px;
}

.top-fund-usage-item {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
}

.top-fund-usage-item-image {
    width: 100%;
    aspect-ratio: 202 / 123.893;
    overflow: hidden;
    border-radius: 4px;
}

.top-fund-usage-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-fund-usage-item-text {
    color: #1A1A1C;
    font-weight: 350;
    font-size: 16px;
    line-height: 27.2px;
}

/* SP: 画像+テキストを横並びの行として縦に積む(Figmaのsp版レイアウトに準拠) */
@media screen and (max-width: 599px) {
    .top-fund-usage-title {
        font-size: 18px;
        line-height: 1.4;
    }

    .top-fund-usage-list {
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
    }

    .top-fund-usage-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .top-fund-usage-item-image {
        flex: 0 0 156px;
        width: 156px;
    }

    .top-fund-usage-item-text {
        flex: 1;
        min-width: 0;
        font-size: 14px;
    }
}

/*
 * お客さまの声の直後に資金使途セクションが続くとき(=テストグループB)は、
 * 両セクションの間隔を48pxに詰める。
 * .top-customer-voices の既定は ab_new_style_v2_voice.css の `margin: 104px 0`。
 * ここでは下マージンだけ上書きし、上マージン(104px)と、資金使途セクションが
 * 無いコントロールグループA(声→CTA)の間隔は従来どおり維持する。
 */
.top-customer-voices:has(+ .top-fund-usage) {
    margin-bottom: 48px;
}
