/* =====================
   基本リセット
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: YakuHanMP, "Shippori Mincho", serif;
  font-feature-settings: "palt";
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  position: relative;
  overscroll-behavior: none;
  background-color: #000;
}
img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
  border: none;
}
a {
  text-decoration: none;
}
ul {
  list-style-type: none;
}
input[type="text"],
select,
textarea {
  font-family: 'Noto Sans JP', sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  cursor: pointer;
}
@media screen and (max-width: 375px) {
  body::before {
    background-image: url('../img/stamp__bg--sp.png');
  }
  .sp-only {
    display: block;
  }
}


.story__wrapper {
  position: relative;
}
.story__wrapper--story01::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:url("../img/story/story__bg.png");
  background-size:cover;
  z-index: -1;
}
@media screen and (max-width: 768px) {
  .story__wrapper--story01::before {
    background-image: none;
  }
}
.story__logo {
  position: fixed;
  top: 32px;
  left: 32px;
  width: 248px;
}
.story__copy {
  position: fixed;
  top: 32px;
  right: 32px;
  width: 64px;
}
.story__scroll {
  position: fixed;
  bottom: 32px;
  right: calc(((100% - 375px) / 2) - 52px);
  width: 20px;
}
.story {
  position: relative;
  width: 375px;
  height: 100dvh;
  margin: 0 auto;
}
.story__heading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 246px;
  background-image: url('../img/story/story__heading.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  z-index: 99;
}
.story__heading__title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.story__contents {
  margin-top: calc(-100vh + 300px);
}
.story__text {
  font-size: 20px;
  margin-bottom: 20vh;
}
.story__separator {
  margin: 100px auto;
  display: flex;
  justify-content: center;
}
.story__separator img {
  width: 32vw;
  max-width: 240px;
  height: auto;
}
.story__bg {
  z-index: -1;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
}
.story__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40,57,64,.78);
}
.story__bg__inner {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100lvh;
}
.story__bg__item{
  position: absolute;
  inset: 0;
  content: "";
}
.story__bg__item img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__bg__item--01 {
}
.story__bg__item--02 {
  clip-path: polygon(
        0% var(--clipYLeft),
        100% var(--clipYRight),
        100% 100%,
        0% 100%
    );
  --clipYLeft: calc(100vh + 40px);
  --clipYRight: 100vh;
}


.story__block {
  display: flex;
  flex-direction: column;
  gap: 43px 0;
  margin-bottom: 72px;
}
.story__dialogue {
  padding: 0 20px;
  color: #fff;
}
.story__dialogue-chara {
  height: 40px;
  background-size: auto 100%;
  background-repeat: no-repeat;
}
.story__dialogue-chara--kanata {
  background-image: url('../img/story/story__dialogue__chara--kanata.png');
}
.story__dialogue-chara--aiba {
  background-image: url('../img/story/story__dialogue__chara--aiba.png');
}
.story__dialogue-text {
  line-height: 1.7;
  font-size: 16px;
  padding-left: 40px;
}

.story__eyecatch {
  width: 100%;
  margin-bottom: 128px;
}
.story__campaign {
  width: 100%;
}



.preread {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 375px;
  transition: all .4s;
}
@media screen and (max-width: 768px) {
  .preread {
    width: 100%;
  }
}
.preread img{
  width: 100%;
  height: auto;
  display: block;
}
.preread.readed {
  opacity: 0;
}



/* preload */
.preload {
  background: #050915;
  height: 100vh;
  height: 100lvh;
  opacity: 0;
  position: fixed;
  width: 100vw;
  z-index: 9999;
}
.loading .preload {
  opacity: 1;
}
.loadingFin .preload {
  opacity: 0;
}
.loadingFin .preload {
  transition: opacity 1.0s;
}
.loading .wrap ,
.loading footer {
  opacity: 0;
}
.preload__img__wrapper {
  align-items: center;
  display: flex;
  height: 100vh;
  height: 100svh;
  justify-content: center;
  position: relative;
}
.preload__img {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 608px;
}
.preload__castle {
  animation: preloadCastleAnim 1s ease-out 0s infinite;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 384px;
}
.preload__text {
  left: 50%;
  position: absolute;
  top: calc(50% + 83px);
  transform: translate(-50%, -50%);
  width: 124px;
}
.preload__castle img,
.preload__text img,
.preload__img img {
    width: 100%;
}

@media screen and (max-width: 768px) {
  .preload__img {
    width: 78.66666667vw;
  }
  .preload__castle {
    width: 49.6vw;
  }
  .preload__text {
    width: 16vw;
    top: calc(50% + 10.6667vw);
  }
}



@keyframes preloadCastleAnim {
  0% {
    opacity: .3;
  }
  14.28% {
    opacity: .5;
  }
  70% {
    opacity: .6;
  }
  100% {
    opacity: .3;
  }
}



