@charset "utf-8";
h3{
    font-size: 1.25rem;
    font-variation-settings: "wght" 700;
}

.explanationImageWrap{
    margin: 0 auto;
    text-align: center;
}

/* 立方体ここから */
.container{
    perspective: 800px;
    height: 284px;
    padding: 30px 0;
}

.cube{
    width: 240px;
    height: 240px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg); /* 初期角度 */
}
  
.boxSurface{
    width: 240px;
    height: 240px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    background-color: rgba(255, 255, 255, 0.9);
}
  
.boxSurface:nth-child(1){transform: translateZ(120px);}
.boxSurface:nth-child(2){transform: rotateY(90deg) translateZ(120px);}
.boxSurface:nth-child(3){transform: rotateY(180deg) translateZ(120px);}
.boxSurface:nth-child(4){transform: rotateY(-90deg) translateZ(120px);}
.boxSurface:nth-child(5){transform: rotateX(90deg) translateZ(120px);}
.boxSurface:nth-child(6){transform: rotateX(-90deg) translateZ(120px);}

.explanationImage{
    width: 95%;
}
/* 立方体ここまで */

.slideBtnWrap{
    width: 284px;
    text-align: center;
    height: 60px;
    position: relative;
    font-size: 1rem;
    margin: 1rem auto;
    height: 60px;
}

.slideBtn{
    line-height: 60px;
    display: inline-block;
    font-variation-settings: "wght" 500;
    position: absolute;
}

#prev{
    left: 0;
}

#next{
    right: 0;
}

/* フリップカードここから */
.flipper{
    position: relative;
    width: 200px;
    height: 290px;
    margin: 0 auto;
    perspective : 1000px;
    -webkit-perspective : 1000px;
}

.flipSurface{
    position: absolute;
    top: 0;
    left: 0;
    transition : transform 700ms;
    backface-visibility : hidden;
    -webkit-backface-visibility : hidden;
}


.back{
    transform : rotateY(-180deg);
}

.front.flipped{
    transform : rotateY(180deg);
}

.back.flipped{
    transform : rotateY(0);
}
/* フリップカードここまで */

.explanationTextWrap{
    width: 90%;
    margin: 16px auto 0 auto;
}

.explanationText{
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

@media screen and (min-width: 768px){
    .explanationWrap{
        max-width: 1300px;
        margin: 0 auto;
        text-align: center;
    }

    .explanationImageWrap{
        display: inline-block;
    }

    .container{
        perspective: 1000px;
        height: 340px;
        width: 340px;
        padding: 30px 0;
    }
    
    .cube{
        width: 280px;
        height: 280px;
    }
      
    .boxSurface{
        width: 280px;
        height: 280px;
    }
      
    .boxSurface:nth-child(1){transform: translateZ(140px);}
    .boxSurface:nth-child(2){transform: rotateY(90deg) translateZ(140px);}
    .boxSurface:nth-child(3){transform: rotateY(180deg) translateZ(140px);}
    .boxSurface:nth-child(4){transform: rotateY(-90deg) translateZ(140px);}
    .boxSurface:nth-child(5){transform: rotateX(90deg) translateZ(140px);}
    .boxSurface:nth-child(6){transform: rotateX(-90deg) translateZ(140px);}

    .slideBtnWrap{
        width: 340px;
    }

    .explanationTextWrap{
        width: auto;
        display: inline-block;
        text-align: left;
        margin-top: 0;
        margin-left: 4rem;
        vertical-align: top;
    }
}