/** ぐるぐる **/

/* thanks http://projects.lukehaas.me/css-loaders/ */

/*
@-webkit-keyframes lonice-loader-animationad8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}*/

@-webkit-keyframes nice-loader-animation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes nice-loader-animation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/** 例のやつ **/

@font-face {
  font-family: 'webry';
  src: url('./font/webry.eot?98667604&h=3cf69b8f');
  src: url('./font/webry.eot?98667604&h=3cf69b8f#iefix') format('embedded-opentype'),
       url('./font/webry.woff2?98667604&h=de313a23') format('woff2'),
       url('./font/webry.woff?98667604&h=8da37e2d') format('woff'),
       url('./font/webry.ttf?98667604&h=b4ab8bf6') format('truetype'),
       url('./font/webry.svg?98667604&h=778fb2ec#webry') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */

/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */

/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'webry';
    src: url('./font/webry.svg?98667604#webry') format('svg');
  }
}
*/

[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "webry";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  -webkit-font-feature-settings: normal;
          font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-left-open-big:before { content: '\e800'; }

/* '' */

.icon-right-open-big:before { content: '\e801'; }

/* '' */

.icon-up-open-big:before { content: '\e802'; }

/* '' */

.icon-down-open-big:before { content: '\e803'; }

/* '' */

.icon-arrows-ccw:before { content: '\e804'; }

/* '' */

* {
  margin: 0;
  padding: 0;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

textarea, input {
  -webkit-user-select: auto;
     -moz-user-select: auto;
      -ms-user-select: auto;
          user-select: auto;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  background: #eeeeee;
  min-width: 320px;
}

.viewer-header {
  position: fixed;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, .45);
  z-index: 300;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;

  -webkit-transition: top 0.2s ease-out;

  transition: top 0.2s ease-out;
}

.viewer-header a {
  color: #fff;
  text-decoration: none;
}

.viewer-header a:hover {
  color: #eee;
}

.viewer-header.on {
  top: 0;
}

.viewer-header .page-navigation, .viewer-header .social-links {
  white-space: nowrap;
  box-sizing: border-box;
}

.viewer-header .title {
  -webkit-box-flex: 1;
  -webkit-flex: auto;
      -ms-flex: auto;
          flex: auto;
}

.viewer-header .title .manga-title, .viewer-header .title .episode-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  color: #fff;
}

.viewer-header .title .manga-title {
  line-height: 1.4;
  font-size: 22px;
  font-weight: bold;
}

.viewer-header .title .episode-title {
  line-height: 1.4;
  font-size: 16px;
}

.viewer-header .page-navigation .prev-link, .viewer-header .page-navigation .next-link, .viewer-header .page-navigation .parent-link {
  width: 6em;
}

.viewer-header .page-navigation .prev-link a:after {
  font-family: "webry";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  -webkit-font-feature-settings: normal;
          font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: '\e801';
}

.viewer-header .page-navigation .next-link a:before {
  font-family: "webry";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  -webkit-font-feature-settings: normal;
          font-feature-settings: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: '\e800';
}

.viewer-header .page-navigation .parent-link {
  text-align: center;
}

.viewer-header .page-navigation .prev-link {
  text-align: left;
}

.viewer-header .page-navigation .next-link {
  text-align: right;
}

.viewer-header .social-links {
  text-align: right;
}

.viewer-header .social-links .social-link {
  display: inline-block;
  background: transparent no-repeat;
  background-size: cover;
  vertical-align: middle;
}

.viewer-header .social-links .social-link span {
  display: none;
}

.viewer-header .social-links .social-link__hatena    {
  background-image: url(./images/icon-social-hatebu.png?h=97f4d60b);
}

.viewer-header .social-links .social-link__twitter   {
  background-image: url(./images/icon-social-twitter.png?h=464ddf45);
}

.viewer-header .social-links .social-link__facebook  {
  background-image: url(./images/icon-social-facebook.png?h=05237bd9);
}

