/* ==========================================
*
*  Staff Cast
*
========================================== */

.cast_wrapper {
  margin-top: 55px;
}

@media screen and (min-width: 900px){
.cast_wrapper {
  margin-top: 120px;
}
}

/* ==========================================
*
*  Story
*
========================================== */

.story__select {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 20px auto 42px;
  max-width: 540px;
}

.story__select>li {
  max-width: calc(50% - 20px);
}

@media screen and (min-width: 900px){
  .story__select>li {
    max-width: calc(50% - 30px);
  }
}

.story__select>li a {
  opacity: 0.4;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.story__select>li a:hover {
  -webkit-filter: hue-rotate(20deg) brightness(1.2);
          filter: hue-rotate(20deg) brightness(1.2);
}

.story__select>li a.crt {
  -webkit-filter: none;
          filter: none;
  opacity: 1;
}

.story_text_wrapper {
  position: relative;
  overflow: auto;
/*  height:650px; */
  text-align:center;
}

.story_head {
  font-size: 30px;
  font-weight: 300;
  margin: 0;
  margin-left: 1em;
  line-height: 1.3;
}

.story_text {
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, "HG明朝E", serif;
  font-weight:400;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  margin: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 1.8rem;
  text-orientation: upright;
  text-align:left;
  display:inline-block;
}

.story_text>span{
  text-combine-upright: all;
}

.story_text>i {
  font-style : normal;
  letter-spacing: -2px;
}

.story__arrow>img {
  position: absolute;
  top: 420px;
  margin: auto;
  cursor: pointer;
  z-index: 10;
}

.story__arrow>img {
  -webkit-animation: arrow 2s infinite both;
          animation: arrow 2s infinite both;
}

@-webkit-keyframes arrow {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(20px, 0, 0);
            transform: translate3d(20px, 0, 0);
  }
  50% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
  }
}

@keyframes arrow {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(20px, 0, 0);
            transform: translate3d(20px, 0, 0);
  }
  50% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
  }
}

@media screen and (min-width: 700px) {
  .story__arrow {
    display: none;
  }
}

.story__img_wrap {
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-direction: column;
  align-items: center;
  margin: 150px 0 0;
}

.story__img_wrap--prequel .story__img--1 {
  position: absolute;
  top: -163px;
  right: 0
}

.story__img_wrap--prequel .story__img--2 {
  margin-right: auto;
  margin-top: -50px;
}

.story__img_wrap--prequel .story__img--3 {
  margin: 20px 0 0 auto;
}


.story__img_wrap--prequel .story__img--1 img{
  width: 133px;
}

.story__img_wrap--prequel .story__img--2 img{
  width: 270px;
}

.story__img_wrap--prequel .story__img--3 img{
  width: 340px;
}

.story__img_wrap--sequel {
  margin: 60px 0 0;
  flex-direction: column-reverse;
}

.story__img_wrap--sequel .story__img--1 {
  margin-top: 20px;
}

@media screen and (min-width: 900px) {
  .story__img_wrap {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    margin: 100px 0 0;
    position: relative;
    z-index: 0;
  }

  .story__img_wrap--prequel  .story__img--1 {
    position: absolute;
    top: -150px;
    right: 0
  }

  .story__img_wrap--prequel  .story__img--2 {
    margin: 0;
  }

  .story__img_wrap--prequel  .story__img--3 {
    margin: 100px 0 0;
  }

  .story__img_wrap--prequel  .story__img--1 img{
    width: 223px;
  }
  
  .story__img_wrap--prequel  .story__img--2 img{
    width: 303px;
  }
  
  .story__img_wrap--prequel  .story__img--3 img{
    width: 382px;
  }

  .story__img_wrap--sequel .story__img--1 img {
    width: 376px;
  }

  .story__img_wrap--sequel .story__img--2 img {
    width: 381px;
  }

    .story__img_wrap--sequel .story__img--2 {
    transform: translate(0, -80px);
  }
}

@media screen and (min-width: 1000px){
  .story__img_wrap--sequel .story__img--2 {
    transform: translate(0, -180px);
  }
}

.story__change {
  display: flex;
  justify-content: center;
  padding: 0 2px;
  position: relative;
  z-index: 1;
}

.story__change>li {
  margin: 0 6px;
  max-width: 135px;
  background: #f799bc;
  transition: .5s;
}

.story__change>li>a {
  transition: .5s;
}

.story__change>li>a:hover,
.story__change>li>a.crt {
  opacity: .7;
}

.story__change>li>a.act {
  opacity: 0;
}

.story__change>li>a.act:hover {
  opacity: 0.7;
}

.story__change>li.story__pre {
background: url(../../images/main/top/button_prequel_atv_on.jpg);
background-size: contain;
}

.story__change>li.story__seq {
background: url(../../images/main/top/button_sequel_atv_on.jpg);
background-size: contain;
}

@media screen and (min-width: 900px){
  .story__change>li {
    max-width: 138px;
  }
  .story__change>li img {
    max-width: 138px;
  }
}