/*
body.html {
  overflow-x: hidden;
}

*/

.story {
  position: relative;
}

.episode_bg{
    border: solid 4px #553117;
    border-radius: 10px;
     background: url(../img/bg/story_bg.png) 50% no-repeat;  	
}


button {
  padding: 0;
  border-width: 0;
  background-color: transparent;
  color: inherit;
  font-weight: inherit;
  cursor: pointer;
  outline:none!important;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}

[data-ruby] {
    position: relative;
}

@media (min-width: 769px) {
[data-ruby]::before {
content: attr(data-ruby);
    position: absolute;
    top: -1.2rem;
    text-align: center;
    width: 100%;
    margin: auto;
    font-size: 0.4em;
    letter-spacing: 0rem;
    }
}


@media (max-width: 768px) {
[data-ruby]::before {
content: attr(data-ruby);
    position: absolute;
    top: -0.8rem;
    text-align: center;
    width: 100%;
    margin: auto;
    font-size: 0.4em;
    letter-spacing: 0rem;
    }
}

/*#main {
  padding-top: 73.8125px;
}*/

/*  ---SP START---   */

@media (max-width: 768px) {
  /*#main {
    padding: 30px 0 0;
    background: url(../images/intro@sp.jpg) no-repeat center top;
    background-size: 100% auto;
  }*/
	
  #main .story {
    margin: 2px;
    padding: 2px;
    background-size: 100% auto;
  }
  #main .story .episode_bg {
    position: relative;

    padding: 3rem 2rem;
	text-align: justify;
	font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO", sans-serif;
 
  }
  #main .story .episode.min-swipe-active {
    display: block;
  }
  #main .episode__image img {
    display: block;
    margin: auto;
    width: 100%;
  }
  #main .episode__body {	 
    margin-bottom: 2.2rem;	  
    display: block;	  
  }
  #main .episode__body-1 {	 
    margin-bottom: 2.2rem;	  
    display: block;	  
  }	
	
  .story .episode .episode__title {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: .035em;
    line-height: 1;
    text-align: center;
    text-shadow: 2px 0px 6px rgba(255, 255, 255, 0.14), -2px 0px 6px rgba(255, 255, 255, 0.14), 0px -2px 6px rgba(255, 255, 255, 0.14), -2px 0px 6px rgba(255, 255, 255, 0.14), 2px 2px 6px rgba(255, 255, 255, 0.14), -2px 2px 6px rgba(255, 255, 255, 0.14), 2px -2px 6px rgba(255, 255, 255, 0.14), -2px -2px 6px rgba(255, 255, 255, 0.14), 2px 0px 6px rgba(255, 255, 255, 0.14), -2px 0px 6px rgba(255, 255, 255, 0.14), 0px -2px 6px rgba(255, 255, 255, 0.14), -2px 0px 6px rgba(255, 255, 255, 0.14), 2px 2px 6px rgba(255, 255, 255, 0.14), -2px 2px 6px rgba(255, 255, 255, 0.14), 2px -2px 6px rgba(255, 255, 255, 0.14), -2px -2px 6px rgba(255, 255, 255, 0.14);
}	
	
  #main .episode__body .episode__text {
    display: block;
    padding: 0 5px;
  }
  #main .episode__body-1 .episode__text {
    display: block;
    padding: 0 5px;
  }	
  #main .episodeNav {  
    width: 100%;
    display: block;
    margin-right: 0;
    margin-left: 0;
  }
}

/*  ---SP END--   */

/*  ---PC START---   */

