@charset "UTF-8";
html{
    overflow: auto;
}
body{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Yu Gothic','ヒラギノ角ゴシック','Hiragino Sans', 
sans-serif;
    font-weight: bold;
    line-height: 2;
    color: #000;
    background-color: #fff;
    background-image: url("../img/pc-back.webp");
    background-size: cover;
}
img{
    width: 70%;
}
#screen{
    position: relative;
    max-width: 420px;
    width: 100%;
    max-height: 700px;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    background-color: #000;
    overflow: hidden;
}


.left-in{
    transition: transform 3s;
    transform: translateX(250px) !important;
}
.right-in{
    transition: transform 3s;
    transform: translateX(-250px) !important;
}



.bottom-up{
    
    transform: translateY(500px) !important;
    
}

.entori-img{
  position: absolute;
    z-index: 10;
    width: 60%;
    top: 20px;
    right: 84px;
    animation: rightLeft 1.5s ease-in-out;
    animation-iteration-count: infinite;
}

#overlay-button {
    position: absolute;
    right: 15px;
    top: 15px;
    padding: 23.5px 16px;
    z-index: 500;
    cursor: pointer;
    user-select: none;
    
    background-image: linear-gradient(125deg, rgba(255, 255, 255, 1) 50%, rgba(244, 244, 244, 1) 50%);
    
    border-radius: 50%;
    
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
  }
  #overlay-button span {
    height: 3px;
    width: 18px;
    border-radius: 2px;
    background-color: #593118;
    position: relative;
    display: block;
    transition: all .2s ease-in-out;
  }
  #overlay-button span:before {
    top: -8px;
    visibility: visible;
  }
  #overlay-button span:after {
    top: 8.5px;
  }
  #overlay-button span:before, #overlay-button span:after {
    height: 3px;
    width: 18px;
    border-radius: 2px;
    background-color: #593118;
    position: absolute;
    content: "";
    transition: all .2s ease-in-out;
  }
  #overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
    background: #593118;
  }
  
  input[type=checkbox] {
    display: none; 
    
  }
  
  input[type=checkbox]:checked ~ #overlay {
    visibility: visible; 
  }
  
  input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
    background: transparent;
    
    
  }
  input[type=checkbox]:checked ~ #overlay-button span:before {
    transform: rotate(45deg) translate(6px, 6px);
  
  }
  input[type=checkbox]:checked ~ #overlay-button span:after {
    transform: rotate(-45deg) translate(6px, -6px);
  
  
  }
  
  #overlay {
    height: 100vh;
    width: 100%;
    background-image: url("../img/menu-back.webp");
    z-index: 200;
    visibility: hidden;
    position: absolute;
  }
  #overlay.active {
  
  }
  #overlay ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
    padding-left: 0;
    list-style-type: none;
  }
  #overlay ul li {
    padding: 1em;
  }
  #overlay ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
  }
  #overlay ul li a:hover {
    color: #000!important;
  }




#bgimg{
    position: absolute;
    width: 110%;
    z-index: 1;
    object-fit: cover;
    right: -10px;
}
.buruburu{
    animation: buruburu 0.1s ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes buruburu {
    0% {
      transform: translateX(0px);
    }
    50% {
      transform: translateX(3px);
    }
  
    100% {
      transform: translateX(0px);
    }
  }



.charaposition{
    position: absolute;
    width: 175px;
    height: 600px;
    bottom: -20px;
    text-align: center;
    overflow: hidden;
    z-index: 2;
    
}

.charaposition img{
    transition: transform 0.5s;
}

.chara-none1{
    opacity: 0.4;
    transform: scale(0.6);
    transform: translateX(-20px);
    transform: translateY(20px);
    transition: transform 0.5s;
}
.chara-none2{
    opacity: 0.4;
    transform: scale(0.6);
    transform: translateX(20px);
    transform: translateY(20px);
    transition: transform 0.5s;
}
.chara-none3{
    opacity: 0.4;
    transform: scale(0.6);
    transform: translateX(-20px);
    transform: translateY(20px);
    transition: transform 0.5s;
}

#charaposition1{/*一人、三人表示*/
    left: 10px;
    text-align: left;
    transition: transform 3s;
    
}
#charaposition2{/*二人表示*/
    right: 10px;
    text-align: right;
    transition: transform 3s;
}
#charaposition3{/*二人表示*/
    left: 175px;
    right: -20px;
    margin: auto;
    width: 270px;
    transition: transform 3s;
}
#charaposition4{/*三人表示*/
    left: 0;
}
#charaposition5{/*三人表示*/
    left: 50px;
}
.itembox{
    position: absolute;
    width: 580px;
    height: 420px;
    top: 30px;
    left: 160px;
    text-align: center;
    z-index: 2;
}

