.bestTopics_main {
    background-color: var(--bg-color1);
    color: #FFF;
}

/* マンガ・タテコミ・ノベルの切り替えボタン */
.mediumtab_wrap {
    text-align: center;
    padding: 12px 5px;
    display: flex;
    gap: 8px;
    justify-content: center;
    background: var(--bg-color1);
}

.mediumtab_btn_on,
.mediumtab_btn_off {
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-width: 70px;
    text-align: center;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    height: 30px;
    padding: 0 8px;
    border-radius: 16px;
    font-size: 12px;
    display: flex;
}

.mediumtab_btn_off {
    background: rgba(255, 236, 238, 0.20);
    color: #fff;
}

.mediumtab_btn_on {
    background-color: var(--medium-anchor-on-bg-color);
    color: var(--bg-color1);
}

/* トップ画像 */
.best_banner_wrap {
    background-color: var(--bg-color1);
    margin-bottom: 0;
}

.best_banner_wrap img {
    width: 100%;
}

.best_banner_wrap_sp {
    display: block;
}

.best_banner_wrap_pc {
    display: none;
}

/* メインコンテンツのラッパー */
.bestTopics_wrapper {
    background-color: var(--bg-color2);
    max-width: 990px;
    margin: 0 auto;
}

/* マンガジャンルの切り替えアンカー*/
.genreAnchor {
    display: flex;
    align-items: flex-start;
}

.genreAnchor a {
    font-size: 12px;
    color: var(--genre-anchor-text-color);
    font-weight: bold;
    background: var(--genre-anchor-bg_color);
    flex: 1 0 auto;
    text-align: center;
    padding: 12px 10px;
}

.genreAnchor .active {
    background: var(--genre-anchor-on-bg_color);
    color: var(--genre-anchor-on-text_color);
}

.genreAnchor_wrap {
    background: var(--genre-anchor-bg-color);
}

/* マンガジャンルと新作・総合ボタンを固定 */
.page_anchor_wrap {
    position: sticky;
    top: 53px;
    z-index: 12;
}

body#frame_iosapp .page_anchor_wrap {
    top: var(--header-h);
}

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

/* 1~3位共通 */
.firstToThird-card {
    margin: auto;
    border-radius: 16px;
    box-shadow: 0px 2px 24px 0px rgba(0, 0, 0, 0.24);
}

.rank_img_big {
    height: 64px;
    margin: 0 auto;
    display: block;
}

.firstToThird-card_title {
    text-align: left;
    font-size: 16px;
}

.author-name {
    color: rgba(255, 255, 255, 0.70);
}

.firstToThird-card_author {
    font-size: 12px;
    font-weight: 600;
    font-weight: 300;
    font-size: 12px;
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.70);
}

.firstToThird_coverimg {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: auto;
    border-radius: 2px;
    box-shadow: 0px 2px 24px 0px rgba(0, 0, 0, 0.24);
}

.section-title {
    width: 290px;
    margin: 32px auto 4px auto;
    display: block;
}

.section-sub-title {
    color: #FFE91F;
    font-size: 12px;
    font-weight: bold;
    line-height: 140%;
    text-align: center;
    margin-bottom: 16px;
}

.nav_list {
    display: flex;
    list-style: none;
    padding: 0;
    width: 100%;
    gap: 1px;
    background-color: var(--bg-color2);
}

.nav_list li {
    flex-basis: 100%;
    display: inline-block;
}

.content {
    padding-top: 16px;
}

.floor-desctext {
    color: var(--white);
    font-size: 13px;
    line-height: 160%;
}

.viewmore_btn {
    color: var(--white);
    font-size: 13px;
    line-height: 160%;
    text-align: center;
    display: block;
    padding-top: 4px;
    font-weight: normal;
}

.floor-desc_text {
    margin-bottom: 0;
    padding-top: 12px;
}

/* 1位 */
.first-wrapper {
    margin: 0 16px;
}

.first-container {
    padding-top: 36px;
    margin-top: -20px;
}

.first-container .cover-img-wrapper {
    background: var(--rank-bg-img-color);
    border-radius: 16px 16px 0 0;
}

.ranking_wrapper {
    max-width: 912px;
    margin: 20px auto 0;
    padding: 50px 16px 0;
}
.x_2025best .content{
    padding-top: 0px;
    margin-top: 16px;
}
.ranking_wrapper.mobile-view {
    max-width: 458px;
    margin: auto;
}
/* 4位以降 */
.rest-wrapper {
    margin: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
}

