/* ====================================
   Common Animation Styles
   共通アニメーション
   ==================================== */

/* ====================================
   Glitch Effect - 文字がブレるアニメーション
   ==================================== */

/* 基本グリッチアニメーション（3秒サイクル） */
@keyframes glitchText {
    0%, 80%, 100% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    82% {
        transform: translate(-2px, 1px);
        text-shadow: 
            2px 0 #4CAF50,
            -2px 0 #FF0080;
    }
    84% {
        transform: translate(2px, -1px);
        text-shadow: 
            -2px 0 #4CAF50,
            2px 0 #FF0080;
    }
    86% {
        transform: translate(-1px, 2px);
        text-shadow: 
            1px 0 #4CAF50,
            -1px 0 #FF0080;
    }
    88% {
        transform: translate(1px, -1px);
        text-shadow: 
            -1px 0 #4CAF50,
            1px 0 #FF0080;
    }
    90% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* 頻繁グリッチアニメーション（1.5秒サイクル） */
@keyframes glitchTextFrequent {
    0%, 70%, 100% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    75% {
        transform: translate(-2px, 1px);
        text-shadow: 
            2px 0 #4CAF50,
            -2px 0 #FF0080;
    }
    80% {
        transform: translate(2px, -1px);
        text-shadow: 
            -2px 0 #4CAF50,
            2px 0 #FF0080;
    }
    85% {
        transform: translate(-1px, 2px);
        text-shadow: 
            1px 0 #4CAF50,
            -1px 0 #FF0080;
    }
    90% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* ゆっくりグリッチアニメーション（6秒サイクル） */
@keyframes glitchTextSlow {
    0%, 90%, 100% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    91% {
        transform: translate(-2px, 1px);
        text-shadow: 
            2px 0 #4CAF50,
            -2px 0 #FF0080;
    }
    92% {
        transform: translate(2px, -1px);
        text-shadow: 
            -2px 0 #4CAF50,
            2px 0 #FF0080;
    }
    93% {
        transform: translate(-1px, 2px);
        text-shadow: 
            1px 0 #4CAF50,
            -1px 0 #FF0080;
    }
    94% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* 控えめグリッチアニメーション */
@keyframes glitchTextSubtle {
    0%, 85%, 100% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    88% {
        transform: translate(-1px, 0.5px);
        text-shadow: 
            1px 0 #4CAF50,
            -1px 0 #FF0080;
    }
    91% {
        transform: translate(1px, -0.5px);
        text-shadow: 
            -1px 0 #4CAF50,
            1px 0 #FF0080;
    }
    94% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* 強めグリッチアニメーション */
@keyframes glitchTextIntense {
    0%, 75%, 100% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    78% {
        transform: translate(-3px, 2px);
        text-shadow: 
            3px 0 #4CAF50,
            -3px 0 #FF0080;
    }
    81% {
        transform: translate(3px, -2px);
        text-shadow: 
            -3px 0 #4CAF50,
            3px 0 #FF0080;
    }
    84% {
        transform: translate(-2px, 3px);
        text-shadow: 
            2px 0 #4CAF50,
            -2px 0 #FF0080;
    }
    87% {
        transform: translate(2px, -1px);
        text-shadow: 
            -2px 0 #4CAF50,
            2px 0 #FF0080;
    }
    90% {
        transform: translate(0);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

/* ====================================
   Glitch適用クラス
   ==================================== */

/* 基本 - 3秒サイクル（デフォルト推奨） */
.glitch {
    animation: glitchText 3s infinite;
}

/* 頻繁 - 1.5秒サイクル */
.glitch--frequent {
    animation: glitchTextFrequent 1.5s infinite;
}

/* ゆっくり - 6秒サイクル */
.glitch--slow {
    animation: glitchTextSlow 6s infinite;
}

/* 控えめ - 3秒サイクル */
.glitch--subtle {
    animation: glitchTextSubtle 3s infinite;
}

/* 強め - 2秒サイクル */
.glitch--intense {
    animation: glitchTextIntense 2s infinite;
}

/* ====================================
   遅延バリエーション（組み合わせ可能）
   ==================================== */
.glitch--delay-1 {
    animation-delay: 0.5s;
}

.glitch--delay-2 {
    animation-delay: 1s;
}

.glitch--delay-3 {
    animation-delay: 1.5s;
}

.glitch--delay-4 {
    animation-delay: 2s;
}

.glitch--delay-5 {
    animation-delay: 2.5s;
}

/* ====================================
   Fade In Up - 下から浮き上がるアニメーション
   ==================================== */
.fadeInUp-animation {
    animation: fadeInUp 1s ease-out forwards;
}

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




/* ====================================
   Fade In Up Animation
   下から浮き上がるアニメーション
   ==================================== */
.fadeInUp-animation {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* ====================================
   Main Visual Animations
   メインビジュアル用アニメーション
   ==================================== */

/* テキスト表示アニメーション */
@keyframes revealText {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* オーバーレイスライドアニメーション */
@keyframes overlaySlide {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* スクロールインジケーターアニメーション */
@keyframes pathmove {
    0% { height: 0; top: 0; opacity: 0; }
    30% { height: 30px; opacity: 1; }
    100% { height: 0; top: 60px; opacity: 0; }
}