.time{
  position: absolute;
  width: 100%;
  max-width: 420px;
  bottom: 0;
  background-color: white;
  height: 80px;
  z-index: 2;
}
.time-box{
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  margin-top: 8px;
 
}
.time-box img{
  width: 64px;
  opacity: 0.3;
  animation-duration: 3s;
  animation-timing-function: ease;
  transition: 1s;
}
.time-box p{
  color: #593118;
}

#messbox{
    position: absolute;
    height: 33%;
    bottom: 96px;
    width: 92%;
    left: 0px;
    right: 0px;
    margin: auto;
    background-image: url("../img/text-back.webp");
    z-index: 3;
    border: 2px solid #593118;
    border-radius: 12px;
    background-size: cover;
}
.sound-change{
    display: none;
    background-color: #02ADF9;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    opacity: 0;
}
#textbox{
    position: relative;
    width: 90%;
    height: 100%;
    margin: -10px auto;
    margin-top: 20px;
    
}
.tap{
    position: absolute;
    color: #593118;
    bottom: 20px;
    right: 0;
    animation: rightLeft 1s ease-in-out;
    animation-iteration-count: infinite;
}
#text{
    color: #593118;
    font-size: 16px;
    line-height: 2;
}
#namebox{
    display: none;
}
#name{
    border-bottom: 1px solid #593118;
    padding-bottom: 8px;
    color: #593118;
    font-size: 18px;
}
.next{
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
    z-index: 10;
    display: none;
}

.selectBox{
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
    z-index: 10;
    display: none;
}

.show{
    display: block !important;
    z-index: 10;
}

.timechange{
  opacity: 1 !important;
  animation-duration: 3s;
    animation-timing-function: ease;
}

.none{
    display: none;
}

.end{
  margin: 0 auto;
  display: block;
  margin-top: 72px;
}
.select{
    
    width: 300px;
    
    left: 0;
    right: 0;
    margin: 0 auto;
    background-image: linear-gradient(90deg, rgba(247, 208, 93, 1), rgba(254, 153, 64, 1));
    border: solid 5px #fff;
    border-radius: 50px;
    
}
.select a{
    text-decoration: none; 
}
#select1{
    top: 100px;
}
#select2{
    top: 250px;
}
#select3{
    top: 400px;
}
.selectText{
    margin: 15px auto;
    text-align: center;
    color: #fff;
    font-size: 1.3rem;
}

@keyframes fadein{
    0%{
        opacity: 0;
    }100%{
        opacity: 1;
    }
}
@keyframes fadeout{
    0%{
        opacity: 1;
    }100%{
        opacity: 0;
    }
}
@keyframes fadeoutin{
    0%{
        opacity: 1;
    }50%{
        opacity: 0;
    }100%{
        opacity: 1;
    }
}

