.chart div.wrap {
  padding: 0;
}

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

#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;
}

/*	main size */
body.main #chart .diagram ul li.sz-l a img {
  width: 166px;
  height: 253px;
}

body.main #chart .diagram ul li.sz-m a img {
  width: 119px;
  height: 178px;
}

body.main #chart .diagram ul li.sz-s a img {
  width: 92px;
  height: 138px;
}

body.main #chart .diagram ul li.spiral a img {
  width: 257px;
  height: 295px;
}

body.main #chart .diagram ul li.dennou a img {
  width: 280px;
  height: 295px;
}

/*	chart02 size */
body.chart02 #chart .diagram ul li.sz-l a img {
  width: 158px;
  height: 238px;
}

body.chart02 #chart .diagram ul li.sz-m a img {
  width: 136px;
  height: 204px;
}

body.chart02 #chart .diagram ul li.sz-s a img {
  width: 106px;
  height: 159px;
}
/*	chart03 size */
body.chart03 #chart .diagram ul li.sz-l a img {
  width: 177px;
  height: 269px;
}

body.chart03 #chart .diagram ul li.sz-m a img {
  width: 150px;
  height: 227px;
}

body.chart03 #chart .diagram ul li.sz-s a img {
  width: 122px;
  height: 185px;
}
body.chart03 #chart .diagram ul li.spiral a img {
  width: 405px;
  height: 620px;
}

body.chart03 #chart .diagram ul li.dennou a img {
  width: 405px;
  height: 572px;
}


/*	main position */
body.main #chart ul li.spiral {
  left: 12px;
  top: 11px;
}

body.main #chart ul li.dennou {
  left: 305px;
  top: 10px;
}

body.main #chart ul li.hanzawa {
  left: 340px;
  top: 417px;
}

body.main #chart ul li.hana {
  left: 365px;
  top: 737px;
}

body.main #chart ul li.tomari {
  left: 783px;
  top: 637px;
}

body.main #chart ul li.kurosaki {
  left: 796px;
  top: 917px;
}

body.main #chart ul li.moriyama {
  left: 182px;
  top: 721px;
}

body.main #chart ul li.hamamura {
  left: 48px;
  top: 720px;
}

body.main #chart ul li.morota {
  left: 134px;
  top: 450px;
}

body.main #chart ul li.hiroshige {
  left: 833px;
  top: 131px;
}

body.main #chart ul li.miki {
  left: 237px;
  top: 450px;
}

body.main #chart ul li.tamaki {
  left: 444px;
  top: 293px;
}

body.main #chart ul li.onishi {
  left: 92px;
  top: 1082px;
}

body.main #chart ul li.hirayama {
  left: 387px;
  top: 125px;
}

body.main #chart ul li.nozaki {
  left: 767px;
  top: 781px;
}

body.main #chart ul li.kiyota {
  left: 46px;
  top: 299px;
}

body.main #chart ul li.karita {
  left: 767px;
  top: 1005px;
}

body.main #chart ul li.harada {
  left: 206px;
  top: 1080px;
}

body.main #chart ul li.goda {
  left: 628px;
  top: 115px;
}

body.main #chart ul li.oka {
  left: 31px;
  top: 450px;
}

body.main #chart ul li.kanou {
  left: 161px;
  top: 299px;
}

body.main #chart ul li.miyuki {
  left: 501px;
  top: 125px;
}

body.main #chart ul li.mikasa {
  left: 845px;
  top: 417px;
}

body.main #chart ul li.tomomi {
  left: 601px;
  top: 917px;
}

body.main #chart ul li.sena {
  left: 104px;
  top: 132px;
}

body.main #chart ul li.isayama {
  left: 627px;
  top: 637px;
}

body.main #chart ul li.nakanowatari {
  left: 692px;
  top: 417px;
}

body.main #chart ul li.owada {
  left: 534px;
  top: 416px;
}

/*	chart02 position */
body.chart02 #chart ul li.hanzawa {
  left: 206px;
  top: 293px;
}

body.chart02 #chart ul li.tomari {
  left: 488px;
  top: 606px;
}

body.chart02 #chart ul li.kurosaki {
  left: 617px;
  top: 900px;
}

body.chart02 #chart ul li.moriyama {
  left: 431px;
  top: 887px;
}

body.chart02 #chart ul li.hamamura {
  left: 285px;
  top: 887px;
}

body.chart02 #chart ul li.morota {
  left: 52px;
  top: 544px;
}

