@charset "utf-8";

select::-ms-expand {
    display: none;
}

div {
    box-sizing: border-box;
}


/* selectboxの装飾 */
.searchModal__select {
    position: relative;
    z-index: 1;
}


.searchModal__select::after {
    position: absolute;
    content: '';
    width: 8px;
    height: 8px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border-bottom: 2px solid #ccc;
    border-right: 2px solid #ccc;
    z-index: 1;
}

/*.header__itemSearch::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  padding-right:.2em;
  font-weight:900;
}*/


/* レイアウト */
.searchModal {
    visibility: hidden;
    position: absolute;
    top: 4.5rem;
    right: 0.5rem;
    margin-left: 0.5rem;
    background-color: white;
    max-width: 464px;
    padding: 2rem 2rem 3rem;
    box-shadow: 0px 4px 12px 0px rgba(16, 24, 32, 0.15);
    border-radius: 4px;
    border: 1px solid #999;
    background-color: #f1f1f1;
}

.searchModal.active {
    padding-bottom: 36px;
    z-index: 999999;
    visibility: visible;
    animation: fadeIn 0.7s cubic-bezier(0.33, 1, 0.68, 1) 1 forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



/* スクロールバーの装飾 */
.searchModal::-webkit-scrollbar {
    width: 4px
}

.searchModal::-webkit-scrollbar-track {
    background: #f5f5f5
}

.searchModal::-webkit-scrollbar-thumb {
    background: #888
}

.searchModal::-webkit-scrollbar-thumb:hover {
    background: #555
}


.searchModal__header {
    margin-bottom: 2rem;
}

.searchModal__title__main {
    position: relative;
    display: inline-block;
    padding: 1rem 0;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.0;
    white-space: nowrap
}

.searchModal__title__main::before {
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    padding-right: .2em;
    font-weight: 900;
}


/* form装飾 */

.searchModal input,
.searchModal select {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    height: 4.4rem;
    padding: 0 0.8rem;
}

.searchModal input:focus,
.searchModal select:focus {
    box-shadow: 0 0 3px #1abc9c;
}

.searchModal label span.label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    line-height: 16px;
}

.searchModal span.minmaxLabel {
    padding-top: 1.4rem;
}


/* レイアウト */
.searchModal__column {
    margin-bottom: 1.4rem
}

.searchModal__column:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
}

.searchModal__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 60rem;
}

.searchModal__column--full {
    width: 100%;
}

.searchModal__column--half {
    max-width: 48%;
    flex: 0 0 48%;
}


/* 在庫なし時 */

.searchModal__stockNone {
    margin: 2rem 0 2rem;
}

.searchModal__stockNone input[type="checkbox"] {
    display: none;
}

.searchModal__stockNone input[type="checkbox"]+label {
    display: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    padding-left: 25px;
    padding-right: 10px;
}

.searchModal__stockNone input[type="checkbox"]+label::before {
    content: "";
    position: absolute;
    border-radius: 2px;
    display: block;
    box-sizing: border-box;
    width: 2rem;
    height: 2rem;
    margin-top: -10px;
    left: 0;
    top: 50%;
    border: 2px solid #ccc;
}

.searchModal__stockNone input[type="checkbox"]:checked+label::before {
    background-color: #000;
    border: 0;
}

.searchModal__stockNone input[type="checkbox"]:checked+label::after {
    content: "";
    position: absolute;
    display: block;
    box-sizing: border-box;
    width: 18px;
    height: 9px;
    margin-top: -9px;
    top: 50%;
    left: 3px;
    transform: rotate(-45deg);
    border-bottom: 3px solid #fff;
    border-left: 3px solid #fff;
}

.searchModal__column--btnWrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.searchModal__btnItem {
    width: 48%;
    flex: 0 0 48%;
}

.searchModal__btn {
    width: 100%;
    padding: 1.2rem .8rem;
    text-align: center;
    font-size: 14px;
    border-radius: .2rem;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    border: 0;
}

.searchModal__btn:hover {
    opacity: .7;
}

.searchModal__btn--submit {
    background-color: #222;
}

.searchModal__btn--reset {
    background-color: #999;
}


/* closeボタン */



.searchModal__header .ico-close {
    top: 1.6rem;
    right: 1rem;
}



/*
.searchModal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  padding:1.1rem 0 0 1.8rem;
  border-radius: 0 0 0 2px;
  cursor: pointer;
  background-color: #222;

}

.searchModal__close::before {
  content: "\f00d";
  font-size:2rem ;
  font-family: "Font Awesome 5 Free";
  color:#fff;
  font-weight:600;
}


.searchModal__close:hover {
    background-color: #666;
}
*/


@media (min-width: 672px) {
    .searchModal {
        max-height: calc(100vh - 64px - 8px - 16px - 40px);
        overflow-y: scroll
    }
}


/* ［SP］表示時  */

@media (max-width: 671px) {

    .searchModal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin-left: 0;
        z-index: 99999;
        overflow-y: scroll;
        padding: 2rem 2rem;
        border-radius: 0;
        border: 0;
        width: calc(100vw);
        max-width: 100%;
        height: calc(100vh - 4vh);
    }

    .searchModal__main {
        display: block;
    }

    .searchModal__header {
        margin-bottom: 1.6rem;
    }

    .searchModal__column {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 1rem;

    }

    .searchModal__column label {
        width: 20%;
        max-width: 20%;
    }

    .searchModal__column label.searchModal__checkbox {
        width: 100%;
        max-width: 100%;
    }

    .searchModal__column input,
    .searchModal__column .searchModal__select {
        width: 80%;
    }

    .searchModal__column--half {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .minmaxLabel {
        display: none;
    }

    .searchModal__stockNone {
        width: 100%;
        margin: 2rem 0 2.4rem;
    }

    .searchModal__column--btnWrap {
        display: flex;
        justify-content: space-between;
    }

    .searchModal__reset {
        margin-top: 0.5rem;
    }


    .searchModal input:focus,
    .searchModal select:focus {
        font-size: 16px;
    }

    .searchModal label span.label {
        font-size: 1rem;
        margin-bottom: .2rem;
        align-self: center;
    }

}


@media (max-width: 768px) {

    body.searchmodal-is-open,
    body.searchmodal-is-open main {
        overflow: hidden
    }
}


.fs-preview-header {
    display: none
}