@media all and (min-width: 768px) {
.chart #contentsArea  {background-image: url(../img/chart/bg.png); background-repeat: no-repeat; background-position: center top;}
.chart .contentsBlock { padding: 20px;}
}
@media all and (max-width: 767px) {
.chart #contentsArea  {
	background-image: url(../img/chart/sp_bg_l.png), url(../img/chart/sp_bg_r.png); 
	background-repeat: no-repeat, no-repeat; 
	background-position: left top, right top;
	background-size: 31.4% auto, 39% auto;
	}
.chart .contentsBlock { padding: 10px 10px 10px;}
}


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

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

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

#chart ul li.chara_a {
  left: 330px;
  top: 310px;
}

#chart ul li.chara_b {
  left: 578px;
  top: 310px;
}

#chart ul li.chara_c {
  left: 330px;
  top: 627px;
}

#chart ul li.chara_d {
  left: 578px;
  top: 627px;
}

#chart ul li.chara_e {
  left: 175px;
  top: 427px;
}

#chart ul li.chara_f {
  left: 805px;
  top: 407px;
}

#chart ul li.chara_g {
  left:805px;
  top: 724px;
}

#chart ul li.chara_h {
  left: 94px;
  top: 678px;
}

#chart ul li.chara_i {
  left: 15px;
  top: 90px;
}

#chart ul li.chara_j {
  left: 402px;
  top: 90px;
}

#chart ul li.chara_k {
  left: 249px;
  top: 90px;
}

#chart ul li.chara_l {
  left: 15px;
  top: 427px;
}

#chart ul li.chara_m {
  left: 614px;
  top: 90px;
}


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

  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    height: 0;
    padding:97.395% 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: 100px;
  height: 35px;
  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: 740px;
    height: 428px;
    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: 100px 35px; background-position: center center;
  }

}
