@charset "UTF-8";

/*==============================================================================================

    gacha css

==============================================================================================*/
/*==============================================================================================

	gacha

==============================================================================================*/
#gacha_sec {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 980px;
  height: 100%;
  background: url(/compas-deck/img/bg_gacha.jpg);
  background-size: cover;
  -moz-transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  z-index: 50;
  -moz-transition: transform .8s ease, z-index 0s ease .8s;
  -webkit-transition: transform .8s ease, z-index 0s ease .8s;
  transition: transform .8s ease, z-index 0s ease .8s;
}

#gacha_view:checked ~ #gacha_sec {
  z-index: 60;
  -moz-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
  -moz-transition: transform .8s ease;
  -webkit-transition: transform .8s ease;
  transition: transform .8s ease;
}


#gacha_sec > label {
  width: 25px;
  height: 50px;
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: rgba(220, 220, 220, 1);
  position: absolute;
  bottom: 120px;
  right: -25px;
  z-index: 5;
  -moz-transition: all .8s ease, height .4s ease, background .3s ease, bottom .3s ease .8s;
  -webkit-transition: all .8s ease, height .4s ease, background .3s ease, bottom .3s ease .8s;
  transition: all .8s ease, height .4s ease, background .3s ease, bottom .3s ease .8s;
}

#gacha_view:checked ~ #gacha_sec > label {
  bottom: calc(100% - 50px);
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(220, 220, 220, 0);
  background: -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.gacha_marker {
  width: 20px;
  height: 20px;
  position: relative;
}

.gacha_marker > div {
  position: absolute;
  top: 50%;
  left: 50%;
  -moz-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.gacha_marker > div .gacha_img {
  width: 15px;
}

.gacha_marker > div:nth-child(1) {
  opacity: 1;
  -moz-transition: opacity .3s ease;
  -webkit-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.gacha_marker > div:nth-child(2) {
  width: 18px;
  height: 4px;
  background: #333;
  opacity: 0;
  -moz-transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
  -moz-transition: opacity .3s ease;
  -webkit-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.gacha_marker > div:nth-child(3) {
  width: 18px;
  height: 4px;
  background: #333;
  opacity: 0;
  -moz-transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
  -moz-transition: opacity .3s ease;
  -webkit-transition: opacity .3s ease;
  transition: opacity .3s ease;
}


#gacha_view:checked ~ #gacha_sec .gacha_marker > div:nth-child(1) {
  opacity: 0;
}

#gacha_view:checked ~ #gacha_sec .gacha_marker > div:nth-child(2),
#gacha_view:checked ~ #gacha_sec .gacha_marker > div:nth-child(3) {
  opacity: 1;
}


.gacha_contain {
  height: 100%;
}

.gacha_wrap {
  height: 100%;
  position: relative;
  padding: 10px;
}

.gacha_setup_wrap{
	padding-bottom: 10px;
}

.gacha_title{
    background: #fa8b06;
    color: #ffffff;
    height: 30px;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

.gacha_select{
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    font-weight: bold;
    padding: 10px 0;
}

.gacha_select #gacha_set{
    width: calc(100% - 230px);
}

.gacha_select #gacha_trial{
  width: 100px;
}

.gacha_select #gacha_level{
    width: 100px;
}

.gacha_select .selectlabel input{
    width: 100%;
    height: 40px;
    background: #FFF;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #DDD;
}


.gacha_select .selectlabel:after{
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6.9px 4px 0 4px;
    border-color: #1a8dd0 transparent transparent transparent;
    position: absolute;
    top: 50%;
    right: 10px;
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    pointer-events: none;
}

.gacha_start_wrap{
    max-width: 450px;
    margin: 0 auto;
}

.gacha_banner{
    width: 100%;
    padding-top: 50%;
    position: relative;
    overflow: hidden;
}

.gacha_banner.gbc{
  padding-top: 30px;
}


