/* racer.css */

ul .no {
  pointer-events: none;
  opacity: 0.3;
}

#racer {
    position: relative;
}

.racer .bg {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: url(../images/racer_bg.png) no-repeat top left, linear-gradient(130deg, #49BDFF, #3558FF);
    background-size: cover;
    top: 0;
    z-index: -1;
    transform: translateZ(0);
}

#racer * {
    font-family: 'M PLUS 1p';
}

.racer_wrap {
    display: flex;
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

.racer_wrap h2 {
    background: url(../images/racer_tit.png) no-repeat center;
    background-size: contain;
    width: 438px;
    height: 217px;
    margin-bottom: -30px;
    position: relative;
}
.racer_wrap h2::after {
    content: '';
    display: inline-block;
    width: calc(100% + 100px);
    border-bottom: solid 1px #DDFF00;
    position: absolute;
    left: -45px;
    bottom: 60px;
}

.racer_wrap .btn_area {
    width: 445px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.racer_wrap .btn_area ul {
    position: relative;
}

.racer_wrap .btn_area li {
    /* transition: color 0.3s; */
    position: relative;
}

.racer_wrap .sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.racer_wrap .sort,
.racer_wrap .ranking {
    width: 100%;
}
.racer_wrap .sort li {
    font-size: 25px;
    font-weight: 700;
    color: #fff;
    border-radius: 35px;
    background: #016BBC80;
    width: 216px;
    height: 56px;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.racer_wrap .sort li::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 16px;
    padding-left: 12px;
    background: url(../images/racer_sort_icon.svg) no-repeat center;
    background-size: contain;
}
.racer_wrap .sort li.active {
    color: #000;
    background: #DDFF00;
}
.racer_wrap .sort li.active::after {
    content: '';
    background: url(../images/racer_sort_icon_on.svg) no-repeat center;
    background-size: contain;
}

.racer_wrap .ranking li {
    height: 48px;
    font-size: 30px;
    font-weight: 700;
    color: #000;
    text-align: center;
    background: #F1F1F1;
    padding-top: 2px;
    border: solid 2px #000;
    filter: drop-shadow( 0 3px 0 #000);
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.racer_wrap .ranking li::after {
    content: '▼';
    font-size: 20px;
    padding-left: 5px;
}
.racer_wrap .ranking li.active {
    height: 48px;
    font-size: 30px;
    font-weight: 700;
    color: #DDFF00;
    background: #1C23FF;
    padding-top: 6px;
    border: none;
    filter: none;
    box-shadow: inset 6px 4px 0px #000;
}

.racer_wrap p {
    font-size: 18px;
    color: #fff;
    width: 100%;
}


/* 選手データ */
.racer_wrap .data_wrap {
    display: flex;
    flex-wrap: wrap;
}

.racer_wrap .data_list {
    border: solid 4px #000;
    background: linear-gradient(#DDFF00 39%, #DDFF0000 39%) , url(../images/racer_dia.svg) repeat center bottom,#DDFF00;
    filter: drop-shadow(0 9px 0 #0E03AD);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 266px;
    padding: 7px 0;
    margin: 0 14px 24px 0;
}

.racer_wrap h2.mov,
.racer_wrap .data_list.mov {
    animation: 0.5s ease 0s 1 normal both running fade-in-bottom;
}
.racer_wrap h2.mov::after {
    animation-delay: 1s;
    animation: 0.5s ease-in scale-width both;
}

.racer_wrap .data_list img {
    width: 250px;
    height: 173px;
}

.racer_wrap .data_list .name {
    color: #1C23FF;
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0 -7px;
}

.racer_wrap .data_list .toban {
    font-size: 18px;
    font-weight: 700;
}
.racer_wrap .data_list .toban span {
    font-size: 14px;
}

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

.table_wrap .t_head {
    width: 100%;
    height: 23px;
    padding-top: 2px;
    background: url(../images/racer_table_l.svg) no-repeat center left, url(../images/racer_table_r.svg) no-repeat center right, #000;
    background-size: contain;
    color: #DDFF00;
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.table_wrap .t_head span {
    font-size: 14px;
}

.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: #fff;
    background: #1C23FF;
    font-size: 15px;
    height: 25px;
}

.table_wrap td.data {
    background: #fff;
    width: calc(100% / 3);
    font-family: 'Roboto' !important;
    font-size: 23px;
    font-weight: 900;
    height: 33px;
}
.table_wrap td.data span {
    font-size: 16px;
    padding-left: 2px;
}

.table_wrap td:not(:last-child) {
    border-right: solid 2px #1C23FF;
}


/***********************************************************************
「★PC版 CSS★」ブラウザの幅が751px以上ならここの記述が有効になる
**********************************************************************/
@media all and (min-width: 751px) {

    .racer_wrap {
        padding: 70px 132px 0;
    }

    .racer_wrap .btn_area {
        margin-top: 40px;
        margin-right: 45px;
    }

    .racer_wrap .btn_area li:hover {
        cursor: pointer;
    }
    .racer_wrap .btn_area li.active:hover {
        cursor: default;
    }
    .racer_wrap .btn_area .sort li:hover::before {
        content: '';
        display: inline-block;
        width: 100%;
        height: 100%;
        background: #DDFF0040;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 35px;
    }
    .racer_wrap .btn_area .ranking li:hover::before {
        content: '';
        display: inline-block;
        width: 100%;
        height: 100%;
        background: #1C23FF40;
        position: absolute;
        top: 0;
        left: 0;
    }
    .racer_wrap .btn_area li.active:hover::before {
        content: '';
        background: none;
    }

    
    .data_wrap {
        width: 1170px;
        height: 820px;
        overflow-y: scroll;
    }

    .data_wrap::-webkit-scrollbar {
        background: #ffffff50;
        width: 14px;
        border-radius: 10px;
    }
    .data_wrap::-webkit-scrollbar-thumb {
        background: #fff;
        border-radius: 10px;
        cursor: pointer;
    }

}


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

/* .racer {
    padding-top: 115px;
} */

.racer .bg {
    background: url(../images/racer_bg_sp.png) no-repeat top center, linear-gradient(100deg, #4DCFFF, #0E92FF);
    background-size: cover;
}

#racer .racer_wrap {
    flex-direction: column;
    align-items: center;
    padding: 150px 36px 200px;
    overflow-x: hidden;
}

.racer_wrap h2 {
    width: 452px;
    height: 224px;
    margin: 0 auto -35px;
}
.racer_wrap h2::after {
    width: 750px;
    left: -150px;
}

.racer_wrap .btn_area {
    width: 600px;
    /* display: flex;
    flex-direction: column;
    align-items: center; */
}

.racer_wrap .sort {
    margin-bottom: 26px;
}

.racer_wrap .sort li {
    width: 290px;
    height: 92px;
    border-radius: 46px;
    font-size: 41px;
}
.racer_wrap .sort li::after {
    width: 34px;
    height: 23px;
}

.racer_wrap .ranking li {
    font-size: 44px;
    width: calc(100% - 4px);
    height: 72px;
    padding-top: 6px;
}
.racer_wrap .ranking li.active {
    font-size: 44px;
    width: 100%;
    height: 72px;
    padding-top: 10px;
}
.racer_wrap .ranking li::after {
    font-size: 30px;
    padding-left: 10px;
}

.racer_wrap p {
    font-size: 26px;
    margin: 20px 0 17px;
    position: relative;
    left: -40px;
}

/* 選手データ */
.racer_wrap .data_wrap {
    justify-content: space-between;
}

.racer_wrap .data_list {
    width: 320px;
}

.racer_wrap .data_list:nth-child(even) {
    margin-right: 0;
}

.racer_wrap .data_list img {
    width: 300px;
    height: 207px;
}

.racer_wrap .data_list .name {
    font-size: 36px;
}
.racer_wrap .data_list .toban {
    font-size: 21px;
}
.racer_wrap .data_list .toban span {
    font-size: 16px;
}

.racer_wrap .table_wrap {
    width: 290px;
}
.table_wrap .t_head {
    height: 28px;
    font-size: 19px;
}
.table_wrap .t_head span {
    font-size: 16px;
}

.table_wrap th,
.table_wrap .subheader td {
    font-size: 17px;
    height: 25px;
}

.table_wrap td.data {
    font-size: 26px;
    height: 35px;
}
.table_wrap td.data span {
    font-size: 14px;
}


}

/***********************************************************************
Key frame
**********************************************************************/
.anime {
    opacity: 0;
}

@keyframes fade-in-bottom {
    0% {
    transform: translateY(50px);
    opacity: 0;
    }
    100% {
    transform: translateY(0px);
    opacity: 1;
    }
}

@keyframes scale-width {
    0% {
        transform: scaleX(0);
        transform-origin: center;
    }
    100% {
        transform: scaleX(1);
        transform-origin: center;
    }
}