/**
 * サイト導入：高速着地 & ホコリの舞い（PC対応・チラつき防止版）
 */

/* 1. 【重要】イントロ開始前にロゴや本体を隠しておく */
html:not(.intro-complete) body {
    opacity: 0;
}

#intro-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #de2726 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

/* ロゴコンテナ */
.intro-text {
    position: relative;
    z-index: 2;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2.2rem, 11vw, 8rem) !important;
    color: #ffffff !important;
    letter-spacing: -0.06em !important;
    line-height: 1;
    transform: skewX(-15deg) scale(6);
    opacity: 0;
    filter: blur(20px);
}

#intro-overlay.is-active .intro-text {
    animation: impact-zoom 0.4s cubic-bezier(0.12, 0, 0.39, 0) forwards;
}

@keyframes impact-zoom {
    0% { transform: skewX(-15deg) scale(6); opacity: 0; filter: blur(20px); }
    100% { transform: skewX(-15deg) scale(1); opacity: 1; filter: blur(0); }
}

/* ホコリ（パーティクル） */
.dust-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: dust-move 2s ease-out forwards;
}

@keyframes dust-move {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* 2. 【重要】イントロ終了後の強制表示（PCのロゴ消失対策） */
html.intro-complete body,
html.intro-complete .site-header-logo,
html.intro-complete .navbar-brand img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}