/* =====================================================
 * Roadly Final CTA（共通パーツ用 CSS）
 * 元: page-driver.css の [9] FINAL CTA を抽出
 * 表示先: roadly.jp/user-routes/, /u/, /u/<id>/
 * driver LP では page-driver.css 経由で同等スタイルがあるため、このCSSは読み込まない
 * ===================================================== */

.driver-final-cta {
    --pad: clamp(20px, 5vw, 60px);
    position: relative;
    padding: 100px var(--pad);
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: #1a1612;
}
@media (min-width: 768px) {
    .driver-final-cta {
        padding: 180px var(--pad);
    }
}

.driver-final-cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.driver-final-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.driver-final-cta-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}
.driver-final-cta-heading {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0.06em;
}
.driver-final-cta-sub {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.9;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0;
}
.driver-final-cta-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.driver-final-cta-actions .driver-btn {
    width: 370px;
    max-width: 100%;
    height: 64px;
    padding: 0 24px;
    border-radius: 999px;
}
.driver-final-cta-actions .driver-btn--primary {
    font-size: 20px;
}
.driver-final-cta-actions .driver-btn--ghost-light {
    font-size: 16px;
}

@media (max-width: 767px) {
    .driver-final-cta-inner { gap: 40px; }
    .driver-final-cta-sub { font-size: 16px; }
    .driver-final-cta-actions { gap: 15px; }
    .driver-final-cta-actions .driver-btn {
        width: 100%;
        height: 56px;
    }
    .driver-final-cta-actions .driver-btn--primary { font-size: 17px; }
    .driver-final-cta-actions .driver-btn--ghost-light { font-size: 14px; }
}

/* SP改行ヘルパ */
.driver-sp-br { display: none; }
@media (max-width: 767px) {
    .driver-sp-br { display: inline; }
}

/* ============================================
   共通ボタン（final-cta で使用する分のみ）
============================================ */
.driver-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.driver-btn--primary {
    background: #dc2424;
    color: #fff;
    border: 1.5px solid #dc2424;
}
.driver-btn--primary:hover {
    background: #b81c1c;
    border-color: #b81c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 36, 36, 0.35);
}
.driver-btn--ghost-light {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
}
.driver-btn--ghost-light:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ============================================
   3ページ専用調整
============================================ */
/* WP共通フッター: home-bottom-decor の上余白を消す（final-cta と地続きに見せる）*/
body.roadly-user-routes-archive .home-bottom-decor,
body.roadly-users-index .home-bottom-decor,
body.roadly-user-profile .home-bottom-decor,
body.roadly-user-drives-index .home-bottom-decor {
    margin-top: 0;
}
/* final-cta 自体: 直前のコンテンツとの間に少しだけ余白 */
body.roadly-user-routes-archive .driver-final-cta,
body.roadly-users-index .driver-final-cta,
body.roadly-user-profile .driver-final-cta,
body.roadly-user-drives-index .driver-final-cta {
    margin-top: 24px;
}
