@charset "utf-8";

/** ***************************************************************************
 * 共用
 * ************************************************************************* */

html {
  height: 100%;
}

body {
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

#main {
  height: 100%;
  padding-bottom: 0;
}

div.slick-track {
  max-width: none;
}

/** ***************************************************************************
 * マンガ
 * ************************************************************************* */

#manga {
  height: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  transition:
    visibility 0.3s ease-in-out 0.0s,
    opacity 0.3s ease-in-out 0.0s;
  visibility: hidden;
  opacity: 0;
}

#manga.set-position {
  visibility: visible;
  opacity: 1;
}

#manga div.image div.item img {
  max-height: calc(100vh - 160px);
  margin: auto;
}

#manga div.image div.pc {
  display: none;
}

#manga div.image div.pc {
  display: none;
}

/* :::::::: ブレイクポイント :::::::: */

@media print, screen and (min-width:737px) {

  #manga {
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
  }

  #manga div.image {
    -webkit-transform: translate(0, -50%);
            transform: translate(0, -50%);
    position: relative;
    z-index: 1;
    top: 50%;
  }

  #manga div.image div.sp {
    display: none;
  }

  #manga div.image div.pc {
    display: block;
  }

  #manga div.image div.item img {
    width: 100% !important;
    max-height: 100%;
  }

  #manga div.image div.sp {
    display: none;
  }

  #manga div.image div.pc {
    display: block;
  }

}

/** ***************************************************************************
 * 前へ / 次へ
 * ************************************************************************* */

#manga div.button {
  width: 50px;
  height: 50px;
  cursor: pointer;
  color: #fff;
  border-radius: 4px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 2;
  bottom: 15px;
}

#manga div.button.prev {
  left: calc(50% - 85px);
}

#manga div.button.next {
  left: calc(50% - 25px);
  transition:
    visibility 0.3s ease-in-out 0.0s,
    opacity 0.3s ease-in-out 0.0s;
}

#manga.first-image div.button.next {
  visibility: hidden;
  opacity: 0;
}

#manga div.button.close {
  left: calc(50% + 35px);
}

#manga div.button.close a {
  width: 50px;
  height: 50px;
  text-decoration: none;
  display: block;
  position: relative;
  z-index: 1;
}

#manga div.button::before {
  line-height: 1;
  font-family: 'icomoon';
  font-size: 30px;
}

#manga div.button.prev::before {
  content: '\f107';
}

#manga div.button.next::before {
  content: '\f106';
  margin-top: -2px;
}

#manga div.button.close a::before {
  content: '';
  width: 2px;
  height: 24px;
  background-color: #fff;
  position: absolute;
  z-index: 2;
  top: calc(50% - 12px);
  left: 50%;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

#manga div.button.close a::after {
  content: '';
  width: 2px;
  height: 24px;
  background-color: #fff;
  position: absolute;
  z-index: 2;
  top: calc(50% - 12px);
  left: 50%;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

/* :::::::: ブレイクポイント :::::::: */

@media print, screen and (min-width:737px) {

  #manga div.button {
    top: calc(50% - 25px);
    bottom: auto;
  }

  #manga div.button.prev {
    left: 15px;
  }

  #manga div.button.next {
    left: auto;
    right: 15px;
  }

  #manga div.button.close {
    top: 30px;
    left: auto;
    right: 30px;
  }

  #manga div.button.prev::before {
    content: '\e929';
    margin-top: 3px;
  }

  #manga div.button.next::before {
    content: '\e92a';
    margin-top: 3px;
  }

}