body.chart02 #chart ul li.miki {
  left: 170px;
  top: 544px;
}

body.chart02 #chart ul li.onishi {
  left: 50px;
  top: 888px;
}

body.chart02 #chart ul li.nozaki {
  left: 679px;
  top: 353px;
}

body.chart02 #chart ul li.karita {
  left: 679px;
  top: 605px;
}

body.chart02 #chart ul li.harada {
  left: 166px;
  top: 888px;
}

body.chart02 #chart ul li.oka {
  left: 52px;
  top: 294px;
}

body.chart02 #chart ul li.mikasa {
  left: 808px;
  top: 94px;
}

body.chart02 #chart ul li.isayama {
  left: 488px;
  top: 352px;
}

body.chart02 #chart ul li.nakanowatari {
  left: 624px;
  top: 94px;
}

body.chart02 #chart ul li.owada {
  left: 447px;
  top: 94px;
}

/*	chart03 position */
body.chart03 #chart ul li.spiral {
  left: 41px;
  top: 41px;
}

body.chart03 #chart ul li.dennou {
  left: 533px;
  top: 41px;
}

body.chart03 #chart ul li.hanzawa {
  left: 507px;
  top: 766px;
}

body.chart03 #chart ul li.hiroshige {
  left: 79px;
  top: 829px;
}

body.chart03 #chart ul li.goda {
  left: 279px;
  top: 810px;
}

body.chart03 #chart ul li.isayama {
  left: 764px;
  top: 810px;
}

@media all and (min-width: 768px) {
  #chart .diagram {
    width: 980px;
    background-repeat: no-repeat;
  }

  body.main #chart .diagram {
    height: 1115px;
  }
  body.chart02 #chart .diagram {
    height: 1142px;
  }
  body.chart03 #chart .diagram {
    height: 1094px;
  }
  .yougo #cast_dt .txt {
    /* margin-bottom: 50px !important; */
  }
}

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

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

  body.main #chart .diagram {
    padding: 113.7755102040816% 0 0;
  }

  body.chart02 #chart .diagram {
    padding: 116.530612244898% 0 0;
  }

  body.chart03 #chart .diagram {
    padding: 111.6326530612245% 0 0;
  }

  #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;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 99999;
}

#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: max-content;
    margin-left: 0;
    border: 13px solid #f9e401;
    box-sizing: border-box;
    padding: 20px 20px 5px;
    left: 50%;
  }

  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: 20px; */
    /* bottom: 20px; */
  }

  #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: 90%;
    height: max-content;
    margin: 10px -50%;
    border-radius: 10px;
    padding: 15px 15px 0;
    box-sizing: border-box;
  }

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

  #cast_dt .btn-w-close a {
    margin: 1% auto;
    background-color: #000;
  }

  #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 {
    font-size: 4vw;
  }
}

#cast_dt .txt {
  line-height: 1.8;
  height: max-content;
  margin-bottom: 0;
}

#cast_dt .txt {
  line-height: 1.8;
  height: max-content;
  margin-bottom: 0;
}

/*	tab
============================== */
ul#chart_tab li {
  width: 312px;
  height: 100px;
  float: left;
}

ul#chart_tab li a {
  display: block;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 110%;
  cursor: pointer;
}

body.chart div.chart_tab_outer {
  background-image: url(../img/chart/tab01.png);
}

body.chart02 div.chart_tab_outer {
  background-image: url(../img/chart/tab02.png);
}

body.chart03 div.chart_tab_outer {
  background-image: url(../img/chart/tab03.png);
}

@media all and (min-width: 768px) {
  div.chart_tab_outer {
    width: 980px;
    height: 100px;
    margin: 2em auto 1em;
  }

  ul#chart_tab li:not(:last-child) {
    margin-right: 22px;
  }
}

@media all and (max-width: 767px) {
  div.chart_tab_outer {
    isplay: block;
    white-space: nowrap;
    overflow: hidden;
    text-indent: 110%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    position: relative;
    height: 0;
    padding-top: 11.111111111%;
    margin: 1em 0 0;
  }

  div.chart_tab_outer ul#chart_tab {
    display: block;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  ul#chart_tab li {
    width: 32%;
    isplay: block;
    white-space: nowrap;
    overflow: hidden;
    text-indent: 110%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    position: relative;
    height: 0;
    padding-top: 10.25641024%;
  }

  ul#chart_tab li a {
    display: block;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  ul#chart_tab li:not(:last-child) {
    margin-right: 2%;
  }
}
