@charset "utf_8";

.qqa_popup_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 4px 4px 5px rgba(43, 43, 43, 0.4);
}
.qqa_popup_wrapper.show {
    z-index: 1050;
}
.qqa_popup_wrapper:not(.show) {
    z-index: -1;
}

.qqa_popup {
    position: fixed;
    margin-inline: 18px;
    width: calc(100% - 36px);
    color: white;
    background-color: rgb(0, 84, 159);
    padding: 8px;
    border-radius: 7px;
}
.qqa_popup:not(.show) {
    /* display: none; */
    z-index: -1;
}

/* ヘッダ */
.qqa_header {
    padding: 8px 10px 5px;
}
.qqa_header .subheading {
    font-size: 0.8rem;
}
.qqa_header .strong {
    font-weight: bold;
}
/* 閉じるボタン */
.qqa_close {
    position: absolute;
    right: 8px;
    top: -55px;
    font-size: 2.8em;
}

/* リスト */
.qqa_list_wrapper {
    max-height: 60%;
    overflow-y: auto;
    height: auto;
    background-color: white;
    border-radius: 10px;
    color: black;
}

.qqa_popup .qqa_result_list_item:hover .qqa_result_list_item_link {
    padding-left: 0;
}
.qqa_popup .qqa_result_list_item:hover .qqa_result_list_item_link_icon {
    font-weight: unset;
}
.qqa_popup .qqa_result_list_item:hover .qqa_result_list_item_link_title_text {
    color: unset;
    font-weight: unset;
}
.qqa_popup .qqa_result_list_item_link > * {
    margin: 0 0 0 8px;
}
.qqa_popup .qqa_result_list_item_link_icon {
    padding-bottom: 5px;
}
.qqa_popup .qqa_result_list_item_link_title {
    width: 100%;
}

.qqa_popup .qqa_result_list .qqa_no_result {
    padding: 5px 7px;
}

/* もっと見るボタン */
.qqa_popup .qqa_footer {
    text-align: center;
    padding: 12px 0;
}
.qqa_popup .more {
    width: 50%;
    height: 33px;
    padding: 5px;
    background-color: rgb(165, 151, 121);
    color: white;
    border: 0px;
    border-bottom: 3px solid rgb(116, 96, 52);
}
.qqa_popup .more:hover {
    border-bottom: none;
    margin-top: 3px;
    height: 30px;
}

/* バックドロップ */
.qqa_backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;

    transition: opacity .15s linear, z-index .15s;
}
.qqa_backdrop.show {
    opacity: 0.5;
    z-index: 1040;
}
.qqa_backdrop:not(.show) {
    opacity: 0;
    z-index: -1;
}

/* opener */
.qqa_open {
    position: fixed;
    bottom: 60px;
    right: 0;
    background-color: rgb(0, 84, 159);
    color: white;
    padding-top: 10px;
    padding-left: 15px;
    padding-bottom: 0px;
    padding-right: 10px;
    text-align: center;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: 4px 4px 5px rgba(43, 43, 43, 0.4);
    z-index: 2;
}
.qqa_open.show {
    opacity: 1;
}
.qqa_open:not(.show) {
    opacity: 0;
}
.qqa_open .badge {
    position: absolute;
    left: -12px;
    top: -12px;
    border-radius: 50%;
    background-color: var(--iris_red);
    width: 28px;
    height: 28px;
    padding: 5px;
    font-size: 1.1rem;
}
.qqa_open .icon_right {
    font-size: 1.3rem;
    margin-bottom: -5px;
}

/* PC表示 */
@media screen and (min-width: 768px) {
    .qqa_popup .qqa_result_list_item_link_title {
        width: 76%;
        display: inline-block;
    }
    .qqa_result_list_item_link_title_text {
        display: block;
    }
    .qqa_popup_wrapper{
        top: auto;
        height: 0;
        bottom: 0;
        width: 100%;
    }
    .qqa_popup_wrapper:not(.show) {
        z-index: 1;
    }
    .qqa_popup {
        position: fixed;
        width: 344px;
        bottom: 0;
        right: 70px;
        box-shadow: 4px 4px 5px rgba(43, 43, 43, 0.4);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        transition: all 300ms ease-out;
    }
    .qqa_popup:not(.show) {
        z-index: inherit;
        opacity: 1;
        bottom: -100%;
    }
    .qqa_close {
        display: none;
    }

    .qqa_backdrop {
        display: none;
    }

    .qqa_open {
        display: none;
    }
}