@charset "UTF-8";

/* =========================================================
   Animations Stylesheet
   ---------------------------------------------------------
   Generic animations created for Soko website.
   Separated from main stylesheet for clarity and reusability.
   ========================================================= */

/* WOW.js互換の点滅＋浮上アニメーション */
@keyframes flickerFadeInUp {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    21% {
        opacity: 0;
    }

    24% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.flickerFadeInUp {
    animation-name: flickerFadeInUp;
    animation-duration: 0.9s;
    animation-fill-mode: both;
}


/* ズームアニメーション用コンテナ（サイズ固定） */
.img-zoom-box {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: block;
    line-height: 0;
    /* 下部の微妙な隙間を排除 */
    width: 100%;
}

.img-zoom-box img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.1);
    /* 初期状態 */
    opacity: 0;
}

/* 大きさだけを1.1から1に戻す専用の動き（透明度は触らない） */
@keyframes shrinkOnly {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

/* 究極のズームイン：フェード(なめらか) -> 溜め -> 縮小(鋭い) */
@keyframes zoomInKyu {
    0% {
        opacity: 0;
        transform: scale(1.1);
        animation-timing-function: ease;
        /* 出現はなめらかに */
    }

    33% {
        /* 0.4s地点 */
        opacity: 1;
        transform: scale(1.1);
        animation-timing-function: linear;
        /* 溜め時間は静止 */
    }

    50% {
        /* 0.6s地点まで待機 */
        opacity: 1;
        transform: scale(1.1);
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
        /* ここからキュッと縮小 */
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.zoomInKyu {
    animation-name: zoomInKyu;
    animation-duration: 1.2s;
    animation-fill-mode: both;
    will-change: transform, opacity;
    /* ブラウザの負荷を軽減しカクつきを防止 */
}

.zoomIn {
    animation-name: zoomIn;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    /* キュッとした鋭い動き */
    animation-fill-mode: both;
}

@keyframes fadeInUp80 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        /* 0.8から1へ */
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WOW.js用のクラス定義 */
.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.4s;
    animation-fill-mode: both;
}

.ani-fade-in {
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* Hero背景画像用のフェードイン（パララックスJSと干渉しないようズームは外す） */
.parallax-hero-bg.ani-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease 0.1s forwards;
}

.ani-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ani-fade-in-up-80 {
    opacity: 0;
    animation: fadeInUp80 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ani-delay-05 {
    animation-delay: 0.5s;
}

.ani-delay-08 {
    animation-delay: 0.8s;
}

/* Text Reveal Animation (Character by Character) */
.text-reveal {
    display: inline-block;
}

.text-reveal-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
}

.text-reveal-active .text-reveal-char {
    animation: revealChar 0.2s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}

@keyframes revealChar {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}