/*-------------------------------------------
コンテンツの幅制限
--------------------------------------------*/
:root{
  --c_width: 480px;
}

html,body{
  font-family: 'M PLUS Rounded 1c','Kosugi Maru','Hiragino Kaku Gothic Pro','ヒラギノ角ゴ Pro W3',"メイリオ", Meiryo,"ＭＳ Ｐゴシック", "MS PGothic";
}

body{
  background: url(../images/bg.png);
}

a {
  text-decoration: none;
  display: block;
  color: inherit;
  transition-property: all;
  transition: 0.2s linear;
  cursor: pointer;
}

.unit-base_template_01 .wrapper{ 
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100%;
  padding: 0 1rem;
}

.unit-base_template_01 .wrapper{
  max-width: var(--c_width);
  margin: 0 auto;
}

.gacha-tomorrow .unit-base_template_01 .wrapper,
.download-contents .unit-base_template_01 .wrapper{
  background-color: #fffcf5;
}

.text-red{
  color: #F44;
}


body:not(.gacha-finish) .unit-base_template_01 .wrapper:after{
  content: "";
  width: 100%;
  height: 200%;
  background-color: #00afec;
  background-image: url(../images/bg-gacha.png);
  background-repeat : repeat-y;
  background-size   : 100%;
  background-position: center;
  display: inline-block;
  -webkit-animation-name: goUP;
  animation-name: goUP;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-duration: 60s;
  animation-duration: 60s;
  position: absolute;
  bottom: 0%;
  left  :0;
  z-index: -1;

}



/*the animation definition*/
@-webkit-keyframes goUP {
100%{
   background-position-y: -400%;

  }
}
@keyframes goUP {
100%{
   background-position-y: -400%;

  }
}


/*-------------------------------------------
ボタン
--------------------------------------------*/
.btn-normal,
.btn-orange{
  font-size : 1.25rem;
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 220px;
  position: relative;
  display: block;
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 6px #baced2;
  -webkit-transition-duration: 0;
  transition-duration: 0;
  color: #fff;
  text-align: center;
  margin: 2rem auto;
  margin-top: 0;
  font-weight: 600;
}

.btn-normal:hover,
.btn-orange:hover{
  -webkit-transition-duration: 0;
  transition-duration: 0;
  top: 4px;
  box-shadow: 0 2px #baced2;
}

.btn-orange{
  background: #F44;
  box-shadow: 0 6px #AA5353;
}

.btn-orange:hover{
  box-shadow: 0 2px #AA5353;
}

.gacha-start .btn-block{
  display: none;
  }

.btn-normal{
	background			: #49a953;
	box-shadow			: 0 6px #34813c;
}

.btn-normal:hover{
	box-shadow			: 0 2px #34813c;
}
/*-------------------------------------------
ガチャ
--------------------------------------------*/
#prize,
#gacha{
  max-width: 320px;
  width: 100%;
  margin: 3rem auto;
  margin-bottom: 0;
}

#tomorrow{
  max-width: 340px;
  margin: 0rem auto;  
}

#prize{
  max-width: 380px;
  margin: 0rem auto;  
}
@media screen and (max-width: 500px) {
#prize,
#gacha{
  max-width: 240px;
  width: 100%;
  margin: 1rem auto;
  margin-bottom: 0;
}

#tomorrow{
  max-width: 280px;
  margin: 0rem auto;  
}

#prize{
  max-width: 280px;
  margin: 0rem auto;  
  }
}

.gacha-img{
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0  auto;
}

.gacha-img:after{
  content: "";
  background-image: url(../images/gacha-animation.png);
  background-size: 100%;
  width: 1000%;
  height: 100%;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
}

.gacha-start .gacha-img:after{
  -webkit-animation-duration: 4s;
  animation-duration: 4s;
  -webkit-animation-name: talk;
  animation-name: talk;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-timing-function: steps(10);
  -webkit-animation-timing-function: steps(10);
}

@keyframes talk {
  0% { left: 0p;}
  90%{opacity:1;}
  100% {left: -1000%; opacity:0;}
}

@-webkit-keyframes talk {
  0% { left: 0;}
  90%{opacity:1;}
  100% {left: -1000%; opacity :0;}
}

#prize{
  display   :none;
}

.gacha-finish #prize{
  display   :block;
}

.gacha-finish #animation-block{
  display   :none;
}


.gacha-finish.gacha-lose .wrapper{
  background-image: url(../images/gacha-lose_bg.png);
  background-size: cover;
}

.gacha-finish.gacha-win .wrapper{
  background-image: url(../images/gacha-win_bg.png);
  background-size: cover;
}
/*--------------------------------------------
ロード
--------------------------------------------*/
.mask{
  position:fixed; /*固定表示*/
  top:0;
  left:0;
  width: 100vw; /*画面幅*/
  height: 100vh; /*画面の高さ*/
  background-color: #ffda65; /*背景色*/
  z-index:999; /*最前面に*/
  animation: fadeOut 0.8s forwards; /*フェードアウト*/
  animation-delay: 1.5s; /*ロゴ画像のアニメーション後に*/
}

/*フェードアウトアニメーション*/
@keyframes fadeOut{
  0%{
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/***ロゴ画像***/
.mask img{
  position: absolute;
  width: 152px;
  height: 314px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  animation: bound 1s forwards; /*任意のアニメーション*/
  animation-delay: 0.2s; /*好みで遅延*/
}

/*鼓動する*アニメーション*/
@keyframes bound{
  30%{
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.9);
  }
}

.c_nav-items{
	text-align		: center;
}

.c_nav-items a{
	padding			: 0.5rem 2rem;
	margin-bottom		: 1rem;
	background		: #fbdb31;
	border-radius		: 4rem;
	display			: block;
}

.caution-block{
  background: #fff;
  border-radius: 2rem;
  padding: 0 2rem;
  display: inline-block;
}