#cast_dt {
  -ms-text-size-adjust: 100%;
  text-justify: inter-ideograph;
}

#cast_dt .txt::-webkit-scrollbar {
  display: none;
}

.character .ph_cut span {}

p.position {
  padding: 0.6em 26px;
  background-color: #fff7d8;
  margin: 0 0 15px -26px;
  letter-spacing: 0.05em;
  color: #e50265;
}

p.name {
  padding-bottom: 16px;
  padding-left: 26px;
  border-bottom: 2px solid #e50265;
  margin-left: -26px;
}

p.name, p.kana, p.actor {
  letter-spacing: 0.15em;
  color: #e50265;
}

p.actor {
  text-align: right;
}

p.actor span {
  color: #fff;
  background-color: #e50265;
  display: inline-block;
}

@media all and (min-width: 768px) {
  div.character {
    padding: 25px 45px;
  }

  .chart div.character,
  .story div.character {
    padding: 0;
    background-color: white;
  }

  .character .ph_cut, .character .ph_cut span {
    width: 236px;
    height: 300px;
    background-position: center top;
    background-size: 100%;
    border: 0;
    box-shadow: 0 0 BLACK;
    margin-top: -108px;
  }

  .character .ph_cut span img {
    width: 236px;
    height: 300px;
    background-position: center top;
    background-size: 100%;
    border: 0;
    box-shadow: 0 0 BLACK;
  }

  .ph_cut {
    margin: 0px 0;
  }

  div.data {
    width: 391px;
    float: right;
    margin: -173px 2px 0;
  }

  p.actor {
    margin-top: -57px;
    height: 39px;
    margin-bottom: 40px;
  }

  p.position {
    font-size: 20px;
  }

  p.name {
    font-size: 46px;
    margin-bottom: 18px;
    letter-spacing: 0.12em !important;
  }

  p.name, p.kana, p.actor {
    letter-spacing: 0.1em;
  }

  p.actor>span {
    font-size: 20px;
    /* height: 39px; */
    padding: 0.5em 1em;
  }

  .uesugi p.actor>span {
    padding: 0.5em 0.5em 0.5em 0.8em;
  }

  p.kana {
    font-size: 17px;
    letter-spacing: 0.4em;
  }

  p.txt {
    font-size: 18px;
  }
}

@media all and (max-width: 767px) {
  div.character {}

  p.position {
    font-size: 20px;
  }

  p.name {
    font-size: 20px;
    margin-bottom: 10px;
  }

  p.name, p.kana, p.actor {
    letter-spacing: 0.15em;
  }

  p.actor>span {
    font-size: 17px;
    padding: 0.5em;
    border-radius: 5px;
  }

  p.kana {
    font-size: 13px;
  }

  p.actor {
    margin-top: -43px;
    height: 39px;
    margin-bottom: 18px;
  }

  .character .ph_cut {
    width: 70%;
    margin: -5% auto 1em;
    border: 0;
    box-shadow: 0 0 BLACK;
  }

  .character .ph_cut span {
    padding-top: 127.11864406779661%;
    background-size: 100%;
    background-position: center top;
  }
}

div.end {
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  width: 300px;
  height: 70px;
  margin: -60px auto 80px;
}

@media all and (max-width: 767px) {
  div.end {
    background-size: 100%;
    width: 170px;
    height: 40px;
    margin: 40px auto 40px;
  }
}

/*popup*/
#cast_dt {
  text-align: left;
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, 0 center;
  background-size: auto, cover;
  margin: 1em;
  ont-kerning: normal;
  font-feature-settings: "palt";
  letter-spacing: 0.0em;
  color: #221715;
  letter-spacing: 0.02em;
  font-family: "zen-kaku-gothic-antique", sans-serif;
  font-weight: bold;
  font-style: normal;
}

#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 .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: 999999999999 !important;
  bottom: 0;
  right: 0;
  margin: auto;
}

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

.btn-w-close a {
  display: block;
  width: 81px;
  height: 34px;
  background: url(../img/chart/close.jpg) no-repeat;
  margin: 0 0 0 auto;
  background-size: contain;
}

.btn-w-close a {
  cursor: pointer;
}

