
#q-and-a{
    section:not(:last-of-type) {
        margin-bottom: 3rem!important;
    }
}
.q-and-a-h3 {
    display: block;
    text-align: left;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.05rem;
    color: #005BAB;
    margin-bottom: 1rem;
}

/* 検索・カテゴリ一覧共通 */
.search_category--wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 1.5rem;
    column-gap: 5rem;
}

.search_category_content{
    min-width: 300px;
    h3{
        margin-bottom: 0!important;
    }
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
}

/* カテゴリー一覧 */
.category_list{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
    li {
        display: flex;
        align-items: center;
        &:not(:last-child)::after {
            content: "|";
            margin-left: 0.5rem;
            color: #5AC0D1;
            font-weight: 500;
        }
        a{
            color: #5AC0D1;
            font-weight: 500;
            font-size: 1.125rem;
        }
    }
}

/* 検索 */
.faq-search-form{
    width: min(100%, 500px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 0.0625rem solid #ccc;
    border-radius: 624.9375rem;
    overflow: hidden;
    height: 3rem;
    
    input {
        flex: 1;
        border: none;
        height: 100%;
        padding: 0 0.5rem 0 1.5rem;
        font-size: 1rem;
        color: #333;
        &:focus {
            outline: none;
        }
        &::placeholder {
            color: #ccc;
        }
    }

    button {
        min-width: 3.75rem;
        height: 100%;
        background: #5AC0D1;
        font-size: 1rem;
        color: #fff;
        border: none;
        padding-right: 0.6rem;
        padding-left: 0.3rem;
        cursor: pointer;
        transition: all 0.3s ease-in-out;
    }
}

.faq-search-clear{
    color: #005BAB;
    text-decoration: underline;
    margin-left: 1rem;
}

/* 検索結果 */
.search-results-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 1rem;
    .q-and-a-h3 {
        margin-bottom: 0!important;
    }
}

.search-result-count {
    display: inline-block;
    margin-left: 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    span {
        color: #5AC0D1;
    }
}

.faq-search-results{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-search-results #ewd-ufaq-jquery-ajax-search {
    display: none;
}

/* 質問・回答部分 */
.ewd-ufaq-faqs{
    border-radius: 0.8rem;
    overflow: hidden;
}

.ewd-ufaq-faq-category {
    margin-bottom: 0 !important;
    &:not(:last-child) .ewd-ufaq-faq-category-title{
        border-bottom: 0.25rem solid #31B0C5;
    }

}

.ewd-ufaq-category-tab-selected {
    border-bottom: none!important;
}

.ewd-ufaq-faq-category-title {
    background-color: #5AC0D1;
    position: relative;
    width: 100%;
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    padding: 1.25rem;
    h3 {
        font-weight: 700;
        font-size: 1.25rem;
    }
}
.ewd-ufaq-faq-post{
    p{
        font-weight: 700;
        color: #707070;
    }
}

.ewd-ufaq-faq-category-inner {
    margin-bottom: 0 !important;
    padding: 1.25rem 3rem;
}

.ewd-ufaq-faq-div{
    padding: 1rem 0!important;
    &:not(:first-child) {
        border-top: 0.25rem dotted #31B0C5;
    }

}

a.ewd-ufaq-post-margin{
    display: flex;
    gap: 0.5rem;
}

.ewd-ufaq-faq-title-text {
    h4{
        font-weight: 700;
        font-size: 1.125rem;
        color: #707070;
    }
}
.ewd-ufaq-post-margin-symbol{
    margin: 0!important;
    padding: 0!important;
    display: flex;
    align-items: center;
    span {
        font-weight: 700;
        font-size: 1.125rem!important;
        color: #707070;
        display: block;
        line-height: 1;
    }
}
.ewd-ufaq-faq-body {
    padding-left: 2rem!important;
    padding-right: 0!important;
    padding-bottom: 0!important;
}

.ewd-ufaq-post-margin{
    p{
        line-height: 1.4;
    }
}

/* 1件ヒット時のカテゴリ帯表示 */
.single-result-category {
    .ewd-ufaq-faq-category-title{
        border-radius: 0.8rem 0.8rem 0 0;
        overflow: hidden;
        border-bottom: none!important;  
    }
    .ewd-ufaq-faqs{
        margin-bottom: 0 !important;
        padding: 1.25rem 3rem;
    }
}

/* お問い合わせ */
.contact--button {
    color: #005BAB;
    text-decoration: underline;
}