﻿.st-fv {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0 auto;
}

.st-fv-01, .st-fv-02 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    animation-timing-function: ease-in-out;
}

/*各 .st-fv-XX は12秒周期で切り替わります：
    .st-fv-01：0〜50%が表示（0〜6秒）
    .st-fv-02：50〜100%が表示（6〜12秒）
*/
.st-fv-01 {
    background-image: url('/hp-resources/images/st-fv-01.jpg');
    animation: slide-animation-01 12s infinite;
}

.st-fv-02 {
    background-image: url('/hp-resources/images/st-fv-02.jpeg');
    animation: slide-animation-02 12s infinite;
}

@keyframes slide-animation-01 {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    45% {
        opacity: 1;
        transform: scale(1.1); /* ゆっくり拡大 */
    }

    50% {
        opacity: 0;
        transform: scale(1.12);
    }

    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

@keyframes slide-animation-02 {
    0% {
        opacity: 0;
        transform: scale(1.12);
    }

    40% {
        opacity: 0;
        transform: scale(1.12);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }

    100% {
        opacity: 1;
        transform: scale(1); /* ゆっくり縮小 */
    }
}

.st-fv-msg {
    /*background-color: rgba(0, 0, 0, 0.5);*/
    padding: 2rem;
    text-shadow: 1px 1px 3px #000;
    color: #fff;
    /*font-size: 30px;*/
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    display: inline-block;
    /* font-feature-settings: "palt";*/
    /*width: fit-content;*/
}

.st-fv-msg-01, .st-fv-msg-02 {
    /*background-color: rgba(255, 255, 255, 0.5);*/
    padding: 1rem 2rem 2rem 2rem;
    text-shadow: 1px 1px 3px #fff;
    color: #222;
    /*font-size: 30px;*/
    font-weight: 400;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 18%);
    white-space: nowrap;
    display: inline-block;
    /*box-shadow: 0 4px 10px rgba(0,0,0,0.15);*/
}

.st-job {
    font-size: 2rem;
    margin-right:8px;
    font-weight: bold;
}

.st-kanji {
    font-size: 3.5rem;
    font-weight: bold;
}

.st-romaji {
    font-size: 1.5rem;
    margin-bottom:5px;
}

.dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    animation-duration: 12s;
    animation-iteration-count: infinite;
}

.dot1 {
    animation-name: dot1;
}

.dot2 {
    animation-name: dot2;
}


@keyframes dot1 {
    0% {
        background-color: rgba(0, 0, 0, 0.9);
    }

    45% {
        background-color: rgba(0, 0, 0, 0.9);
    }

    50% {
        background-color: rgba(0, 0, 0, 0.3);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

@keyframes dot2 {
    0% {
        background-color: rgba(0, 0, 0, 0.3);
    }

    40% {
        background-color: rgba(0, 0, 0, 0.3);
    }

    50% {
        background-color: rgba(0, 0, 0, 0.9);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.9);
    }
}

@media screen and (max-width: 1200px) {
    .st-fv-01 {
        background-image: url('/hp-resources/images/st-fv-tb-01.jpg');
        animation: slide-animation-01 12s infinite;
    }
}

@media screen and (max-width: 768px) {
    .st-fv {
        width: 100%;
    }

    .st-fv-01 {
        background-image: url('/hp-resources/images/st-fv-sp-01.png');
        animation: slide-animation-01 12s infinite;
    }

    .st-fv-02 {
        background-image: url('/hp-resources/images/st-fv-sp-02.png');
        animation: slide-animation-02 12s infinite;
    }

    .st-fv-msg {
        padding: 2rem;
    }

    .st-fv-msg-01 {
        text-shadow: 1px 1px 3px #000;
        color: #fff;
        transform: translate(-50%, 8%);
    }

    .st-fv-msg-02 {
        color: black;
        text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
        transform: translate(-50%, 8%);
    }

    .st-job {
        font-size: 1.8rem;
        margin-right: 2px;
    }

    .st-kanji {
        font-size: 1.8rem;
        font-weight: bold;
    }

    .st-romaji {
        font-size: 1.3rem;
        margin-bottom: 2px;
    }

    .dots {
        position: absolute;
        bottom: 8rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }

    .dot {
        background-color: rgba(255, 255, 255, 0.3);
    }

    @keyframes dot1 {
        0% {
            background-color: rgba(255, 255, 255, 0.9);
        }

        45% {
            background-color: rgba(255, 255, 255, 0.9);
        }

        50% {
            background-color: rgba(255, 255, 255, 0.2);
        }

        100% {
            background-color: rgba(255, 255, 255, 0.2);
        }
    }

    @keyframes dot2 {
        0% {
            background-color: rgba(255, 255, 255, 0.2);
        }

        40% {
            background-color: rgba(255, 255, 255, 0.2);
        }

        50% {
            background-color: rgba(255, 255, 255, 0.9);
        }

        100% {
            background-color: rgba(255, 255, 255, 0.9);
        }
    }
}

@media screen and (max-width: 375px) {
    .st-fv-msg-01 {
        transform: translate(-50%, 2%);
    }
}