body {
    margin: 0;
}
.page-container {
    width: 980px;
    margin-inline: auto;
}
/* -------------------------------- header -------------------------------- */
.header-img {
    background-image: linear-gradient(to right, rgba(245, 246, 252, 0), rgb(255, 255, 255)), url(../assets/header.png);
    height: 459px;
    background-size: cover;
    position: relative;
}

.logo-in-left {
    z-index: 3;
    position: absolute;
    width: 10%;
    top: 5%;
    left: 2%;
}

.header-topic {
    text-align: right;
    color: #f15000;
    font-weight: 600;
    z-index: 3;
    position: absolute;
    top: 15%;
    right: 11%;
    font-size: 2vw;
    text-align: center;
}

.econorikun-logo-index {
    z-index: 3;
    position: absolute;
    top: 30%;
    right: 5%;
    width: 30%;
}

/* -------------------------------- header -------------------------------- */

/* ------------------------------- body css ------------------------------- */

.iframe-style {
    width: 100%;
    height: 500px;
    margin-top: 20px;
}

/* index page */
.main-div {
    background-color: #ffffff;
    margin-top: 2rem;
}
/* search/new car details/secondhand car details pages */
.main-div-second {
    background-color: #ffffff;
}
.body-content {
    background-color: white;
}

.basic-background {
    background-color: #f9f9f9;
}

.nav-style {
    margin-left: 100px;
}
.navbar-nav-left {
    display: flex;
    justify-content: center;
    padding: 15px;
    color: #736b6b;
}
.navbar-nav-right {
    display: flex;
    justify-content: center;
    padding: 15px;
    color: #736b6b;
}
.nav-font-style {
    font-size: 150%;
    font-weight: bold;
}

#nav1:hover {
    color: #f19600;
}

.body-middle-content {
    margin-left: 80px;
    margin-right: 80px;
    padding-bottom: 40px;
}

.vehicle-detailes-container {
    margin-left: 50px;
    margin-right: 50px;
    padding-bottom: 40px;
}

.title-highlight-tile {
    display: flex;
    align-items: center;
}
.title-highlight-tile-box {
    width: 8px;
    height: 35px;
    background-color: #e40013;
    margin-right: 10px;
    padding: 0;
}

.search-margin {
    margin-left: 18px;
    margin-right: 18px;
}
.search-button-style {
    background-color: #e40013;
    color: white;
}

.search-input {
    font-weight: bold;
    height: 150%;
    border: 0;
}

.search-button-style {
    background-color: #e40013;
    color: white;
    width: 95%;
    height: 150%;
}

.search-button-style:hover {
    background-color: #e40013;
    color: white;
}

.rectangle-icon {
    width: 10px;
    height: 35px;
}

/* brand and vehicle type buttons styles */

.brand-button-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-buttons {
    padding: 0;
}

.car-logo-img {
    width: 30%;
    margin-bottom: 2px;
}

.car-btn-class {
    font-size: smaller;
}

.car-btn {
    color: #fe0032;
    font-weight: bold;
    border-color: #fe0032;
    height: 135px;
    width: calc(25% - 15px);
    font-size: small;
}

.car-btn:hover {
    color: #fe0032;
    font-weight: bold;
    border-color: #fe0032;
}

/* brand and vehicle type buttons styles */

/* vehicle list styles */
.card-style {
    max-width: 100%;
    background-color: white;
}

/* creating custom tags to new and secondhand cars */
/*tag position relative to the figure */
.figure.tag {
    position: relative;
}

/* set the base styles all tags should use */
.figure.tag::before {
    position: absolute;
    display: block;
    color: white;
    padding: 0 1rem;
    font-weight: 600;
    font-size: small;
}

/* Specific variations for different tags */
/* custom tag variation for new car */
.figure.tag-新車::before {
    content: "新車";
    background: #f19600;
}

/* custom tag variation for secondhand car */
.figure.tag-中古車::before {
    content: "中古車";
    background: #f19600;
}

.price {
    color: #e40013;
}

.per-month {
    color: #e40013;
    font-weight: bold;
    margin-left: 0%;
    margin-top: 1rem;
    font-size: small;
}

.currancy {
    color: #e40013;
    font-weight: 900;
    padding: 0%;
    font-size: medium;
}

.back-arrow {
    width: -10px;
    height: 35px;
    transform: scaleX(-1);
}

