section#contents {
  padding: 0;
  border: none;
  border-radius: 0;
}

.chart div.wrap {
  padding: 0;
}

#chart .diagram {
  position: relative;
  margin: 0 auto;
  background-size: 100%;
  background-position: center;
}

#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;
  /* background-color: red; */
  /* opacity: 0.5; */
}

/*	main size */
#chart .diagram ul li.sz-ll a img {
  width: 233px;
  height: 337px;
}

#chart .diagram ul li.sz-l a img {
  width: 205px;
  height: 298px;
}

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

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

#chart .diagram ul li.sz-ss a img {
  width: 133px;
  height: 193px;
}

#chart ul li.m-ayaka {
  left: 281px;
  top: 445px;
}

#chart ul li.m-fuka {
  left: 663px;
  top: 1313px;
}

#chart ul li.m-kai {
  left: 278px;
  top: 1313px;
}

#chart ul li.m-kento {
  left: 26px;
  top: 448px;
}

#chart ul li.m-kintaro {
  left: 291px;
  top: 937px;
}

#chart ul li.m-koji {
  left: 839px;
  top: 310px;
}

#chart ul li.m-koki {
  left: 886px;
  top: 98px;
}

#chart ul li.m-misaki {
  left: 560px;
  top: 98px;
}

#chart ul li.m-momoko {
  left: 61px;
  top: 937px;
}

#chart ul li.m-riku {
  left: 61px;
  top: 1313px;
}

#chart ul li.m-sayo {
  left: 842px;
  top: 622px;
}

#chart ul li.m-shizuka {
  left: 575px;
  top: 937px;
}

#chart ul li.m-sora {
  left: 471px;
  top: 1313px;
}

#chart ul li.m-togo {
  left: 558px;
  top: 445px;
}

#chart ul li.m-tomohiro {
  left: 805px;
  top: 937px;
}

#chart ul li.m-ume {
  left: 734px;
  top: 98px;
}

#chart ul li.m-negi {
  left: 856px;
  top: 1313px;
}

#chart ul li.m-arata {
  left: 297px;
  top: 102px;
}


@media all and (min-width: 768px) {
  #chart .diagram {
    background-repeat: no-repeat;
    width: 1072px;
    height: 1633px;
    /* margin: 20px 140px; */
    border-radius: 45px;
  }

  div.contents {
    width: 1080px;
  }
}

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

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

  #chart .diagram {
    padding-top: calc((1633 / 1072)*100%);
    background-size: 100%;
    background-repeat: no-repeat;
  }

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

.chart div.wrap {
  box-sizing: border-box;
  /* background-color: #fff; */
}

.chart_menu {
  background-color: #fff;
  box-sizing: border-box;
}

.ch_switch {
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.ch_switch a {
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 110%;
}

@media all and (min-width: 768px) {
  .chart div#chart {
    /* padding: 0 0 22px; */
    width: 1080px;
    border: solid #f2d02a 4px;
    border-radius: 45px;
  }

  .chart_menu {
    padding: 22px 0 0;
    width: 1080px;
    margin: 0 auto;
  }

  .ch_switch {
    width: 1080px;
    height: 130px;
    margin: 30px auto 0;
  }

  .ch_switch a {
    width: 233px;
    height: 56px;
    right: 0;
    bottom: 17px;
  }
}

@media all and (max-width: 767px) {
  .chart div.wrap {
    /* padding: 0 2% 2%; */
  }

  .chart_menu {
    padding: 2% 2% 0;
    width: auto;
    margin: 0 auto;
  }
}