@media all and (min-width: 768px) {
  .chart div.sns-share {
    padding: 60px;
  }

  #cast_dt {
    width: 700px;
    height: 398.5px;
    margin-left: -350px;
    box-sizing: border-box;
    background-size: cover;
  }

  .name_only {
    width: 400px !important;
    height: 300px !important;
    margin-left: -200px !important;
    box-sizing: border-box;
    background-size: cover;
  }

  .ooo {
    background-image: url(../img/character/ooo.jpg);
  }

  .funakikenji {
    background-image: url(../img/character/funakikenji.jpg);
  }

  .kiriishiaya {
    background-image: url(../img/character/kiriishiaya.jpg);
  }

  .konoryohei {
    background-image: url(../img/character/konoryohei.jpg);
  }

  .suminanako {
    background-image: url(../img/character/suminanako.jpg);
  }

  .kurodakeisuke {
    background-image: url(../img/character/kurodakeisuke.jpg);
  }

  .miuraayane {
    background-image: url(../img/character/miuraayane.jpg);
  }

  .yoshinojunichi {
    background-image: url(../img/character/yoshinojunichi.jpg);
  }

  .todorokikana {
    background-image: url(../img/character/todorokikana.jpg);
  }

  .uzakihiro {
    background-image: url(../img/character/uzakihiro.jpg);
  }

  .otobetakuro {
    background-image: url(../img/character/otobetakuro.jpg);
  }

  .sengakoichi {
    background-image: url(../img/character/sengakoichi.jpg);
  }

  .makitakazuya {
    background-image: url(../img/character/makitakazuya.jpg);
  }

  .takayamakyoko {
    background-image: url(../img/character/takayamakyoko.jpg);
  }

  .nishidahayato {
    background-image: url(../img/character/nishidahayato.jpg);
  }

  .iiyamanaoki {
    background-image: url(../img/character/iiyamanaoki.jpg);
  }

  .saitomisaki {
    background-image: url(../img/character/saitomisaki.jpg);
  }

  .uzakiryo {
    background-image: url(../img/character/uzakiryo.jpg);
  }

  .asamiryoko {
    background-image: url(../img/character/asamiryoko.jpg);
  }

  .inomari {
    background-image: url(../img/character/inomari.jpg);
  }

  .kiriishitakuma {
    background-image: url(../img/character/kiriishitakuma.jpg);
  }

  .takaidotoma {
    background-image: url(../img/character/takaidotoma.jpg);
  }

  .todorokikenjiro {
    background-image: url(../img/character/todorokikenjiro.jpg);
  }

  .uzakijunko {
    background-image: url(../img/character/uzakijunko.jpg);
  }

  .todorokikana {
    background-image: url(../img/character/todorokikana.jpg);
  }

  .uzakiyusei {
    background-image: url(../img/character/uzakiyusei.jpg);
  }
  .ishikurashoji {
    background-image: url(../img/character/ishikurashoji.jpg);
  }

  #cast_dt #mainbox {
    margin: 0 auto;
  }

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

  .btn-w-close {
    position: absolute;
    right: 0;
    bottom: -50px;
  }

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

  .negi_dt {
    width: 245px !important;
    height: 400px !important;
    margin-left: -122.5px !important;
    box-sizing: border-box !important;
    background-size: cover !important;
    /* position: relative!important; */
    border-radius: 0 !important;
    border: solid #947a00 3px !important;
  }
}

