/* ====================================
   フェードインアニメーション
   ==================================== */
.fadeInUp {
    opacity: 0;
    transform: translateY(30px);
}

.fadeInUp.animated {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.fadeInLeft {
    opacity: 0;
    transform: translateX(-30px);
}

.fadeInLeft.animated {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeInRight {
    opacity: 0;
    transform: translateX(30px);
}

.fadeInRight.animated {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.fadeIn {
    opacity: 0;
}

.fadeIn.animated {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ====================================
   スケールアニメーション
   ==================================== */
.scaleIn {
    opacity: 0;
    transform: scale(0.9);
}

.scaleIn.animated {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====================================
   回転アニメーション
   ==================================== */
.rotateIn {
    opacity: 0;
    transform: rotate(-10deg);
}

.rotateIn.animated {
    animation: rotateIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rotateIn {
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* ====================================
   スライドアニメーション
   ==================================== */
.slideInLeft {
    transform: translateX(-100%);
}

.slideInLeft.animated {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
    }
}

.slideInRight {
    transform: translateX(100%);
}

.slideInRight.animated {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

/* ====================================
   バウンスアニメーション
   ==================================== */
.bounceIn {
    opacity: 0;
    transform: scale(0.3);
}

.bounceIn.animated {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====================================
   パララックスアニメーション
   ==================================== */
.parallax {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-slow {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-fast {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   グローアニメーション
   ==================================== */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 175, 178, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 175, 178, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* ====================================
   ウェーブアニメーション
   ==================================== */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    75% {
        transform: translateY(10px);
    }
}

.wave {
    animation: wave 3s ease-in-out infinite;
}

/* ====================================
   シェイクアニメーション
   ==================================== */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ====================================
   タイピングアニメーション
   ==================================== */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-right-color: transparent;
    }
    50%, 100% {
        border-right-color: currentColor;
    }
}

.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid;
    animation: 
        typing 3s steps(40, end),
        blink 0.75s step-end infinite;
}

/* ====================================
   グラデーションアニメーション
   ==================================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradientAnimation {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ====================================
   カウントアップアニメーション
   ==================================== */
.countUp {
    display: inline-block;
}

/* ====================================
   リップルエフェクト
   ==================================== */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* ====================================
   スピンアニメーション
   ==================================== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 2s linear infinite;
}

/* ====================================
   フリップアニメーション
   ==================================== */
@keyframes flipInX {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

.flipInX {
    backface-visibility: visible;
    animation: flipInX 0.8s ease-in-out;
}

/* ====================================
   ハートビートアニメーション
   ==================================== */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ====================================
   ジェリーアニメーション
   ==================================== */
@keyframes jelly {
    0%, 100% {
        transform: scale(1, 1);
    }
    25% {
        transform: scale(0.9, 1.1);
    }
    50% {
        transform: scale(1.1, 0.9);
    }
    75% {
        transform: scale(0.95, 1.05);
    }
}

.jelly {
    animation: jelly 0.8s ease-in-out;
}

/* ====================================
   スウィングアニメーション
   ==================================== */
@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.swing {
    transform-origin: top center;
    animation: swing 1s ease-in-out;
}

/* ====================================
   フラッシュアニメーション
   ==================================== */
@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

.flash {
    animation: flash 1s ease-in-out;
}

/* ====================================
   ラバーバンドアニメーション
   ==================================== */
@keyframes rubberBand {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scaleX(1.25) scaleY(0.75);
    }
    40% {
        transform: scaleX(0.75) scaleY(1.25);
    }
    60% {
        transform: scaleX(1.15) scaleY(0.85);
    }
    100% {
        transform: scale(1);
    }
}

.rubberBand {
    animation: rubberBand 0.8s ease-in-out;
}

/* ====================================
   タダアニメーション
   ==================================== */
@keyframes tada {
    0% {
        transform: scale(1);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.tada {
    animation: tada 1s ease-in-out;
}

/* ====================================
   遅延クラス
   ==================================== */
[data-delay="0.1"] {
    animation-delay: 0.1s;
}

[data-delay="0.2"] {
    animation-delay: 0.2s;
}

[data-delay="0.3"] {
    animation-delay: 0.3s;
}

[data-delay="0.4"] {
    animation-delay: 0.4s;
}

[data-delay="0.5"] {
    animation-delay: 0.5s;
}

[data-delay="0.6"] {
    animation-delay: 0.6s;
}

[data-delay="0.7"] {
    animation-delay: 0.7s;
}

[data-delay="0.8"] {
    animation-delay: 0.8s;
}

[data-delay="0.9"] {
    animation-delay: 0.9s;
}

[data-delay="1"] {
    animation-delay: 1s;
}

[data-delay="1.1"] {
    animation-delay: 1.1s;
}

[data-delay="1.2"] {
    animation-delay: 1.2s;
}

[data-delay="1.3"] {
    animation-delay: 1.3s;
}

/* ====================================
   ホバーアニメーション
   ==================================== */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-shrink {
    transition: transform 0.3s ease;
}

.hover-shrink:hover {
    transform: scale(0.95);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ====================================
   カスタムローダー
   ==================================== */
@keyframes loader-dots {
    0%, 20% {
        color: rgba(0, 0, 0, 0);
        text-shadow:
            0.25em 0 0 rgba(0, 0, 0, 0),
            0.5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
        color: var(--primary-color);
        text-shadow:
            0.25em 0 0 rgba(0, 0, 0, 0),
            0.5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
        text-shadow:
            0.25em 0 0 var(--primary-color),
            0.5em 0 0 rgba(0, 0, 0, 0);
    }
    80%, 100% {
        text-shadow:
            0.25em 0 0 var(--primary-color),
            0.5em 0 0 var(--primary-color);
    }
}

.loader-dots::after {
    content: ' .';
    animation: loader-dots 1.5s steps(5, end) infinite;
}

/* ====================================
   スクロールトリガー設定
   ==================================== */
.scroll-trigger {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-trigger.triggered {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================
   インタラクティブ要素
   ==================================== */
.interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive:active {
    transform: scale(0.95);
}

/* ====================================
   テキストハイライトアニメーション
   ==================================== */
@keyframes highlight {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

.text-highlight {
    background: linear-gradient(to right, rgba(0, 175, 178, 0.3) 0%, rgba(0, 175, 178, 0.3) 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left bottom;
    transition: background-size 0.5s ease;
}

.text-highlight.active {
    animation: highlight 0.5s ease forwards;
}

/* ====================================
   モーフィングシェイプ
   ==================================== */
@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.morph {
    animation: morph 8s ease-in-out infinite;
}

/* ====================================
   マウスフォロワー
   ==================================== */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
    opacity: 0.5;
}

/* ====================================
   パーティクルエフェクト
   ==================================== */
@keyframes particle-up {
    to {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: particle-up 1s ease-out forwards;
}