#chart .diagram {
  position: relative;
  margin: 0;
}

#chart .diagram ul, #chart .diagram ul li {
  position: absolute;
}

#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: 230px;
  height: 280px;
}

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

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

#chart ul li.chara_a {
  left: 218px;
  top: 336px;
}

#chart ul li.chara_b {
  left: 552px;
  top: 336px;
}

#chart ul li.chara_c {
  left: 507px;
  top: 60px;
}

#chart ul li.chara_d {
  left: 490px;
  top: 660px;
}

#chart ul li.chara_e {
  left: 218px;
  top: 60px;
}

#chart ul li.chara_f {
  left: 722px;
  top: 710px;
}

#chart ul li.chara_g {
  left:607px;
  top: 1200px;
}

#chart ul li.chara_h {
  left: 773px;
  top: 1200px;
}

#chart ul li.chara_i {
  left: 730px;
  top: 60px;
}

#chart ul li.chara_j {
  left: 227px;
  top: 930px;
}

#chart ul li.chara_k {
  left: 617px;
  top: 950px;
}

#chart ul li.chara_l {
  left: 783px;
  top: 950px;
}

#chart ul li.chara_m {
  left: 212px;
  top: 1200px;
}

#chart ul li.chara_n {
  left: 46px;
  top: 1200px;
}

#chart ul li.chara_o {
  left: 451px;
  top: 950px;
}

#chart ul li.chara_p {
  left: 246px;
  top: 660px;
}

#chart ul li.chara_q {
  left: 380px;
  top: 1200px;
}

#chart ul li.chara_r {
  left: 18px;
  top: 930px;
}

#chart ul li.chara_s {
  left: 37px;
  top: 660px;
}

#chart ul li.chara_t {
  left: 37px;
  top: 120px;
}



@media all and (min-width: 768px) {
	.contentsBlock {padding: 20px 0 0;}
	#chart .diagram { width:940px; height: 1470px; margin: 0 auto 20px;}
}
@media all and (max-width: 767px) {
	.contentsBlock {padding: 0.5em  0.5em 0;}

  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    height: 0;
    padding:156.382% 0 0; margin-bottom: 1em;
    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: 5800 !important;
    bottom: 0;
    /* left: 0; */
    right: 0;
    margin: auto;
}

#cast_dt .btn-w-close a {
  display: block;
  width: 84px;
  height: 20px;
  background: url(../img/chart/close.png) no-repeat center center;
  margin: 0 auto;
}

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

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

  #cast_dt .btn-w-close {
    position: absolute;
    right: 25px;
    bottom: 25px;
  }
}

@media all and (max-width: 767px) {
  #cast_dt {
    width: 100%;
    margin: 0px -50% 0;
  }
	div.character { position: relative;}
  #cast_dt .btn-w-close a {
    margin: 5% auto 3.5%; width: 100%; height: 40px; background-size: 70px 17px;
  }

}
