/* custom-styles.css - カスタムスタイル定義 */

/* Live2Dキャンバスのサイズ制限 */
#character-container {
    width: 800px;
    height: 720px;
}

#live2d-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFB6C1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #DDA0DD;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9370DB;
}

/* テキストボックスのアニメーション */
.message-box {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.95));
    border: 3px solid #FFB6C1;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.5), inset 0 0 10px rgba(255, 182, 193, 0.2);
    transition: opacity 0.3s ease;
}

/* 選択肢ボタンのホバーエフェクト */
.choice-button {
    transition: all 0.3s ease;
    background: linear-gradient(to right, #FFB6C1, #DDA0DD);
    position: relative;
    overflow: hidden;
}

.choice-button:hover {
    transform: translateX(10px) scale(1.05);
    box-shadow: 0 5px 20px rgba(221, 160, 221, 0.6);
}

/* 選択肢ボタンのアニメーション */
.choice-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.choice-button:hover::before {
    left: 100%;
}

/* 星のパーティクル */
.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

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

/* 花びらのアニメーション */
.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #FFB6C1;
    border-radius: 0 100% 0 100%;
    animation: fall 10s linear infinite;
}

@keyframes fall {
    0% { 
        transform: translateY(-100vh) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh) rotate(360deg); 
        opacity: 0; 
    }
}

/* SPモード用のスタイルはsp-styles.cssに移行済み */
/* DeviceManagerによるデバイス判定でCSSを切り替えるため、メディアクエリは不要 */

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

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

/* Vue transition classes for fade effect */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}
