@charset "utf-8";

/*-----------------------------------------------------------
    ページトップボタンの位置変更
-----------------------------------------------------------*/
@media screen and (max-width: 768px) {
    #page_top {
        bottom: 155px;
    }
}

/*-----------------------------------------------------------
    製品検索後のレイアウト
-----------------------------------------------------------*/

/* -----------------------------------------------------------
    ラジオボタンのデザイン
-------------------------------------------------------------- */
.search-word-box label.selected {
    /*background: #000;*/
    /*color: #fff;*/
}

.search-word-box input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;

    width: 24px;
    height: 24px;

    border: 1px solid #ccc;
    border-radius: 50%;

    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;

    transition: all 0.2s ease;
    position: relative;
}

.search-word-box input[type="radio"]::after {
    opacity: 0;
    content: "";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background-color: var(--blue);
    border-radius: 10px;
}

/* Radio được chọn */
/* .search-word-box label.selected input[type="radio"] {
    border-color: var(--blue);
    box-shadow: inset 0 0 0 4px var(--blue);
    position: relative;
} */

.search-word-box label.selected input[type="radio"]::after {
    opacity: 1;
}

.search-word-box input[type="radio"]:focus {
    outline: none;
}

/* -----------------------------------------------------------
    チェックボックスのデザイン
-------------------------------------------------------------- */
label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

input[type="checkbox"] {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 1px solid #aaa;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    vertical-align: middle;
    border-radius: 0;
    margin: 0;
    flex: 0 0 24px;
    cursor: pointer;
}

input[type="checkbox"]:checked:before {
    position: absolute;
    top: 2px;
    left: 7px;
    transform: rotate(45deg);
    width: 6px;
    height: 12px;
    border-right: 2px solid var(--link);
    border-bottom: 2px solid var(--link);
    content: '';
    cursor: pointer;
}

@media screen and (max-width: 768px) {}

/*-----------------------------------------------------------
    search-all-wrapper
-----------------------------------------------------------*/
.search-all-wrapper {
    margin: 100px 0;
}

.search-all-wrapper .inner {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    justify-content: center;
    align-items: flex-start;
}

@media screen and (max-width: 768px) {
    .search-all-wrapper {
        margin-top: 10vw;
    }

    .search-all-wrapper .inner {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
}


/*-----------------------------------------------------------
    製品一覧
-----------------------------------------------------------*/
.search-product-wrapper {
    width: 72%;
}

.search-product-wrapper .search-result-block {
    margin-bottom: 50px;
    padding: 40px;
    /* background-color: var(--pale-main); */
    text-align: center;
    border: 2px solid var(--main);
}

.search-product-wrapper .search-result-word {
    font-size: 2.0rem;
    font-weight: 700;
    color: var(--main);
}

/*検索結果がなかったときのテキスト*/
.search-product-wrapper .search-none-txt {
    margin-top: 30px;
    color: var(--main);
}

/* .cmn-product-list .cmn-product-item {
    width: calc((100% - var(--gap) * 2) / 3);
} */

.search-product-wrapper .cmn-contact-wrap {
    margin-top: 30px;
}

/* .search-product-wrapper .cmn-contact-wrap .cmn-tel-num {
    color: var(--main);
} */

@media screen and (max-width: 768px) {
    .search-product-wrapper {
        width: 100%;
    }

    .cmn-product-list .cmn-product-item {
        width: 100%;
    }

    .search-product-wrapper .search-result-block {
        margin-bottom: 10vw;
        padding: 7vw 5vw;
    }

    .search-product-wrapper .search-none-txt {
        margin-top: 20px;
    }

    .search-product-wrapper .cmn-contact-wrap {
        margin-top: 5vw;
    }
}


/*-----------------------------------------------------------
    製品検索
-----------------------------------------------------------*/
.search-word-wrapper {
    width: 23%;
    background-color: var(--pale-main);
    padding: clamp(20px, 2vw, 40px);
    text-align: center;
    position: sticky;
    top: 0;
    left: 0;
    /* height: 100vh; */
}

.search-word-wrapper>form {
    max-height: 90vh;
    overflow-y: auto;
}

.search-all-wrapper form+form {
    margin-top: 30px;
}

.search-all-wrapper .search-word-title {
    font-size: 1.7rem;
    font-weight: 600;
    /* margin-bottom: 15px; */
    line-height: 1.5;
    display: block;
    text-align: left;
    width: 100%;
}

.search-all-wrapper .search-word-box+.search-word-box {
    margin-top: 30px;
}

.search-all-wrapper .search-word-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 20px;
    /* flex-direction: column; */
}

/* .search-all-wrapper .search-word-box label+label {
    margin-top: 15px;
} */

.search-all-wrapper .search-word-wrapper input[type="submit"] {
    width: clamp(150px, 100%, 240px);
    margin: 40px auto 0;
    border: 0;
    border-radius: 9999px;
    background: url(../img/icon-search-white.svg) var(--navy);
    background-position: right 20px center;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-align: center;
    padding: 20px 15px;
    cursor: pointer;
    transition: all .3s ease;
    display: inline-block;
}

.search-all-wrapper .search-word-wrapper>input[type="submit"]:hover {
    opacity: 0.5;
}

.search-all-wrapper .search-word-wrapper>input[type="submit"]:active {
    opacity: 0.5;
}

.search-all-wrapper search form {
    position: relative;
}