.car-img {
    width: 90%;
}
.col-style {
    display: flex;
    justify-content: center;
}

.car-img1 {
    width: 450px;
    height: auto;
    object-fit: cover;
    padding: 25px;
}

.car-detail {
    font-size: small;
    font-weight: bold;
}

.car-detail-for-vehical {
    font-size: 12px;
    font-weight: 500;
    margin-left: 18px;
}

/* vehicle list styles */

.card-arrow {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    align-content: flex-start;
    flex-wrap: nowrap;
}

.arrow {
    width: 50px;
}

p {
    margin-bottom: 1px;
}

a {
    text-decoration: none;
}

.econorikun-logo {
    width: 20%;
}

.youtube-icon {
    height: 40px;
    flex-shrink: 0;
}

.car-detail-box {
    border: 5px solid #e40013;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.pc-none {
    display: none !important;
}

.swiper-section {
    margin-top: 50px;
    display: flex;
    height: 376px;
}

/* 全体のスタイル */
.swiper1 {
    width: 500px;
    height: 100%;
}

/* スライドの設定 */
.swiper1 .swiper-slide {
    /* display: grid;
    grid-template-rows: 50% 50%;
    grid-template-columns: 33.3% 33.3% 33.3%; */
    width: 100%;
    height: 100%;
}

/* スライド内のdivに対する設定 */
.swiper1 .swiper-slide {
    line-height: 125px;
    color: #ffffff;
}

/* 以下、背景色指定 */
.swiper1 .swiper-slide.noimage {
    background-color: #eeeeee;
}

.swiper-left {
    width: 350px;
    height: 100%;
}

/* 全体のスタイル */
.swiper2 {
    width: 100%;
    height: 215px;
}

/* スライドの設定 */
.swiper2 .swiper-slide {
    display: grid;
    grid-template-rows: 50% 50%;
    grid-template-columns: 33.3% 33.3% 33.3%;
    height: 100%;
}

/* スライド内のdivに対する設定 */
.swiper2 .swiper-slide div {
    line-height: 125px;
    color: #ffffff;
}

/* 以下、背景色指定 */
.swiper2 .swiper-slide div.noimage {
    background-color: #eeeeee;
}

.slide-top-box {
    height: calc(100% - 215px);
    padding-top: 40px;
}

.img-centering-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide .img-centering-box img {
    border-right: 10px solid #ffffff;
    border-bottom: 10px solid #ffffff;
}

.img-centering-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 前へ次への矢印カスタマイズ */
.swiper-button-prev,
.swiper-button-next {
    height: 84px !important;
    width: 24px !important;
    background-color: #333 !important;
    opacity: 0.5 !important;
    margin-top: 0 !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    transform: translateY(-50%) !important;
    /* 背景画像のサイズをカバーとして指定し、画面全体にフィットさせる */
    background-size: calc(100% - 5px) auto !important;

    /* 背景画像を中央に配置 */
    background-position: center center !important;

    /* 背景画像が繰り返し表示されないようにする */
    background-repeat: no-repeat !important;

    cursor: pointer !important;
}

/* 前への矢印カスタマイズ */
.swiper-button-prev {
    background-image: url("../assets/Vector_left.png") !important;
}

/* 次への矢印カスタマイズ */
.swiper-button-next {
    background-image: url("../assets/Vector_right.png") !important;
}