/* スマホ：3列表示 */
.rest-wrapper .restNumber_container {
    width: calc(100% / 3 - 8px);
}

.rank_img {
    height: 48px;
    margin: 16px auto 4px auto;
    display: block;
}

.restNumber_container {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: calc(100% / 2 - 6px);
}

.restNumber_container h2 {
    color: #FFF;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    text-align: left;
    font-weight: 300;
}

.restNumber_container p {
    font-weight: 300;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
    font-size: 10px;
    text-align: left;
}

.number_desc {
    padding: 16px 24px;
    background-color: var(--rank-bg-color);
    border-radius: 0 0 16px 16px;

}

.number_desc p {
    font-weight: 300;
    font-size: 12px;
    text-align: left;
}

/* 年間ランキングとは？ */
.nenkanRank_toha_wrapper {
    background: var(--rank-bg-color);
    border-radius: 16px 16px 0px 0px;
    padding: 0 32px;
    text-align: center;
    margin-top: 64px;
}

.nenkanRank_toha_wrapper img {
    width: 100%;
    max-width: 580px;
}

.nenkanRank_toha_wrapper p {
    color: #FFF;
    font-size: 13px;
    font-weight: 600px;
}

.other-post_wrapper {
    border-bottom: 2px solid var(--bg-color2);
    padding: 32px 0;
}
.other-post_wrapper:last-child{
    border-bottom: none;
}

.other-post_wrapper h3 {
    font-size: var(--size-headline-large);
    padding-bottom: 16px;
}

.label_wrap {
    display: flex;
    column-gap: 8px;
    row-gap: 16px;
    flex-flow: wrap;
    justify-content: flex-start;
    margin: 0 auto;
}

.label_wrap li {
    width: calc(50% - 8px);
}

.label_wrap li a img {
    border-radius: 4px;
}

.nenkanRank_toha_container {
    max-width: 782px;
    margin: 15px auto;
    text-align: center;
}

.nenkanRank_toha_container img {
    height: 30px;
    margin-bottom: 4px;
}

.nenkanRank_toha_container p {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: bold;
    line-height: 160%;
    max-width: 311px;
    margin: auto;
}

.nenkanRank_toha_container span {
    color: #FFF;
    font-size: 11px;
    line-height: 160%;
    font-weight: normal;
}

.rank-toggle-wrap {
    text-align: center;
    position: relative;
    z-index: 1;
}

.rank-toggle-bg {
    display: inline-flex;
    color: #FFF;
    text-align: center;
    font-size: var(--size-headline-large, 18px);
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    border-radius: 60px;
    background: var(--toggle_bg);
    margin: auto;
}

.toggle-on {
    border-radius: 60px;
    background: var(--rank-bg-color);
    padding: 4px 16px;
}

.toggle-off {
    border-radius: 60px;
    padding: 4px 16px;
    width: auto;
    height: auto;
    display: block;
    box-sizing: border-box;
    color: var(--toggle_text);
}
.first-card {
    max-width: 300px;
}
.rank-card .firstToThird_coverimg{
    width: auto!important;
    height: 171px!important;
}

.overall-ranking-section,
.new-ranking-section {
    margin: 0;
}

.rank-card {
    border-radius: 8px;
    background: var(--rank-bg-color);
    max-width: 142px;
    box-sizing: border-box;
}
.rank-card

.rank-carda {
    line-height: 1;
}

.rank-card__content {
    padding: 12px;
}

.genre-label {
    color: #FFF;
    font-size: 16px;
    font-weight: bold;
    line-height: 140%;
    margin-bottom: 2px;
}

.rank-type-label {
    margin-bottom: 2px;
}

.ranking-item-arrow-wrapper {
    text-align: center;
    border-radius: 0 0 8px 8px;
    background: var(--rank-bg-color);
    border-top: var(--bg-color2) 2px solid;
    padding: 12px;
    line-height: 1;
}

.ranking-item-arrow-wrapper img {
    height: 10px;
}

.best-wrapper .swiper-slide {
    /* padding-right: 12px; */
    width: auto;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-direction: column;
    margin: auto;
}

.best-wrapper-tate {
    max-width: 450px;
    margin: auto;
}

.best-wrapper-tate .swiper-slide {
    flex-direction: column;
}

