#cast_dt {
  font-family: fot-tsukuardgothic-std, sans-serif;
  font-weight: 400;
  font-style: normal;
  -ms-text-size-adjust: 100%;
  font-kerning: normal;
  font-feature-settings: "palt";
  letter-spacing: 0.1em;
  text-align: justify;
  text-justify: inter-ideograph;
}

.character .ph_cut span {
  /* background-color: #fff; */
}

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 {
    /* border: 1px solid #000; */
    padding: 25px 45px;
    /* margin: 50px 50px 100px; */
  }

  .chart div.character,
  .story div.character {
    /* border: 13px solid #f9e401; */
    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 {
    /* padding: 1em; */
    /* margin: 1em; */
  }

  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;
  /*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 .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 {
    /* top: 3%; */
  }
}

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

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

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

  #cast_dt {
    width: 700px;
    height: 384px;
    margin-left: -342px;
    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;
  }

  .asamiyario {
    background-image: url(../img/character/asamiyario.png);
  }

  .miyazakidaiki {
    background-image: url(../img/character/miyazakidaiki.png);
  }

  .kasekenichiro {
    background-image: url(../img/character/kasekenichiro.png);
  }

  .sanadaazusa {
    background-image: url(../img/character/sanadaazusa.png);
  }

  .asamiyatatsuo {
    background-image: url(../img/character/asamiyatatsuo.png);
  }

  .watanabeakira {
    background-image: url(../img/character/watanabeakira.png);
  }

  .sanadamasanobu {
    background-image: url(../img/character/sanadamasanobu.png);
  }

  .fujiihayato {
    background-image: url(../img/character/fujiihayato.png);
  }

  .nagashimatoru {
    background-image: url(../img/character/nagashimatoru.png);
  }

  .aokinana {
    background-image: url(../img/character/aokinana.png);
  }

  .takagiryunosuke {
    background-image: url(../img/character/takagiryunosuke.png);
  }

  .watanabekosuke {
    background-image: url(../img/character/watanabekosuke.png);
  }

  .nagaokamegumi {
    background-image: url(../img/character/nagaokamegumi.png);
  }

  .asamiyayu {
    background-image: url(../img/character/asamiyayu.png);
  }

  .asamiyaakiko {
    background-image: url(../img/character/asamiyaakiko.png);
  }

  .sanadario-g {
    background-image: url(../img/character/sanadario-g.png);
  }

  .miyazakidaiki-g {
    background-image: url(../img/character/miyazakidaiki-g.png?2);
  }

  .kasekenichiro-g {
    background-image: url(../img/character/kasekenichiro-g.png);
  }

  .sanadaazusa-g {
    background-image: url(../img/character/sanadaazusa-g.png);
  }

  .asamiyatatsuo-g {
    background-image: url(../img/character/asamiyatatsuo-g.png);
  }

  .watanabeakira-g {
    background-image: url(../img/character/watanabeakira-g.png);
  }

  .yamaoatsushi-g {
    background-image: url(../img/character/yamaoatsushi-g.png);
  }

  .gotoshinsuke-g {
    background-image: url(../img/character/gotoshinsuke-g.png);
  }

  .tachibanashiori-g {
    background-image: url(../img/character/tachibanashiori-g.png);
  }

  .kuwatahitomi-g {
    background-image: url(../img/character/kuwatahitomi-g.png);
  }

  .johoya-g {
    background-image: url(../img/character/johoya-g.png);
  }

  .sanadamasanobu-g {
    background-image: url(../img/character/sanadamasanobu-g.png);
  }

  .fujiihayato-g {
    background-image: url(../img/character/fujiihayato-g.png);
  }

  .kojimaayaka-g {
    background-image: url(../img/character/kojimaayaka-g.png?2);
  }

  .watanabekosuke-g {
    background-image: url(../img/character/watanabekosuke-g.png);
  }

  .nagashimatoru-g {
    background-image: url(../img/character/nagashimatoru-g.png?2);
  }

  .aokinana-g {
    background-image: url(../img/character/aokinana-g.png?3);
  }

  .uminokozue-g {
    background-image: url(../img/character/uminokozue-g.png);
  }

  .asamiyayu-g {
    background-image: url(../img/character/asamiyayu-g.png);
  }

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