.color-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-round {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #eee;
}
/* media queries */
.sp-show {
    display: none !important;
}
.maker-img-box {
    width: 60px;
    height: 60px;
}
.maker-img-box img {
    margin-bottom: 0 !important;
}
.pane-item {
    cursor: pointer;
}
/* For tablet devices */
@media only screen and (max-width: 980px) {
    .item-movie {
        position: relative;
        width: 100%;
        padding-top: 56.25%;
    }
    .item-movie iframe {
        position: absolute;
        top: 0;
        right: 0;
        width: 100% !important;
        height: 100% !important;
    }
    .slide-top-box {
        padding-top: 0;
    }
    .vehicle-detailes-container {
        margin-left: 25px;
        margin-right: 25px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .contact-text {
        font-size: 14px;
    }
    .page-container {
        width: 100%;
    }
    .sp-none {
        display: none !important;
    }
    .sp-show {
        display: block !important;
    }
    .header-img {
        background-image: linear-gradient(to right, rgba(245, 246, 252, 0), rgb(255, 255, 255)), url(../assets/header.png);
        height: 400px !important;
    }
    .car-btn {
        width: calc(25% - 7.5px);
    }
    .car-btn-class {
        font-size: smaller;
    }

    .nav-style {
        font-size: 100%;
        font-weight: bold;
    }

    .search-input {
        font-weight: bold;
        height: 100%;
        border: 0;
        font-size: smaller;
    }

    .econorikun-logo {
        width: 50%;
    }
    .econorikun-logo-index {
        position: static;
        width: 100%;
    }
    .econorikun-logo-index-box {
        z-index: 3;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .header-topic {
        color: #f15000;
        font-weight: 600;
        font-size: medium;
        margin: 0;
        text-align: center;
        position: static;
    }

    .logo-in-left {
        z-index: 3;
        position: absolute;
        width: 15%;
        top: 2%;
        left: 2%;
    }
    .nav-font-style {
        font-size: 100%;
        font-weight: bold;
    }
    .search-button-style {
        height: 100%;
    }
    .pane-item {
        width: 100%;
        padding-bottom: 1.5rem;
    }
    .swiper-section {
        margin-top: 0;
        height: 100%;
        flex-direction: column;
    }
    .swiper1 {
        width: 100%;
        height: 100%;
    }
    .swiper-left {
        width: 100%;
        height: 100%;
        margin-top: 5px;
    }
    .swiper-wrapper {
        align-items: center;
    }
    .car-detail-for-vehical {
        margin-left: 0 !important;
    }
    .color-title {
        line-height: 20px;
    }
    .maker-img-box {
        width: 25px;
        height: 25px;
    }
    .brand-button-group {
        gap: 7.5px;
    }
}
@media (max-width: 576px) {
    .header-img {
        background-image: linear-gradient(to right, rgba(245, 246, 252, 0), rgb(255, 255, 255)), url(../assets/header.png);
        height: 120px;
        background-size: cover;
    }

    .iframe-style {
        height: 200px;
    }

    .body-middle-content {
        margin-left: 20px;
        margin-right: 20px;
    }

    .search-button-style {
        height: 100%;
    }

    .nav-style {
        font-weight: bold;
    }

    .nav-tab {
        width: 80%;
    }
    .nav-font-style {
        font-size: 100%;
        font-weight: bold;
    }

    .search-input {
        font-weight: bold;
        height: 100%;
        border: 0;
        font-size: x-small;
    }

    .car-btn-class {
        font-size: small;
    }

    .sub-topic {
        font-size: x-small;
    }

    .logo-buttons {
        padding: 0;
    }

    .brand-text {
        font-size: small;
    }

    .car-brands {
        column-width: 50px;
    }

    .arrow {
        width: 50px;
    }

    .car-btn {
        color: #fe0032;
        font-weight: bold;
        border-color: #fe0032;
        height: 100px;
        font-size: xx-small;
    }

    .car-img1 {
        width: 700px;
        height: auto;
        object-fit: cover;
    }

    .car-detail-for-vehical {
        font-size: xx-small;
        font-weight: bold;
    }
}
@media (min-width: 576px) and (max-width: 768px) {
    .my_bg {
        background-image: linear-gradient(to right, rgba(245, 246, 252, 0), rgb(255, 255, 255)), url(../assets/header.png);
        width: 100%;
        height: 400px;
        background-size: cover;
        padding: 20px;
    }

    .header-img {
        background-image: linear-gradient(to right, rgba(245, 246, 252, 0), rgb(255, 255, 255)), url(../assets/header.png);
        height: 259px;
    }

    .car-btn-class {
        font-size: smaller;
    }

    .nav-style {
        font-size: 100%;
        font-weight: bold;
    }

    .search-input {
        font-weight: bold;
        height: 100%;
        border: 0;
        font-size: smaller;
    }

    .econorikun-logo {
        width: 50%;
    }

    .col-style {
        width: 100%;
    }

    .car-detail-box-style {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    .iframe-style {
        height: 250px;
    }

    .body-middle-content {
        margin-left: 40px;
        margin-right: 40px;
    }

    .search-button-style {
        height: 100%;
    }

    .col-style {
        width: 100%;
    }

    .car-detail-box-style {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .header-sub-topic {
        text-align: right;
        color: #f15000;
        font-weight: 600;
        z-index: 3;
        position: absolute;
        right: 8%;
        top: 12%;
        font-size: medium;
    }
}
