@charset "utf-8";

:root {
    --modal-color: #e7513c;
    --modal-color-light: #fdedeb;
}

/*----------------------------------------------------*/
/*        メーカー・車種・年式・走行距離 モーダル        */
/*----------------------------------------------------*/

#layer {
    position: fixed; /* 編集しないで下さい */
    top: 0; /* 編集しないで下さい */
    left: 0; /* 編集しないで下さい */
    z-index: 990; /* 編集しないで下さい */
    display: none; /* 編集しないで下さい */
    width: 100%; /* 編集しないで下さい */
    height: 100%; /* 編集しないで下さい */
    background-color: #000;
    opacity: 0.6;
}

.form_modal__layer_carbox {
    font-family: "LINE Seed JP", sans-serif;
    font-style: normal;
    position: fixed; /* 編集しないで下さい */
    inset: 0;
    z-index: 991; /* 編集しないで下さい */
    box-sizing: border-box;
    display: none; /* 編集しないで下さい */
    width: 100%;
    max-width: 890px;
    overflow-y: scroll;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.6;
    background-color: #fff;
    border: 1px solid #999;
}
@media screen and (min-width: 769px) {
    .form_modal__layer_carbox {
        padding: 1% 1.5%;
        margin: 5% auto 4%;
    }
}
@media screen and (max-width: 768px) {
    .form_modal__layer_carbox {
        border: none;
    }
}

.form_modal__close_btn {
    position: relative;
    display: block;
    width: fit-content;
    margin-right: 0;
    margin-bottom: 10px;
    margin-left: auto;
    font-size: 29px;
    font-weight: normal;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .form_modal__close_btn {
        padding: 1% 3%;
        font-size: 1.7em;
    }
}

.form_modal__dummy_box {
    position: absolute;
    left: 0;
    cursor: pointer;
    opacity: 0;
}

.form_modal__tab_list{
    display: table;
    width: 100%;
    margin-inline: auto;
}

.form_modal__tab_list_li {
    position: relative;
    box-sizing: border-box;
    display: table-cell;
    float: left;
    width: 25%;
    padding: 10px 0;
    font-size: 19.5px;
    font-weight: bold;
    color: #666;
    text-align: center;
    cursor: pointer;
    background: #d9d9d9;
}
@media screen and (max-width: 768px) {
    .form_modal__tab_list_li {
        font-size: 0.8em;
    }
}

.form_modal__tab_list_head {
    display: block;
    font-size: 11.5px;
    font-weight: normal;
    color: #888;
}
@media screen and (max-width: 768px) {
    .form_modal__tab_list_head {
        font-size: 8px;
    }
}

.form_modal__tab_list_li.tab_active {
    color: #fff;
    background: var(--modal-color);
}

.form_modal__tab_list_li.tab_active .form_modal__tab_list_head {
    color: #fff;
}

.form_modal__tab_list_li.__maker::before,
.form_modal__tab_list_li.__car::before,
.form_modal__tab_list_li.__model_year::before {
    position: absolute;
    top: 0;
    right: -12px;
    z-index: 1;
    width: 12px;
    height: 100%;
    clip-path: polygon(0% -10%, 0% 110%, 100% 50%);
    content: "";
    background-color: #fff;
}

.form_modal__tab_list_li.__maker::after,
.form_modal__tab_list_li.__car::after,
.form_modal__tab_list_li.__model_year::after {
    position: absolute;
    top: 0;
    right: -10px;
    z-index: 2;
    width: 10px;
    height: 100%;
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
    content: "";
    background-color: #d9d9d9;
}

.form_modal__tab_list_li.__maker.tab_active::after,
.form_modal__tab_list_li.__car.tab_active::after,
.form_modal__tab_list_li.__model_year.tab_active::after {
    position: absolute;
    top: 0;
    right: -10px;
    z-index: 2;
    width: 10px;
    height: 100%;
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
    content: "";
    background-color: var(--modal-color);
}

.form_modal__tab_list_li.disable {
    color: #999;
}

.form_modal__tab_box {
    display: none; /* 編集しないで下さい */
}

.form_modal__tab_box_list_wrap {
    padding: 25px 18px;
    background: #f1f1f1;
}
@media screen and (max-width: 768px) {
    .form_modal__tab_box_list_wrap {
        padding: 25px 10px;
    }
}

.form_modal__tab_box_txt {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: bold;
    color: var(--modal-color);
    background: var(--modal-color-light);
    border-top: 3px solid var(--modal-color);
}
@media screen and (max-width: 768px) {
    .form_modal__tab_box_txt {
        font-size: 16px;
    }
}

.form_modal__tab_box_txt_must {
    padding: 4px 8px;
    margin-left: 8px;
    font-size: 13px;
    font-weight: normal;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.2em;
    background-color: #e00000;
    border-radius: 30px;
}

.form_modal__tab_ttl {
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.form_modal__tab_box_list {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 30px;
}

.form_modal__tab_box_list_index {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 30px;
}

.form_modal__tab_box_list_index_item {
    width: calc(100% / 11 - 4px);
}
@media screen and (max-width: 768px) {
    .form_modal__tab_box_list_index_item {
        width: calc(100% / 6 - 4px);
    }
}

.form_modal__tab_box_list_index_item a {
    position: relative;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 3em;
    padding-bottom: 0.5em;
    font-size: 0.95em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background-color: var(--modal-color);
    border-bottom: 2px solid var(--modal-color);
    border-radius: 4px;
}

.form_modal__tab_box_list_index_item a:hover {
    opacity: 1;
    transform: none;
    background-color: var(--modal-color);
    color: #fff;
}

.form_modal__tab_box_list_index_item a::before {
    position: absolute;
    top: 2em;
    right: 0;
    left: 0;
    width: 13px;
    height: 15px;
    margin: auto;
    clip-path: polygon(0 0, 50% 40%, 100% 0);
    content: "";
    background-color: #ffffff8c;
}

.form_modal__tab_box_list_car {
    box-sizing: border-box;
}

.form_modal__tab_box_list_car_ttl {
    padding: 0.4em 10px;
    margin-bottom: 7px;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.4;
    color: #fff;
    letter-spacing: 1px;
    background-color: var(--modal-color);
}

.form_modal__tab_box_list_item {
    position: relative;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    align-items: center;
    width: calc(100% / 3 - 3px);
    min-height: 3.2em;
    padding: 3px 25px 3px 10px;
    font-size: 0.95em;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 10%);
}
@media screen and (max-width: 768px) {
    .form_modal__tab_box_list_item {
        width: calc(100% / 2 - 2px);
        font-size: 0.9em;
    }
}
@media screen and (max-width: 320px) {
    .form_modal__tab_box_list_item {
        width: 100%;
    }
}

.form_modal__tab_box_list_item:hover {
    background: var(--modal-color-light);
}
.form_modal__tab_box_list_item::after {
    position: absolute;
    top: 40%;
    right: 15px;
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    content: "";
    border-top: 2px solid var(--modal-color);
    border-right: 2px solid var(--modal-color);
    transform: rotate(45deg);

}

.form_modal__tab_box_list_img {
    display: block;
    width: 33px;
    height: auto;
}

@media screen and (max-width: 960px) {
    .form_modal__tab_box_list_item.__w100 {
        width: 100%;
    }
}