/*相関図*/
.chart #contentsArea .contentsBlock {}

#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: 230px;
  height: 315px;
}
#chart .diagram ul li.sz-m a img {
  width: 210px;
  height: 280px;
}
#chart .diagram ul li.sz-s a img {
  width: 170px;
  height: 225px;
}
#chart .diagram ul li.sz-ss a img {
  width: 170px;
  height: 195px;
}

#chart ul li.chara_01 {
  left:260px;
  top: 350px;
}

#chart ul li.chara_02 {
  left:560px;
  top: 350px;
}

#chart ul li.chara_03 {
  left:270px;
  top: 880px;
}

#chart ul li.chara_04 {
  left:40px;
  top: 405px;
}

#chart ul li.chara_05 {
  left:50px;
  top: 900px;
}

#chart ul li.chara_06 {
  left:570px;
  top: 1225px;
}

#chart ul li.chara_07 {
  left:610px;
  top: 930px;
}

#chart ul li.chara_08 {
  left:840px;
  top: 420px;
}

#chart ul li.chara_09 {
  left:130px;
  top: 633px;
}

#chart ul li.chara_10 {
  left:630px;
  top: 685px;
}

#chart ul li.chara_11 {
  left:810px;
  top: 685px;
}

#chart ul li.chara_12 {
  left:110px;
  top: 1150px;
}

#chart ul li.chara_13 {
  left:805px;
  top: 930px;
}

#chart ul li.chara_14 {
  left:10px;
  top: 60px;
}

#chart ul li.chara_15 {
  left:190px;
  top: 60px;
}

#chart ul li.chara_16 {
  left:825px;
  top: 20px;
}

#chart ul li.chara_17 {
  left:405px;
  top: 20px;
}

#chart ul li.chara_18 {
  left:770px;
  top: 1225px;
}

#chart ul li.chara_19 {
  left:620px;
  top: 80px;
}

#chart ul li.chara_20 {
  left:180px;
  top: 1375px;
}

.chart .add { font-weight: 500; /*text-align: right;*/}

.chart .deco.pic1 span { height:0; padding-top: -webkit-calc(50 / 18 * 100%); padding-top: calc(50 / 18 * 100%); }
.chart .deco.pic2 span { height:0; padding-top: -webkit-calc(90 / 50 * 100%); padding-top: calc(90 / 50 * 100%); }
.chart .deco.pic3 span { height:0; padding-top: -webkit-calc(26 / 26 * 100%); padding-top: calc(26 / 26 * 100%); }
.chart .deco.pic4 span { height:0; padding-top: -webkit-calc(210 / 200 * 100%); padding-top: calc(210 / 200 * 100%); }
.chart .deco.pic5 span { height:0; padding-top: -webkit-calc(260 / 300 * 100%); padding-top: calc(260 / 300 * 100%); }
.chart .deco.pic6 span { height:0; padding-top: -webkit-calc(36 / 62 * 100%); padding-top: calc(36 / 62 * 100%); }

@media all and (min-width: 768px) {
	.chart.low #contentsArea .contentsBlock { padding: 45px 0 0px; margin: 0 auto;}
	#chart .diagram { width:1040px; height: 1610px; margin: 0 auto;}
	.chart .add {padding: 10px;}
	
	.chart .deco.pic1 { position: absolute; top:131px; left:50%; margin-left: -492px; width: 18px;}
	.chart .deco.pic2 { position: absolute; top:80px; left:50%; margin-left: -479px; width: 50px; }
	.chart .deco.pic3 { position: absolute; top:87px; left:50%; margin-left: -405px; width: 26px;}
	.chart .deco.pic4 { position: absolute; top:0px; left:50%; margin-left: 330px; width: 200px; }
	.chart .deco.pic5 { position: absolute; bottom:-103px; left:50%; margin-left: 207px; width: 300px;}
	.chart .deco.pic6 { position: absolute; bottom:-40px; left:50%; margin-left: 412px; width: 62px; }
	/*.chart .deco.pic5 { position: absolute; bottom:-120px; left:50%; margin-left: -615px; width: 300px;}
	.chart .deco.pic6 { position: absolute; bottom:-17px; left:50%; margin-left: -329px; width: 62px; }*/
	
	
}
@media all and (max-width: 767px) {
	.chart.low div.wrap .contentsBlock { padding: 0;}
	
  /*chart*/
  #chart .diagram {
    margin: 0px auto;
    overflow: hidden;
    height: 0;
    padding-top: calc(1610 / 1040 * 100%);
    background-size: cover;
  }
  #chart .diagram ul {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
.chart .add {padding: 0.5em 0; font-size: 60%;}
	
	.chart .deco.pic1 { position: absolute; top:55px; left:2%; width: 3%;}
	.chart .deco.pic2 { position: absolute; top:30px; left:5%; width: 8%; }
	.chart .deco.pic3 { position: absolute; top:45px; left:15%; width: 3%;}
	.chart .deco.pic4 { position: absolute; top:5px; right:1%; width: 20%; }
	.chart .deco.pic5 { position: absolute; bottom:-50px; right:3%; width: 25%;}
	.chart .deco.pic6 { position: absolute; bottom:-30px; right:5%; width: 6%; }
	/*.chart .deco.pic5 { position: absolute; bottom:-35px; left:0%; width: 25%;}
	.chart .deco.pic6 { position: absolute; bottom:-13px; left:23%; width: 6%; }*/
}



#cast_dt {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 10000 !important;
    bottom: 0;
    /* left: 0; */
    right: 0;
    margin: auto;
}


#cast_dt .btn-w-close a {
  display: block;
  
  background-image: url(../img/chart/close.png);
  background-repeat: no-repeat; background-position: center center; background-size: contain;
  margin: 0 auto;
  cursor: pointer;
}

@media all and (min-width: 768px) {
  #cast_dt {
    width: 730px;
    height: 470px;
    margin-left: -365px;
  }

  #cast_dt .btn-w-close {
    position: absolute;
    right: 30px;
    top: -40px;
  }
	#cast_dt .btn-w-close a {
		width: 100px;
  height: 40px;
		border-top-left-radius: 20px;
        border-top-right-radius: 20px;
		background-color: #fdf9f0;
		border-top:solid 1px #000;
		border-right:solid 1px #000;
		border-left:solid 1px #000;
  }

}

@media all and (max-width: 767px) {
  #cast_dt {
    width: 100%;
    margin: 0px -50% 0px!important;
  }
	div.character { position: relative;}
	#cast_dt .btn-w-close {width: 150px; margin-left:-75px; padding:0; display: block;
		position: absolute;
    left:  50%;
    bottom: 20px;}
  #cast_dt .btn-w-close a {
     width: 100%; height: 35px; background-size: 78px 35px; background-position: center center;
	  border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
	  background-color: #fdf9f0;
	  border:solid 1px #000;
  }

}