.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 91px;
  padding-bottom: 46px;
  color: #fff;
  background-image: url('../img/story/footer__bg.png');
  background-size: 100% auto;
  background-repeat: repeat;
}
/* ==============================
   お問い合わせ
============================== */
.footer__contact {
  text-align: center;
  margin-bottom: 44px;
}

.footer__contact-heading {
  font-size: 16px;
  font-family: "Shippori Mincho", serif;
  line-height: 1.35;
  margin-bottom: 10px;
}

.footer__contact-info-item {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
}
.footer__contact-info-item--min {
  font-size: 12px;
}

/* ==============================
   OFFICIAL
============================== */
.footer__official-label {
  width: 93px;
  text-align: center;
  margin: 0 auto 20px;
}

.footer__official-sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 47px;
}

.footer__official-item {
  width: 56px;
}

.footer__credit {
  font-size: 13px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .story__logo,
  .story__copy,
  .story__scroll {
    display: none;
  }
  .story {
    width: 100%;
  }
  .story__heading {
    height: calc((246 / 375) * 100vw);
  }
  .story__contents {
    margin-top: calc((300 / 375) * 100vw - 100vh);
  }
  .story__block {
    gap: calc((43 / 375) * 100vw);
    margin-bottom: calc((72 / 375) * 100vw);
  }
  .story__dialogue {
    padding: 0 calc((20 / 375) * 100vw);
  }
  .story__dialogue-chara {
    height: calc((40 / 375) * 100vw);
  }
  .story__dialogue-text {
    font-size: calc((16 / 375) * 100vw);
  }
  .story__eyecatch {
    margin-bottom: calc((128 / 375) * 100vw);
  }
  .footer {
    padding: calc((91 / 375) * 100vw) 0 calc((46 / 375) * 100vw);
  }
  .footer__contact {
    margin-bottom: calc((46 / 375) * 100vw);
  }
  .footer__contact-heading {
    font-size: calc((16 / 375) * 100vw);
    margin-bottom: calc((9 / 375) * 100vw);
  }
  .footer__contact-info-item {
    font-size: calc((14 / 375) * 100vw);
    margin-bottom: calc((6 / 375) * 100vw);
  }
  .footer__contact-info-item--min {
    font-size: calc((12 / 375) * 100vw);
  }
  .footer__official-label {
    width: calc((93 / 375) * 100vw);
    margin: 0 auto calc((20 / 375) * 100vw);
  }
  .footer__official-sns {
    margin-bottom: calc((61 / 375) * 100vw);
  }
  .footer__official-item {
    width: calc((56 / 375) * 100vw);
  }
  .footer__credit {
      font-size: calc((12 / 375) * 100vw);
      text-align: center;
  }
}


.read {
  position: fixed;
  bottom: calc((22 / 1280) * 100vw);
  right: calc(((100% - 375px) / 2) + 22px);
  width: calc((200 / 1280) * 100vw);
  height: calc((200 / 1280) * 100vw);
  max-width: 115px;
  max-height: 115px;
  z-index: 2;
  opacity: 0;
  transition: all .4s;
}
.read::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/read.png');
  background-size: 100% auto;
  animation:read 8s linear infinite;
}
@keyframes read {
  to {
    transform:rotate(360deg);
  }
}
.read--01::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/story/read__inner--01.png');
  background-size: 100% auto;
}

.read.readed {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .read {
    position: fixed;
    bottom: calc((20 / 375) * 100vw);
    right: calc((20 / 375) * 100vw);
    width: calc((115 / 375) * 100vw);
    height: calc((115 / 375) * 100vw);
    max-width: inherit;
    max-height: inherit;
    z-index: 2;
  }
}

/* fadein */
@keyframes fadeinAnim {
    0% {
        -webkit-transform: translateY(24px);
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        -webkit-transform: translateY(0);
        opacity: 1;
        transform: translateY(0)
    }
}
.fade_in.is-show {
    -webkit-animation: fadeinAnim .4s ease-out both;
    -webkit-animation-delay: .6s;
    animation: fadeinAnim .4s ease-out both;
    animation-delay: .6s;
}
.fade_in {
    -webkit-animation: none;
    -webkit-transform: translateY(24px);
    animation: none;
    opacity: 0;
    transform: translateY(24px);
}


.barColor {
  display: none;
}
@media screen and (max-width: 768px) {
  .barColor {
    width: 100%;
    position: fixed;
    left: 0;
    background-color: #000;
    height: 4px;
    display: block;
  }
  .barColor--top {
    top: 0;
    height: 6px;
  }
  .barColor--bottom {
    bottom: 0;
    height: 4px;
  }
}
