html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.has-scroll-smooth {
  overflow: hidden;
}

html.has-scroll-dragging {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.has-scroll-smooth body {
  overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
  min-height: var(--svh);
}

:root {
  --contentH: calc(var(--svh) - 7rem);
  --novelH: calc(var(--svh) * .6);
}
@media screen and (max-width: 960px) {
  :root {
    --contentH: var(--svh);
    --novelH: calc(var(--svh) * .7);
  }
}

.l-wrap {
  display: block;
  position: relative;
}
.l-wrap__container {
  display: block;
  position: relative;
  font-size: min(0.0209150327 * var(--svh), 25px);
}
@media screen and (max-width: 960px) {
  .l-wrap__container {
    font-size: min(0.026 * var(--svh), 25px);
  }
}

.l-main {
  display: block;
  position: relative;
}
.l-main__content {
  height: var(--contentH);
  display: block;
  position: relative;
}
[data-novel=nadeko_past] .l-main__content {
  width: calc(94rem + 522.6875em);
}
@media screen and (max-width: 960px) {
  [data-novel=nadeko_past] .l-main__content {
    width: calc(59.5rem + 519.6153846154em);
  }
}
[data-novel=shinobu_future] .l-main__content {
  width: calc(87.4rem + 534.0625em);
}
@media screen and (max-width: 960px) {
  [data-novel=shinobu_future] .l-main__content {
    width: calc(59.5rem + 530.3846153846em);
  }
}

.l-footer {
  width: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
}
@media screen and (max-width: 960px) {
  .l-footer {
    display: none;
  }
}

.p-brand {
  width: 10rem;
  display: block;
  position: fixed;
  right: 5rem;
  top: 3rem;
  z-index: 5;
}
@media screen and (max-width: 960px) {
  .p-brand {
    display: none;
  }
}

.p-in {
  display: block;
  position: relative;
}
.p-in__container {
  min-width: 100%;
  height: var(--contentH);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row-reverse;
  position: relative;
  padding: 8rem 6.5rem 8rem 26.5rem;
}
@media screen and (max-width: 960px) {
  .p-in__container {
    padding: 3.5rem 3rem 4.5rem 12.5rem;
  }
}
.p-in__header {
  flex-shrink: 0;
  width: 15rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
@media screen and (max-width: 960px) {
  .p-in__header {
    width: 12rem;
  }
}
.p-in__title {
  width: 6.5rem;
  display: block;
  position: relative;
}
@media screen and (max-width: 960px) {
  .p-in__title {
    width: 6rem;
  }
}
.p-in__inner {
  flex-shrink: 0;
  display: block;
  position: relative;
}
.p-in__footer {
  width: 46rem;
  display: block;
  position: relative;
  padding-right: 12.8rem;
}
@media screen and (max-width: 960px) {
  .p-in__footer {
    width: 32rem;
    padding-right: 7rem;
  }
}
.p-in__link {
  display: block;
  position: relative;
  margin-top: 4.4em;
}
@media screen and (max-width: 960px) {
  .p-in__link {
    margin-top: 3em;
  }
}
.p-in__link-item {
  display: block;
  position: relative;
}
.p-in__link-item + .p-in__link-item {
  margin-top: 1em;
}
.p-in__btn {
  width: 33.2rem;
  display: block;
  position: relative;
  margin: 0 auto;
  color: var(--color-white);
  background: var(--color-black);
}
@media screen and (max-width: 960px) {
  .p-in__btn {
    width: 25rem;
  }
}
.p-in__btn.--back {
  color: var(--color-black);
  background: var(--color-white);
}
.p-in__btn::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--gradient_main);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .p-in__btn::before {
    transition: opacity 0.6s var(--ease_out);
  }
  .p-in__btn:hover::before {
    opacity: 0.6;
  }
}
.p-in__btn::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  border: 0.2rem solid var(--color-black);
}
.p-in__btn-text {
  display: block;
  position: relative;
  padding: 1.65rem 2rem;
  font-size: 1.8rem;
  line-height: 1.5;
  letter-spacing: 0.5rem;
  text-align: center;
}
@media screen and (max-width: 960px) {
  .p-in__btn-text {
    padding: 1.65rem 2rem;
    font-size: 1.4rem;
    letter-spacing: 0.25rem;
  }
}
.p-in__btn-text::after {
  content: "";
  width: 1rem;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  right: 2rem;
  background: url("../img/btn.svg") no-repeat center/contain;
}
@media screen and (max-width: 960px) {
  .p-in__btn-text::after {
    width: 0.6rem;
    right: 1.6rem;
  }
}
.--back .p-in__btn-text::after {
  background: url("../img/btn_b.svg") no-repeat center/contain;
  transform: scale(-1, 1);
  left: 2rem;
}
@media screen and (max-width: 960px) {
  .--back .p-in__btn-text::after {
    right: 1.6rem;
  }
}

