/* animation.css */

/* --- ローディングアニメーション --- */
.loader span {
    opacity: 0;
    animation: loading-text 1.5s infinite;
}

.loader span:nth-child(1) { animation-delay: 0.1s; }
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.3s; }
.loader span:nth-child(4) { animation-delay: 0.4s; }
.loader span:nth-child(5) { animation-delay: 0.5s; }
.loader span:nth-child(6) { animation-delay: 0.6s; }
.loader span:nth-child(7) { animation-delay: 0.7s; }
.loader span:nth-child(8) { animation-delay: 0.8s; }
.loader span:nth-child(9) { animation-delay: 0.9s; }

@keyframes loading-text {
    0% { opacity: 0; transform: translateY(-10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* --- ヒーローセクション タイトルアニメーション --- */
.animate-title {
    opacity: 0;
    transform: translateY(30px);
    animation: title-appear 1.2s ease-out 0.5s forwards;
}

@keyframes title-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 汎用フェードインアニメーション --- */
.animate-fade-in {
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards;
}

.animate-fade-in.delay-1 { animation-delay: 0.8s; }
.animate-fade-in.delay-2 { animation-delay: 1.1s; }

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* --- スクロールに応じたアニメーション --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 左右からのスライドアニメーション */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* カードが順番に表示されるアニメーション */
.event-card {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-visible .event-card:nth-child(1) { transition-delay: 0.1s; }
.is-visible .event-card:nth-child(2) { transition-delay: 0.2s; }
.is-visible .event-card:nth-child(3) { transition-delay: 0.3s; }

.is-visible .event-card {
    opacity: 1;
    transform: scale(1);
}

/* --- マウスオーバー時のインタラクション --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
} 