/*story*/
#story #trailer, .emb {
  width: 600px;
  height: 338px;
}

#story #trailer {
  margin: 2em auto;
}
#story h2.epnm {
  color: #000;
  font-weight: bold;
  letter-spacing: .1em;
  border-bottom: 3px solid #000;
  margin-bottom: 0.5em;
}
#story h2 span.num {
  padding: 0 .2em;
  color: #439139;
  letter-spacing: 0;
  display: inline-block;
}
#story h2 span.num strong {
  font-size: 180%;
}
/*#story #contents .inner p:first-letter {font-size:150%; line-height:1; font-weight:bold;}*/
#story .ph_cut {
  /* margin: .2em auto 0; */
}
#story .ph_area {
  margin: 1.5em auto 0;
  text-align: center;
}
#story .ph_s {
  width: 45%;
  padding: 30% 0 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  display: inline-block;
  margin: 0 .5% 0 1.5%;
  font-size: 0;
}
#story .ph_s img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
@media all and (min-width: 768px) {
  #story h2.epnm {
    font-size: 170%;
  }
}
@media all and (max-width: 767px) {
  #story #mov {
    margin: 0 auto;
  }
  #story #mov .ph_cut {
    width: 100%;
    height: 0;
    padding: 66.6% 0 0;
    margin: 0 auto;
    border: none;
    box-shadow: none;
  }
  #story #mov ul#movlist {
    padding: 1em 0;
  }
  #story #mov ul#movlist li {
    width: 45%;
    margin: 0 .5%;
    font-size: 110%;
    font-weight: bold;
  }
  #story #mov ul#movlist li a {
    height: 60px;
    line-height: 60px;
  }
  #story .ph_area {
    margin: 2% auto 0;
    /* width: 98%; */
    text-align: center;
  }
  #story .ph_s {
    width: 100%;
    padding: 60% 0 0;
    margin: 0 auto 3%;
  }
  #story #trailer, .emb {
    width: 100%;
    position: relative;
    padding: 56.25% 0 0;
    height: 0;
    overflow: hidden;
    height: auto;
    margin: 0 auto 1em;
    box-shadow: none;
  }
  #story #trailer iframe, .emb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }
  #story #bknm, #itv #bknm, #gallery #bknm, #fashion #bknm {
    margin: 3em 0 0 -0.7em;
    box-shadow: none;
  }
  #story #bknm h3, #gallery #bknm h3, #itv #bknm h3, #fashion #bknm h3 {
    font-size: 6.5vw;
    margin: -6% 5% 4%;
  }
  #story #bknm ul, #guest #bknm ul, #itv #bknm ul, #fashion #bknm ul {
    margin: 0 auto;
  }
  #story #bknm li, #gallery #bknm li {
    width: 29%;
    height: auto;
    margin: 0 0 3% 3%;
  }
  #story #bknm li a, #gallery #bknm li a, #itv #bknm li a, #fashion #bknm li a {
    width: 100%;
    height: 0;
    padding: 66.6% 0 0;
  }
  #story #bknm li a img, #gallery #bknm li a img, #itv #bknm li a img, #fashion #bknm li a img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  #story #bknm li span, #gallery #bknm li span {
    font-size: 3.5vw;
  }
}
#story #bknm li.bk1 a:after {
    background-image: url(../img/story/ep1.jpg);
}
#story #bknm li.bk2 a:after {
    background-image: url(../img/story/ep2.jpg?2);
}
#story #bknm li.bk3 a:after {
    background-image: url(../img/story/ep3.jpg?2);
}
#story #bknm li.bk4 a:after {
    background-image: url(../img/story/ep4.jpg?3);
}
#story #bknm li.bk5 a:after {
    background-image: url(../img/story/ep5.jpg?3);
}
#story #bknm li.bk6 a:after {
    background-image: url(../img/story/ep6.jpg?3);
}
#story #bknm li.bk7 a:after {
    background-image: url(../img/story/ep7.jpg?3);
}
#story #bknm li.bk8 a:after {
    background-image: url(../img/story/ep8.jpg?4);
}
#story #bknm li.bk9 a:after {
    background-image: url(../img/story/ep9.jpg?4);
}
#story #bknm li.bk10 a:after {
    background-image: url(../img/story/ep10.jpg?10);
}

#story #contents .inner p a {
  color: #e95098;
}
#story #contents .inner p a:hover {
  text-decoration: underline;
}


/*	story mainpic
============================== */
body.story h1 {
  position: relative;
}
body.story h1::before {
  content: "";
  display: block;
  position: absolute;
}
@media all and (min-width: 768px) {
  body.story h1::before {
    width: 570px;
    height: 312px;
    background-size: cover;
    background-position: center;
    right: 1.6427104722793%;
    top: 2.2988505747126%;
  }
}
@media all and (max-width: 767px) {
body.story h1 {
  position: relative;/*相対配置*/
}
body.story h1::before {/*スペースを作る*/
  content: '';
  top: 0;
  left: 0;
  width: 100%;/*指定したい幅*/
  padding-top: 54.736842%;/*画像の幅に対する高さ比率*/
  display: block;
}
body.story h1::after {/*画像を絶対配置*/
  position: absolute;
  content: '';
  bottom: 0;
  left:0;
  display: block;
  width: 100%;/*幅*/
  height: 75.666666%;/*どれだけデカくなってもはみ出ないであろう高さを指定*/
  background-size: contain;
  background-repeat: no-repeat;/*画像を繰り返さない*/
  background-size: cover;
  background-position: center;
  }
}

