
/*******************************
PC/SP 共通CSS
********************************/
.btn_area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_area ul {
    position: relative;
    display: flex;
}

.btn_area li {
    position: relative;
}

.btn_area button {
    position: relative;
    box-sizing: border-box;
    padding: 0;
}

.btn_area button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.btn_area .sort {
    display: flex;
    align-items: center;
}

.btn_area .sort button {
    font-size: 35px;
    font-weight: 700;
    color: #fff;
    border: 0;
    border-radius: 60px;
    background: #A49D46;
    width: 241px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
}

.btn_area .sort button::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 25px;
    margin-left: 16px;
    background: url(../images/racer/icon-sort.svg) no-repeat center;
    background-size: contain;
}

@media (hover: hover) and (pointer: fine) {
    .btn_area button:hover {
        cursor: pointer;
        opacity: 0.8;
    }

    .btn_area button.active:hover {
        cursor: default;
        opacity: 1;
    }
}

.btn_area .sort button.active {
    background: #0A4CFE;
}

.btn_area .ranking {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn_area .ranking button {
    overflow: hidden;
    width: 405px;
    height: 105px;
    font-size: 35px;
    font-weight: 700;
    color: #000;
    text-align: center;
    background: #F4E300;
    border: solid 5px #F1AA00;
    filter: drop-shadow( 5px 5px 0 #0A4CFE);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.1s;
}

.btn_area .ranking button span {
    z-index: 1;
    position: relative;
}
.btn_area .ranking button::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(100% 0, 0 0, 0 100%, 0 85%);
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    height: 112px;
}

.btn_area .ranking button::after {
    content: '▼';
    font-size: 33px;
    margin-left: 13px;
}

.btn_area .ranking button.active {
    color: #0A4CFE;
    background: #FFB502;
    border: solid 5px #FFB502;
    filter: none;
    transform: translate(5px, 5px);
}

/* 選手データ */
.data_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-inline: auto;
}

.data_list {
    background: #000;
    filter: drop-shadow(5px 5px 0 #0A4CFE);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    padding: 20px 24px;
}

.data_list img {
    width: 100%;
}

.data_list .name {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    margin-top: 5px;
}

.data_list .toban {
    font-weight: 700;
    margin-top: 5px;
}

.table_wrap {
    border-collapse: collapse;
    width: 240px;
    text-align: center;
    font-weight: 700;
    border: solid 2px #000;
    border-top: none;
    margin-top: 4px;
}

.table_wrap .t_head {
    color: #FFED00;
}

.table_wrap table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    vertical-align: middle;
}
.table_wrap th,
.table_wrap td {
    vertical-align: middle;
}

.table_wrap th,
.table_wrap .subheader td {
    color: #000;
    background: #FFED00;
}

.table_wrap td.data {
    background: #fff;
    width: calc(100% / 3);
    font-size: 32px;
    font-weight: 600;
    height: 35px;
    line-height: 40px;
    color: #000;
    /* padding-top: 8px; */
    letter-spacing: 1px;
    /* デザインはDIN Condensed（Mac/iOS標準搭載・Webフォント不可）。非搭載環境（Windows等）は字幅の近いSaira Extra Condensedで代替 */
    font-family: "DIN Condensed", "Saira Extra Condensed", sans-serif;
}

.table_wrap td:not(:last-child) {
    border-right: solid 3px #FFED00;
}