@media (min-width: 769px) {
  /*#main {
    background: url(../images/intro@pc.png) no-repeat center top;
    background-size: 100% auto;
    padding: 30px 0 0;
  }*/
  .episodeNav__list {
    text-align: center;
  }
  .story {
    box-sizing: inherit;
    max-width: 960px;
    width: 100%;
    margin: auto;
  }
  .story .episode_bg {
    width: 960px;
    height: 360px;
  }
  .story .js-min-swipe.min-swipe {
    height: 357.797px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  .story .episode {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;;
    overflow: hidden;
  }	

  .story .episode .episode__body {	  
    width: 460px;
    margin-left: 1rem;
    text-align: justify;	
	margin-top: 2rem;	  
  }
  .story .episode .episode__body_1{
    width: 460px;
    margin-left: 1rem;
    text-align: justify;	
  }
  .story .episode .episode__title {
    margin-top: 2rem;	  
    margin-bottom: 2rem;
    font-size: 1.8rem; 
  }	
  .story .episode .episode__image {
    width: 380px;
    margin: 0 1rem 0 0;
    text-align: center;
    float: left;
  }
  .story .episode .episode__image img {
    width: 100%;
    height: auto;
    vertical-align: middle;
  }

.story:after {
    display: block;
    z-index: -3;
    position: absolute;
    left: -125px;
    bottom: 350px;
    width: 662px;
    height: 362px;
    background: url(../img/img/story-img.png) 0 0/contain no-repeat;
    content: '';
	
}
}

/*  ---PC END---   */

.story .episode.min-swipe-item {
  display: none;
}
.story .episode.min-swipe-active {
  display: flex;
}
.episode__title {
    color: #553117;
    font-weight: bold;
    line-height: 1.2rem;
    text-align: center;
}

.episode__title span {
  font-size: 1.4rem;
  vertical-align: 0.06em;
}

.episode__title b {
  margin-left: 1rem;
  font-size: 1.4rem;
}

.episode__text {
    margin-bottom: 1.2rem;
    color: #000;
    /*font-weight: bold;*/
    text-shadow: 2px 0px 3px rgba(255, 255, 255, 0.2), -2px 0px 3px rgba(255, 255, 255, 0.2), 0px -2px 3px rgba(255, 255, 255, 0.2), -2px 0px 3px rgba(255, 255, 255, 0.2), 2px 2px 3px rgba(255, 255, 255, 0.2), -2px 2px 3px rgba(255, 255, 255, 0.2), 2px -2px 3px rgba(255, 255, 255, 0.2), -2px -2px 3px rgba(255, 255, 255, 0.2), 2px 0px 3px rgba(255, 255, 255, 0.2), -2px 0px 3px rgba(255, 255, 255, 0.2), 0px -2px 3px rgba(255, 255, 255, 0.2), -2px 0px 3px rgba(255, 255, 255, 0.2), 2px 2px 3px rgba(255, 255, 255, 0.2), -2px 2px 3px rgba(255, 255, 255, 0.2), 2px -2px 3px rgba(255, 255, 255, 0.2), -2px -2px 3px rgba(255, 255, 255, 0.2);	
}
.episodeNav {
  z-index: 1;
  position: relative;
  margin-top: 2rem;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  margin-bottom: 1rem;

  text-align: center;
}

.episodeNav .container {
  max-width: 960px;
  font-weight: bold;
	
}
.episodeNav .episodeNav__item {
  -webkit-transition: 0.15s;
  -o-transition: 0.15s;
  display: inline-block;
  margin: 0.44rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.15s;
  font-size: 1.2rem;
  line-height: 30px;
  position: relative;
  padding: 0 6px;
  height: 30px;
    background: #553117;
    color: #fff;
  display: none;
}
.episodeNav .episodeNav__item--synopsis {
    width: 120px;
     height: 30px;
    padding: 0 0.4rem;
    background: #553117;
    color: #fff;
    font-size: 1.2rem;
    line-height: 30px;
}
.episodeNav .episodeNav__item.is-active {
  -webkit-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  transform: translateY(-4px);
    background: #fff;
    color: #553117;
}
.episodeNav .episodeNav__item {
  margin: 6px;
}

.ep_btn {
 font-weight: bold;

  text-align: center;
}
#js-story-pagination-buttons .episodeNav__btn.is-active {
    background: #553117;
    color: #fff;
}
#js-story-pagination-buttons .episodeNav__btn {
  position: relative;
  margin: 1rem;
}
#js-story-pagination-buttons .episodeNav__btn {
  width: 200px;
  height: 30px;
    background: #553117;
    color: #fff;
  font-size: 1.2rem;
}

.unclick {
	opacity: 0.5;
    pointer-events: none;
}
