/* message */

#vision {
    position: relative;
    padding: 0 70px;
    margin-bottom: 230px;

}


#vision::after {
    position: absolute;
    transform-origin: center;
    content: '';
    top: 120px;
    left: 10%;
    width: 70%;
    height: 300px;
    background: #eaf0f6;
    transform: rotate(-5deg);

}

.vision-area {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row-reverse;

}

.vision-img {
    background: url("../images/index/pict_03.png") no-repeat right top;
    background-size: cover;
    height: 40vh;
    width: 48%;
    z-index: 1;
}

.vision-content {
    text-align: right;

    width: 45%;
    padding: 150px 0 0 0;
    z-index: 1;
}

.vision-content p {
    line-height: 1.7;
}




@media screen and (max-width:768px) {
    #vision {
        padding: 0 10px;
        margin-bottom: 120px;
    }

    #vision::after {
        position: absolute;
        top: -50px;
        left: 10%;
        height: 400px;
    }

    .vision-img,
    .vision-content {
        width: 100%;
    }

    .vision-content h2 {
        font-size: 48px;
    }

    .vision-content p {
        font-size: 12px;
    }

    .vision-img {
        height: 40vh;
    }

    .vision-content {
        padding: 20px 0 0 0;
    }
}

@media screen and (max-width:430px) {
    .vision-img {
        height: 20vh;
    }
}




/* history */

#vision2 {
    position: relative;
    padding: 0 70px;
    margin-bottom: 25%;
}

#vision2::after {
    position: absolute;
    content: '';
    transform-origin: center;
    top: 120px;
    left: 10%;
    width: 70%;
    height: 300px;
    background: #eaf0f6;
    transform: rotate(5deg);
}

.vision2-area {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.vision2-img {
    background: url("../images/index/pict_04.png") no-repeat center;
    background-size: cover;
    height: 44vh;
    width: 48%;

    z-index: 1;
}

.vision2-content {
    width: 45%;
    padding: 150px 0 0 0;
    z-index: 1;
}

.vision2-content p {
    line-height: 1.7;
}

.floating {
    border-radius: 63% 37% 54% 46%/55% 48% 52% 45%;
    animation: floatingmove 30s ease 0s infinite;
    /*アニメーションの設定*/
}


/* 4-1 ふわっ（左から）*/

.fadeLeft {
    animation-name: fadeLeftAnime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 4-1 ふわっ（右から） */

.fadeRight {
    animation-name: fadeRightAnime;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeRightAnime {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* スクロールをしたら出現する要素にはじめに透過0を指定　*/
.fadeUpTrigger,
.fadeLeftTrigger,
.fadeRightTrigger {
    opacity: 0;
}


@media screen and (max-width:768px) {
    #vision2 {
        padding: 0 10px;
        margin-bottom: 100px;
    }

    #vision2::after {
        position: absolute;
        top: -30px;
        left: 10%;
        height: 400px;
    }

    .vision2-img,
    .vision2-content {
        width: 100%;
    }

    .vision2-content h2 {
        font-size: 48px;
    }

    .vision2-content p {
        font-size: 12px;
    }

    .vision2-img {
        height: 40vh;
    }

    .vision2-content {
        padding: 20px 0 0 0;
    }
}

@media screen and (max-width:430px) {
    .vision2-img {
        height: 20vh;
    }


}

