/*chart*/
@media all and (min-width: 768px) {
  .low div.wrap {
    padding: 235px 0 0;
  }

  h1 {
    /* margin: 0 auto -348px; */
    z-index: 2;
    position: relative;
  }
}

@media (max-width: 767px) {
  h1 {
    padding-top: 72.280701754386%;
    /* margin: -20px -3px -6%; */
    z-index: 4;
  }

  .low div.wrap {
    padding: 0;
  }
}

#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: 283px;
  height: 304px;
}

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

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

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

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

#chart ul li.kurosu {
  left: 347px;
  top: 402px;
}

#chart ul li.iga {
  left: 359px;
  top: 77px;
}

#chart ul li.kawai {
  left: 28px;
  top: 420px;
}

#chart ul li.tsutsumi {
  left: 127px;
  top: 759px;
}

#chart ul li.ozawa {
  left: 589px;
  top: 759px;
}

#chart ul li.yamagata {
  left: 692px;
  top: 420px;
}

#chart ul li.suzuki {
  left: 10px;
  top: 1092px;
}

#chart ul li.wada {
  left: 246px;
  top: 1092px;
}

#chart ul li.koeda {
  left: 259px;
  top: 1397px;
}

#chart ul li.miki {
  left: 495px;
  top: 1397px;
}

#chart ul li.tsukikawa {
  left: 496px;
  top: 1092px;
}

#chart ul li.takatoo {
  left: 732px;
  top: 1092px;
}

#chart ul li.shinshi {
  left: 28px;
  top: 77px;
}

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

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

  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    /* width: 96%; */
    height: 0;
    /*padding:127.641255605% 0 0;*/
    padding: 169.917864476386% 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: -webkit-max-content; */
    /* height: -moz-max-content; */
    /* height: max-content; */
    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-left: -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;
  }
}
