/* Cocopi ヒーローエリア CSS */

/* 基本スタイル */
.cocopi-hero-modern {
    position: relative;
    overflow: hidden;
}

.cocopi-hero-cover {
    position: relative;
    background-attachment: fixed;
}

/* ヒーローコンテンツ */
.cocopi-hero-content {
    position: relative;
    z-index: 2;
}

/* ヒーローテキスト */
.cocopi-hero-title {
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.cocopi-hero-description {
    margin: 0 0 2rem 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ヒーローアクション */
.cocopi-hero-actions {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cocopi-hero-cta-primary {
    transition: all 0.3s ease;
}

.cocopi-hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.4);
}

.cocopi-hero-cta-secondary {
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.cocopi-hero-cta-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ヒーローフィーチャー */
.cocopi-hero-features {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cocopi-feature-item {
    transition: all 0.3s ease;
}

.cocopi-feature-item:hover {
    transform: translateX(5px);
}

.cocopi-check-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* ヒーローカード */
.cocopi-hero-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    animation: fadeInRight 1s ease-out 0.8s both;
}

.cocopi-hero-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.cocopi-card-title {
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cocopi-card-description {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

.cocopi-card-cta {
    transition: all 0.3s ease;
}

.cocopi-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .cocopi-hero-cover {
        background-attachment: scroll;
        min-height: 500px !important;
    }
    
    .cocopi-hero-content {
        padding: 60px 0 !important;
    }
    
    .cocopi-hero-title {
        font-size: 36px !important;
        text-align: center;
    }
    
    .cocopi-hero-description {
        font-size: 18px !important;
        text-align: center;
    }
    
    .cocopi-hero-actions {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
    }
    
    .cocopi-hero-cta-primary,
    .cocopi-hero-cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .cocopi-hero-features {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 1rem !important;
    }
    
    .cocopi-feature-item {
        flex-direction: column !important;
        text-align: center;
        gap: 0.3rem !important;
    }
    
    .cocopi-hero-card {
        margin-top: 2rem;
        padding: 30px 20px !important;
    }
    
    .cocopi-card-title {
        font-size: 20px !important;
    }
    
    .cocopi-card-description {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .cocopi-hero-cover {
        min-height: 400px !important;
    }
    
    .cocopi-hero-content {
        padding: 40px 0 !important;
    }
    
    .cocopi-hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .cocopi-hero-description {
        font-size: 16px !important;
    }
    
    .cocopi-hero-cta-primary,
    .cocopi-hero-cta-secondary {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }
    
    .cocopi-hero-card {
        padding: 25px 15px !important;
    }
    
    .cocopi-card-title {
        font-size: 18px !important;
    }
    
    .cocopi-card-description {
        font-size: 13px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cocopi-hero-cover {
        min-height: 550px !important;
    }
    
    .cocopi-hero-content {
        padding: 70px 0 !important;
    }
    
    .cocopi-hero-title {
        font-size: 42px !important;
    }
    
    .cocopi-hero-description {
        font-size: 19px !important;
    }
}

@media (min-width: 1025px) {
    .cocopi-hero-cover {
        min-height: 600px !important;
    }
    
    .cocopi-hero-content {
        padding: 80px 0 !important;
    }
    
    .cocopi-hero-title {
        font-size: 48px !important;
    }
    
    .cocopi-hero-description {
        font-size: 20px !important;
    }
}

/* 幅広・全幅対応の強化 */
.cocopi-hero-modern.alignwide {
    max-width: 1200px;
    margin: 0 auto;
}

.cocopi-hero-modern.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* パララックス効果 */
@media (min-width: 769px) {
    .cocopi-hero-cover {
        background-attachment: fixed;
    }
}

/* ホバー効果の強化 */
.cocopi-hero-cta-primary:hover,
.cocopi-hero-cta-secondary:hover,
.cocopi-card-cta:hover {
    transform: translateY(-3px);
}

/* テキストシャドウの強化 */
.cocopi-hero-title,
.cocopi-hero-description {
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* カードのグラデーション効果 */
.cocopi-hero-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
}

.cocopi-hero-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%) !important;
}

/* ボタンのグラデーション効果 */
.cocopi-hero-cta-primary .wp-block-button__link {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%) !important;
}

.cocopi-card-cta .wp-block-button__link {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%) !important;
}