@media all and (max-width: 767px) {
  .data {
    margin-bottom: 1.5em;
    background-color: #0a0a0a;
    padding: 0 0 4vw 0;
  }

  .chart div.sns-share {
    padding: 1em;
  }

  .picture {
    position: relative;
    height: 0;
    padding-top: calc((723 / 532)*100%);
    /* background-color: #eedcec; */
  }

  .name_only .picture {
    position: relative;
    height: 0;
    padding-top: 61%;
  }

  .picture span {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
  }

  .ooo .picture {
    background-image: url(../img/character/ooo_s.jpg);
  }

  .funakikenji .picture {
    background-image: url(../img/character/funakikenji_s.jpg);
  }
  .kiriishiaya .picture {
    background-image: url(../img/character/kiriishiaya_s.jpg);
  }
  .konoryohei .picture {
    background-image: url(../img/character/konoryohei_s.jpg);
  }
  .suminanako .picture {
    background-image: url(../img/character/suminanako_s.jpg);
  }
  .kurodakeisuke .picture {
    background-image: url(../img/character/kurodakeisuke_s.jpg);
  }

  .miuraayane .picture {
    background-image: url(../img/character/miuraayane_s.jpg);
  }

  .yoshinojunichi .picture {
    background-image: url(../img/character/yoshinojunichi_s.jpg);
  }

  .todorokikana .picture {
    background-image: url(../img/character/todorokikana_s.jpg);
  }

  .uzakihiro .picture {
    background-image: url(../img/character/uzakihiro_s.jpg);
  }

  .otobetakuro .picture {
    background-image: url(../img/character/otobetakuro_s.jpg);
  }

  .sengakoichi .picture {
    background-image: url(../img/character/sengakoichi_s.jpg);
  }

  .makitakazuya .picture {
    background-image: url(../img/character/makitakazuya_s.jpg);
  }

  .takayamakyoko .picture {
    background-image: url(../img/character/takayamakyoko_s.jpg);
  }

  .nishidahayato .picture {
    background-image: url(../img/character/nishidahayato_s.jpg);
  }

  .iiyamanaoki .picture {
    background-image: url(../img/character/iiyamanaoki_s.jpg);
  }

  .saitomisaki .picture {
    background-image: url(../img/character/saitomisaki_s.jpg);
  }

  .uzakiryo .picture {
    background-image: url(../img/character/uzakiryo_s.jpg);
  }

  .asamiryoko .picture {
    background-image: url(../img/character/asamiryoko_s.jpg);
  }

  .inomari .picture {
    background-image: url(../img/character/inomari_s.jpg);
  }

  .kiriishitakuma .picture {
    background-image: url(../img/character/kiriishitakuma_s.jpg);
  }

  .takaidotoma .picture {
    background-image: url(../img/character/takaidotoma_s.jpg);
  }

  .todorokikenjiro .picture {
    background-image: url(../img/character/todorokikenjiro_s.jpg);
  }

  .uzakijunko .picture {
    background-image: url(../img/character/uzakijunko_s.jpg);
  }

  .todorokikana .picture {
    background-image: url(../img/character/todorokikana_s.jpg);
  }

  .uzakiyusei .picture {
    background-image: url(../img/character/uzakiyusei_s.jpg);
  }
  .ishikurashoji .picture {
    background-image: url(../img/character/ishikurashoji_s.jpg);
  }

  #cast_dt {
    width: 100%;
    margin: 0px -50%;
    overflow: auto;
    background-color: #0a0a0a50;
  }

  .name_only {
    top: 30% !important;
  }

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

  .btn-w-close a {
    margin: 0 auto 1.25em;
    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 .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 .txt {
    /* font-size: 3.8vw; */
    background-color: #0a0a0a;
    margin: 0vw 4vw 0vw 4vw;
  }
}

#cast_dt .txt {
  /* line-height: 1.8; */
}

#cast_dt .txt {
  /* line-height: 1.5; */
  color: #ffffff;
  /* font-family: "dnp-shuei-mgothic-std", sans-serif; */
  -ms-text-size-adjust: 100%;
  word-break: break-all;
  font-weight: 100;
  z-index: 999;
  /* position: relative; */
}

@media all and (min-width: 768px) {
  #cast_dt .txt {
    position: absolute;
    left: 326px;
    top: 154px;
    height: 216px;
    width: 340px;
    overflow: auto;
    font-size: 19px;
    letter-spacing: 0;
    padding: 0em;
    line-height: 1.5;
    box-sizing: border-box;
    margin-bottom: 1em;
    /* font-family: "dnp-shuei-mgothic-std", sans-serif; */
    /* text-shadow: 1.2px 1.2px rgb(255 255 255 / 50%); */
    word-break: break-all;
    font-size: 14px;
    /* background: red; */
    font-weight: noma;
  }

  .name_only .txt {
    position: absolute;
    left: 25px !important;
    top: 170px !important;
    height: auto !important;
    width: 350px !important;
    overflow: auto;
    font-size: 15.7px;
    padding-right: 0 !important;
    padding: 0 !important;
  }
}
