.sort_table .fil_ul {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
}

.sort_table .fil_ul li {
    font-size: 12px;
    padding: 0px 5px;
    border: 2px solid #ebebeb;
    margin: 2px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    color: #7c7b7b;
    text-align: center;
}

.sort_table .fil_ul li[data-target="type"] {
    width: calc(100% / 3 - 4px);
    padding: 5px 0px;
}
.sort_table .fil_ul li[data-target="le_tag"] {
    width: calc(100% / 3 - 4px);
}
.sort_table .fil_ul li[data-target="gene"] {
    width: calc(100% / 6 - 4px);
}
.sort_table .fil_ul li[data-target="sp_tag"],
.sort_table .fil_ul li[data-target="other"] {
    width: calc(100% / 5 - 4px);
}
.sort_table .fil_ul li[data-checked="1"] {
    border: 2px solid #f37a62;
    color: #fff;
    background: linear-gradient(135deg, #f97a69, #fb8641);
}
.sort_table .fil_ul li[data-checked="0"] img {
    opacity: 0.6;
    filter: grayscale(0.8);
}
/* 伝説タグ・特殊タグで「not」「すべて表示」選択時の非活性 */
.sort_table .fil_ul li.fil_li_inactive {
    pointer-events: none;
    opacity: 0.8;
    cursor: default;
    background: #e9e9e9;
    border: 2px solid #c9c6c6;
    color: #a0a0a0;
}
.sort_table .fil_ul li.fil_li_inactive img {
    opacity: 0.5;
    filter: grayscale(1);
}
.sort_table input[type='radio'].sort_radio_box {
    display: none;
}
.sort_table th div label {
    display: inline-flex;
    border-radius: 20px;
    border: 2px solid #dcdcdc;
    background-color: #fafafa;
    padding: 2px 4px;
    font-size: 10px;
    width: 70px;
    justify-content: center;
    cursor: pointer;
}
.sort_table th div input:checked + label {
    background-color: #fff !important;
    border: 2px solid #FE3600 !important;
}

.sort_table .fil_ul li[data-disp="0"] {
    display: none;
}

.post-content table.result_table tbody[data-disp="0"] {
    display: none;
}

/* ソート用 li（図鑑No・種族値など） */
.sort_table_ad .sort_ad_fil_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sort_table_ad .sort_ad_fil_ul li {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 2px;
    cursor: pointer;
    color: #7c7b7b;
}
.sort_table_ad .sort_ad_fil_ul li:hover {
    border-color: #ccc;
    color: #333;
}
.sort_table_ad .sort_ad_fil_ul li.sort_active {
    color: #f37a62;
    font-weight: bold;
}

.sort_radio2_wrapper {
    text-align: left;
    margin-top: 8px;
}
.sort_radio2_wrapper .sort_radio2_item {
    margin: 4px 0px;
}

.sort_radio2_wrapper .sort_radio2_item label {
    font-weight: bold;
    color: #767676;
    cursor: pointer;
}
.sort_radio2_wrapper .sort_radio2_item input:checked + label {
    color: #0164da;
}