.rank-card__title {
    overflow: hidden;
    color: var(--white);
    text-overflow: ellipsis;
    font-size: 12px;
    font-style: normal;
    line-height: 120%;
    white-space: nowrap;
    align-self: stretch;
    font-weight: normal;
    padding: 4px 0 0;
}

.ranking-header-wrap {
    text-align: center;
    padding-top: 40px;
    margin-top: -40px;
}

.ranking-header-wrap-all {
    margin-bottom: 16px;
    text-align: center;
}

.ranking-header-img {
    height: 60px;
    margin: auto auto 16px;
}

.rank-badge-wrapper {
    text-align: left;
    line-height: 0;
}

.rank-badge-wrapper img {
    height: 24px;
    margin-bottom: 2px;
}

.legend-item {
    display: flex;
    color: #FFE91F;
    font-size: 12px;
    font-weight: bold;
    line-height: 140%;
    align-items: center;
    justify-content: center;
}

.legend-item img {
    height: 18px;
}

.nenkanRank_toha_container p span {
    padding-top: 4px;
}

.pc-view {
    display: none;
}

.mobile-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 296px;
    margin: auto;
}

.legend-section-wrap {
    margin-bottom: 16px;
}

.top-img {
    text-align: center;
    padding-bottom: 16px;
}

.top-img img {
    height: 80px;
}

.mediumtab_wrap a br {
    display: none;
}

.top-content {
    padding-top: 80px;
}

.top-mobile-slide {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 458px;
}

.one-slide-inner {
    display: flex;
    gap: 12px;
    max-width: 300px;
    flex-wrap: wrap;
    justify-content: center;
}
.v_2025best .first-container,
.x_2025best .first-container{
    padding-top: 6px;
    margin-top: 10px;
}
.x_2025best .ranking_wrapper{
    margin-top: 60px;
    padding-top: 20px;
}
.scroll__target.content-one{
    margin-top: -30px;
    padding-top: 30px;
}
.scroll__target.content-one .ranking_wrapper{
    padding-top: 16px;
}

@media screen and (max-width:374px) {
    .ranking_wrapper{
            padding: 50px 0 0;
    }
    .mediumtab_wrap a br {
        display: block;
    }

    .mediumtab_wrap .c-btn_small {
        max-width: 70px !important;
    }
}

@media screen and (min-width:600px) {
    .one-slide-inner {
        max-width: none;
    }
    /* tab用 */
    .top-mobile-slide {
        max-width: fit-content;
    }

    .mobile-view {
        display: none;
    }

    .pc-view {
        display: block;
    }
    .nenkanRank_toha_container{
        margin-top: 30px;
    }

    .nenkanRank_toha_container p {
        max-width: none;
    }

    .rest-wrapper {
        padding: 0 32px;
    }

    .first-wrapper {
        display: flex;
        gap: 13px;
        flex-wrap: wrap;
        margin: 0 32px;
        justify-content: center;
    }

    .first-wrapper .first-container:first-child {
        width: 100%;
    }

    .first-card {
        margin: auto;
    }

    .secondToThird-card {
        margin: 0;
    }

    .sougou-shinsaku_tab {
        padding-bottom: 61px;
    }

    .secondToThird-container {
        max-width: calc(50% - 16px);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        flex: 1;
        margin: auto;
        margin-right: 0;
        margin: 0;
    }

    .banner_sp {
        display: none;
    }

    .banner_pc {
        display: block;
    }

    .firstToThird_cover {
        margin: 0;
    }

    .firstToThird_cover img {
        margin-bottom: 0;
    }

    .secondToThird-container {
        width: 100%;
    }

    .rest-wrapper .restNumber_container {
        width: calc(100% / 4 - 8px);
    }

    .other-rank_wrapper,
    .past-rank_wrapper {
        display: flex;
        column-gap: 16px;
        row-gap: 16px;
    }

    .other-post_wrapper h3 {
        padding-bottom: 32px;
    }

    .label_wrap {
        column-gap: 16px;
        row-gap: 32px;
    }

    .first-wrapper .first-container:first-child {
        width: 100%;
    }

    /* rest-wrapper：4列表示 */
    .rest-wrapper {
        gap: 8px;
    }

}


@media screen and (min-width:1080px) {
    .first-wrapper .first-container:first-child {
        width: auto;
    }

    .secondToThird-container {
        flex: 1;
        max-width: calc(50% - 10px);
    }

    .rest-wrapper .restNumber_container {
        width: calc(100% / 6 - 8px);
    }
}