/* dream.css */
body {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%; /* Safari */
}
#dream {
    position: relative;
}
#dream * {
    font-family: 'M PLUS 1p';
    box-sizing: border-box;
}






.dream .bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url(../images/racer_bg.png) no-repeat top left, linear-gradient(90deg, #FD93C4, #FF6B86);
    background-size: cover;
    top: 0;
    z-index: -1;
    transform: translateZ(0);
}

#dream div.tit{
    text-align: center;
    margin-bottom: -72px;
    position: relative;
    z-index: 1;
}

#dream .races{
    width: 100%;
    padding: 0 0 168px;
    position: relative;
}
#dream .races:not(:first-of-type){
    margin-top: -168px;
    padding: 40px 0 104px;
}
#dream .races .race-bg{
    position: absolute;
    width: calc(100% + 132px);
    height: 100%;
    top: 0;
    left: -132px;
    mix-blend-mode: color;
}
#dream .races#dream-golden .race-bg{
    background: #FA6C00;
    clip-path: polygon(0 168px, 100% 0, 100% 100%, 0 100%);
}
#dream .races#dream-70th .race-bg{
    background: #08f;
    clip-path: polygon(0 0, 100% 168px, 100% 100%, 0 100%);
}
#dream .races div.inner{
    position: relative;
    padding: 0 132px;
}
#dream .races#dream-golden div.inner{
    background: url(../images/dream_racebg_golden.svg)no-repeat top 244px right -96px, url(../images/dream_racebg_golden.svg)no-repeat bottom 0 left -96px;
}
#dream .races#dream-70th div.inner{
    background: url(../images/dream_racebg_70th.svg)no-repeat top 244px right -96px, url(../images/dream_racebg_70th.svg)no-repeat bottom 0 left -96px;
}
#dream .races .race-tit{
    text-align: center;
    position: relative;
    z-index: 0;
    margin-bottom: -64px;
}
#dream .races .whats{
    position: absolute;
    width: 304px;
    height: 120px;
    background: linear-gradient(#FFFFFF,#FAFAC9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    top: 196px;
    right: 160px;
}

#dream .races .contents_wrap{
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
#dream .races .racer{
    width: 512px;
    margin: 32px 0 8px 24px;
    display: grid;
    grid-template-columns: 306px 1fr;
    grid-template-rows: 248px 86px auto;
    background: #fff;
    border: #000 solid 6px;
    border-bottom-width: 14px;
    position: relative;
}
#dream .races .racer .num{
    position: absolute;
    left: calc(-6px - 24px);
    top: calc(-6px - 32px);
}

#dream .races .racer .num::before{
    display: block;
    content: "";
    width: 98px;
    height: 160px;
    border: #000 solid 4px;
    border-bottom-width: 12px;
    transform: skew(0deg, -10deg);
    transform-origin: right top;
    box-sizing: border-box;
}
#dream .races .racer:nth-of-type(1) .num::before{
    background: #fff;
}
#dream .races .racer:nth-of-type(2) .num::before{
    background: #555;
}
#dream .races .racer:nth-of-type(3) .num::before{
    background: #E60013;
}
#dream .races .racer:nth-of-type(4) .num::before{
    background: #00A1E9;
}
#dream .races .racer:nth-of-type(5) .num::before{
    background: #FFF100;
}
#dream .races .racer:nth-of-type(6) .num::before{
    background: #14A83C;
}
#dream .races .racer .num p{
    display: inline-block;
    font-family: 'Roboto', 'M PLUS 1p';
    font-size: 104px;
    font-weight: 900;
    position: absolute;
    z-index: 1;
    text-align: center;
    line-height: 28px;
    top: 36%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
}
#dream .races .racer:nth-of-type(1) .num p, #dream .races .racer:nth-of-type(5) .num p{
    color: #000;
}
#dream .races .racer .num p span{
    font-size: 24px;
    font-weight: 500;
}

#dream .races .racer img{
    grid-row: 1; grid-column: 1;
    width: 306px;
}
#dream .races .racer .name{
    grid-row: 2; grid-column: 1;
    width: 306px;
    background: #000;
    font-size: 44px;
    font-weight: 900;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}
#dream .races#dream-golden .racer .name{
    color: #FDCE00;
}
#dream .races#dream-70th .racer .name{
    color: #7BE8FF;
}
#dream .races .racer .name p:nth-of-type(2){
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}
#dream .races .racer .data{
    grid-row: 1/3; grid-column: 2;
    text-align: center;
    border-bottom: #000 4px solid;
    border-left: #000 4px solid;
}
#dream .races#dream-golden .racer .data{
    background: linear-gradient(124deg, #FDCE00 50%, #FCB500 50%) 0 24px;
}
#dream .races#dream-70th .racer .data{
    background: linear-gradient(124deg, #A5EFFF 50%, #82E5FF 50%) 0 24px;
}
#dream .races .racer .data p{
    display: inline-block;
    width: 100%;
    line-height: 48px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
