/* ==========================================================================
   ページ遷移アニメーション - スタイル
   ========================================================================== */

/* オーバーレイ全体 */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
    background-color: #000000;
}

/* コンテンツ領域 */
.transition-content {
    position: relative;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* カーテン（5枚のストライプ） */
.transition-curtain {
    position: absolute;
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 10000;
    transform: translateY(-100%);
}

.curtain-1 {
    left: 0;
    background: linear-gradient(180deg, #ff0734 0%, #a900ff 100%);
}

.curtain-2 {
    left: 20%;
    background: linear-gradient(180deg, #a900ff 0%, #2100fa 100%);
}

.curtain-3 {
    left: 40%;
    background: linear-gradient(180deg, #2100fa 0%, #000000 100%);
}

.curtain-4 {
    left: 60%;
    background: linear-gradient(180deg, #000000 0%, #ff0734 100%);
}

.curtain-5 {
    left: 80%;
    background: linear-gradient(180deg, #ff0734 0%, #ffe600 100%);
}

/* プログレスバーコンテナ */
.progress-container {
    position: relative;
    width: 400px;
    height: 4px;
    background: transparent;
    border-radius: 10px;
    overflow: visible;
}

/* プログレスバー */
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0734, #ffe600, #a900ff);
    border-radius: 10px;
    transition: width 0.1s ease;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 7, 52, 0.8);
}

/* プログレスバーのグロー */
.progress-glow {
    position: absolute;
    top: -10px;
    left: 0;
    height: 24px;
    width: 0%;
    background: linear-gradient(90deg,
        rgba(255, 7, 52, 0.6),
        rgba(255, 230, 0, 0.6),
        rgba(169, 0, 255, 0.6)
    );
    border-radius: 10px;
    filter: blur(15px);
    transition: width 0.1s ease;
}

/* パーセンテージテキスト */
.percentage-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px rgba(255, 7, 52, 0.8);
}


/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .progress-container {
        width: 70vw;
        max-width: none;
    }

    .percentage-text {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .progress-container {
        width: 75vw;
        max-width: none;
    }

    .percentage-text {
        font-size: 1.2rem;
    }
}
