/**
 * CTAセクション スタイル
 * css/components/cta.css
 */

/* ================================
   CTAセクション
================================ */
.cta-section {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* CTAバナー */
.cta-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.cta-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTAオーバーレイ */
.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.95) 0%,
        rgba(52, 152, 219, 0.85) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* 背景アニメーション */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta-overlay {
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

/* CTAコンテンツ */
.cta-overlay .container {
    max-width: 800px;
}

/* CTAタイトル */
.cta-title {
    font-size: 36px;
    font-weight: var(--font-weight-light);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* CTAサブタイトル */
.cta-subtitle {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* CTA特徴 */
.cta-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.cta-features span {
    font-size: 14px;
    font-weight: var(--font-weight-light);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-features span::before {
    content: '✓';
    font-weight: var(--font-weight-medium);
    color: #f1c40f;
}

/* CTAボタン */
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 16px 40px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary {
    background: white;
    color: var(--primary);
    border: 1px solid white;
}

.btn-cta-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ボタンの波紋効果 */
.btn-cta-primary::before,
.btn-cta-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-primary:hover::before,
.btn-cta-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* ================================
   装飾要素
================================ */
/* 背景の幾何学模様 */
.cta-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.05) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    transform: rotate(45deg);
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: rotate(45deg) translate(0, 0);
    }
    100% {
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* ================================
   レスポンシブ対応
================================ */
@media (max-width: 768px) {
    .cta-banner {
        height: 500px;
    }
    
    .cta-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .cta-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        padding: 0 20px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        margin-bottom: 32px;
    }
    
    .cta-features span {
        font-size: 13px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        padding: 14px 32px;
    }
}

@media (max-width: 480px) {
    .cta-banner {
        height: 450px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-subtitle {
        font-size: 13px;
    }
    
    .cta-features span {
        font-size: 12px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 13px;
        padding: 12px 24px;
    }
}

/* ================================
   アクセシビリティ
================================ */
.btn-cta-primary:focus,
.btn-cta-secondary:focus {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* ================================
   パフォーマンス最適化
================================ */
@media (prefers-reduced-motion: reduce) {
    .cta-overlay,
    .cta-overlay::before {
        animation: none;
    }
    
    .cta-title,
    .cta-subtitle,
    .cta-features,
    .cta-buttons {
        animation: none;
        opacity: 1;
        transform: none;
    }
}