.fadein{
    animation-name: fadein;/*どのkeyframesを使うか*/
    animation-fill-mode: forwards;/*アニメーションの最後の値を保持するか*/
    animation-duration: .5s;/*アニメーション1回あたりの再生時間*/
    animation-timing-function: ease;/*アニメーションの再生方法*/
}
.fadeout{
    animation-name: fadeout;
    animation-fill-mode: forwards;
    animation-duration: .5s;
    animation-timing-function: ease;
}
.fadeoutin{
    animation-name: fadeoutin;
    animation-fill-mode: forwards;
    animation-duration: 3s;
    animation-timing-function: ease;
}

/*注意画面*/
.title-screen{
    background-color: #02ADF9;
    height: 100vh;
    position: relative;
    position: absolute;
    max-width: 420px;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    margin: 0 auto;
    
    
}
.title-screen-box{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    height: fit-content;
}
.title-screen-text{
    color: white;
    text-align: center;
    margin: 32px;
}
.title-screen-text-2{
    animation: tenmetsu 1s;
    animation-iteration-count: infinite;
}
.sankaku-img{
    width: 100px;
}
.title-screen-button{
    padding: 20px;
    border-radius: 50px;
    background-color: orange;
    width: 70%;
    margin: 0 auto;
    margin-top: 40px;
    color: white;
}

/*タイトル画面*/
.logo-img{
    width: 100%;
    transition: transform 8s;
    transform: translateY(-400px);
    
}
.logo-img.logo-end{
    transform: translateY(0px);
}


.start-img{
    transition: transform 0.1s;
    transform: scale(0 , 0);
}
.start-img.start-img-end{
    transform: scale(1 , 1);
}



.title-screen-2,.title-screen-3{
    background: url(../img/title-back.webp) repeat-x;
    background-position: 0 0;
    -webkit-animation: bgroop 30s linear infinite;
    animation: bgroop 50s linear infinite;
    height: 100vh;
    position: relative;
    position: absolute;
    max-width: 420px;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
    margin: 0 auto;
    
    
}
@-webkit-keyframes bgroop {
    from {
        background-position: 0  0;
    }
    to {
        background-position: -2000px 0;
    }
}
@keyframes bgroop {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -2000px 0;
    }
}

.title-screen-text-2{
    color: #fff;
    box-shadow: tomato;
    text-align: center;
    margin: 32px;
}
#title-screen-3{
    z-index: 8;
}
.start-button{
    width: 80%;
    background-image: linear-gradient(90deg, rgba(247, 208, 93, 1), rgba(254, 153, 64, 1));
    color: #fff;
    margin: 0 auto;
    
    padding: 12px 0;
    border-radius: 50px;
    margin-top: 12px;
    border: 4px solid;
    font-size: 18px;
}

.sp-onegai{
  display: flex;
  width: 90%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.sp-onegai img{
  width: 26px;
  height: 28px;
}
.sp-onegai p{
  font-weight: normal;
  font-size: 12px;
  margin: 0;
  color: #fff;
}
@media(max-width: 600px) {
  .time,.title-screen,.title-screen-2,.title-screen-3{
    
    max-width: 600px;
    
    
    
}
#screen{
  max-width: 600px;
}
}



/* サンプルアニメーション */
@keyframes upDown {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(10px);
    }
  
    100% {
      transform: translateY(0px);
    }
  }
  @keyframes rightLeft {
    0% {
      transform: translateX(0px);
    }
    50% {
      transform: translateX(5px);
    }
  
    100% {
      transform: translateX(0px);
    }
  }
  .odoru{
    animation: odoru 1s ease-in-out;
    animation-iteration-count: infinite;
}
  @keyframes odoru {
    0% {
      transform: rotate(10deg);
    }
    50% {
      transform: rotate(-10deg);
    }
  
    100% {
      transform: rotate(10deg);
    }
  }
  @keyframes bound {
    0% {
      transform: scale(1 , 1);
    }
    50% {
      transform: scale(1.1 , 0.9);
    }
  
    100% {
      transform: scale(1 , 1);
    }
  }
  @keyframes tenmetsu {
    0% {
      opacity: 0;
    }
    
    100% {
        opacity: 1z;
    }
  }