@charset "utf-8";
/*----------------------------------------------------*/
/*        メーカー・車種・年式・走行距離 モーダル        */
/*----------------------------------------------------*/

#layer {
    display: none;   /* 編集しないで下さい */
    position: fixed; /* 編集しないで下さい */
    width: 100%;     /* 編集しないで下さい */
    height: 100%;    /* 編集しないで下さい */
    top: 0;          /* 編集しないで下さい */
    left: 0;         /* 編集しないで下さい */
    z-index: 9;      /* 編集しないで下さい */
    background-color: #fff;
    opacity: 0.8;
}

#layer_carbox {
    display: none;   /* 編集しないで下さい */
    z-index: 991;    /* 編集しないで下さい */
    position: fixed; /* 編集しないで下さい */
    background-color: #fff;
    width: 90%;
    max-width: 890px;
    font-size: 1.1em;
    margin: 35px auto 50px auto;
    padding: 10px 20px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    box-sizing: border-box;
    border: 2px solid #bbb;
}

/* タブ　リスト */

#tab_list {
    clear: both;
}

#tab_list li {
    float: left;
    position: relative;
    width: 25%;
    padding: 33px 0 8px;
    margin-bottom: 20px;
    font-size: 20px;
    color: #666666;
    font-weight: bold;
    background: #efefef;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.1;
}

#tab_list li.tab_active {
    color: #ffffff;
    background: #00a856;
}

#tab_list li.tab_active:after {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: auto;
    width: 20px;
    height: 14px;
    content: '';
    background-color: #ec0000;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* タブ　ボタン　スタイル */

#tab_list li.tab_active {
    color: #ffffff;
    background: #00a856;
}

#tab_list li .tab_list_head {
    display: block;
    width: 100%;
    background: #e8e8e8;
    font-size: 16px;
    color: #b1b1b1;
    margin: 0 auto;
    position: absolute;
    top: 0;
    line-height: 1.5;
    box-sizing: border-box;
}

#tab_list li.tab_active .tab_list_head {
    background: #cff2ff;
    color: #00bbff;
    font-weight: bold;
}

#tab_list li:nth-child(1).tab_active .tab_list_head,
#tab_list li:nth-child(2).tab_active .tab_list_head {
    background: #ffdede;
    color: #a80000;
}

#tab_list li:nth-child(1).tab_active,
#tab_list li:nth-child(2).tab_active {
    background: #ec0000;
}

#tab_list li:nth-child(1).tab_active:after,
#tab_list li:nth-child(2).tab_active:after {
    color: #ec0000;
}

#tab_list li:nth-child(3).tab_active,
#tab_list li:nth-child(4).tab_active {
    background: #00bbff;
}

#tab_list li:nth-child(3).tab_active:after,
#tab_list li:nth-child(4).tab_active:after {
    background-color: #00bbff;
}

/* タブ　ボックス */

.tab_box {
    display: none;
    /* 編集しないで下さい */
    font-size: 1.5em;
}

.tab_box li {
    text-decoration: underline;
    cursor: pointer;
    /* 編集しないで下さい */
    font-weight: 700;
    display: inline-block;
    width: 32%;
    margin-bottom: 8px;
    color: #0170b5;
}

.tab_box li:hover {
    text-decoration: none;
}

.tab_box {
    display: none;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.4;
}

.tab_box.box_active {
    display: block;
}

.tab_box p {
    color: #333333;
}

.tab_box ul {
    padding: 10px 10px 0;
    margin-bottom: 15px;
    border: solid 1px #bebebe;
    box-sizing: border-box;
}

/* タブ　閉じる */

#close-btn {
    position: relative;
    width: 32px;
    height: 32px;
    float: right;
    margin: 5px 15px;
    cursor: pointer;
}

#close-btn::before,
#close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #adadad;
    transform-origin: center;
}

#close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/*----------------------------------------------------*/
/*  　　　　　　　　　　   SP用　　　　　　　　　　　     */
/*----------------------------------------------------*/
@media screen and (max-width: 960px) {

    #layer_carbox {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border: none;
    }

    #tab_list li {
        padding: 28px 0 4px;
        font-size: 16px;
    }

    #tab_list li .tab_list_head {
        font-size: 15px;
    }

    .tab_box ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        border: none;
    }

    .tab_box li {
        padding: 7px 10px;
        width: 100%;
        font-size: 16px;
        border-bottom: solid 1px #dadada;
    }

    .tab_box p {
        padding: 5px 10px;
    }
}