/* PVアニメーション強化のための追加CSS */

/* シーン間のトランジション効果 */
.transition-fade {
    animation: fade-transition 0.8s ease-in-out forwards;
}

.transition-slide-left {
    animation: slide-left-transition 0.8s ease-in-out forwards;
}

.transition-slide-right {
    animation: slide-right-transition 0.8s ease-in-out forwards;
}

.transition-zoom {
    animation: zoom-transition 1.5s ease-in-out forwards;
}

@keyframes fade-transition {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slide-left-transition {
    0% { 
        opacity: 0;
        transform: translateX(-50px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-right-transition {
    0% { 
        opacity: 0;
        transform: translateX(50px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoom-transition {
    0% { 
        opacity: 0;
        transform: scale(1.2);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* キャラクターの動的な動き */
.character-breathe {
    animation: character-breathing 4s ease-in-out infinite;
}

.character-zoom {
    animation: character-zoom 3s ease forwards;
}

.character-shake {
    animation: character-shake 0.2s ease-in-out infinite;
}

.character-bounce {
    animation: character-bounce 1s ease-in-out infinite;
}

.character-spin {
    animation: character-spin 10s linear infinite;
}

@keyframes character-breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes character-zoom {
    0% { transform: scale(0.7); }
    100% { transform: scale(1); }
}

@keyframes character-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

@keyframes character-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes character-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 背景効果 */
.bg-pan {
    animation: bg-panning 30s linear infinite;
    background-size: 120% 120% !important;
}

.bg-pulse {
    animation: bg-pulsing 5s ease-in-out infinite;
}

.bg-zoom {
    animation: bg-zooming 20s ease-in-out infinite;
}

@keyframes bg-panning {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes bg-pulsing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes bg-zooming {
    0%, 100% { background-size: 100% 100%; }
    50% { background-size: 110% 110%; }
}

/* テキストエフェクト */
.text-typing {
    display: inline-block;
    width: auto !important;
    white-space: pre-wrap;
    min-height: 1.2em;
}

.text-fade-in-down {
    opacity: 0;
    animation: text-fade-down 1s ease forwards;
}

.text-fade-in-up {
    opacity: 0;
    animation: text-fade-up 1s ease forwards;
}

.text-glow {
    animation: text-glowing 2s ease-in-out infinite;
}

@keyframes text-fade-down {
    0% { 
        opacity: 0;
        transform: translateY(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes text-fade-up {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes text-glowing {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
    50% { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 64, 129, 1);
    }
}

/* テキスト右からフェードイン */
@keyframes text-fade-right {
    0% { 
        opacity: 0;
        transform: translateX(20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

.text-fade-in-right {
    opacity: 0;
    animation: text-fade-right 1s ease forwards;
}

/* パルスアニメーション強化 */
.pulse-animation {
    animation: enhanced-pulse 1.5s infinite !important;
}

@keyframes enhanced-pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* 動画スタイルのシーケンシャルエフェクト */
.sequential-show .element {
    opacity: 0;
    transform: translateY(20px);
}

.sequential-show .element.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* ページのプリロード効果 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #E11D48;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 特殊エフェクト */
.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: white;
    pointer-events: none;
    opacity: 0;
}

.sparkle-animation {
    animation: sparkle 2s ease-in-out forwards;
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: scale(2) rotate(90deg);
        opacity: 0;
    }
}

/* フォーカス効果 */
.focus-spotlight {
    position: relative;
}

.focus-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.focus-spotlight.active::after {
    opacity: 1;
}

/* キャラクター登場効果 */
.character-enter-left {
    animation: enter-from-left 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

.character-enter-right {
    animation: enter-from-right 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

.character-enter-bottom {
    animation: enter-from-bottom 1s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

@keyframes enter-from-left {
    0% { 
        transform: translateX(-100%) scale(0.7);
        opacity: 0;
    }
    100% { 
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes enter-from-right {
    0% { 
        transform: translateX(100%) scale(0.7);
        opacity: 0;
    }
    100% { 
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes enter-from-bottom {
    0% { 
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    100% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* スムーズシーン切り替え */
.scene-transition-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
}

.scene-transition-wipe {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    animation: scene-wipe 2.5s cubic-bezier(0.42, 0, 0.58, 1);
}

@keyframes scene-wipe {
    0% { left: -100%; }
    45% { left: 0; }
    55% { left: 0; }
    100% { left: 100%; }
}
