#car_detail {
    position: relative;
    height: auto;
    width: 100%;
}

.carinfo__contents {
    width: 100%;
    display: flex;
    margin: 0 auto 200px;
}

.leftcontents {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 40px 0 0;
}

.sliderArea {
    margin: 0 auto;
}

.mainvis {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.mainvis .slick-slide {
    height: 360px;
}

.mainvis img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

/* モーダルのスタイル */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    /* 背景色 */
    opacity: 0;
    /* 初期状態では透明 */
    visibility: hidden;
    /* 初期状態では不可視 */
    transition: opacity 0.5s, visibility 0.5s;
    /* アニメーション効果 */
}

/* モーダルの画像スタイル */
.modal-content {
    display: block;
    width: 80%;
    max-width: 700px;
}

/* モーダルの閉じるボタン */
#close {
    position: absolute;
    top: 15vh;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.thumb {
    width: 100%;
    padding: 0 30px;
}

.thumb img {
    width: 100%;
    height: 73.5px;
    object-fit: cover;
    border-radius: 20px;
    padding-inline: 6px;
}

.mainvis,
.thumb {
    display: none;
}

.mainvis.slick-initialized,
.thumb.slick-initialized {
    display: block;
}


.slick-arrow::before,
.slick-arrow::after {
    font-size: 3.0rem;
    line-height: 27px;
    color: #3B3B3B;
    opacity: 1;
    z-index: 999;
}

.slick-prev {
    width: 30px;
    left: -5px;
    z-index: 999;
}

.slick-next {
    width: 30px;
    right: -5px;
    z-index: 999;
}

.left-flexwrapper2 {
    margin: auto 0 0;
}

.car_name {
    position: relative;
    font-size: 3.2rem;
    font-weight: 600;
    margin: 40px auto 20px 20px;
}

.car_name::before {
    position: absolute;
    display: inline-block;
    content: '';
    width: 10px;
    height: 80%;
    background-color: #3b3b3b;
    top: 50%;
    left: -20px;
    transform: translate(0, -50%);
}

.price__wrapper {
    border-top: 1px solid #3B3B3B;
    border-bottom: 1px solid #3B3B3B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    margin-bottom: 20px;
}

.car_type {
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 12px;
    flex-grow: 1;
    text-align: center;
    margin-bottom: 0;
    margin-right: 20px;
    padding: 8px 12px;
    background-color: #E7EDF0;
}

.price__wrapper h4 {
    position: relative;
    text-align: center;
    color: #FA4A48;
    font-size: 4.0rem;
    flex-grow: 2;
}

.price__wrapper h4 span {
    color: #3B3B3B;
    font-size: 1.8rem;
}

.price__wrapper h4 .price_support {
    font-size: 1.2rem;
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    background-color: #3B3B3B;
    margin-left: 10px;
    transform: translate(0, -12%);
}

.price__wrapper h4 .price_support--text {
    display: block;
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    text-align: left;
    white-space: pre-line;
    border: 1px solid #3B3B3B;
    border-radius: 16px;
    width: 420px;
    height: auto;
    color: #3B3B3B;
    background-color: #fff;
    padding: 10px;
    top: -80px;
    left: 0;
    z-index: 99999;
}

.price__wrapper .blue {
    color: #fff;
    background-color: #447CAF;
}

.price__wrapper .green {
    color: #FFF;
    background-color: #2999a6;
}

.price__wrapper .yellow {
    color: #3B3B3B;
    background-color: #FCF16E;
}

.price__wrapper .pink {
    color: #fff;
    background-color: #EF889C;
}

.price__wrapper .red {
    color: #fff;
    background-color: #FA4A48;
}

.price__wrapper .orange {
    color: #fff;
    background-color: #ed8032;
}

.price__wrapper .gray {
    color: #3B3B3B;
    background-color: #E7EDF0;
}

.price__wrapper .black {
    color: #fff;
    background-color: #3B3B3B;
}

.carinfo__flex--wrapper {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
}

.carinfo__flex--wrapper span {
    font-weight: 600;
}

.carinfo__flex--wrapper ul li {
    margin-bottom: 8px;
}

.carinfo__flex--wrapper ul li:last-child {
    margin-bottom: 0px;
}

.rightcontents {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding-bottom: 3px;
    margin: 0;
}

