﻿/* ローディングアニメーションのスタイル */
#blazor-loading-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

.cube-wrapper {
    width: 80px;
    height: 80px;
    position: relative;
    perspective: 120px;
    transition: transform 0.3s ease-out;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: cube-spin 3s infinite ease;
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.9;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.front {
    transform: translateZ(40px);
    background: linear-gradient(45deg, #4a90e2, #63b8ff);
}

.back {
    transform: rotateY(180deg) translateZ(40px);
    background: linear-gradient(45deg, #ff6b6b, #ffa502);
}

.right {
    transform: rotateY(90deg) translateZ(40px);
    background: linear-gradient(45deg, #1abc9c, #16a085);
}

.left {
    transform: rotateY(-90deg) translateZ(40px);
    background: linear-gradient(45deg, #f1c40f, #f39c12);
}

.top {
    transform: rotateX(90deg) translateZ(40px);
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.bottom {
    transform: rotateX(-90deg) translateZ(40px);
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

@keyframes cube-spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: rotateX(90deg) rotateY(45deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(90deg);
    }

    75% {
        transform: rotateX(270deg) rotateY(135deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(180deg);
    }
}

.loading-text {
    margin-top: 30px;
    color: #333333;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .loading-text::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        bottom: -10px;
        left: 0;
        background: linear-gradient(90deg, transparent, #4a90e2, transparent);
        animation: progress-bar 2s infinite;
    }

@keyframes progress-bar {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
        left: 100%;
    }
}

.progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a90e2, #63b8ff);
    position: relative;
}

/* マウス追従パーティクル */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.particle {
    position: absolute;
    background-color: rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

/* マウスカーソル */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.3);
    border: 2px solid rgba(74, 144, 226, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99990;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99989;
}

/* 浮遊要素 */
.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #9b59b6, #3498db);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
    transition: transform 0.3s ease-out;
    pointer-events: none;
}
