#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: 397px;
    margin-left: -342px;
    box-sizing: border-box;
    background-size: cover;
  /* position: relative; */}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .shibamitsuko {
    background-image: url(../img/character/shibamitsuko.png);
  }
  .takamizawaanna {
    background-image: url(../img/character/takamizawaanna.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) {
  .data {
    background-color: #eedcec;
    padding: 1em;
    margin: 1em;
  }

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

  .picture {
    position: relative;
    height: 0;
    padding-top: 147.410358565737052%;
    background-color: #eedcec;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .shibamitsuko .picture {
    background-image: url(../img/character/shibamitsuko_s.png);
  }
  .takamizawaanna .picture {
    background-image: url(../img/character/takamizawaanna_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: 1em!important;
    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: 0 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: 260px;
    top: 155px;
    height: 193px;
    width: 380px;
    overflow: auto;
    font-size: 15.7px;
    /* padding-right: 0.9em; */
    /* background: red; */
  }

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