@charset "UTF-8";

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

    medal css    

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

.generator_title{
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  z-index: 4;
  max-width: 980px;
  transform: translateX(-50%);
}

.generator_title:after{
  content: '';
  display: block;
  position: absolute;
  top: -30px;
  left: 0;
  background-color: #FFF;
  width: 100%;
  height: 30px;
  z-index: -1;
}

.generator_title_pop p{
  position: absolute;
  font-size: 10px;
  top: 45%;
  left: -10px;
  width: 100px;
  transform: translate(-100%,-52%);
  line-height: 1;
  opacity: 0;
  transition: opacity .2s ease;
}
/*==============================================================================================

tab

==============================================================================================*/
.tab_h_btn {
  opacity: .3;
  border: 2px solid #9fcad9;
}

.select_tab {
  opacity: 1;
}

.tab_body {
  position: relative;
  overflow: hidden;
}

.tab_open {
  position: relative;
  z-index: 1;
}

.tab_close {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  min-height: 100%;
  opacity: 0;
}

.role_tab {
  display: -webkit-flex;
  display: flex;
  border: 2px solid #5d8494;
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  z-index: 4;
  background: #ffffff;
  max-width: 980px;
  transform: translateX(-50%);
}

.role_tab li {
  width: 25%;
  height: 40px;
  background: #fcfded;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

.role_tab li img {
  width: 30px;
  margin: 0 5px;
}

@media screen and (max-width:767px) {
  .role_tab li span {
    display: none;
  }
}

.role_diff_contain {
  padding: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.role_diff_contain > p{
  text-align: center;
  font-weight: bold;
  width: 100%;
}

.role_diff_wrap {
  width: calc(50% - 5px);
  padding: 10px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  border: 2px solid #333;
  position: relative;
}

.role_diff_wrap:nth-child(n+3) {
  margin-top: 10px;
}

.custom_set,
.custom_remove{
  position: absolute;
  width: 30px;
  height: 30px;
  top: 0;
  left: 0;
}

.custom_set:before,
.custom_remove:before{
  content: '';
  display: block;
  width: 16px;
  height: 5px;
  background: #333333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.custom_set:after{
  content: '';
  display: block;
  width: 16px;
  height: 5px;
  background: #333333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) rotate(90deg);
}

.handle{
  width: 70px;
  height: 100%;
}


.role_medal_wrap {
  width: calc(50% - 40px);
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-around;
  justify-content: space-around;
  padding: 10px;
  background: rgba(204, 204, 204, 0.6);
  border-radius: 5px;
}

.role_medal_wrap>div {
  width: calc(100% / 3 - 2px);
  max-width: 60px;
  position: relative;
}

.role_medal_rank {
  position: absolute;
  bottom: -3px;
  right: 0;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  -webkit-clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  padding: 2px 5px;
  line-height: 1;
}

.medal_set_reset{
  width: 200px;
  height: 40px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: #F00;
  color: #FFF;
  font-weight: bold;
  margin: 40px auto 20px;
  border-radius: 5px;
}

.medal_set_reset:hover{
  opacity: .6;
}

@media screen and (max-width:767px) {
  .role_diff_wrap {
    width: 100%;
  }

  .handle{
    width: 60px;
  }

  .role_diff_wrap+.role_diff_wrap {
    margin-top: 10px;
  }

  .role_medal_wrap {
    width: calc(50% - 35px);
  }

  .hero_img {
    width: 40px;
  }
}


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

    modal

==========================================================*/
#modal_sec {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  overflow: hidden;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  -moz-transition: height 0s ease .4s, opacity .4s ease;
  -webkit-transition: height 0s ease .4s, opacity .4s ease;
  transition: height 0s ease .4s, opacity .4s ease;
}

.modal_open #modal_sec {
  pointer-events: inherit;
  opacity: 1;
  height: 100%;
  -moz-transition: height 0s ease, opacity .3s ease;
  -webkit-transition: height 0s ease, opacity .3s ease;
  transition: height 0s ease, opacity .3s ease;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.modal_contain {
  width: 300px;
}



/*=====================================
  メダル
======================================*/

.medal_wrap {
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 20px;
  border: 2px solid rgb(156, 156, 156);
  background: rgb(240, 240, 240);
}

.medallabel {
  width: calc(100% / 3 - 10px);
}

.medalimg {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.medalrank {
  position: absolute;
  bottom: -3px;
  right: 0;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  -webkit-clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  padding: 2px 5px;
  line-height: 1;
}

.medallabel .selectlabel {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.medallabel .selectlabel:after {
  display: none;
}

.medalcolor {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-top: 20px;
}

.medalcolor label {
  width: calc(100% / 3);
  height: 20px;
  color: rgb(211, 211, 211);
  font-size: 12px;
  font-weight: bold;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  -moz-transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.medalcolor input:checked+label {
  color: #333333;
}

.medal_set_btn {
  margin: 20px auto 0;
  width: 80%;
  height: 30px;
  background: #ff7a7a;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
}

@media screen and (max-width:767px) {
  .medal_wrap {
    padding: 20px 10px;
  }
}