/* Final CTA セクション - YouTube背景動画対応 */

.final-cta {
    position: relative;
    width: 100vw;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* YouTube動画背景コンテナ */
.final-cta-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}



/* YouTube iframe 背景動画 */
.final-cta-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100%;
    z-index: 0;
    pointer-events: none;
    border: none;
}

/* オーバーレイ */
.final-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5;
}

/* コンテンツ */
.final-cta-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100 !important;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* テキストを確実に表示 */
.final-cta .cta-title,
.final-cta .cta-subtitle,
.final-cta .cta-pre-title {
    position: relative !important;
    z-index: 100 !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8) !important;
}

.final-cta .cta-title {
    color: #4FA5E6 !important;
}

.final-cta .cta-pre-title {
    color: white !important;
}

/* ボタンとバッジ */
.final-cta .cta-mega-button,
.final-cta .cta-badge,
.final-cta .cta-badges {
    position: relative !important;
    z-index: 100 !important;
}

/* モバイル */
@media (max-width: 768px) {
    .final-cta {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        background: #1a1a1a !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .final-cta-video-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
    }
    
    .final-cta-video {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 177.78vh !important;
        height: 100vh !important;
        min-width: 177.78vh !important;
        min-height: 100vh !important;
        object-fit: cover !important;
        pointer-events: none !important;
    }
    
    .final-cta-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 5 !important;
    }
    
    .final-cta-container {
        padding: 20px !important;
        width: 95% !important;
    }
    
    .cta-content-ultimate {
        flex-direction: column !important;
        gap: 25px !important;
        text-align: center !important;
    }
    
    .cta-left {
        text-align: center !important;
        width: 100% !important;
    }
    
    .cta-left > div > span {
        font-size: 1.5rem !important;
        white-space: normal !important;
    }
    
    .cta-right {
        width: 100% !important;
        min-width: auto !important;
        gap: 15px !important;
    }
    
    .cta-mega-button {
        font-size: 1rem !important;
        padding: 15px 35px !important;
    }
    
    .cta-badges {
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    
    .cta-badge {
        font-size: 0.6rem !important;
        padding: 6px 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .badge-text-full {
        display: none !important;
    }
    
    .badge-text-mobile {
        display: inline !important;
    }
}

/* タブレット（769px - 1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .final-cta {
        min-height: 500px;
        height: 70vh;
        overflow: hidden !important;
    }
    
    .final-cta-container {
        width: 95% !important;
        max-width: 900px !important;
        padding: 30px 40px !important;
    }
    
    .cta-content-ultimate {
        gap: 40px !important;
    }
    
    .cta-left > div > span {
        font-size: clamp(1.4rem, 3vw, 2rem) !important;
    }
    
    .cta-right {
        min-width: 280px !important;
    }
    
    .cta-badges {
        gap: 6px !important;
    }
    
    .cta-badge {
        font-size: 0.6rem !important;
        padding: 8px 10px !important;
    }
}

/* 中型デスクトップ（1025px - 1440px） */
@media (min-width: 1025px) and (max-width: 1440px) {
    .final-cta {
        min-height: 550px;
        height: 70vh;
        overflow: hidden !important;
    }
    
    .final-cta-container {
        width: 95% !important;
        max-width: 1200px !important;
        padding: 35px 50px !important;
    }
    
    .cta-content-ultimate {
        gap: 60px !important;
    }
    
    .cta-left > div > span {
        font-size: clamp(1.6rem, 3.2vw, 2.4rem) !important;
    }
    
    .cta-right {
        min-width: 320px !important;
    }
    
    .cta-badges {
        gap: 7px !important;
    }
    
    .cta-badge {
        font-size: 0.65rem !important;
        padding: 9px 12px !important;
    }
}

/* 大型デスクトップ（1441px以上） */
@media (min-width: 1441px) {
    .final-cta {
        min-height: 600px;
        height: 70vh;
        overflow: hidden !important;
    }
    
    .final-cta-video-container {
        width: 100vw !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    
    .final-cta-video {
        width: 100vw !important;
        height: 56.25vw !important;
        min-width: 177.78vh !important;
        min-height: 100% !important;
    }
    
    .final-cta-container {
        width: 95% !important;
        max-width: 1600px !important;
        padding: 40px 80px !important;
    }
    
    .cta-content-ultimate {
        gap: 100px !important;
        justify-content: space-between !important;
    }
    
    .cta-left {
        flex: 1 !important;
        text-align: left !important;
    }
    
    .cta-right {
        flex: 0 0 auto !important;
        min-width: 380px !important;
        align-items: flex-end !important;
    }
    
    .cta-badges {
        gap: 8px !important;
    }
}