.search-all-wrapper search form input[type="search"] {
    width: 100%;
    height: 50px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background-color: #fff;
    font-size: 1.5rem;
    letter-spacing: .04em;
    padding: 0 60px 0 20px;
    color: #333;
}

.search-all-wrapper search form button {
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
    position: absolute;
    bottom: 0;
    right: 0;
}

.search-all-wrapper .shared-keyword-wrap {
    position: relative;
    background: #fff;
}

/* .search-all-wrapper .shared-keyword-wrap::after {
    content: "\f002";
    font: 900 1.8rem/1 var(--webicon);
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    position: absolute;
    z-index: 0;
    display: inline-block;
} */

.search-all-wrapper .shared-keyword-wrap input[type="search"] {
    width: 100%;
    height: 50px;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: transparent;
    font-size: 1.5rem;
    padding: 0 40px 0 20px;
}

.search-all-wrapper .shared-keyword-wrap input[type="search"]::-webkit-search-decoration,
.search-all-wrapper .shared-keyword-wrap input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-all-wrapper .shared-keyword-wrap input[type="search"]::-webkit-search-cancel-button {
    margin-right: 10px;
}



.search-all-wrapper .shared-keyword-wrap>button {
    width: 50px;
    height: 50px;
    border: 0;
    background: url(../img/icon-search.svg) no-repeat center center;
    background-size: 24px 24px;
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}

.search-all-wrapper .shared-keyword-wrap button i {
    font-size: 2.0rem;
    line-height: 1;
}

.search-all-wrapper .shared-keyword-wrap .cmn-search-history {
    top: 100%;
    left: 0;
    width: 100%;
    /* border-radius: 14px; */
    z-index: 20;
}

.search-all-wrapper .shared-keyword-wrap .cmn-search-history-item {
    min-height: 34px;
    padding: 3px 10px 3px 12px;
}

.search-all-wrapper .shared-keyword-wrap .cmn-search-history-keyword {
    font-size: 1.5rem;
    width: calc(100% - 28px);
}

.search-all-wrapper .shared-keyword-wrap .cmn-search-history-remove {
    width: 22px;
    height: 22px;
    font-size: 1.4rem;
}

@media screen and (max-width: 768px) {
    .search-all-wrapper .search-word-title {
        width: 100%;
        margin: 0;
    }

    .search-all-wrapper .search-word-box {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 20px;
    }

    .search-all-wrapper .search-word-box label+label {
        margin: 0;
    }

    .search-all-wrapper .search-word-box+.search-word-box {
        margin-top: 10vw;
    }

    .search-all-wrapper .shared-keyword-wrap {
        width: 100%;
    }

    /* .search-all-wrapper .shared-keyword-wrap .cmn-search-history {
        border-radius: 12px;
    } */
}

/* -----------------------------------------------------------
    検索のモーダル
-------------------------------------------------------------- */


@media screen and (min-width: 769px) {

    .search-modal-open02,
    .search-modal-close02 {
        display: none;
    }

    .search-modal-container02,
    .search-modal-body02,
    .search-modal-content02 {
        display: contents;
    }
}


@media screen and (max-width: 768px) {

    .search-modal-container02 {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        /* height: 100vh;
        max-height: 100vh; */
        height: 100dvh;
        text-align: center;
        background: rgba(0, 0, 0, .8);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        box-sizing: border-box;
        min-width: initial;
        z-index: 50;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 15vw 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .search-modal-container02::before {
        display: none;
    }

    .search-modal-container02.active {
        opacity: 1;
        visibility: visible;
        z-index: 9999;
    }

    .search-modal-body02 {
        position: relative;
        width: 90%;
        margin: 0 auto;
    }

    .search-modal-close02 {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 0;
        right: 0;
        width: 10vw;
        height: 10vw;
        font-size: 9vw;
        color: #fff;
        cursor: pointer;
        z-index: 60;
        background: var(--navy);
    }

    .search-modal-content02 {
        background: #fff;
        text-align: left;
        padding: 8vw 5vw;
        /* max-height: calc(100vh - 8vw); */
        /* overflow-y: auto; */
    }

    .search-modal-content02 .cmn-search-block {
        padding: 0;
        background: transparent;
        width: auto;
    }

    .search-modal-content02 .search-word-wrapper {
        width: 100%;
        max-width: none;
        padding: 0;
        background-color: transparent;
    }

    .search-modal-title {
        margin: 0 0 10vw;
        font-size: clamp(2.4rem, 7cqw, 3.0rem);
        font-weight: 700;
        color: var(--navy);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .search-modal-title::before,
    .search-modal-title::after {
        content: "";
        display: inline-block;
        height: 1px;
        flex-grow: 1;
        background-color: var(--navy);
    }

    .search-modal-title i {
        margin-right: 5px;
    }

    .search-modal-open02 {
        position: fixed;
        bottom: 85px;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        width: 60px;
        height: 60px;
        text-align: center;
        font-size: 1.0rem;
        font-weight: bold;
        aspect-ratio: 1/1;
        border-radius: 10px 0 0 10px;
        background-color: #333;
        color: #fff;
        line-height: 1;
        padding-bottom: 5px;
        gap: 3px;
        z-index: 99;
        padding: 10px 0;
    }

    .search-modal-open02::before {
        content: "";
        display: inline-block;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        background: url(../img/icon-search-white.svg) center/contain, no-repeat;
        width: 20px;
        height: 20px;
    }

    .search-modal-open02 i {
        font-size: 2.0rem;
    }

    .search-word-wrapper>form {
        height: initial;
        max-height: initial;
        overflow-y: initial;
    }
}