@charset "UTF-8";

:root {
    --color-greyLight: #CAD2D2;
    --color-gray: #A6A6A6;
    --color-blue: #0096e6;
}

.sectionTitle.search {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: none;
    margin-bottom: 0;
    margin-left: 0;
}

.kensyuSearchFilters {
    display: flex;
    flex-direction: column;
    padding: 0 36px 36px;
    border: solid 1px var(--color-greyLight);
    border-radius: 10px;
}

.kensyuSearchItem {
    display: flex;
    padding-block: 30px;
    border-bottom: dotted 2px var(--color-greyLight);
}

.kensyuSearchItemTitle {
    font-size: 1.6rem;
    font-weight: 700;
    width: 130px;
    flex-shrink: 0;
}

.kensyuSearchItemButtons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1.6rem;
}

.kensyuSearchItemButtons label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.kensyuSearchItemButtons.radio input {
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 100px;
  border: solid 1px var(--color-gray);
  background-color: #fff;
  cursor: pointer;
}

.kensyuSearchItemButtons.radio input:checked {
  border: solid 1px var(--color-blue);
}

.kensyuSearchItemButtons.radio input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 9999px;
  background-color: var(--color-blue);
}


.kensyuSearchItemButtons.checkbox input {
  appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-gray);
  border-radius: 0;
  cursor: pointer;
}

.kensyuSearchItemButtons.checkbox input:checked {
  background-color: var(--color-blue);
  border: 1px solid var(--color-blue);
}

.kensyuSearchBtns {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.kensyuSearchBtn,
.kensyuResetBtn {
    padding: 12px 12px 12px 26px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 220px;
    font-weight: 700;
    width: 100%;
    margin-top: 3rem;
}

.kensyuSearchBtn > span,
.kensyuResetBtn > span {
    position: relative;
}

.kensyuSearchBtn > span::before,
.kensyuResetBtn > span::before {
    content: "";
    width: 14px;
    height: 14px;
    background-size: contain;
    display: block;
    margin: auto;
    position: absolute;
    left: -20px;
    inset-block: 0;
}

.kensyuSearchBtn {
    color: #fff;
    background-color: var(--color-blue);
}

.kensyuSearchBtn > span::before {
    background: url(/kensyu/images/common/search_icon.svg) no-repeat;
}

.kensyuResetBtn {
    color: #000;
    background-color: #fff;
    border: solid 1px var(--color-gray);
}

.kensyuResetBtn > span::before {
    background: url(/kensyu/images/common/search_reset.svg) no-repeat;
}

.kensyuSearchButtonSp {
    display: none;
    width: calc(100% - 40px);
    border:solid 1px var(--color-greyLight);
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 12px;
    margin-inline: 20px;
    position: relative;
}


.kensyuSearchButtonSp::after {
    content: "";
    display: block;
    position: absolute;
    border-top: solid 2px var(--color-greyLight);
    border-right: solid 2px var(--color-greyLight);
    rotate: 45deg;
    width: 12px;
    height: 12px;
    inset-block: 0;
    margin: auto;
    right: 10px;
}

@media screen and (max-width:768px) {
    .kensyuSearchItem {
        flex-direction: column;
        gap: 16px;
    }
    .kensyuSearchItem:first-child {
        padding-top: 12px;
    }

    .kensyuSearchBtns {
        flex-direction: column;
        align-items: center;
    }
    
    .kensyuSearchBtns > *:last-child {
        margin-top: 0;
    }

    .kensyuSearchButtonSp {
        display: block;
    }
    .kensyuSearch {
        position: fixed;
        top: 0;
        left: 0;
        width: 88%;
        max-width: 360px;
        height: 100vh;
        background: #fff;
        z-index: 2001;
        padding: 20px;
        box-shadow: 10px 0 30px rgba(0,0,0,.15);
        overflow: scroll;
        transform: translateX(-100%);
        transition: transform .4s cubic-bezier(.4,0,.2,1);
    }

    .kensyuSearch.is-open {
        transform: translateX(0);
    }

    .kensyuSearchFilters {
        border: none;
        padding: 0;
    }

    .kensyuSearchMask{
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 2000;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
    }
    
    .kensyuSearchMask::before,
    .kensyuSearchMask::after{
        content: "";
        position: fixed;
        top: 24px;
        right: 3%;
        width: 28px;
        height: 2px;
        background: #fff;
        z-index: 2000;
        opacity: 0;
        transition: opacity .3s;
    }
    
    .kensyuSearchMask::before{
        transform: rotate(45deg);
    }

    .kensyuSearchMask::after{
        transform: rotate(-45deg);
    }
  
    .kensyuSearch.is-open + .kensyuSearchMask{
        opacity: 1;
        pointer-events: auto;
    }

    .kensyuSearch.is-open + .kensyuSearchMask::before,
    .kensyuSearch.is-open + .kensyuSearchMask::after{
    opacity: 1;
    }
}