#dream .races#dream-golden .racer .data p{
    background: #FA6C00;
}
#dream .races#dream-70th .racer .data p{
    background: #00A8FF;
}
#dream .races .racer .data div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 48px);
}
#dream .races .racer .data table *{
    vertical-align: middle;
}
#dream .races .racer .data th p{
    width: 64px;
    line-height: 28px;
    background: #FA6C00;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    border-radius: 28px;
}
#dream .races#dream-golden .racer .data th p{
    background: #FA6C00;
}
#dream .races#dream-70th .racer .data th p{
    background: #00A8FF;
}
#dream .races .racer .data td{
    height: 44px;
    padding: 0 2px 0 8px;
    text-align: left;
    font-size: 32px;
    font-weight: 800;
    font-family: 'Roboto', 'M PLUS 1p';
}
#dream .races .racer .data td span{
    font-size: 24px;
}
#dream .races .racer>p{
    grid-row: 3; grid-column: 1/3;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: justify;
}

/***********************************************************************
「★PC版 CSS★」ブラウザの幅が751px以上ならここの記述が有効になる
**********************************************************************/
@media all and (min-width: 751px) {

    .pc_non{display: none;}

    #dream a{
        transition: all 0.2s !important;
    }
    #dream a:hover{
        opacity: 0.8 !important;
        transform: translateY(2px) !important;
        transition: all 0.2s !important;
    }

}


/***********************************************************************
「★SP版 CSS★」ブラウザの幅が750px以下ならここの記述が有効になる
**********************************************************************/
@media only all and (max-width: 750px) {

.sp_non{display: none;}

.dream .bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: url(../images/racer_bg_sp.png) no-repeat top left, linear-gradient(90deg, #FD93C4, #FF6B86);
    background-size: cover;
    top: 0;
    z-index: -1;
    transform: translateZ(0);
}

#dream div.tit{
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    padding-top: 120px;
}

#dream .races{
    width: 100%;
    padding: 0 0 66px;
    position: relative;
}
#dream .races:not(:first-of-type){
    margin-top: -66px;
    padding: 0 0 80px;
}
#dream .races .race-bg{
    position: absolute;
    width: calc(100% + 132px);
    height: 100%;
    top: 0;
    left: -132px;
    mix-blend-mode: color;
}
#dream .races#dream-golden .race-bg{
    background: #FA6C00;
    clip-path: polygon(0 66px, 100% 0, 100% 100%, 0 100%);
}
#dream .races#dream-70th .race-bg{
    background: #08f;
    clip-path: polygon(0 0, 100% 66px, 100% 100%, 0 100%);
}
#dream .races div.inner{
    position: relative;
    padding: 0;
}
#dream .races#dream-golden div.inner{
    background: url(../images/dream_racebg_golden.svg)no-repeat bottom 160px right -172px;
}
#dream .races#dream-70th div.inner{
    background: url(../images/dream_racebg_70th.svg)no-repeat bottom 0 left -220px;
}
#dream .races .race-tit{
    text-align: center;
    position: relative;
    z-index: 0;
    margin-bottom: 0;
}
#dream .races .whats{
    position: static;
    width: 500px;
    height: 174px;
    background: linear-gradient(#FFFFFF,#FAFAC9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 32px auto 16px;
}

#dream .races .btn_wrap{
    width: 100%;
    padding: 20px 36px 12px;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#dream .races .btn_wrap a{
    display: block;
    width: 330px;
    height: 104px;
    border: 4px solid #000;
    border-bottom-width: 8px;
    margin-bottom: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: 68px 1fr 48px;
    align-items: center;
    transition: all 0.2s;
}
#dream .races .btn_wrap a.active{
    background: #DDFF00;
    height: 100px;
    margin-top: 4px;
    border-bottom-width: 4px;
}
#dream .races .btn_wrap a .num{
    width: 100%;
    height: 100%;
    font-size: 74px;
    font-weight: 900;
    font-family: 'Roboto', 'M PLUS 1p';
    border-right: 4px solid #000;
    text-align: center;
    line-height: calc(104px - 4px - 8px);
}
#dream .races .btn_wrap li:nth-of-type(1) a .num{
    background: #fff;
    color: #000;
}
#dream .races .btn_wrap li:nth-of-type(2) a .num{
    background: #555;
    color: #fff;
}
#dream .races .btn_wrap li:nth-of-type(3) a .num{
    background: #E60013;
    color: #fff;
}
#dream .races .btn_wrap li:nth-of-type(4) a .num{
    background: #00A1E9;
    color: #fff;
}
#dream .races .btn_wrap li:nth-of-type(5) a .num{
    background: #FFF100;
    color: #000;
}
#dream .races .btn_wrap li:nth-of-type(6) a .num{
    background: #14A83C;
    color: #fff;
}
#dream .races .btn_wrap a .name{
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    padding-left: 16px;
}
#dream .races .btn_wrap a .name span{
    font-size: 44px;
}

#dream .races .contents_wrap{
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-left: 36px;
    margin-top: 24px;
}

