@charset "UTF-8";

/*
 * TOPページの絞り込みモーダル用。
 *
 * car/sell/exhibit/form.css から、絞り込みモーダルで使うセレクタ・定義だけを
 * 抜き出したもの。
 * TOPの他の要素に影響しないよう、絞り込みモーダル(.search-modal-root)の
 * 中だけにスタイルを絞ってる。
 *
 * 車両一覧のモーダル修正などで form.css の該当箇所を修正したときは、
 * 見た目をあわせるため、こちらも合わせて修正するよう検討すること。
 */

/* ラジオボタン・チェックボックス */
.search-modal-root input[type="radio"],
.search-modal-root input[type="checkbox"] {
    display: inline-block;
    margin-right: 6px;
    display: none;
    margin: 0;
}
.search-modal-root input[type="radio"] + label,
.search-modal-root input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    margin-right: 12px;
    padding: 0 0 0 24px;
    line-height: 30px;
    cursor: pointer;
    font-size: 14px;
}

@media screen and (min-width: 641px) {
    .search-modal-root input[type="radio"] + label,
    .search-modal-root input[type="checkbox"] + label {
        font-size: 14px;
    }
}
.search-modal-root input[type="radio"] + label::before,
.search-modal-root input[type="checkbox"] + label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;

    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 18px;
    height: 18px;
    margin-top: -9px;
}
.search-modal-root input[type="radio"] + label::before {
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ccc;
}
.search-modal-root input[type="checkbox"] + label::before {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
}
.search-modal-root input[type="radio"]:checked + label::after,
.search-modal-root input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    top: 50%;

    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
}
.search-modal-root input[type="radio"]:checked + label::after {
    left: 4px;

    width: 10px;
    height: 10px;
    margin-top: -5px;

    background: #666;
    border-radius: 8px;
}
.search-modal-root input[type="checkbox"]:checked + label::before {
    background: #666;
}
.search-modal-root input[type="checkbox"]:checked + label::after {
    left: 4px;

    width: 12px;
    height: 6px;
    margin-top: -4px;

    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;

    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.search-modal-root input[type="radio"]:disabled + label {
    color: #888;
    cursor: default;
}

/* 車体の色 チェックボックス用スタイル */
.body_color input[type="checkbox"] + label {
    width: 72px;
    margin-bottom: 1rem;
    padding: 72px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1;
}

.body_color input[type="checkbox"] + label::before {
    top: 8px;
    left: 50%;
    width: 68px;
    height: 68px;
    margin-left: -34px;
    border-radius: 0;
    border: none !important;
}
/*
 * 上のチェックボックスのルール(.search-modal-root 付き)より優先させるため、
 * .search-modal-root を付けている
 */
.search-modal-root .body_color input[type="checkbox"] + label::after {
    top: 25px;
    left: 50%;
    width: 30px;
    height: 20px;
    margin-left: -15px;
    border-left: 6px solid #fff;
    border-bottom: 6px solid #fff;
    border-radius: 0;
    background: transparent;

    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
/*
 * list/index.css のPC幅の上書き。
 *
 * 上のルールに .search-modal-root を付けたことで
 * list/index.css 側が効かなくなる。
 * そのため、同じ内容を .search-modal-root 付きで追加。
 *
 * list/index.css の該当箇所を修正したときは、こちらも合わせて修正すること。
 */
@media screen and (min-width: 801px) {
    .search-modal-root .body_color input[type="checkbox"] + label::after {
        top: 10px;
        left: 50%;
        width: 30px;
        height: 20px;
        margin-left: 15px;
        border-left: 4px solid #fff;
        border-bottom: 4px solid #fff;
        border-radius: 0;
        background: transparent;
        -webkit-transform: rotate(-45deg);
    }
}

#body_color_01 + label::before,
#body_color_05 + label::before {
    box-shadow: 0 0 0 1px #ccc;
}
#body_color_01 + label::after,
#body_color_05 + label::after {
    border-left-color: #888a90;
    border-bottom-color: #888a90;
}
#body_color_01 + label::before {
    background: #fff;
}
#body_color_02 + label::before {
    background: #000;
}
#body_color_03 + label::before {
    background: #e5e5e5;
    background: -moz-linear-gradient(left, #e5e5e5 0%, #c6c4c5 50%, #e5e5e5 100%);
    background: -webkit-linear-gradient(left, #e5e5e5 0%, #c6c4c5 50%, #e5e5e5 100%);
    background: linear-gradient(to right, #e5e5e5 0%, #c6c4c5 50%, #e5e5e5 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#e5e5e5',GradientType=1 );
}
#body_color_04 + label::before {
    background: #e5ddb6;
    background: -moz-linear-gradient(left, #e5ddb6 0%, #c2aa50 50%, #e5ddb6 100%);
    background: -webkit-linear-gradient(left, #e5ddb6 0%, #c2aa50 50%, #e5ddb6 100%);
    background: linear-gradient(to right, #e5ddb6 0%, #c2aa50 50%, #e5ddb6 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5ddb6', endColorstr='#e5ddb6',GradientType=1 );
}
#body_color_05 + label::before {
    background: #fbf9ed;
}
#body_color_06 + label::before {
    background: #9ba5b1;
}
#body_color_07 + label::before {
    background: #25479e;
}
#body_color_08 + label::before {
    background: #ff0016;
}
#body_color_09 + label::before {
    background: #7a0126;
}
#body_color_10 + label::before {
    background: #4db426;
}
#body_color_11 + label::before {
    background: #8448d8;
}
#body_color_12 + label::before {
    background: #fcd316;
}
#body_color_13 + label::before {
    background: #763301;
}
#body_color_14 + label::before {
    background: #ff7800;
}
#body_color_15 + label::before {
    background: #ff59ab;
}
#body_color_16 + label::before {
    background: url(/template/image/ico_color.png) no-repeat 50% 50%;
    background-size: cover;
}
@media screen and (max-width: 640px) {
    .body_color input[type="checkbox"] + label {
        width: 80px;
        margin-right: 0;
        margin-top: 10px;
        margin-bottom: 0;
        zoom: 0.65;
    }
    #body_color_01 + label::before,
    #body_color_05 + label::before {
        box-shadow: none;
        border: solid 1px #ccc !important;
    }
}

/* モーダルの閉じるボタン */
.modal-content .box-body .modal-close:hover {
    background: #ebebeb;
    opacity: 1;
}

@media screen and (max-width: 640px) {
    /* モーダルの枠 */
    .modal-content .box-body {
        padding: 25px 15px 15px;
    }
}

/* セレクト */
.search-modal-root select {
    outline: none;
    padding: 0 40px 0 10px;
    -webkit-appearance: button;
    appearance: button;
    text-overflow: clip;
    background: url(/template/image/ico_arrow.png) #fff no-repeat 100% 50%;
    border-color: #ccc;
    border-radius: 4px;
    font-size: 14px;
    height: 40px;
}
/* for firefox */
.search-modal-root select {
    -moz-appearance: none;
    text-indent: 0.01px;
    text-overflow: "";
}
/* for ie */
.search-modal-root select::-ms-expand {
    display: none;
    background: none;
}
@media screen and (max-width: 640px) {
    .search-modal-root select {
        font-size: 1em;
        -webkit-appearance: none;
    }
}
@media screen and (max-width: 640px) {
    .search-modal-root select {
        margin-top: 1%;
    }
}
