@charset "utf-8";

/* --- タイトル用（span）の初期・変化設定 --- */
.titAnimation span {
    opacity: 0;
    filter: blur(18px); /* ブラーを少し強めると、じわっと感がさらに増します */
    display: inline-block;
    /* 時間を 1.4秒 に延ばし、余韻のあるイージングに変更 */
    transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1), 
                filter 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.titAnimation.is-visible span {
    opacity: 1;
    filter: blur(0px);
}

/* --- 画像用（.imgAnimation）の初期状態と変化 --- */
.imgAnimation {
    opacity: 0;
    filter: blur(18px);
    transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1), 
                filter 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.imgAnimation.is-visible {
    opacity: 1;
    filter: blur(0px);
}

/* --- テキスト用（.textAnimation）の初期状態と変化 --- */
.textAnimation {
    opacity: 0;
    filter: blur(18px);
    transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1), 
                filter 1.4s cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: 0.2s; /* ここでテキストの開始を遅らせる */
}

.textAnimation.is-visible {
    opacity: 1;
    filter: blur(0px);
}

/* 開発ツール（GrapesJSなど）用の例外処理 */
.gjs-dashed .textAnimation,
.gjs-dashed .imgAnimation {
    opacity: 1;
    filter: blur(0);
}

/* --- マスクアニメーション部分 --- */
.isPlay {
    position: relative;
    overflow: hidden; /* マスクがはみ出さないようにするため追加推奨 */
}

.isPlay:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: #1F1F1F;
}

.isPlay.is-visible:before {
    animation-name: maskOut;
    animation-duration: .8s; /* 少しゆとりを持たせるとリッチになります */
    animation-delay: .2s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.8,0,.5,1);
}

/* --- 遅延用のクラス --- */
.delay-100 {
    transition-delay: 0.1s !important;
    animation-delay: 0.1s !important;
}
.delay-200 {
    transition-delay: 0.2s !important;
    animation-delay: 0.2s !important;
}
.delay-400 {
    transition-delay: 0.4s !important;
    animation-delay: 0.4s !important;
}
.delay-600 {
    transition-delay: 0.6s !important;
    animation-delay: 0.6s !important;
}
.delay-800 {
    transition-delay: 0.8s !important;
    animation-delay: 0.8s !important;
}

@keyframes maskOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}