/* スマホ PC 共通 */
/* 基本設定 */
html {
    scroll-behavior: smooth;
}

/*Scroll Animation*/
/*フワッと表示*/
@keyframes scroll-opacity {
    0% {
        opacity: 0%;
    }

    100% {
        opacity: 100%;
    }
}

.fuwari {
    opacity: 0;
    animation: scroll-opacity linear both;
    animation-timeline: scroll();
    animation-range: entry -10% entry 40%;
}

/*下から上へずれる*/
@keyframes scroll-up {
    0% {
        transform: translateY(20%);
    }

    100% {
        transform: translateY(0);
    }
}

.downup {
    transform: translateY(20%);
    animation: scroll-up linear both;
    animation-timeline: scroll();
    animation-range: entry -10% entry 30%;
}

/*AnimistaからのCSS＋inActiveクラス*/
.vibrate.inActive {
    animation: vibrate 0.5s linear 3 both;
}

@keyframes vibrate {
    0% {
        -webkit-transform: translate(0);
        transform: translate(0);
    }

    20% {
        -webkit-transform: translate(-2px, 2px);
        transform: translate(-2px, 2px);
    }

    40% {
        -webkit-transform: translate(-2px, -2px);
        transform: translate(-2px, -2px);
    }

    60% {
        -webkit-transform: translate(2px, 2px);
        transform: translate(2px, 2px);
    }

    80% {
        -webkit-transform: translate(2px, -2px);
        transform: translate(2px, -2px);
    }

    100% {
        -webkit-transform: translate(0);
        transform: translate(0);
    }
}

/*Googleフォーム*/
.btn-gform {
    color: #fff;
    text-decoration: none;
    background-color: #4285f4;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    transition: 0.3s;
}

.btn-gform:hover {
    background-color: #42adf4;
}


/*-------------------------------------------------------*/
/*Main visual CSS Animation*/
.mainvisual {
    background-image: url(../image/image-beach.jpg);
    background-color: #000;
    background-size: cover;
    background-position: center 70%;
    animation: mainvisual 30s infinite alternate;
    height: 70vh;
    position: relative;
}

.mainvisual-caption {
    color: #fff;
    text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
    font-size: 12px;
    position: absolute;
    bottom: 0;
    right: 20px;
}

@keyframes mainvisual {
    0% {
        background-image: url(../image/image-beach.jpg);
    }

    20% {
        background-image: url(../image/image-bridge.jpg);
    }

    40% {
        background-image: url(../image/image-lake.jpg);
    }

    60% {
        background-image: url(../image/image-river.jpg);
    }

    80% {
        background-image: url(../image/image-sea.jpg);
    }

    100% {
        background-image: url(../image/image-tram.jpg);
    }
}

/*Fancybox*/
.item a {
    display: inline-block;
}

.modal {
    display: none;

}

.modal-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;

}

.left-content {
    width: 100%;
    height: auto;
}

.right-content {
    width: 100%;
    padding: 0;

    h4 {
        font-size: 22px;
    }

    p {
        margin-bottom: 1em;
    }
}

/*Swiper*/
.swiper {
    width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #1078da;
    opacity: 1;
}

/* PCのみ */
/* レスポンシブ設定 900px以上のデバイス */
@media screen and (min-width: 900px) {

    /* ここから */
    nav.gnav {
        width: 60%;
    }

    nav.gnav ul li {
        margin-left: 50px;
        display: inline-block;
        width: auto;
    }

    /*Fancybox*/
    .modal-wrap {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        height: 100%;

    }

    .left-content {
        width: 50%;
        height: auto;
    }

    .right-content {
        width: 50%;
        padding: 0 0 0 30px;

        h4 {
            font-size: 22px;
        }

        p {
            margin-bottom: 1em;
        }
    }

    /* ここまで */
}