@media all and (max-width: 767px) {
  .chart div.sns-share {
    padding: 1em;
  }

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

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

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

  .asamiyario .picture {
    background-image: url(../img/character/asamiyario_s.png);
  }

  .miyazakidaiki .picture {
    background-image: url(../img/character/miyazakidaiki_s.png);
  }

  .kasekenichiro .picture {
    background-image: url(../img/character/kasekenichiro_s.png);
  }

  .sanadaazusa .picture {
    background-image: url(../img/character/sanadaazusa_s.png);
  }

  .asamiyatatsuo .picture {
    background-image: url(../img/character/asamiyatatsuo_s.png);
  }

  .watanabeakira .picture {
    background-image: url(../img/character/watanabeakira_s.png);
  }

  .sanadamasanobu .picture {
    background-image: url(../img/character/sanadamasanobu_s.png);
  }

  .fujiihayato .picture {
    background-image: url(../img/character/fujiihayato_s.png);
  }

  .nagashimatoru .picture {
    background-image: url(../img/character/nagashimatoru_s.png);
  }

  .aokinana .picture {
    background-image: url(../img/character/aokinana_s.png);
  }

  .takagiryunosuke .picture {
    background-image: url(../img/character/takagiryunosuke_s.png);
  }

  .watanabekosuke .picture {
    background-image: url(../img/character/watanabekosuke_s.png);
  }

  .nagaokamegumi .picture {
    background-image: url(../img/character/nagaokamegumi_s.png);
  }

  .asamiyayu .picture {
    background-image: url(../img/character/asamiyayu_s.png);
  }

  .asamiyaakiko .picture {
    background-image: url(../img/character/asamiyaakiko_s.png);
  }

  .sanadario-g .picture {
    background-image: url(../img/character/sanadario-g_s.png);
  }

  .miyazakidaiki-g .picture {
    background-image: url(../img/character/miyazakidaiki-g_s.png?2);
  }

  .kasekenichiro-g .picture {
    background-image: url(../img/character/kasekenichiro-g_s.png);
  }

  .sanadaazusa-g .picture {
    background-image: url(../img/character/sanadaazusa-g_s.png);
  }

  .asamiyatatsuo-g .picture {
    background-image: url(../img/character/asamiyatatsuo-g_s.png);
  }

  .watanabeakira-g .picture {
    background-image: url(../img/character/watanabeakira-g_s.png);
  }

  .yamaoatsushi-g .picture {
    background-image: url(../img/character/yamaoatsushi-g_s.png);
  }

  .gotoshinsuke-g .picture {
    background-image: url(../img/character/gotoshinsuke-g_s.png);
  }

  .tachibanashiori-g .picture {
    background-image: url(../img/character/tachibanashiori-g_s.png);
  }

  .kuwatahitomi-g .picture {
    background-image: url(../img/character/kuwatahitomi-g_s.png);
  }

  .johoya-g .picture {
    background-image: url(../img/character/johoya-g_s.png);
  }

  .sanadamasanobu-g .picture {
    background-image: url(../img/character/sanadamasanobu-g_s.png);
  }

  .fujiihayato-g .picture {
    background-image: url(../img/character/fujiihayato-g_s.png);
  }

  .kojimaayaka-g .picture {
    background-image: url(../img/character/kojimaayaka-g_s.png?2);
  }

  .watanabekosuke-g .picture {
    background-image: url(../img/character/watanabekosuke-g_s.png);
  }

  .nagashimatoru-g .picture {
    background-image: url(../img/character/nagashimatoru-g_s.png?2);
  }

  .aokinana-g .picture {
    background-image: url(../img/character/aokinana-g_s.png?3);
  }

  .uminokozue-g .picture {
    background-image: url(../img/character/uminokozue-g_s.png);
  }

  .asamiyayu-g .picture {
    background-image: url(../img/character/asamiyayu-g_s.png);
  }

  #cast_dt {
    width: 100%;
    /* height: 94%; */
    /* height: max-content; */
    margin: 0px -50%;
    overflow: auto;
    /* border-radius: 10px; */
    padding-top: 3%;
    /* padding-bottom: 4em; */
  }

  .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: 4vw;
    padding: 0.5em 1.4em 1.4em;
    background-color: #fff;
  }
}

#cast_dt .txt {
  line-height: 1.8;
  /* height: max-content; */
  /* background-color: #fff; */
  margin-bottom: 1.5em;
}

#cast_dt .txt {
  line-height: 1.65;
  /* background-color: #fff4f4; */
  /* border: solid 1em #fff4f4; */
  /* padding: 1em; */
  /* border-radius: 5px; */
  /* border: solid 1px #ffbad8; */
  /* margin-top: 1em; */
  font-weight: bold;
  color: #434343;
  font-family: dnp-shuei-mgothic-std, sans-serif;
  /* font-weight: 400; */
  font-style: normal;
  -ms-text-size-adjust: 100%;
  font-kerning: normal;
  font-feature-settings: "palt";
}

@media all and (min-width: 768px) {
  #cast_dt .txt {
    position: absolute;
    left: 318px;
    top: 193px;
    height: 175px;
    width: 360px;
    overflow: auto;
    font-size: 15.7px;
    padding-right: 0.9em;
  }

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