@charset "utf-8";

/*============================
保有車両
============================*/

#vehicle {
    position: relative;
    padding-top: 0;
}

#vehicle::before {
    content: "";
    background: url(../images/bg_photo.png)no-repeat right bottom;
    background-size: 100%;
    width: 60%;
    height: 33.57%;
    position: absolute;
    right: 0;
    bottom: 0;
}

#vehicle .lead {
    background: #0077d0;
    padding: 40px 0;
}

#vehicle .lead .inner {
    background: url(../images/illust.png) no-repeat top 40px left 40px #fff;
    background-size: 120px;
    padding: 60px 60px 60px 190px;
    border-radius: 40px;
    height: 190px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

#vehicle .inner.detail {
    position: relative;
    padding-top: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    grid-gap: 60px 40px;
}

#vehicle .inner.detail h2 {
    margin-bottom: 20px;
}

#vehicle .inner.detail .box {
    width: 500px;
}

#vehicle .inner.detail .flex .photo {
    width: 240px;
    position: relative;
}

#vehicle .inner.detail .flex .photo::before {
    content: "\f002";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    color: #fff;
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 26px;
    line-height: 1;
    z-index: 10;
}

#vehicle .inner.detail .flex .photo a::after {
    content: "";
    width: 100%;
    height: 100%;
    background: #0077d0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

#vehicle .inner.detail .flex .photo a:hover {
    opacity: 1;
}

#vehicle .inner.detail .flex .photo a img,
#vehicle .inner.detail .flex .photo a::after {
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

#vehicle .inner.detail .flex .photo a:hover::after {
    opacity: 0.3;
}

#vehicle .inner.detail .flex .photo a:hover img {
    transform: scale(1.1);
}


@media only screen and (max-width: 768px) {
    #vehicle {
        position: relative;
        padding-top: 0;
    }

    #vehicle::before {
        content: none;
    }

    #vehicle .lead {
        padding: 50px 0;
    }

    #vehicle .lead .inner {
        background: url(../images/illust.png) no-repeat top 30px center #fff;
        background-size: 120px;
        padding: 170px 25px 25px 25px;
        height: auto;
        font-size: 15px;
        font-weight: 600;
    }

    #vehicle .inner.detail {
        padding-top: 50px;
        grid-gap: 30px 40px;
    }

    #vehicle .inner.detail h2 {
        margin-bottom: 10px;
    }

    #vehicle .inner.detail .box {
        width: 100%;
    }

    #vehicle .inner.detail .flex .photo {
        width: 48%;
        position: relative;
    }

    #vehicle .inner.detail .flex .photo::before {
        font-size: 20px;
    }

    /*ボタンの動きの解除*/
    #vehicle .inner.detail .flex .photo a img,
    #vehicle .inner.detail .flex .photo a::after {
        -webkit-transition: none;
        -moz-transition: none;
        -o-transition: none;
        transition: none;
    }

    #vehicle .inner.detail .flex .photo a:hover::after {
        opacity: 0;
    }

    #vehicle .inner.detail .flex .photo a:hover img {
        transform: none;
    }

}