.p-novel {
  min-height: var(--novelH);
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  position: relative;
}
.p-novel__header {
  flex-shrink: 0;
  width: 7.5em;
  display: block;
  position: relative;
}
@media screen and (max-width: 960px) {
  .p-novel__header {
    width: 5.6923076923em;
  }
}
.p-novel__title {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  position: relative;
}
.p-novel__title-sub {
  display: block;
  position: relative;
  writing-mode: vertical-rl;
  line-height: 1;
  letter-spacing: 0.1875em;
  margin-left: 1.0625em;
  top: -0.05em;
  font-weight: 400;
}
@media screen and (max-width: 960px) {
  .p-novel__title-sub {
    top: -0.025em;
    font-size: 0.9230769231em;
    letter-spacing: 0.1153846154em;
    margin-left: 0.6153846154em;
  }
}
.p-novel__title-sub span {
  letter-spacing: 0.1875em;
}
@media screen and (max-width: 960px) {
  .p-novel__title-sub span {
    letter-spacing: 0.1153846154em;
  }
}
.p-novel__title-main {
  display: block;
  position: relative;
  top: -0.3em;
  writing-mode: vertical-rl;
  font-size: 1.625em;
  letter-spacing: 0.25em;
  font-weight: 400;
}
@media screen and (max-width: 960px) {
  .p-novel__title-main {
    top: -0.15em;
    font-size: 1.8461538462em;
    letter-spacing: 0.0769230769em;
  }
}
.p-novel__inner {
  flex-shrink: 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  position: relative;
}
.p-novel__lead {
  width: 4.375em;
  display: block;
  position: relative;
  top: -0.4em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1.125em;
  letter-spacing: 0.0833333333em;
  font-weight: 400;
}
@media screen and (max-width: 960px) {
  .p-novel__lead {
    top: 0;
    width: 3.2307692308em;
    font-size: 1em;
    letter-spacing: 0.1153846154em;
  }
}
.p-novel__text {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  position: relative;
}
.p-novel__text-par {
  height: var(--novelH);
  display: block;
  writing-mode: vertical-rl;
  font-size: 1em;
  letter-spacing: 0.09375em;
  font-weight: 400;
  padding-left: 1.375em;
}
@media screen and (max-width: 960px) {
  .p-novel__text-par {
    font-size: 1em;
  }
}
.p-novel__text-par [data-ruby] {
  position: relative;
}
.p-novel__text-par [data-ruby]::before {
  content: attr(data-ruby);
  height: 100%;
  text-align: center;
  display: block;
  position: absolute;
  top: 0;
  font-size: 0.5em;
  right: 0.15625em;
  transform: translate(100%, 0);
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.p-novel__text-bar {
  letter-spacing: -0.05rem;
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

.c-scrollbar {
  display: block;
  position: fixed;
  left: 25rem;
  bottom: min(20.3007518797vh, 13.5rem);
  width: calc(100vw - 50rem);
  height: 0.2rem;
  transform-origin: right center;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 1;
  background: var(--gradient_main);
  overflow: hidden;
}
@media screen and (max-width: 960px) {
  .c-scrollbar {
    width: calc(100vw - 10rem);
    left: 5rem;
    bottom: min(7.7611940299vh, 13.5rem);
  }
}
.c-scrollbar.is-hide {
  opacity: 0 !important;
}
.c-scrollbar_thumb {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  height: 0.2rem;
  cursor: grab;
}
.has-scroll-dragging .c-scrollbar_thumb {
  cursor: grabbing;
}
.c-scrollbar_thumb::before {
  content: "";
  width: 100vw;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-gray);
  transform: translate(-100%, 0);
}
.c-scrollbar_thumb::after {
  content: "";
  width: 100vw;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-gray);
  transform: translate(100%, 0);
}