@charset "utf-8";

/* メインのタモさん */

.staff-main_visual img {
    width: 100vw;
}

/* バウンド */

h2 {
    font-size: 1.875rem;
    text-align: center;
    margin: 150px 0 50px 0;
}

.bouncing-letters::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 10px 0 rgba(93, 56, 4, 0.5);
    width: 185px;
    height: 15px;
    background-color: #deb068;
}

.bouncing-letters span {
    display: inline-block;
    animation: bounce 0.9s ease infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(-35px)
    }

    100% {
        transform: translateY(-55px)
    }
}

.bouncing-letters span:nth-child(1) {
    animation-delay: 0.1s;
}

.bouncing-letters span:nth-child(2) {
    animation-delay: 0.2s;
}

.bouncing-letters span:nth-child(3) {
    animation-delay: 0.3s;
}

.bouncing-letters span:nth-child(4) {
    animation-delay: 0.4s;
}

.bouncing-letters span:nth-child(5) {
    animation-delay: 0.5s;
}

.bouncing-letters span:nth-child(6) {
    animation-delay: 0.6s;
}

/* バウンドここまで */

.staff-box {
    margin-bottom: 100px;
    max-width: 1040px;
}

.staff-box img {
    width: 200px;
    float: left;
}

.staff-box:hover img {
    transition: transform 2s;
    transform: rotateY(360deg);
}

.bg {
    justify-content: center;
    background-image: url(staff-images/staff-bg.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    align-items: center;
    padding: 50px 50px;
    width: 80vw;
    margin-inline: auto;
    /* jQuery */
    transition: 0.8s ease-in-out;
    transform: translateY(30px);
    opacity: 0;
}

.bg.on {
    transform: translateY(0);
    opacity: 1.0;
}

.staff-flex {
    display: flex;
    justify-content: start;
}

.staff-title-fz {
    font-size: 1.5rem;
    line-height: 2.5rem;
}

.staff-title-fz2 {
    font-size: 0.9rem;
}

.staff-prof {
    margin: 0 30px;
    width: 20%;
}

.staff-prof span {
    color: #deb068;
    font-size: 0.75rem;
}

.staff-box {
    line-height: 2rem;
}

.staff-text {
    width: 80%;
}

/* レスポンシブ */

@media screen and (max-width: 1120px) {
    .staff-title-fz {
        font-size: 1.1rem;
    }

    .staff-prof {
        margin: 0 20px;
        width: 30%;
    }

    .staff-text {
        width: 70%;
    }
}

@media screen and (max-width: 820px) {
    .staff-flex {
        flex-direction: column;
        position: relative;
    }

    .staff-box {
        margin-bottom: 50px;
    }

    .staff-box img {
        width: 150px;
        /* レスポンシブ時の画像サイズ */
        height: auto;
        float: none;
        /* PCのfloatを解除 */
        position: absolute;
        left: 250px;
    }

    .staff-prof {
        width: auto;
        /* 幅を自動調整 */
        text-align: left;
    }

    /* 2段目（テキストを下に配置） */
    .staff-text {
        width: 100%;
        margin-top: 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }
}


@media screen and (max-width: 480px) {
    .bg {
        padding: 30px 30px;
    }

    .staff-box img {
        width: 90px;
        position: absolute;
        left: 190px;
    }

    .staff-title-fz {
        font-size: 1rem;
        line-height: 2rem;
    }

    .staff-text {
        width: 100%;
        margin-top: 10px;
        font-size: 0.8rem;
        line-height: 1.3rem;
    }
}

