.ranking_table {
    position:relative;
    width:100%;
    text-align:left;
}

.ranking_table th {
    font-size:12px;
    font-weight:300;
    border-bottom:1px solid #D3D3D3;
    padding:1em 0 1em 0.3em;
}

.ranking_table td {
    border-bottom: 1px solid #D3D3D3;
    padding: 1em 0 1em 0.3em;
    font-size:16px;
    font-weight:700;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
}

.ranking_table .table_img {
    display: flex;
    flex-direction: row;
    align-items: center;    
    min-width: 0;
}

.ranking_table .table_img em {
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
    overflow: hidden;
}

.ranking_table td img {
    width:100%;
    display: inline-block;
    vertical-align: middle;
    margin-right:0.5em;
}

.ranking_table th:nth-of-type(1),
.ranking_table td:nth-of-type(1) {
    padding:1em;
}
.ranking_table td:nth-of-type(2) img {
    max-width:40px;
}

.ranking_table td:nth-of-type(4) img {
    max-width: 28px;
}

aside {
    position: absolute;
    top: 4em;
    right: -200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}
aside a img {
    max-width:200px;
    height: auto;
}
.fixed {
    position: fixed; /* 스크롤에 따라 변경될 위치 고정 방식 */
    top: 200px; /* 화면 상단에 고정 */
    right:155px;
}
/****************************************
   media
*****************************************/

@media all and (max-width:1620px) {
    .sub_content {
        padding: 2em 0;
    }
    aside {
        position:relative;
        top:0;
        right:0;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-bottom:2em;
    }
    aside a img {
        width:100%;
    }
}

@media all and (max-width:820px) {
    .search_box .search_input {
        width: 150px;
    }
}

@media all and (max-width:750px) {
    .sub_content_condition {
        border: 0;
        background: #F1F1F1;
    }
    .search_box, aside {
        display:none;
     }
    .select_box {
        width:100%;
    }
    .gender_box, .age_box, .tier_box, .region_box {
        width:calc(100% / 2 - 10px);
    }
    .tui-select-box-input {
        width:100%;
    }
    .tui-select-box-dropdown {
        width: 100%;
    }

    .period_box .tui-select-box-input {
        min-width: auto;
    }
    /* .ranking_table th:nth-of-type(4),
    .ranking_table th:nth-of-type(6),
    .ranking_table th:nth-of-type(7),
    .ranking_table td:nth-of-type(4),
    .ranking_table td:nth-of-type(6),
    .ranking_table td:nth-of-type(7) {
        display:none;
    } */
    .ranking_table th:nth-of-type(7),
    .ranking_table td:nth-of-type(7) {
        display: none;
    }
    .ranking_table th,
    .ranking_table td {
        width:20%;
    }
    .ranking_table th:nth-of-type(1),
    .ranking_table td:nth-of-type(1),
    .ranking_table th:nth-of-type(6),
    .ranking_table td:nth-of-type(6) {
        width:10%;
    }
    .paging_box {
        padding: 2em 0 1em 0;
    }
}
@media all and (max-width:640px) {
    .ranking_table td {
        font-size: 14px;
    }
    .ranking_table td:nth-of-type(2) img {
        max-width: 40px;
    }
    .ranking_table td:nth-of-type(4) img {
        max-width: 24px;
    }
}
@media all and (max-width:570px) {
    .select_box {
        gap: 10px;
        flex-wrap: wrap;
    }
    .gender_box, .age_box, .tier_box, .region_box {
        width:calc(100% / 2 - 10px);
    }
    .ranking_table th:nth-of-type(4),
    .ranking_table td:nth-of-type(4) {
        display:none;
    } 
    .ranking_table th,
    .ranking_table td {
        width: 22%;
        max-width:100px;
    }
    .ranking_table th:nth-of-type(2),
    .ranking_table td:nth-of-type(2) {
        width: 36%;
    }
}
@media all and (max-width:440px) {
    .ranking_table th,
    .ranking_table td {
        width: 25%;
        max-width: 50px;
    }
    .ranking_table th:nth-of-type(1),
    .ranking_table td:nth-of-type(1){
        width: 5%;
        padding:1em 0.5em;
    }
    .ranking_table th:nth-of-type(6),
    .ranking_table td:nth-of-type(6) {
        display:none;
    }
    .ranking_table th:nth-of-type(2),
    .ranking_table td:nth-of-type(2) {
        width: 45%;
    }
}
@media (max-width: 320px) {
    .ranking_table td:nth-of-type(2) img {
        max-width: 25px;
    }
}