@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

/* Tailwindのユーティリティを使用するため、ここにはカスタム定義のみ記述 */
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: #FAF5FF;
    /* purple-50 */
    color: #4C1D95;
    /* purple-900 */
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3E8FF;
}

::-webkit-scrollbar-thumb {
    background: #C084FC;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A855F7;
}

/* アニメーション */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ガラスモーフィズム */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(233, 213, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px -8px rgba(168, 85, 247, 0.25);
    border-color: #D8B4FE;
}

/* アイコン生成用 */
.auto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

/* 管理画面用ログインモーダル */
#admin-login-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}