.viewer-header .social-links .social-link__line      {
  background-image: url(./images/icon-social-line.png?h=655911a9);
}

/** PC用 **/

@media (min-width: 601px) {
  .viewer-header {
    top: -80px;
    height: 80px;
    -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
  }
  .viewer-header .page-navigation, .viewer-header .social-links {
    width: 200px;
    white-space: nowrap;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 200px;
        -ms-flex: 0 0 200px;
            flex: 0 0 200px;
    box-sizing: border-box;
  }
  .viewer-header .title {
    margin: 8px 8px;
    width: calc(100% - 400px);
    -webkit-box-flex: 1;
    -webkit-flex: auto;
        -ms-flex: auto;
            flex: auto;
  }
  .viewer-header .title .manga-title, .viewer-header .title .episode-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    color: #fff;
  }
  .viewer-header .title .manga-title {
    line-height: 1.4;
    font-size: 22px;
  }
  .viewer-header .title .episode-title {
    line-height: 1.4;
    font-size: 16px;
  }
  .viewer-header .page-navigation {
    line-height: 80px;
  }
  .viewer-header .page-navigation .prev-link, .viewer-header .page-navigation .next-link, .viewer-header .page-navigation .parent-link {
    width: 65px;
    margin: 0 16px;
    font-size: 14px;
  }
  .viewer-header .page-navigation .parent-link a {
    position: relative;
    top: -10px;
  }
  .viewer-header .page-navigation .parent-link a:before {
    font-family: "webry";
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    -webkit-font-feature-settings: normal;
            font-feature-settings: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: '\e802';
    position: absolute;
    text-align: center;
    top: -2ex;
  }
  .viewer-header .social-links {
    padding-right: 16px;
    padding-top: 16px;
    text-align: right;
  }
  .viewer-header .social-links .social-link {
    width: 40px;
    height: 40px;
    margin: 0;
  }
}

/** スマホ用 **/

