/* ================================
   ふわり - Hero FX Styles
   共通のヒーローエフェクト
   ================================ */

.hero-fx {
    position: relative;
    overflow: hidden;
}

.hero-fx-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Grid pattern */
.hero-fx-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: heroFxGridMove 30s linear infinite;
}

@keyframes heroFxGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* Glow effect */
.hero-fx-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.15) 0%, transparent 50%);
    animation: heroFxGlowPulse 6s ease-in-out infinite;
}

@keyframes heroFxGlowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Shapes */
.hero-fx-shape {
    position: absolute;
    border-radius: 50%;
}

.hero-fx-shape-1 {
    width: 800px;
    height: 800px;
    top: -300px;
    right: -300px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.4) 0%, rgba(230, 57, 70, 0.1) 40%, transparent 70%);
    animation: heroFxFloat1 12s ease-in-out infinite;
    filter: blur(40px);
}

.hero-fx-shape-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.35) 0%, rgba(230, 57, 70, 0.1) 40%, transparent 70%);
    animation: heroFxFloat2 10s ease-in-out infinite;
    filter: blur(30px);
}

.hero-fx-shape-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: heroFxFloat3 14s ease-in-out infinite, heroFxPulse 4s ease-in-out infinite;
}

.hero-fx-shape-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    background: rgba(230, 57, 70, 0.4);
    filter: blur(60px);
    animation: heroFxFloat4 8s ease-in-out infinite;
}

.hero-fx-shape-5 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 15%;
    border: 1px solid rgba(230, 57, 70, 0.5);
    background: transparent;
    animation: heroFxFloat5 10s ease-in-out infinite;
}

@keyframes heroFxFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, 40px) scale(1.15); }
    50% { transform: translate(-40px, 80px) scale(1.1); }
    75% { transform: translate(-100px, 20px) scale(1.2); }
}

@keyframes heroFxFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(40px, -80px) scale(1.15); }
    75% { transform: translate(80px, -20px) scale(1.05); }
}

@keyframes heroFxFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-40px, 40px) rotate(180deg) scale(1.2); }
}

@keyframes heroFxFloat4 {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    50% { transform: translate(40px, -30px); opacity: 1; }
}

@keyframes heroFxFloat5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 20px) rotate(180deg); }
}

@keyframes heroFxPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Particles */
.hero-fx-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-fx-particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
    animation: heroFxParticleRise 5s ease-in-out infinite;
}

@keyframes heroFxParticleRise {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-fx-shape-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }
    
    .hero-fx-shape-2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -100px;
    }
    
    .hero-fx-shape-3,
    .hero-fx-shape-4,
    .hero-fx-shape-5 {
        display: none;
    }
}