#chart .diagram {
  position: relative;
  margin: 0 auto;
  background-size: 100%;
}

#chart .diagram ul, #chart .diagram ul li {
  position: absolute;
  width: max-content;
  height: max-content;
}

#chart .diagram ul li a {
  display: block;
  text-decoration: none;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
}

#chart .diagram ul li a img {
  display: block;
}
#chart .diagram ul li.sz-l a img {
  width: 172px;
  height: 230px;
}

#chart .diagram ul li.sz-m a img {
  width: 148px;
  height: 197px;
}

#chart .diagram ul li.sz-s a img {
  width: 134px;
  height: 178px;
}

#chart ul li.chara_a {
  left:457px;
  top: 377px;
}

#chart ul li.chara_b {
  left: 245px;
  top: 377px;
}

#chart ul li.chara_c {
  left: 53px;
  top: 377px;
}

#chart ul li.chara_d {
  left:160px;
  top: 647px;
}

#chart ul li.chara_e {
  left: 53px;
  top: 107px;
}

#chart ul li.chara_f {
  left: 245px;
  top: 107px;
}

#chart ul li.chara_g {
  left: 439px;
  top: 107px;
}

#chart ul li.chara_h {
  left: 669px;
  top: 377px;
}

#chart ul li.chara_i {
  left: 600px;
  top: 662px;
}

#chart ul li.chara_j {
  left: 760px;
  top: 662px;
}

#chart ul li.chara_k {
  left: 692px;
  top: 137px;
}


@media all and (min-width: 768px) {
	.chart.low div.wrap .contentsBlock {padding: 5px 5px!important;}
	#chart .diagram { width:960px; height: 910px; margin: 0 auto;}
}
@media all and (max-width: 767px) {
	.chart.low div.wrap .contentsBlock {padding: 3px 3px!important;}

  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    height: 0;
    padding:94.791% 0 0;
    background-size: cover;
  }

  #chart .diagram ul {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}



#cast_dt {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 10000 !important;
    bottom: 0;
    /* left: 0; */
    right: 0;
    margin: auto;
}

#cast_dt .btn-w-close a {
  display: block;
  width: 103px;
  height: 35px;
  background-color: #1b6cda;
  background-image: url(../img/chart/close.png);
  background-repeat: no-repeat; background-position: 0 0; background-size: contain;
  margin: 0 auto;
}
.chara_a#cast_dt .btn-w-close a {background-color: #522c85;}
.chara_h#cast_dt .btn-w-close a, .chara_i#cast_dt .btn-w-close a, .chara_j#cast_dt .btn-w-close a, .chara_k#cast_dt .btn-w-close a {background-color: #de4d76;}

#cast_dt .btn-w-close a {
  cursor: pointer;
}

@media all and (min-width: 768px) {
  #cast_dt {
    width: 750px;
    height: 400px;
    margin-left: -365px;
  }
  

  #cast_dt .btn-w-close {
    position: absolute;
    right: 0px;
    bottom: 0px;
  }
	#cast_dt .btn-w-close a {border-radius: 15px 0 0px 0; }
}

@media all and (max-width: 767px) {
  #cast_dt {
    width: 100%;
    margin: 0px -50% 0px!important;
  }
	div.character { position: relative;}
	#cast_dt .btn-w-close {width: 100px; margin: 0 auto 0; padding:0; display: block;}
  #cast_dt .btn-w-close a {
     width: 100%; height: 35px; background-size: 103px 35px; background-position: center center; border-radius: 15px 15px 0px 0;
  }

}
