/* =====================================
   症例一覧 絞り込み・タグ表示 共通CSS
   case_filter.js とセットで使用
===================================== */
.case_filter {
    margin: 20px auto 35px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e5d6d6;
    box-sizing: border-box;
    text-align: center;
}

.case_filter_title {
    margin: 0 0 15px;
    color: #8e8384;
    font-size: 120%;
    font-weight: bold;
}

.case_filter_btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.case_filter_btn button {
    border: 1px solid #e674a1;
    background: #fff;
    color: #e674a1;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
}

.case_filter_btn button:hover,
.case_filter_btn button.active {
    background: #e674a1;
    color: #fff;
}

.case_filter_count {
    margin: 12px 0 0;
    color: #777;
    font-size: 90%;
}

.case_item.case_hidden,
.case_filter_extra.case_hidden {
    display: none !important;
}

/* 症例タグ */
.case_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 5px 0 10px;
}

.case_tags span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #e6c6d1;
    border-radius: 9999px;
    background: #f7eef1;
    color: #8e596b;
    font-size: 85%;
    line-height: 1.4;
}

.case_tags .case_tag_treatment {
    border-color: #bfdde8;
    background: #eef7fa;
    color: #39798f;
}

.case_tags .case_tag_difficult {
    border-color: #e6c27a;
    background: #fff4df;
    color: #8a6420;
}

@media screen and (max-width:640px) {
    .case_filter {
        padding: 15px 8px;
    }

    .case_filter_btn {
        gap: 6px;
    }

    .case_filter_btn button {
        padding: 7px 10px;
        font-size: 13px;
    }

    .case_tags {
        gap: 5px;
    }

    .case_tags span {
        padding: 3px 8px;
        font-size: 78%;
    }
}
