/* コイン為替管理システム用カスタムスタイル */

/* アニメーション定義 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* カードアニメーション */
.shadow-lg {
    transition: all 0.3s ease;
}

.shadow-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ボタンアニメーション */
button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ボタンクリックエフェクト */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* 入力フィールドスタイル */
input, select {
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
}

input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 結果表示アニメーション */
#result {
    animation: fadeIn 0.5s ease;
}

/* 履歴アイテムアニメーション */
#history > div {
    animation: fadeIn 0.3s ease;
    transition: all 0.2s ease;
}

#history > div:hover {
    background-color: #f8fafc;
}

/* 通知スタイル */
.notification {
    animation: slideIn 0.3s ease;
}

/* アイコンアニメーション */
.fa-coins {
    animation: bounce 2s infinite;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* 為替レート表示アニメーション */
.rate-update {
    animation: bounce 0.5s ease;
    color: #059669;
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* カスタムアニメーション */
.fade-in-up {
    animation: fadeIn 0.6s ease;
}

/* グラデーション背景 */
.bg-gradient-to-br {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* カスタムボタンカラー */
.bg-mario-red {
    background-color: #e52521;
}

.bg-luigi-green {
    background-color: #43b047;
}

.bg-kirby-pink {
    background-color: #ff69b4;
}

/* ホバーエフェクト */
.hover-lift {
    transition: transform 0.2s ease;
}

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

/* テキストシャドウ */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* カスタムボーダー */
.border-glow {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #667eea, #764ba2) border-box;
}

/* アニメーションディレイ */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* カスタムスケール */
.scale-102:hover {
    transform: scale(1.02);
}