/* ローディング全体 */
#loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* テキスト */
.text-wrapper {
    position: relative;
    font-size: clamp(2rem, 5vw, 5rem);
    color: #000;
    opacity: 0;
    padding: 0 5vw;
    text-align: center;
    word-break: keep-all;
    white-space: nowrap;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HiraMinProN-W3', 'Yu Mincho', 'YuMincho', '游明朝', 'リュウミン', 'Ryumin', serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* 文字分割された1文字 */
.text-wrapper .char {
    display: inline-block;
}

/* 下のバー */
.loading-bar {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: #495769;
    border-radius: 2px;
}

/* 黒幕 */
.black-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    transition: top 0.5s ease;
}

/* ロゴ最終出現 */
.final-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(2rem, 8vw, 5rem);
    color: #fff;
    opacity: 0;
    z-index: 20;
    transform-origin: center center;
    padding: 0 5vw;
    text-align: center;
    white-space: nowrap;
}