@charset "UTF-8";

/* ====================
common
==================== */

.html{
    font-size: 62.5%;
}

body {
    align-items: center;
    min-height: 100svh;
    width: 100%;
    font-family: "Lato", "Noto Sans JP", Arial;
    position: relative;
    background-color: #051320;
    color: #535353;
    z-index: -100;
}

.service {
    padding: 150px 0 50px;
}

.title {
    text-align: center;
    color: #fff;
    font-size: 2.4rem;
}
.service__contents {
    justify-content: space-between;
    margin: 100px 6.4% 50px;
}

.service__box {
    width: 90%;
    max-width: 700px;
    background-color: #fff;
    /* box-shadow: 0 0 15px #fff; */
    padding: 45px 0 20px;
    z-index: 100;
    margin: 50px auto 0;
    opacity: 0;
}

.service__title {
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-top: 20px;
}

.service__txt {
    line-height: 1.5;
    font-size: 1.1rem;
    margin: 20px 9.6% 50px;
    color: #888;
}

.service__img {
    margin: 0 auto;
    width: 18%;
    height: 18%;
}

.service__img:nth-of-type(3) {
    margin: 0 auto;
    width: 20%;
    height: 20%;
}

/* PC */

@media screen and (min-width:769px) {
    .service__contents {
    display: flex;
    justify-content: space-between;
    margin: 100px 2.4% 0;
    }

    .service__box {
    width: 90%;
    /* max-width: 350px; */
    background-color: #fff;
    /* box-shadow: 0 0 15px #fff; */
    padding: 45px 0 10px;
    z-index: 100;
    margin-top: 0;
    margin-right: 20px;
    gap: 30px;
}

    .service__box:nth-child(3) {
        margin-right: 0;
    }

}

/* アニメーション定義 */

@keyframes fadeInDown {

    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {

    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 横並び用の追加アニメーション */

@keyframes slideInUp {

    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {

    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

/* アニメーション適用（順次実行） */

.service__box.animate {
    animation: slideInLeft 1.0s ease-out forwards;
}

.service__box:nth-child(1).animate {
    animation-delay: 0.5s;
}

.service__box:nth-child(2).animate {
    animation-delay: 1.5s;
}

.service__box:nth-child(3).animate {
    animation-delay: 2.5s;
}

/* 下からスライドアニメーション */

.service__box.animate-up {
    visibility: visible;
    animation: slideInUp 1.2s ease-out forwards;
}

.service__box:nth-child(1).animate-up {
    animation-delay: 0.4s;
}

.service__box:nth-child(2).animate-up {
    animation-delay: 0.8s;
}

.service__box:nth-child(3).animate-up {
    animation-delay: 1.2s;
}