@media (max-width: 600px) {
  .viewer-header {
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    height: 72px;
    top: -72px;
  }
  .viewer-header .title {
    -webkit-box-ordinal-group: 1;
    -webkit-order: 0;
        -ms-flex-order: 0;
            order: 0;
    width: calc(100% - 144px);
    margin: 8px;
  }
  .viewer-header .title .manga-title, .viewer-header .title .episode-title {
    text-align: left;
  }
  .viewer-header .title .manga-title {
    font-size: 14px;
  }
  .viewer-header .title .episode-title {
    font-size: 10px;
  }
  .viewer-header .social-links {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
        -ms-flex-order: 1;
            order: 1;
    width: 120px;
    margin: 8px 8px 0 0;
  }
  .viewer-header .social-links .social-link {
    width: 30px;
    height: 30px;
  }
  .viewer-header .page-navigation {
    -webkit-box-ordinal-group: 3;
    -webkit-order: 2;
        -ms-flex-order: 2;
            order: 2;
    margin: 0 8px 8px;
    font-size: 14px;
    line-height: 1;
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

.comic-viewer .viewer-navigation-forward, .comic-viewer .viewer-navigation-backward {
  position: absolute;
  display: block;
  z-index: 100;
  margin: 0;
  padding: 0;
}

/* ナビゲーション */

.comic-viewer__scroll-vertical .viewer-navigation-forward {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 20%;
}

.comic-viewer__scroll-vertical .viewer-navigation-forward:hover {
  cursor: url(https://www.sunday-webry.com/styles/viewer/arrow-down.cur), pointer;
}

.comic-viewer__scroll-vertical .viewer-navigation-backward {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 20%;
}

.comic-viewer__scroll-vertical .viewer-navigation-backward:hover {
  cursor: url(https://www.sunday-webry.com/styles/viewer/arrow-up.cur), pointer;
}

/* ナビゲーション */

.comic-viewer__scroll-horizontal .viewer-navigation-forward, .comic-viewer__scroll-single-horizontal .viewer-navigation-forward {
  position: fixed;
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
}

.comic-viewer__scroll-horizontal .viewer-navigation-forward:hover, .comic-viewer__scroll-single-horizontal .viewer-navigation-forward:hover {
  cursor: url(https://www.sunday-webry.com/styles/viewer/arrow-left.cur), pointer;
}

.comic-viewer__scroll-horizontal .viewer-navigation-backward, .comic-viewer__scroll-single-horizontal .viewer-navigation-backward {
  position: fixed;
  right: 0;
  top: 0;
  width: 20%;
  height: 100%;
}

.comic-viewer__scroll-horizontal .viewer-navigation-backward:hover, .comic-viewer__scroll-single-horizontal .viewer-navigation-backward:hover {
  cursor: url(https://www.sunday-webry.com/styles/viewer/arrow-right.cur), pointer;
}

.comic-viewer__single-horizontal .viewer-navigation-forward {
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
}

.comic-viewer__single-horizontal .viewer-navigation-forward:hover {
  cursor: url(https://www.sunday-webry.com/styles/viewer/arrow-left.cur), pointer;
}

.comic-viewer__single-horizontal .viewer-navigation-backward {
  right: 0;
  top: 0;
  width: 20%;
  height: 100%;
}

.comic-viewer__single-horizontal .viewer-navigation-backward:hover {
  cursor: url(https://www.sunday-webry.com/styles/viewer/arrow-right.cur), pointer;
}

/** help **/

.viewer-help {
  position: fixed;
  z-index: 400;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.viewer-help .viewer-help__up,
  .viewer-help .viewer-help__down,
  .viewer-help .viewer-help__left,
  .viewer-help .viewer-help__right {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, .45);
  background-origin: content-box;
  background-repeat: no-repeat;
  background-position: center;
  padding: 12px;
  border-radius: 4px;
}

.viewer-help .viewer-help__up,
  .viewer-help .viewer-help__down {
  width: 80px;
  height: 60px;
  background-size: 80px 60px;
}

.viewer-help .viewer-help__left,
  .viewer-help .viewer-help__right {
  width: 130px;
  height: 32px;
  background-size: 130px 32px;
}

.viewer-help .viewer-help__up {
  background-image: url(./images/help-arrow-up.png?h=603c04a9);
  top: 90px;
  left: calc(50% - 80px / 2 - 12px);
}

.viewer-help .viewer-help__down {
  background-image: url(./images/help-arrow-down.png?h=f7fe7ec7);
  bottom: 10px;
  left: calc(50% - 80px / 2 - 12px);
}

.viewer-help .viewer-help__left {
  background-image: url(./images/help-arrow-left.png?h=256e388e);
  left: 10px;
  top: calc(50% - 32px / 2 - 12px);
}

.viewer-help .viewer-help__right {
  background-image: url(./images/help-arrow-right.png?h=2b69d8ee);
  right: 10px;
  top: calc(50% - 32px / 2 - 12px);
}

.comic-viewer--help-hiding .viewer-help {
  -webkit-animation: hide-help 0.2s ease-out;
          animation: hide-help 0.2s ease-out;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

@-webkit-keyframes hide-help {
  from {
    opacity: 1.0;
  }

  to {
    opacity: 0.0;
  }
}

@keyframes hide-help {
  from {
    opacity: 1.0;
  }

  to {
    opacity: 0.0;
  }
}

.comic-viewer__scroll-vertical .viewer-help__up, .comic-viewer__scroll-vertical .viewer-help__down {
  display: block;
}

.comic-viewer__scroll-horizontal .viewer-help__left, .comic-viewer__scroll-horizontal .viewer-help__right, .comic-viewer__single-horizontal .viewer-help__left, .comic-viewer__single-horizontal .viewer-help__right, .comic-viewer__scroll-single-horizontal .viewer-help__left, .comic-viewer__scroll-single-horizontal .viewer-help__right {
  display: block;
}

@media (max-width: 600px) {
  .viewer-help .viewer-help__up {
    top: 82px;
  }
}

@media (max-width: 340px) {
  .viewer-help .viewer-help__left, .viewer-help .viewer-help__right {
    width: calc(50vw - 44px);
    height: calc((50vw - 44px) / 130 * 32);
    background-size: cover;
  }
}

.comicBanner {
  margin: 0 auto;
  border: 1px solid #ccc;
  padding: 16px 0;
  background: #fff;
  background-origin: content-box;
  width: 310px;
  box-sizing: border-box;

  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);

  z-index: 200;
}

/* navigation より大きくすること */

.comicBanner > h2 {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.comicBanner > iframe {
  display: block;
  border: 0;
  width: 100%;
  max-width: 300px;
  margin: 8px auto 0;
  height: 390px;
}

/*
    - 320   xs
320 - 375   sm
375 - 414   md
414 -       lg
*/

.comic-colophon {
  margin: 0 auto;
  border: 1px solid #ccc;
  padding: 16px;
  background: #fff url(./images/colophon-background.png?h=57444e3a) no-repeat top center;
  background-origin: content-box;
  min-width: 310px;

  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);

  z-index: 200;   /* navigation より大きくすること */
}

.comic-colophon__info {
  white-space: normal;
}

.comic-colophon__info h1 {
  font-size: 16px;
  font-weight: bold;
}

.comic-colophon__info h2 {
  font-size: 14px;
  font-weight: normal;
}

.comic-colophon__info h3 {
  font-size: 14px;
  font-weight: normal;
}

.comic-colophon__navigation {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin: 16px -8px 32px;
}

.comic-colophon__navigation > a {
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 16em;
      -ms-flex: 1 1 16em;
          flex: 1 1 16em;
  font-size: 15.34px;
  padding: 6px;
  margin: 0 8px;
  border: 1px solid #181312;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #181312;
  background: rgba(255, 255, 255, .8);
}

.comic-colophon__vote {
  margin: 32px 0;
}

.comic-colophon__vote > b {
  display: block;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.comic-colophon__vote .comic-colophon__vote__vote-button {
  margin-top: 12px;
  padding: 1px 5px 5px 1px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  color: #e20a16;
  border-style: solid;
  border-width: 8px;
  -webkit-border-image: url(./images/viewer-vote-button-bg.png?h=18cdd645) 8 repeat;
          border-image: url(./images/viewer-vote-button-bg.png?h=18cdd645) 8 repeat;
  background: #fff;
}

.comic-colophon__vote .comic-colophon__vote__vote-button:disabled, .comic-colophon__vote .comic-colophon__vote__vote-button[disabled] {
  opacity: 0.5;
  color: #aaa;
}

.comic-colophon__vote > p {
  margin-top: 0.5ex;
  font-size: 12px;
  text-align: right;
}

.comic-colophon__book-ad {
  border: 1px solid #e20a16;
  padding: 16px;
  position: relative;

  display: -webkit-box;

  display: -webkit-flex;

  display: -ms-flexbox;

  display: flex;
}

.comic-colophon__book-ad:after {
  content: '';
  display: block;
  clear: both;
}

.comic-colophon__book-ad .comic-colophon__book-ad__cover {
  -webkit-flex-basis: 80px;
      -ms-flex-preferred-size: 80px;
          flex-basis: 80px;
  -webkit-box-flex: 0;
  -webkit-flex-grow: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
}

.comic-colophon__book-ad .comic-colophon__book-ad__cover img {
  display: block;
  width: 100%;
  border: 1px solid #cfcfcf;
  box-sizing: border-box;
}

.comic-colophon__book-ad .comic-colophon__book-ad__info {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin-left: 8px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
}

.comic-colophon__book-ad .comic-colophon__book-ad__label {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  font-size: 16px;
  font-weight: normal;
  white-space: normal;
  text-align: left;
}

.comic-colophon__book-ad .comic-colophon__book-ad__buy-button {
  margin-top: 8px;
  display: block;
  color: #fff;
  background: #e20a16;
  border: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  line-height: 32px;
  text-decoration: none;
}

.comic-colophon__back-to-top {
  margin: 32px auto;
  display: block;
  border: 1px solid #181312;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #181312;
  max-width: 12em;
  line-height: 2;
  background: rgba(255, 255, 255, .8);
}

.comic-colophon__social-links {
  text-align: center;
  background: #f2f2f2;
  padding: 8px;
}

.comic-colophon__social-links > p {
  font-size: 12px;
  text-align: center;
  margin-bottom: 1ex;
}

.comic-colophon__social-links .social-link {
  display: inline-block;
  width: 45px;
  height: 45px;
  margin: 0 6px;
  background: transparent no-repeat;
  background-size: cover;
  vertical-align: middle;
}

.comic-colophon__social-links .social-link span {
  display: none;
}

/* TODO: 他のsocial-linkと共有 */

.comic-colophon__social-links .social-link__hatena    {
  background-image: url(./images/icon-social-hatebu.png?h=97f4d60b);
}

.comic-colophon__social-links .social-link__twitter   {
  background-image: url(./images/icon-social-twitter.png?h=464ddf45);
}

.comic-colophon__social-links .social-link__facebook  {
  background-image: url(./images/icon-social-facebook.png?h=05237bd9);
}

.comic-colophon__social-links .social-link__line      {
  background-image: url(./images/icon-social-line.png?h=655911a9);
}

.comic-artworks-sm .comic-colophon, .comic-artworks-xs .comic-colophon {
  padding: 8px;
  max-width: 280px;
  min-width: 0px;
  min-width: unset;
}

.comic-artworks-sm .comic-colophon__navigation, .comic-artworks-xs .comic-colophon__navigation {
  margin-top: 8px;
  margin-bottom: 16px;
}

.comic-artworks-sm .comic-colophon__vote, .comic-artworks-xs .comic-colophon__vote {
  margin-top: 16px;
  margin-bottom: 16px;
}

.comic-artworks-sm .comic-colophon__vote > button, .comic-artworks-xs .comic-colophon__vote > button {
  margin-top: 0;
  bottom: 8px;
  width: calc(100% + 4px);
}

.comic-artworks-sm .comic-colophon__book-ad,  .comic-artworks-xs .comic-colophon__book-ad  {
  padding: 8px;
}

.comic-artworks-sm .comic-colophon__back-to-top, .comic-artworks-xs .comic-colophon__back-to-top {
  margin-top: 16px;
  margin-bottom: 16px;
}

.comic-artworks-md .comic-colophon, .comic-artworks-lg .comic-colophon {
  max-width: 360px;
}

.comic-viewer {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.comic-viewer .message-loading {
  background: url(./images/viewer-loading.png?h=eeccfba8) no-repeat center top;
  background-size: 75%;
  width: 256px;
  margin: 160px auto 0;
  padding-top: 200px;
  text-align: center;
  color: #888;
}

.comic-viewer .message-error {
  background: url(./images/viewer-error.png?h=8041dde2) no-repeat center top;
  background-size: 75%;
  width: 256px;
  margin: 160px auto 0;
  padding-top: 200px;
  text-align: center;
  color: #888;
}

.comic-viewer .page {
  display: inline-block;
  vertical-align: middle;
  background: url(./images/loading-page.png?h=f1c335bd) no-repeat;
  background-size: cover;
}

.comic-viewer .page.page--blank {
  background: transparent;
}

.comic-viewer .page.page--banner, .comic-viewer .page.page--colophon {
  background: none;
  position: relative;
  visibility: hidden;
  line-height: 1;
  margin: auto;
}

.comic-viewer.comic-viewer--ready .page.page--banner, .comic-viewer.comic-viewer--ready .page.page--colophon {
  visibility: visible;
}

/* 縦読み */

.comic-viewer__scroll-vertical {
  /* ページ */
}

/* http://stackoverflow.com/questions/7273338/how-to-vertically-align-an-image-inside-div */

.comic-viewer__scroll-vertical .artwork {
  margin: 16px auto 160px;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.comic-viewer__scroll-vertical .artwork .page {
  vertical-align: middle;
}

/* 横読み */

/* ページ */

.comic-viewer__scroll-horizontal .comic-artworks, .comic-viewer__scroll-single-horizontal .comic-artworks {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: nowrap;
      -ms-flex-wrap: nowrap;
          flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  position: absolute;
  height: 100%;
}

.comic-viewer__scroll-horizontal .artwork, .comic-viewer__scroll-single-horizontal .artwork {
  margin: 0 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: nowrap;
      -ms-flex-wrap: nowrap;
          flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100vw;
}

.comic-viewer__scroll-horizontal .artwork:first-child, .comic-viewer__scroll-single-horizontal .artwork:first-child {
  margin-right: 0;
}

.comic-viewer__scroll-horizontal .artwork > .page, .comic-viewer__scroll-single-horizontal .artwork > .page {}

.comic-viewer__scroll-horizontal .page.page--colophon, .comic-viewer__scroll-single-horizontal .page.page--colophon {
  margin: 0;
}

.comic-viewer__scroll-single-horizontal .artwork {
  margin: 0;
  height: 100vh;
}

.comic-viewer__scroll-single-horizontal .artwork.artwork-right {
  margin-right: 64px;
}

.comic-viewer__scroll-single-horizontal .artwork.artwork-keft {
  margin-left: 64px;
}

/* 横単ページ */

.comic-viewer__single-horizontal {

  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* ページ */

.comic-viewer__single-horizontal .comic-artworks {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: nowrap;
      -ms-flex-wrap: nowrap;
          flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  position: absolute;
  height: 100%;
}

.comic-viewer__single-horizontal .artwork {
  margin: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: nowrap;
      -ms-flex-wrap: nowrap;
          flex-wrap: nowrap;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100vw;
}

.comic-viewer__single-horizontal .artwork:first-child {
  margin-right: 0;
}

.comic-viewer__single-horizontal .artwork > .page {}

.comic-viewer__single-horizontal .artwork.artwork-right {
  margin-right: 24px;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.comic-viewer__single-horizontal .artwork.artwork-left {
  margin-left: 24px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}

/* alert */

.alert {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .4);

  z-index: 999;
}

.alert--vote-comment .alert-body {
  position: relative;
  top: 20%;
  margin: 0 auto;
  padding: 6px;
  width: 325px;
  background: #fff;
  border: 1px solid #ccc;
  color: #222;
}

.alert--vote-comment .alert-body .alert-body__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  background: url(./images/viewwer-close-alert.png?h=055db2ed) no-repeat;
  background-size: contain;
}

.alert--vote-comment .alert-body h1 {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.alert--vote-comment .alert-body p {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
}

.alert--vote-comment .alert-body form textarea {
  display: block;
  border: 1px solid #ccc;
  border-radius: 3px;
  height: 8ex;
  width: 100%;
  margin: 6px auto;
  font-size: 12px;
  padding: 6px;
  box-sizing: border-box;
}

.alert--vote-comment .alert-body form textarea:input-placeholder {
  color: #ccc;
}

.alert--vote-comment .alert-body form button {
  display: block;
  margin: 0 auto;
  display: block;
  width: 325px;
  height: 42px;
  line-height: 40px;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  border: none;
  background: url(./images/viewer-last-buttonbg.png?h=dfac8af9) no-repeat;
  background-size: contain;
}

.alert--vote-comment .alert-body form button:hover {
  text-decoration: underline;
}

.alert--vote-comment .alert-body form button:disabled {
  color: #ccc;
  text-decoration: none;
}

@media (max-width: 420px) {
  .alert--vote-comment .alert-body {
    width: 260px;

    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
  }
  .alert--vote-comment .alert-body form textarea {
    width: 260px;
  }
  .alert--vote-comment .alert-body form button {
    width: 260px;
    height: 34px;
    line-height: 32px;
    font-size: 13px;
  }
}

/** modal dialog 最初のページ **/

.modal-dialog--confirm-jump {
  max-width: 280px;
}

.modal-dialog--confirm-jump .confirm-action {
  text-align: right;
  margin-top: 12px;
}

.modal-dialog--confirm-jump .btn {
  min-width: 80px;
  margin-right: 8px;
}

.btn {
  line-height: 2;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 4px;
  border: 1px solid #aaa;
  background: #fff;
  color: #000;
}

.btn.btn-primary {
  background: #0275d8;
  color: #fff;
  border: none;
}

/* モーダルダイアログ */

.modal-dialog-container {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(0, 0, 0, .5);
  z-index: 1000;
}

.modal-dialog-container.modal-dialog-container--empty {
  display: none;
}

.modal-dialog-container .modal-dialog-wrapper {
  position: absolute;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-dialog-container .modal-dialog {
  position: relative;
  margin: 0 auto;
  width: 90vw;
  border: 3px solid #222;
  border-radius: 3px;
}

.modal-dialog-container .modal-dialog__close-button {
  position: absolute;
  background: url(../images/btn-viewer-close.png?h=02423099);
  background-size: cover;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  right: 4px;
  top: 4px;
}

.modal-dialog-container .modal-dialog__close-button > span {
  display: none;
}

.modal-dialog-container .modal-dialog__close-button:hover {
  opacity: 0.7
}

.modal-dialog-container .modal-dialog__body {
  background: #fff;
  padding: 8px;
}

/** 購入ボタンを押した後のダイアログ **/

.modal-dialog--book-shops {
  max-width: 488px;
}

.modal-dialog--book-shops .book-info {
  border-bottom: 1px solid #e20a16;
  padding: 0 0 8px 0;
  min-height: 100px;
}

.modal-dialog--book-shops .book-info:after {
  content: '';
  display: block;
  clear: both;
}

.modal-dialog--book-shops .book-info .book-info__cover {
  float: left;
  display: block;
  width: 64px;
}

.modal-dialog--book-shops .book-info .book-info__label {
  margin-left: 74px;
  font-size: 16px;
  font-weight: bold;
}

.modal-dialog--book-shops .book-info__shogakukanLinks {
  text-align: center;
  margin-top: 8px;
}

.modal-dialog--book-shops .book-info__shogakukanLinks > a {
  display: inline-block;
  width: 45%;
  margin: 1%;
  background: #008c00;
  color: #fff;
  font-size: 1.2rem;
  line-height: 32px;
}

.modal-dialog--book-shops .shoplinks-label {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 16px auto 8px;
}

.modal-dialog--book-shops .shoplinks {
  margin: -4px;
}

.modal-dialog--book-shops .shoplinks > a {
  display: inline-block;
  width: 142px;
  height: 16px;
  border: 1px solid #ddd;
  padding: 8px 4px;
  margin: 4px;
}

.modal-dialog--book-shops .shoplinks > a > img {
  display: block;
  width: 100%;
}

@media (max-width: 560px) {
  .modal-dialog--book-shops .shoplinks > a {
    width: calc(100% / 3 - 18px);
    height: calc(100% / 3 / 142 * 32 - 18px / 142 * 32);
  }
}

@media (max-width: 340px) {
  .modal-dialog--book-shops .shoplinks > a {
    width: calc(100% / 2 - 18px);
    height: calc(100% / 2 / 142 * 32 - 18px / 142 * 32);
  }
}
