#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: 260px;
  height: 270px;
}

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

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

#chart ul li.chara_a {
  left: 66px;
  top: 435px;
}

#chart ul li.chara_b {
  left: 380px;
  top: 435px;
}

#chart ul li.chara_c {
  left: 470px;
  top: 769px;
}

#chart ul li.chara_d {
  left: 252px;
  top: 769px;
}

#chart ul li.chara_e {
  left: 34px;
  top: 769px;
}

#chart ul li.chara_f {
  left: 470px;
  top: 1016px;
}

#chart ul li.chara_g {
  left: 252px;
  top: 1016px;
}

#chart ul li.chara_h {
  left: 34px;
  top: 1016px;
}

#chart ul li.chara_i {
  left: 470px;
  top: 110px;
}

#chart ul li.chara_j {
  left: 252px;
  top: 110px;
}

#chart ul li.chara_k {
  left: 34px;
  top: 110px;
}

#chart ul li.chara_l {
  left: 733px;
  top: 110px;
}

#chart ul li.chara_m {
  left: 733px;
  top: 490px;
}

#chart ul li.chara_n {
  left: 733px;
  top: 769px;
}


#chart .diagram {
}

@media all and (min-width: 768px) {
	#chart .diagram { width:940px; height: 1292px; margin: 0 auto; background-image: url(../img/chart/chart.jpg?0221);}
}
@media all and (max-width: 767px) {

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

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

/*popup*/
#cast_dt {
  text-align: left;
  /*border:4px solid #fff;*/
  background-color: #fff;
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 center;
  background-size: auto, cover;
  margin: 1em;
}

#cast_dt #mainbox {
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
}

#cast_dt h1 {
  width: 100%;
  margin: .2em auto .5em;
  padding: .6em 0 0;
  background: none;
}

#cast_dt h1 {
  position: relative;
  z-index: 2;
}

#cast_dt h1:before {
  background-color: rgba(255, 255, 255, 0.5);
  content: '';
  position: absolute;
  top: 12%;
  left: 12%;
  width: 88%;
  height: 76%;
  z-index: -1;
}

#cast_dt h1 span.castname {
  width: 90%;
  height: 78px;
  margin: 0 auto;
  display: block;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: 0 0;
}


#cast_dt .prof {
  width: 100%;
}

#cast_dt .prof h2 {
  background-color: rgba(103, 184, 201, 0.8);
  color: #fff;
  font-weight: bold;
  line-height: 130%;
  font-size: 110%;
  display: inline-block;
  padding: .2em .5em;
}

#cast_dt .prof p {
  padding: .5em;
}

#cast_dt .photo {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 2px 15px 28px rgba(3, 47, 63, 0.1);
  background-color: rgba(255, 255, 255, 0.25);
}


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

#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: 4%;
    bottom: 5%;
  }
}

@media all and (max-width: 767px) {
  #cast_dt {
    width: 100%;
    margin: 10px -50% 0; padding-top: 10px;
  }

  #cast_dt .btn-w-close a {
    margin: 3.5% auto 5%;
  }

}

