#chart .diagram {
  position: relative;
  margin: .5em auto 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: 250px;
  height: 270px;
}

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

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

#chart .diagram ul li a {
  filter: alpha(opacity=0);
  -moz-opacity: 0;
  opacity: 0;
  transition: 0.3s;
  background-color: red;
}

#chart .diagram ul li a:hover {
  filter: alpha(opacity=100);
  -moz-opacity: 100;
  opacity: 100;
}

#chart ul li.yaeko {
  left: 372px;
  top: 465px;
}

#chart ul li.rihito {
  left: 89px;
  top: 465px;
}

#chart ul li.mao {
  left: 100px;
  top: 152px;
}

#chart ul li.yuto {
  left: 19px;
  top: 810px;
}

#chart ul li.haruka {
  left: 570px;
  top: 200px;
}

#chart ul li.fumi {
  left: 41px;
  top: 1081px;
}

#chart ul li.satoshi {
  left: 395px;
  top: 848px;
}

#chart ul li.mamoru {
  left: 338px;
  top: 200px;
}

#chart ul li.yua {
  left: 229px;
  top: 848px;
}

#chart ul li.tami {
  left: 802px;
  top: 848px;
}

#chart ul li.hiroaki {
  left: 611px;
  top: 848px;
}

#chart ul li.yumiko {
  left: 551px;
  top: 1081px;
}

#chart ul li.yukie {
  left: 679px;
  top: 465px;
}

#chart .diagram {
  /* width: 892px; */
  /*height:1186px;*/
  height: 1272px;
}

@media all and (max-width: 767px) {

  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    /* width: 96%; */
    height: 0;
    /*padding:127.641255605% 0 0;*/
    padding: 129.7959183673469% 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: 81px;
  height: 34px;
  background: url(../img/chart/close.png) no-repeat;
  margin: 0 0 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;
  }
  div.iga { height: 393px;}
  div.kawai { height: 365px;}
  div.koeda { height: 393px;}
  div.kurosu { height: 393px;}
  div.miki { height: 393px;}
  div.ozawa { height: 393px;}
  div.shinshi { height: 393px;}
  div.suzuki { height: 393px;}
  div.takatoo { height: 393px;}
  div.tsukikawa { height: 393px;}
  div.tsutsumi { height: 393px;}
  div.wada { height: 393px;}
  div.yamagata { height: 393px;}

  #cast_dt #mainbox {
    margin: 0 auto;
  }

  #cast_dt .prof {
    display: inline-block;
    width: 50%;
    position: relative;
    margin: 0 auto;
    width: calc(98% - 330px);
  }

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

  #cast_dt .photo {
    width: 280px;
    height: 360px;
    padding: 0;
    margin: 0 20px 0 35px;
  }

  #cast_dt .prof p {
    font-size: 92%;
    line-height: 160%;
  }

  #cast_dt .btn-w-close {
    position: absolute;
    right: 4%;
    bottom: 5%;
  }

  #cast_dt span.ovtxt {
    display: inline-block;
    height: 230px;
    overflow-x: hidden;
    overflow-y: scroll;
  }

  .ovtxt::-webkit-scrollbar {
    width: 4px;
    background: none;
  }

  .ovtxt::-webkit-scrollbar-thumb {
    background: #111;
  }
}

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

  #cast_dt #mainbox {
    margin: 2px auto;
    padding: 0 0 .5em;
  }

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

  #cast_dt h1 {
    width: 100%;
    margin: .2em auto 2%;
    padding: 3% 0 1.8% 0;
  }

  #cast_dt h1:before {
    height: 70%;
  }

  #cast_dt h1 span.castname {
    width: 90%;
    height: 0;
    padding: 13% 0 0;
    background-size: contain;
  }

  #cast_dt .prof h2 {
    font-size: 4vw;
    margin: -1em 0 0;
  }

  #cast_dt .photo {
    width: 60%;
    height: 0;
    padding: 75% 0 0;
    margin: 0 auto 5%;
    position: relative;
  }

  #cast_dt .photo img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  #cast_dt .photo, #cast_dt .prof {
    float: none;
  }

  #cast_dt .prof {
    width: 90%;
    margin: 1em auto 0;
    padding: 0 5% 2%;
    background-color: rgba(255, 255, 255, 0.5);
  }

  #cast_dt .prof p {
    font-size: 100%;
    font-size: 3.4vw;
    line-height: 165%;
    padding: .4em 0 .8em;
  }
}

#cast_dt .txt {
  line-height: 1.8;
height: 230px;
overflow: auto;
}
