#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: 210px;
  height: 257px;
}

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

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

#chart .diagram ul li.sz-ss a img {
  width: 145px;
  height: 170px;
}

#chart ul li.chara_a {
  left:508px;
  top: 285px;
}

#chart ul li.chara_b {
  left: 254px;
  top: 285px;
}

#chart ul li.chara_c {
  left: 25px;
  top: 309px;
}

#chart ul li.chara_d {
  left:719px;
  top: 929px;
}

#chart ul li.chara_e {
  left: 476px;
  top: 907px;
}

#chart ul li.chara_f {
  left: 229px;
  top: 602px;
}

#chart ul li.chara_g {
  left: 284px;
  top: 1139px;
}

#chart ul li.chara_h {
  left: 508px;
  top: 25px;
}

#chart ul li.chara_i {
  left: 24px;
  top: 717px;
}

#chart ul li.chara_j {
  left: 763px;
  top: 308px;
}

#chart ul li.chara_k {
  left: 261px;
  top: 867px;
}

#chart ul li.chara_l {
  left: 719px;
  top: 647px;
}

#chart ul li.chara_m {
  left: 444px;
  top: 602px;
}

#chart ul li.chara_n {
  left: 54px;
  top: 1139px;
}

#chart ul li.chara_o {
  left: 730px;
  top: 25px;
}


@media all and (min-width: 768px) {
	#contentsArea {
	background-image: url(../img/chart/bg_cont.png);
	background-repeat:no-repeat;
	background-position: top center;
}
	.chart.low div.wrap .contentsBlock { padding: 10px;}
	#chart .diagram { width:960px; height: 1420px; margin: 0 auto; border-radius: 35px;}
	
}
@media all and (max-width: 767px) {
	#contentsArea { padding-top: 20px;
	background-image: url(../img/chart/bg_cont_sp.png);
	background-repeat:no-repeat;
	background-position: top center;
}

	.chart.low div.wrap .contentsBlock { padding: 0.3em;}
	
  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    height: 0;
    padding:147.916% 0 0;
    background-size: cover;
	   border-radius: 20px;
  }

  #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: 33px;
  background-image: url(../img/chart/close.png);
  background-repeat: no-repeat; background-position: 0 0; background-size: contain;
  margin: 0 auto;
}

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

@media all and (min-width: 768px) {
  #cast_dt {
    width: 730px;
    height: 420px;
    margin-left: -365px;
  }
  #cast_dt.chara_n {
    width: 730px;
    height: 350px;
    margin-left: -365px;
  }
  

  #cast_dt .btn-w-close {
    position: absolute;
    right: 0px;
    top: -33px;
  }
}

@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: 33px; background-image: url(../img/chart/close_sp.png); background-size: 103px 33px; background-position: center center;
  }

}
