@charset "UTF-8";

body {
    background-color: #6d9826;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/*トップビュー*/
.section {
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}
.hero {
    background-image: url(../images/16.png),url(../images/24.png);
    background-size: 7vw,cover;
    background-position: top 22% right 17%,center;
}
.background {
    width: 100%;
    height: 35vh;
    position: absolute;
    background-color: #eeefee;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 25%;
    z-index: 2;
}
.main_logo {
    width: 60%;
    z-index: 3;
}
.squirrel_img {
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 10vw;
    z-index: 4;
    animation: squirrelAnimation 5s ease-in-out infinite;
}
@keyframes squirrelAnimation {
    0%, 100% {
        bottom: 10%;
    }
    50% {
        bottom: 5%;
    }
    100%, 100% {
        bottom: 10%;
    }
}
.grass_img {
    position: absolute;
    bottom: -0.3%;
    width: 100%; 
    z-index: 5;
}
.instagram_img {
    position: absolute;
    top: 4.5%;
    right: 3.5%;
    width: 16.5vw; 
    z-index: 6;
    transition: .3s; 
}
.instagram_img:hover {
    transform: scale(1.1);
    transition: .3s;
}
/*タブレット*/
@media screen and (max-width: 1025px) and (min-width: 450px) {
    .hero {
        background-image: url(../images/16.png),url(../images/mobile.png);
        background-size: 100px,cover;
        background-position: top 20.5% right 20%,center;
        max-height: 600px;
    }
    .background {
        height: 17vh;
    }
    .main_logo {
        width: 70%;
    }
    .instagram_img {
        width: 20vw;
        top: 8%;
        right: 2%;
    }
    .squirrel_img {
        width: 110px;
        bottom: 5%;
    }
    @keyframes squirrelAnimation {
        0%, 100% {
            bottom: 8%;
        }
        50% {
            bottom: 2%;
        }
        100%, 100% {
            bottom: 8%;
        }
    }
}
/*スマホ*/
@media screen and (max-width: 450px) {
    .hero {
        background-image: url(../images/16.png),url(../images/mobile.png);
        background-size: 55px,cover;
        background-position: top 21.5% right 17%,center;
        max-height: 350px;
    }
    .background {
        height: 12.5vh;
    }
    .main_logo {
        width: 75%;
    }
    .instagram_img {
        width: 25vw;
        right: 0.5%;
    }
    .squirrel_img {
        width: 65px;
        bottom: 0;
    }
    @keyframes squirrelAnimation {
        0%, 100% {
            bottom: 6.5%;
        }
        50% {
            bottom: 0%;
        }
        100%, 100% {
            bottom: 6.5%;
        }
    }
    .news_item h3 {
        font-size: 2.5vw;
    }
}


/*紹介文*/
.introduction {
    margin-bottom: 15vw;
}
/*車種*/
.line_up {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15vw;
}
.line_up_box {
    display: grid;
    grid-template-columns: 20vw 20vw 20vw;
    gap: 1vw;
    grid-template-rows:25vw 25vw;
    margin-top: 10vw;
}
.line_up_item {
    position: relative;
    background: #eeefee;
    border-radius: 0.3vw;
}
.line_up_item img {
    width: 15vw;
    max-width: 250px;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%);
}
.line_up_item .x-trail {
    width: 13.5vw;
    top: 13%;
}
.line_up_item hr {
    position: absolute;
    border-top: 0.15vw solid #5b4e5b;
    width: 90%;
    height: 0.5%;
    left: 50%;
    transform: translate(-50%);
    border-radius: 1vw;
    align-items: center;
}
.line1 {
    top: 55%;
}
.line2 {
    top: 75%;
}
.line_up_item p {
    color: #5b4e5b;
    font-size: 1vw;
}
.text_item1 {
    display: flex;
    justify-content: space-between;
    position: absolute; 
    top: 62.5%; 
    left: 50%;
    transform: translateX(-50%);
    width: 87.5%;
}
.text_item2 {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 82.5%; 
    left: 50%;
    transform: translateX(-50%);
    width: 87.5%; 
}
.btn_container {
    margin-top: 10vw;
}
.btn_container input[type="submit"] {
    transition: .3s;
}
.btn_container input[type="submit"]:hover {
    transform: scale(1.1);
    transition: .3s;
}

/*お知らせ*/
.news {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10vw;
}
.news_item {
    margin: 0 auto;
    color: #eeefee;
    margin-top: 5vw;
    margin-bottom: 5vw;
}
.news-link {
    width: 65vw;
    margin: 0 auto;
    font-size: 1.5vw;
    padding: 1.5vw;
    display: flex;
}
.news-link p {
    margin-right: 2.5vw;
    white-space: nowrap;
}
.news_hr {
    width: 70vw;
    margin: 0 auto;
}
/*タブレット*/
@media screen and (max-width: 1025px) and (min-width: 450px) {
    .news-link {
        font-size: 2vw;
    }
}
/*スマホ*/
@media screen and (max-width: 450px) {
    .news-link {
        font-size: 2.5vw;
        padding: 1.8vw;
    }
}

.news_btn input[type="submit"] {
    transition: .3s;
}
.news_btn input[type="submit"]:hover {
    transform: scale(1.1);
    transition: .3s;
}