.gacha_banner img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#gacha_pickup{
    position: absolute;
    bottom: 30px;
    right: 0px;
    z-index: 10;
    width: 100px;
    height: 100px;
    background: url('/compas-deck/img/gacha/bg_pickup.png');
    background-size: 100% 100%;
}
#gacha_pickup > div{
    width: 100px;
    height: 50px;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: flex-end;
    align-items: flex-end;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow    : 
    2px  2px 1px #61074d,
   -2px  2px 1px #61074d,
    2px -2px 1px #61074d,
   -2px -2px 1px #61074d,
    2px  0px 1px #61074d,
    0px  2px 1px #61074d,
   -2px  0px 1px #61074d,
    0px -2px 1px #61074d;
}

#gacha_pickup input{
    text-align: center;
    width: 100px;
    height: 50px;
    color: #faea9f;
    font-size: 40px;
    font-weight: bold;
    text-shadow : 
    2px  2px 1px #61074d,
   -2px  2px 1px #61074d,
    2px -2px 1px #61074d,
   -2px -2px 1px #61074d,
    2px  0px 1px #61074d,
    0px  2px 1px #61074d,
   -2px  0px 1px #61074d,
    0px -2px 1px #61074d;
}

.gacha_banner_close{
  position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 10;
    width: 100%;
    height: 30px;
    background: #aaa;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    font-weight: bold;
}

.gacha_start{
    padding-top: 10px;
}

.gacha_start > div{
    border:1px solid #333;
    padding: 2px;
}

.gacha_start > div > div{
    border:3px solid #666666;
    background-color: #222222;
    background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, #424242), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, #424242), color-stop(.75, #424242), color-stop(.75, transparent), to(transparent));
    -webkit-background-size: 7px 7px;
}

.gacha_start > div > div > div{
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-size: 12px;
}