body.story2 h1::before,
body.story2 h1::after {
	background-position: left 30%!important;
}

.ph_cut span {
	background-color: #fff;
}
p.name {
	padding-bottom: 10px;
	padding-left: 26px;
	border-bottom: 1px solid #000;
	margin-left: -26px;
}
p.name, p.kana, p.actor{
	letter-spacing: 0.15em;
}
p.actor {
	text-align: right;
}
p.actor span {
	color: #fff;
	background-color: #439139;
	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: 1px solid #000; */
		padding: 25px 45px 55px;
		background-color: white;
	}
	.ph_cut, .ph_cut span,.ph_cut span img {
		width: 220px;
		height: 220px;
		background-position: center top;
	}
	.ph_cut {
		margin: -75px -95px;
	}
	div.data {
		width: 500px;
		float: right;
		margin: -90px -25px 0;
	}
	p.actor {
		margin-top: -60px;
		height: 39px;
		margin-bottom: 40px;
	}
	p.name {
		font-size: 30px;
		margin-bottom: 12px;
	}
	p.name, p.kana, p.actor {
		letter-spacing: 0.15em;
	}
	p.actor span {
		font-size: 20px;
		/* height: 39px; */
		padding: 0.5em 1em;
	}
	p.kana {
		font-size: 17px;
	}
}
@media all and (max-width: 767px) {
	div.character {
		padding: 1em;
		margin: 1em;
	}
	p.name {
		font-size: 20px;
		margin-bottom: 10px;
	}
	p.name, p.kana, p.actor {
		letter-spacing: 0.15em;
	}
	p.actor span {
		font-size: 15px;
		padding: 0.5em;
		border-radius: 5px;
	}
	p.kana {
		font-size: 13px;
	}
	p.actor {
		margin-top: -43px;
		height: 39px;
		margin-bottom: 30px;
	}
	.ph_cut {
		width: 70%;
		margin: 0 auto 1em;
	}
	.ph_cut span {
		padding-top: 100%;
	}
}


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 .prof {
  width: 100%;
}

#cast_dt .prof h2 {
  background-color: rgba(103, 184, 201, 0.8);
  color: #fff;
  font-weight: bold;
  line-height: 130%;
  font-size: 110%;
  display: inline-block;
  padding: .2em .5em;
}

#cast_dt .prof p {
  padding: .5em;
}

#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: 5800 !important;
    bottom: 0;
    /* left: 0; */
    right: 0;
    margin: auto;
}

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

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

@media all and (min-width: 768px) {
  #cast_dt {
    width: 750px;
    /* height: -webkit-max-content; */
    /* height: -moz-max-content; */
    /* height: max-content; */
    margin-left: -350px;
    border: 1px solid #000;
  }
  div.iga { height: 393px;}
  div.kawai { height: 365px;}
  div.koeda { height: 393px;}
  div.kurosu { height: 393px;}
  div.miki { height: 393px;}
  div.ozawa { height: 393px;}
  div.shinshi { height: 393px;}
  div.suzuki { height: 393px;}
  div.takatoo { height: 393px;}
  div.tsukikawa { height: 393px;}
  div.tsutsumi { height: 393px;}
  div.wada { height: 393px;}
  div.yamagata { height: 393px;}

  #cast_dt #mainbox {
    margin: 0 auto;
  }

  #cast_dt .prof {
    display: inline-block;
    width: 50%;
    position: relative;
    margin: 0 auto;
    width: calc(98% - 330px);
  }

  #cast_dt .prof:before {
    background-color: rgba(255, 255, 255, 0.5);
    content: '';
    position: absolute;
    top: 8%;
    left: 12%;
    width: 88%;
    height: 100%;
    z-index: -1;
  }

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

  #cast_dt .prof p {
    font-size: 92%;
    line-height: 160%;
  }

  #cast_dt .btn-w-close {
    position: absolute;
    right: 4%;
    bottom: 5%;
  }

  #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) {
  #cast_dt {
    width: 100%;
    margin-left: -50%;
  }

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

  #cast_dt .btn-w-close a {
    margin: 3.5% auto 5%;
  }

  #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 .prof h2 {
    font-size: 4vw;
    margin: -1em 0 0;
  }

  #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 .photo, #cast_dt .prof {
    float: none;
  }

  #cast_dt .prof {
    width: 90%;
    margin: 1em auto 0;
    padding: 0 5% 2%;
    background-color: rgba(255, 255, 255, 0.5);
  }

  #cast_dt .prof p {
    font-size: 100%;
    font-size: 3.4vw;
    line-height: 165%;
    padding: .4em 0 .8em;
  }
}