.equip__wrapper span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.equip__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 16px;
    max-width: 100%;
    margin-bottom: 40px;
}

.equip__items li {
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 1.0rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    background-color: #E7EDF0;
    padding: 8px;
}

/* .equip__header:hover::after {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    content: attr(data-des);
    width: 160px;
    height: 60px;
    top: -40px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4px;
    z-index: 9999;
}

.equip__header:hover::before {
    position: absolute;
    content: "";
    background-image: url(../assets/equip-bg.svg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;
    width: 180px;
    height: 180px;
    top: -40px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
} */

.address__text--wrapper {
    display: flex;
    margin-bottom: 40px;
}

.address__text--wrapper {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
}

.address__text--wrapper span {
    font-weight: 600;
}

.address__text--wrapper ul li {
    margin-bottom: 8px;
}

.address__text--wrapper li:last-child {
    margin-bottom: 0px;
}

.detail__form {
    border: none;
    list-style: none;
    display: flex;
    width: 100%;
    height: 60px;
    justify-content: center;
    align-items: center;
    background-color: #2999a6;
    text-align: center;
    border-radius: 20px;
    margin: auto auto 0;
    transition: 0.25s;
}

.detail__form:hover {
    text-decoration: none;
    list-style: none;
    background-color: #ed8032;
}

.detail__form .icon--mail {
    display: block;
    width: 42px;
    margin-right: 16px;
    padding-bottom: 10px;
    opacity: 1 !important;
}

.detail__form p {
    display: block;
    font-weight: 600;
    margin-bottom: 0;
    color: #fff;
}

#model-slide,
#type-slide {
    display: none;
    width: 100%;
    margin-bottom: 100px;
    padding: 20px 0;
}

#model-slide.slick-initialized,
#type-slide.slick-initialized {
    display: block;
}

.sameModel__items--wrapper,
.sameType__items--wrapper {
    width: 200px;
    margin: 0 10px 0;
    border: 1px solid #e8eaed;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.25s;
}

.sameModel__items--wrapper:hover,
.sameType__items--wrapper:hover {
    background-color: #3B3B3B;
}

.sameModel__img--wrapper,
.sameType__img--wrapper {
    margin-bottom: 10px;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.sameModel__img--wrapper img,
.sameType__img--wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease !important;
    opacity: 1 !important;
    filter: none !important;
}

.sameModel__items--wrapper:hover img,
.sameType__items--wrapper:hover img {
    transform: scale(1.1);
}

.sameModel__items--wrapper a,
.sameType__items--wrapper a {
    display: block;
    color: #3B3B3B;
}

.sameModel__items--wrapper:hover a,
.sameType__items--wrapper:hover a {
    color: #fff;
}

.sameModel__text--wrapper,
.sameType__text--wrapper {
    margin: 0 12px 12px;
}

.sameModel__text--wrapper h4,
.sameType__text--wrapper h4 {
    font-size: 1.2rem;
}

.sameModel__text--wrapper p,
.sameType__text--wrapper p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 auto;
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 12px !important;
}

@media screen and (max-width: 960px) {
    #car_detail {
        width: calc(600vw / 10);
        min-width: 300px;
        margin: 0 auto 120px;
    }

    .carinfo__contents {
        flex-direction: column;
    }

    .leftcontents {
        width: 100%;
        min-width: 300px;
    }

    .rightcontents {
        width: 100%;
        min-width: 300px;
    }

    .carinfo__flex--wrapper {
        margin-bottom: 40px;
    }

    .mainvis .slick-slide {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }

    .thumb img {
        height: 60px;
    }

    .price__wrapper h4 {
        font-size: 3.2rem;
    }

    .price__wrapper h4 .price_support--text {
        font-size: 1.2rem;
        width: 300px;
        height: auto;
        color: #3B3B3B;
        background-color: #fff;
        padding: 10px;
        top: -130px;
        left: -60px;
    }

    .equip__items {
        margin-bottom: 60px;
    }

    .address__text--wrapper {
        margin-bottom: 60px;
    }
}

@media screen and (max-width: 600px) {
    #car_detail {
        width: auto;
    }

    .price__wrapper p {
        font-size: 1.0rem;
    }

    .price__wrapper h4 {
        font-size: 2.4rem;
    }

    .price__wrapper h4 span {
        font-size: 1.4rem;
    }
}