.gacha_start > div > div > div > div{
    background: #424242;
    padding: 3px;
    margin-top: 3px;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

.gacha_start > div > div > div > div img{
    width: 14px;
    margin-right: 5px;
}

.gacha_result_contain{
    border: 1px solid #333;
    padding: 5px;
		background: #333;
		max-width: 450px;
    margin: 0 auto;
}

.gacha_result{
    width: 100%;
    height: 100%;
}

.gacha_attention{
	text-align: center;
	font-size: 10px;
	padding: 10px;
	color: #ffffff;
	width: 100%;
}

.gacha_result_wrap{
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.gacha_get_card{
	width: calc(100% / 2);
	display: -webkit-flex;
	display: flex;
	border: 2px solid #333333;
	padding: 8px;
	background-color: #ececec;
  background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, #f9f9f9), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, #f9f9f9), color-stop(.75, #f9f9f9), color-stop(.75, transparent), to(transparent));
  -webkit-background-size: 7px 7px;
}

.gacha_get_img{
	width: 35%;
}

.gacha_get_text{
	width: 65%;
	font-size: 12px;
	padding-left: 4px;
	display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.gacha_get_text > div{
	width: 100%;
}

.gacha_get_title{
	width: 100%;
	background: #cccccc;
	padding: 2px;
	font-weight: bold;
}

.gacha_get_num{
	font-size: 18px;
	font-weight: bold;
	padding: 5px;
	text-align: right;
	background: #f5f5f5;
}

.gacha_foot_btnwrap{
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  margin: 10px auto 0;
  width: 100%;
  max-width: 450px;
	height: 30px;
}

.gacha_reset_btn{
  width: 70px;
	height: 30px;
	background: #464ff8;
	color: #ffffff;
	display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  font-weight: bold;
  border-radius: 5px;
}

.gacha_list_label{
  width: calc(100% - 80px);
	height: 30px;
	background: #ff3b00;
	color: #ffffff;
	display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  font-weight: bold;
}

.gacha_list_contain{
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 100%;
	height: calc(100% - 50px);
	background: #424242;
	z-index: 20;
	padding: 10px;
  opacity: 0;
  -moz-transition: opacity .2s ease, bottom 0s ease .2s;
  -webkit-transition: opacity .2s ease, bottom 0s ease .2s;
  transition: opacity .2s ease, bottom 0s ease .2s;
}

#gachalist_check:checked ~ .gacha_contain .gacha_list_contain{
  bottom:0;
  opacity: 1;
  -moz-transition: opacity .2s ease, bottom 0s ease;
  -webkit-transition: opacity .2s ease, bottom 0s ease;
  transition: opacity .2s ease, bottom 0s ease;
}

.gacha_list_header{
  padding-bottom: 10px;
}

.gacha_list_title{
	background: #c3da49;
	height: 30px;
	display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  font-weight: bold;
  position: relative;
}

.gacha_list_title label{
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: block;
}

.gacha_list_title label:before{
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  background: #333;
  -moz-transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.gacha_list_title label:after{
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  background: #333;
  -moz-transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.gacha_lsit_status{
  margin: 10px auto 0;
  max-width: 450px;
  padding: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  background-color: #ececec;
  background-image: -webkit-gradient(linear, 0 0, 100% 100%, color-stop(.25, #f9f9f9), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, #f9f9f9), color-stop(.75, #f9f9f9), color-stop(.75, transparent), to(transparent));
  -webkit-background-size: 7px 7px;
}

.gacha_lsit_status > div{
  width: 50%;
}

.gacha_lsit_status span{
  font-weight: bold;
}

.gacha_list_wrap{
  max-width: 450px;
  margin: 0 auto;
}

.gacha_list_inner{
  display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.gacha_custom_contain{
  position: absolute;
	bottom: 0;
	left: -100%;
	width: 100%;
	height: calc(100% - 50px);
	background: rgba(0,0,0,0.7);
	z-index: 19;
	padding: 10px;
  opacity: 1;
  -moz-transition:left .2s ease;
  -webkit-transition:left .2s ease;
  transition:left .2s ease;
}

#gachacustom_check:checked ~ .gacha_contain .gacha_custom_contain{
  left:0;
  opacity: 1;
}

.gacha_custom_header{
  padding-bottom: 10px;
}

.gacha_custom_title{
	background: #ffffff;
	height: 30px;
	display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  font-weight: bold;
  position: relative;
}

.gacha_custom_title label{
  position: absolute;
  top: 40px;
  right: -30px;
  width: 25px;
  height: 50px;
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0% 100%);
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: rgba(187, 187, 187, 1);
  -moz-transition: all .2s ease;
  -webkit-transition: all .2s ease;
  transition: all .2s ease;
}

.gacha_custom_title label img{
  width: 90%;
}

#gachacustom_check:checked ~ .gacha_contain .gacha_custom_contain .gacha_custom_title label img{
  opacity: 0;
}

#gachacustom_check:checked ~ .gacha_contain .gacha_custom_contain .gacha_custom_title label{
  top: 0;
  right: 0px;
  width: 30px;
  height: 30px;
  background: none;
}

#gachacustom_check:checked ~ .gacha_contain .gacha_custom_contain .gacha_custom_title label:before{
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  background: #333;
  -moz-transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}

#gachacustom_check:checked ~ .gacha_contain .gacha_custom_contain .gacha_custom_title label:after{
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 4px;
  background: #333;
  -moz-transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.gacha_custom_status{
  padding-top: 10px;
  max-width: 450px;
  margin: 0 auto;
  display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
}

.gacha_custom_status > div{
  width: calc(100% / 4);
  border: 1px solid #fff;
  display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    background: #333;
    color: #fff;
    padding: 5px 0;
}

.gacha_custom_wrap{
  color: #ffffff;
  max-width: 450px;
  margin: 0 auto;
}

.gacha_custom_inner{
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.gacha_custom_typename{
  width: 100%;
  background: #c3da49;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  color: #333333;
  margin-bottom: 5px;
}

.gacha_custom{
  width: 50%;
  padding: 5px;
}

.gacha_custom label{
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
    align-items: center;
}

.gacha_custom_name{
  width: calc(100% - 17px);
  overflow: hidden;
  text-overflow: ellipsis;
    white-space: nowrap;
}

.gacha_yagi{
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  -moz-transform: translate(-50%,100%);
  -webkit-transform: translate(-50%,100%);
  transform: translate(-50%,100%);
  width: 100%;
  max-width: 300px;
  z-index: 50;
  -moz-transition: transform .2s ease;
  -webkit-transition: transform .2s ease;
  transition: transform .2s ease;
}

.gacha_yagi-move{
  -moz-transform: translate(-50%,0);
  -webkit-transform: translate(-50%,0);
  transform: translate(-50%,0);
}


@media screen and (min-width: 768px) {
	.gacha_get_card{
		width: calc(100% / 3);
	}
}