#dream .races .racer:not(.active){
    visibility: hidden;
    height: 0;
    margin: 0 auto;
    padding: 0;
    opacity: 0;
    border: none;
    display: block;
}
#dream .races .racer:not(.active) *{
    display: none;
}
#dream .races .racer .num{
    position: absolute;
    left: calc(-6px - 24px);
    top: calc(-6px - 32px);
}
#dream .races .racer{
    width: 648px;
    margin: 32px 0 8px 24px;
    display: grid;
    grid-template-columns: 389px 1fr;
    grid-template-rows: 315px 117px auto;
    background: #fff;
    border: #000 solid 6px;
    border-bottom-width: 14px;
    position: relative;
    transition: opacity 0.2s;
}

#dream .races .racer .num::before{
    display: block;
    content: "";
    width: 124px;
    height: 200px;
    border: #000 solid 4px;
    border-bottom-width: 12px;
    transform: skew(0deg, -10deg);
    transform-origin: right top;
    box-sizing: border-box;
}
#dream .races .racer:nth-of-type(1) .num::before{
    background: #fff;
}
#dream .races .racer:nth-of-type(2) .num::before{
    background: #555;
}
#dream .races .racer:nth-of-type(3) .num::before{
    background: #E60013;
}
#dream .races .racer:nth-of-type(4) .num::before{
    background: #00A1E9;
}
#dream .races .racer:nth-of-type(5) .num::before{
    background: #FFF100;
}
#dream .races .racer:nth-of-type(6) .num::before{
    background: #14A83C;
}
#dream .races .racer .num p{
    display: inline-block;
    font-family: 'Roboto', 'M PLUS 1p';
    font-size: 132px;
    font-weight: 900;
    position: absolute;
    z-index: 1;
    text-align: center;
    line-height: 36px;
    top: 36%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
}
#dream .races .racer:nth-of-type(1) .num p, #dream .races .racer:nth-of-type(5) .num p{
    color: #000;
}
#dream .races .racer .num p span{
    font-size: 30px;
    font-weight: 500;
}

#dream .races .racer img{
    grid-row: 1; grid-column: 1;
    width: 100%;
}
#dream .races .racer .name{
    grid-row: 2; grid-column: 1;
    width: 100%;
    background: #000;
    font-size: 52px;
    font-weight: 900;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}
#dream .races#dream-golden .racer .name{
    color: #FDCE00;
}
#dream .races#dream-70th .racer .name{
    color: #7BE8FF;
}
#dream .races .racer .name p:nth-of-type(2){
    font-size: 28px;
    color: #fff;
    font-weight: 600;
}
#dream .races .racer .data{
    grid-row: 1/3; grid-column: 2;
    text-align: center;
    border-bottom: #000 4px solid;
    border-left: #000 4px solid;
}
#dream .races#dream-golden .racer .data{
    background: linear-gradient(123deg, #FDCE00 50%, #FCB500 50%) 0 32px
}
#dream .races#dream-70th .racer .data{
    background: linear-gradient(123deg, #A5EFFF 50%, #82E5FF 50%) 0 32px;
}
#dream .races .racer .data p{
    display: inline-block;
    width: 100%;
    line-height: 60px;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
}
#dream .races#dream-golden .racer .data p{
    background: #FA6C00;
}
#dream .races#dream-70th .racer .data p{
    background: #00A8FF;
}
#dream .races .racer .data div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 60px);
}
#dream .races .racer .data table *{
    vertical-align: middle;
}
#dream .races .racer .data th p{
    width: 84px;
    line-height: 40px;
    background: #FA6C00;
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    border-radius: 40px;
}
#dream .races#dream-golden .racer .data th p{
    background: #FA6C00;
}
#dream .races#dream-70th .racer .data th p{
    background: #00A8FF;
}
#dream .races .racer .data td{
    height: 56px;
    padding: 0 2px 0 8px;
    text-align: left;
    font-size: 40px;
    font-weight: 800;
    font-family: 'Roboto', 'M PLUS 1p';
}
#dream .races .racer .data td span{
    font-size: 30px;
}
#dream .races .racer>p{
    grid-row: 3; grid-column: 1/3;
    padding: 16px 24px;
    font-size: 26px;
    font-weight: 500;
    text-align: justify;
}


}

/***********************************************************************
Key frame
**********************************************************************/
.anime {
    opacity: 0;
}

.tit img.anime.mov{
    animation: 0.5s ease 0s 1 normal both running fade-in-bottom;
}
#dream-golden .race-tit.anime.mov, #dream-golden .whats.anime.mov{
    animation: 0.5s ease 0.15s 1 normal both running fade-in-bottom;
}
#dream-golden .contents_wrap.anime.mov, #dream-golden .btn_wrap.anime.mov{
    animation: 0.5s ease 0.3s 1 normal both running fade-in-bottom;
}
#dream-70th .race-tit.anime.mov{
    animation: 0.5s ease 0s 1 normal both running fade-in-bottom;
}
#dream-70th .contents_wrap.anime.mov, #dream-70th .btn_wrap.anime.mov{
    animation: 0.5s ease 0.15s 1 normal both running fade-in-bottom;
}

@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;
    }
}