/***********************************************************************
「★PC版 CSS★」ブラウザの幅が751px以上ならここの記述が有効になる
**********************************************************************/
@media all and (min-width: 751px) {
    .racer .kv{
        pointer-events: none;
        width: 1470px;
        margin-top: 53px;
    }

    .subpage-head {
        position: relative;
        width: 100%;
        padding-top: 110px;
        padding-bottom: 52px;
        margin-top: 11px;
        overflow: hidden;
    }

    .subpage-head::before {
        position: absolute;
        top: 92px;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        content: "";
    }

    .subpage-head__text {
        position: relative;
        z-index: 1;
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
        margin-top: -20px;
        margin-bottom: -40px;
    }

    .subpage-head-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .sp-only {
        display: none;
    }

    .pc-only {
        display: block;
    }

    .racer #wrapper {
        background: linear-gradient(rgba(0, 0, 0, 0.2) 0 620px, transparent 620px), linear-gradient(transparent 610px, rgba(0, 0, 0, 0.65) 610px);
    }

    .btn_area {
        margin-top: 80px;
        gap: 30px;
    }

    .btn_area .sort {
        margin-top: 4px;
        gap: 30px;
    }

    .btn_area .sort button {
        font-size: 35px;
        border-radius: 60px;
        width: 241px;
        height: 90px;
    }

    .btn_area .sort button::after {
        width: 40px;
        height: 25px;
        margin-left: 16px;
    }

    .btn_area .ranking {
        gap: 24px;
    }

    .btn_area .ranking button {
        width: 405px;
        height: 105px;
        font-size: 35px;
        border: solid 5px #F1AA00;
        filter: drop-shadow( 5px 5px 0 #0A4CFE);
        border-radius: 60px;
    }

    .btn_area .ranking button::before {
        width: 360px;
        height: 112px;
    }

    .btn_area .ranking button::after {
        font-size: 33px;
        margin-left: 13px;
    }

    .btn_area .ranking button.active {
        border: solid 5px #FFB502;
        transform: translate(5px, 5px);
    }

    .racer_wrap {
        padding-top: 67px;
    }

    .data_wrap {
        width: 1800px;
    }

    .data_list .toban {
        font-size: 20px;
    }

    .table_wrap .t_head {
        font-size: 16px;
    }

    .table_wrap th,
    .table_wrap .subheader td {
        font-size: 16px;
    }
}


/***********************************************************************
「★SP版 CSS★」ブラウザの幅が750px以下ならここの記述が有効になる
**********************************************************************/
@media only all and (max-width: 750px) {
    .racer .kv {
        width: 674px;
        left: 36px;
    }

    .subpage-head {
        position: relative;
        width: 100%;
        padding-top: 80px;
        padding-bottom: 60px;
        margin-top: -41px;
        overflow: hidden;
    }

    .subpage-head::before {
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        content: "";
    }

    .subpage-head__text {
        position: relative;
        z-index: 1;
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.5;
        text-align: center;
        margin-top: -30px;
        margin-bottom: -50px;
    }

    .subpage-head-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
    }

    .sp-only {
        display: block;
    }

    .pc-only {
        display: none;
    }

    .racer #wrapper {
        background: linear-gradient(rgba(0, 0, 0, 0.2) 0 474px, rgba(0, 0, 0, 0.65) 474px);
    }

    .btn_area {
        margin-top: 80px;
        gap: 24px;
        flex-direction: column;
    }

    .btn_area .sort {
        margin-top: 0;
        gap: 32px;
    }

    .btn_area .sort button {
        font-size: 29px;
        border-radius: 50px;
        width: 200px;
        height: 75px;
    }

    .btn_area .sort button::after {
        width: 33px;
        height: 21px;
        margin-left: 13px;
    }

    .btn_area .ranking {
        gap: 10px;
    }

    .btn_area .ranking button {
        width: 217px;
        height: 86px;
        font-size: 29px;
        border-radius: 17px;
        border: solid 4px #F1AA00;
        filter: drop-shadow( 4px 4px 0 #0A4CFE);
    }

    .btn_area .ranking button::before {
        width: 193px;
        height: 93px;
    }

    .btn_area .ranking button::after {
        font-size: 27px;
        margin-left: 6px;
    }

    .btn_area .ranking button.active {
        border: solid 4px #FFB502;
        transform: translate(4px, 4px);
    }

    .racer_wrap {
        padding-top: 64px;
    }

    .data_wrap {
        width: 670px;
    }

    .data_list {
        width: 320px;
    }

    .data_list .toban {
        font-size: 24px;
    }

    .table_wrap {
        width: 270px;
    }

    .table_wrap .t_head {
        font-size: 24px;
    }

    .table_wrap th,
    .table_wrap .subheader td {
        font-size: 24px;
    }

    .table_wrap td.data {
        height: 40px;
        line-height: 45px;
    }
}
