/* ========================================
   RPG 属性エフェクト
   ======================================== */

/* ========================================
   🔥 炎エフェクト（敵セクション用）
   ======================================== */
.problems {
    position: relative;
    overflow: hidden;
}

/* 炎パーティクル */
.problems::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(255, 165, 0, 0.3) 0%, transparent 35%),
        radial-gradient(circle at 80% 85%, rgba(255, 69, 0, 0.25) 0%, transparent 30%);
    animation: fireGlow 4s ease-in-out infinite;
    pointer-events: none;
}

/* 炎の揺らめき */
.problems::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(ellipse at 30% 100%, rgba(255, 140, 0, 0.35) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 100%, rgba(255, 69, 0, 0.3) 0%, transparent 35%);
    animation: fireFlicker 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes fireGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px);
    }
}

@keyframes fireFlicker {
    0% {
        opacity: 0.5;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-10px);
    }
}

/* 炎の火花エフェクト */
.fire-particle {
    position: absolute;
    font-size: 40px;
    pointer-events: none;
    animation: fireRise 4s ease-out infinite;
    opacity: 0;
    color: #FF4500;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 140, 0, 0.6),
        0 0 60px rgba(255, 69, 0, 0.4);
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.9));
}

@keyframes fireRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-150px) scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.5) rotate(20deg);
    }
}

/* ========================================
   ❄️ 氷エフェクト（理由セクション用）
   ======================================== */
.reasons {
    position: relative;
    overflow: hidden;
}

/* 氷の結晶背景 */
.reasons::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(135, 206, 250, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(173, 216, 230, 0.25) 0%, transparent 30%),
        radial-gradient(circle at 50% 70%, rgba(176, 224, 230, 0.15) 0%, transparent 35%);
    animation: iceShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

/* 氷の輝き */
.reasons::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(176, 224, 230, 0.15) 50%, transparent 100%);
    animation: iceGleam 8s linear infinite;
    pointer-events: none;
}

@keyframes iceShimmer {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

@keyframes iceGleam {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

/* 氷の結晶パーティクル */
.ice-particle {
    position: absolute;
    font-size: 30px;
    color: rgba(135, 206, 250, 0.8);
    pointer-events: none;
    animation: iceFall 6s ease-in-out infinite;
    text-shadow: 
        0 0 20px rgba(173, 216, 230, 1),
        0 0 40px rgba(135, 206, 250, 0.8),
        0 0 60px rgba(176, 224, 230, 0.6);
    filter: drop-shadow(0 0 15px rgba(173, 216, 230, 0.9));
}

@keyframes iceFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: translateY(150px) rotate(180deg) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateY(300px) rotate(360deg) scale(0.5);
    }
}

/* ========================================
   ⚡ 雷エフェクト（料金プランセクション用）
   ======================================== */
.plans {
    position: relative;
    overflow: hidden;
}

/* 雷の光 */
.plans::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 0, 0.15) 0%, transparent 35%);
    animation: thunderPulse 2s ease-in-out infinite;
    pointer-events: none;
}

/* 電気の走る線 */
.plans::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.3) 20%, 
        rgba(255, 255, 0, 0.5) 50%, 
        rgba(255, 215, 0, 0.3) 80%, 
        transparent 100%);
    animation: thunderBolt 3s linear infinite;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes thunderPulse {
    0%, 90%, 100% {
        opacity: 0.3;
    }
    5%, 15% {
        opacity: 1;
    }
}

@keyframes thunderBolt {
    0%, 100% {
        opacity: 0;
        transform: translateY(-100%);
    }
    10%, 12% {
        opacity: 1;
    }
    20% {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* 雷の火花 */
.thunder-particle {
    position: absolute;
    font-size: 35px;
    color: #FFD700;
    pointer-events: none;
    animation: thunderStrike 2s ease-out infinite;
    opacity: 0;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 255, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
}

@keyframes thunderStrike {
    0%, 90%, 100% {
        opacity: 0;
        transform: scale(1) rotate(0deg);
    }
    5% {
        opacity: 1;
        transform: scale(1.5) rotate(-15deg);
    }
    10% {
        opacity: 0.5;
        transform: scale(1.3) rotate(10deg);
    }
    15% {
        opacity: 1;
        transform: scale(1.2) rotate(-10deg);
    }
    20% {
        opacity: 0;
        transform: scale(1) rotate(0deg);
    }
}

/* ========================================
   🌿 森エフェクト（制作の流れセクション用）
   ======================================== */
.flow {
    position: relative;
    overflow: hidden;
}

/* 森の光 */
.flow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(34, 139, 34, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 50%, rgba(50, 205, 50, 0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(144, 238, 144, 0.12) 0%, transparent 30%);
    animation: forestGlow 8s ease-in-out infinite;
    pointer-events: none;
}

/* 木漏れ日 */
.flow::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        linear-gradient(135deg, 
            transparent 0%, 
            rgba(144, 238, 144, 0.1) 25%, 
            transparent 50%, 
            rgba(34, 139, 34, 0.12) 75%, 
            transparent 100%);
    animation: sunlightShift 12s linear infinite;
    pointer-events: none;
}

@keyframes forestGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.03);
    }
}

@keyframes sunlightShift {
    0% {
        transform: translateX(-50%) rotate(20deg);
    }
    100% {
        transform: translateX(150%) rotate(20deg);
    }
}

/* 葉っぱパーティクル */
.leaf-particle {
    position: absolute;
    font-size: 28px;
    color: rgba(34, 139, 34, 0.7);
    pointer-events: none;
    animation: leafFloat 8s ease-in-out infinite;
    opacity: 0;
    text-shadow: 
        0 0 15px rgba(50, 205, 50, 0.6),
        0 0 30px rgba(144, 238, 144, 0.4);
    filter: drop-shadow(0 2px 8px rgba(34, 139, 34, 0.5));
}

@keyframes leafFloat {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) translateX(0);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: translateY(150px) rotate(180deg) translateX(30px);
    }
    100% {
        opacity: 0;
        transform: translateY(300px) rotate(360deg) translateX(-30px);
    }
}

/* コンテンツがエフェクトの上に表示されるように */
.problems .container,
.reasons .container,
.plans .container,
.flow .container {
    position: relative;
    z-index: 1;
}
