@charset "utf-8";
/* CSS Document */
body {
  font-family: "Zen Antique", serif;
  font-weight: 400;
  font-style: normal;
  color: #4A4737;
  background: url("../images/bg_texture.png") fixed, #F5F2E7;
  line-height: 1.5;
}
.block_span {
  display: block;
}
.chapter_h span:nth-of-type(1) {
  font-size: 20px;
}
.chapter_h span:nth-of-type(2) {
  font-size: 32px;
  margin-bottom: 24px;
}
/*改行用のspan*/
.br_span {
  display: inline;
}
@media screen and (max-width:767px) {
  .br_span {
    display: block;
  }
}
.story_text {
  font-size: 20px;
}
/*物語文の左右開け中央ラップ*/
.text_wrap {
  margin: 0 auto;
  max-width: 1136px;
}
.f_16 {
  font-size: 16px;
}
.f_18 {
  font-size: 18px;
}
.f_20 {
  font-size: 20px;
}
.f_24 {
  font-size: 24px;
}
.mb_30 {
  margin-bottom: 30px;
}
#sparkleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; 
  z-index: 9999;
}
/*-------------------------------------
ローディング
--------------------------------------*/
/* ローディング全体 */

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/bg_texture.png") fixed, #F5F2E7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}
/* ロゴのフェードイン */
.loading_logo {
  width: 300px;
  height: 141px;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
/* loading の文字アニメーション */
.loading_text {
  margin-top: 20px;
  font-size: 24px;
  letter-spacing: 4px;
  display: flex;
  gap: 4px;
}
.loading_text span {
  display: inline;
  opacity: 0.2;
  animation: blink 1.5s infinite;
}
/* 各文字にディレイを設定 */
.loading_text span:nth-child(1) {
  animation-delay: 0s;
}
.loading_text span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading_text span:nth-child(3) {
  animation-delay: 0.4s;
}
.loading_text span:nth-child(4) {
  animation-delay: 0.6s;
}
.loading_text span:nth-child(5) {
  animation-delay: 0.8s;
}
.loading_text span:nth-child(6) {
  animation-delay: 1s;
}
.loading_text span:nth-child(7) {
  animation-delay: 1.2s;
}
@keyframes blink {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
/*-------------------------------------
ナビゲーション
--------------------------------------*/
.global_nav {
  position: relative;
  height: 100px;
  z-index: 100;
}
.global_nav ul {
  height: 100px;
  font-size: 16px;
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  align-items: center;
  padding-right: 80px;
}
.global_nav li {
  text-align: center;
}
.global_nav span:nth-child(2) {
  font-size: 12px;
}
.global_nav a {
  transition: 0.3s;
}
.global_nav a:hover, .global_nav a:active {
  color: #D1FAF6;
}
#index a[href="index.html"], #event a[href="event.html"], #goods a[href="goods.html"], #contact .global_nav a[href="contact.html"] {
  color: #D1FAF6;
}
@media screen and (max-width:767px) {
  .global_nav ul {
    padding: 0;
    justify-content: center;
    gap: 20px;
  }
}
/*-------------------------------------
フッター 全共通
--------------------------------------*/
footer {
  width: 100%;
  background: #B4AC87;
  font-size: 16px;
  text-align: center;
  border-top: 1px solid #4A4737;
}
footer h3 {
  width: 100%;
  font-size: 24px;
  margin-bottom: 24px;
  text-align: left;
}
/*h3から特定商取引法に基づく表記の中身ラップを背景用にさらにラップ*/
.colophon_bg {
  position: relative;
  background: url("../svg/bg_dec2_left.svg") no-repeat left 10px bottom 10px, url("../svg/bg_dec2_right.svg") no-repeat right 10px bottom 10px, #9AC2BD;
  background-size: 150px 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
/*h3から特定商取引法に基づく表記の中身ラップ*/
.colophon_container {
  padding: 64px;
  display: inline-block;
}
@media screen and (max-width:767px) {
  .colophon_container {
    padding: 64px 0;
    width: 80%;
  }
}
/*ulとdlのラップ*/
.colophon {
  display: flex;
  flex-wrap: wrap;
  text-align: left;
  gap: 134px;
  margin-bottom: 26px;
  max-width: 893px;
}
@media screen and (max-width:767px) {
  .colophon {
    gap: 26px;
  }
}
.colophon ul {
  padding-left: 24px;
}
.colophon li:nth-of-type(3), .colophon li:nth-of-type(5) {
  margin-bottom: 24px;
}
.colophon div {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media screen and (max-width:767px) {
  .colophon ul, .colophon div {
    padding-left: 0;
  }
}
.copy_container {
  width: 100%;
  padding: 24px;
  text-align: center;
  background: #B4AC87;
  color: #fff;
}
.sns_icon {
  font-size: 60px;
  margin-bottom: 40px;
}
.sns_icon a:nth-of-type(1) {
  margin-right: 16px;
}
.footer_link a {
  text-decoration: underline;
  transition: 0.4s;
}
.footer_link a:not(:first-child) {
  padding-left: 1em;
}
.footer_link a:not(:last-child) {
  border-right: 1px solid;
  padding-right: 1em;
}
.footer_link a:hover, .footer_link a:active {
  color: #D1FAF6;
}
.sp_break {
  display: none;
}
@media screen and (max-width:767px) {
  .footer_link a:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }
  .sp_break {
    display: block;
  }
}
/*-------------------------------------
パララックス共通
--------------------------------------*/
.parallax_head {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 30;
}
.parallax_third, .parallax_monolog {
  position: relative;
  width: 100%;
  height: 100vh;
}
.parallax {
  position: relative;
  width: 100%;
  height: 100vh;
}
.parallax_second {
  position: relative;
  width: 100%;
  height: 100vh;
}
.parallax_layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/*-------------------------------------
main共通
--------------------------------------*/
.index_main {
  height: 100%;
  background: url("../images/bg_book_01.png") fixed no-repeat center;
  background-size: 933px 765px;
}
.prologue_container, .fast_container, .third_container, .monolog_container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}
.prologue_section, .fast_section, .second_section, .third_section, .monolog_section {}
/*四隅と透過背景 TOPと開催概要で使う*/
.prologue_content, .fast_content, .second_content, .monolog_content, .under_content {
  position: relative;
  width: 100%;
  padding: 104px 0;
  background:
    url("../svg/bg_dec1_1.svg") no-repeat left 10px top 10px, url("../svg/bg_dec1_2.svg") no-repeat right 10px top 10px, url("../svg/bg_dec1_3.svg") no-repeat right 10px bottom 10px, url("../svg/bg_dec1_4.svg") no-repeat left 10px bottom 10px, #9AC2BD33;
  background-size: 100px 100px;
}
@media screen and (max-width:767px) {
  .prologue_content, .fast_content, .second_content, .third_content, .monolog_content, .under_content {
    background-size: 70px 70px;
  }
}
/*文字数widthラップ*/
.prologue_text, .fast_text, .second_text, .third_text, .monolog_text {
  max-width: 48em;
}
@media screen and (max-width:767px) {
  .prologue_text, .fast_text, .second_text, .monolog_text {
    width: 80%;
    margin: 0 auto;
  }
}
/*-------------------------------------
ファーストビュー
--------------------------------------*/
.fv_back {
  background-image: url("../images/bg_library_back.png");
  background-position: center top;
  z-index: -10;
}
.fv_mid {
  background-image: url("../images/bg_library_front.png");
  background-position: center top;
  z-index: -10;
}
.fv_content {
  min-height: 824px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}
.fv_content h1 {
  width: 300px;
  height: 141px;
  background: url("../svg/logo1.svg") no-repeat;
  text-indent: -9999px;
  white-space: nowrap;
  overflow: hidden;
}
.fv_content img {
  display: block;
  margin: 0 auto 8px;
  transform: rotateY(3.142rad);
  animation: roll 2s infinite;
}
@keyframes roll {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(0.5turn);
  }
  100% {
    transform: rotateY(1turn);
  }
}
.fv_content h1, .fv_content p:nth-of-type(2) {
  margin-bottom: 80px;
}
.fv_content p {
  text-align: center;
  font-size: 24px;
}
.fv_content p:nth-of-type(3) {
  font-size: 20px;
}
@media screen and (max-width:767px) {
  .fv_content p {
    width: 90%;
  }
}
/*-------------------------------------
序章
--------------------------------------*/
.prologue_text p:nth-of-type(1) {
  margin-bottom: 30px;
}
.prologue_text, .monolog_text {
  margin: 0 auto;
  text-align: center;
}
.prologue_content {
  z-index: 1
}
.prologue_content img {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -250px;
}
.book_back {
  background-image: url("../images/bg_book_02.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: auto
    clamp(533px, 100%, 889px);
  height: 100%;
  z-index: 20;
}
.book_mid {
  background-image: url("../images/bg_book_right.png");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: clamp(171px, 20vw, 214px)
    calc(clamp(171px, 20vw, 214px) * 803 / 214);
  height: 100%;
  z-index: 20;
}
.book_front {
  background-image: url("../images/bg_book_left.png");
  background-position: bottom left;
  background-repeat: no-repeat;
background-size: 
    clamp(178px, 25vw, 222px)
  calc(clamp(178px, 25vw, 222px) * 833 / 222);

  z-index: 20;
}
.parallax_book_3 {
    margin-bottom: 560px;
}
@media screen and (max-width:767px) {
  .sp_none {
    display: none;
  }
    .prologue_section {
        margin-bottom: 560px;
    } 
    .parallax_book {
        margin-bottom: 480px;
    }
}
/*-------------------------------------
第一章
--------------------------------------*/
.fast_container {
  z-index: 5;
}
.fast_content img {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -140px;
}
.fast_text p:not(:nth-of-type(3)) {
  margin-bottom: 30px;
}
.fast_front {
  background-image: url("../images/bg_book_02.png");
  background-position: top center;
  background-size: 1084px 889px;
  height: 889px;
  z-index: 20;
}
.fast_back {
  background-image: url("../images/dec_magic_book.png");
  background-size: 690px 537px;
  background-position: right -100px bottom;
  z-index: 1;
}
@media screen and (max-width:767px) {
  .fast_back {
    background-size: 460px 358px;
    background-position: right -150px bottom;
  }
    .fast_section {
        margin-bottom: 960px;
    }
}
/*-------------------------------------
第二章
--------------------------------------*/
.second_section {
    margin-bottom: 160px;
  z-index: 10;
}
.second_content {
  position: absolute;
  inset: auto;
  z-index: 1;
}
.second_text p:nth-of-type(odd) {
  margin-bottom: 30px;
}
.second_container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: url("../images/bg_archive.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
}
.second_mid {
  height: 100%;
  background-image: url("../images/dec_chain_back.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 1100px 1049px;
  z-index: 10;
}
.second_front {
  height: 100%;
  background-image: url("../images/dec_chain_front.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 1800px 941px;
  z-index: 10;
}
@media screen and (max-width:767px) {
  .second_mid {
    background-size: 611.11px 582.77px;
    background-position: right bottom;
  }
  .second_front {
    background-size: 900px 470.5px;
    background-position: left bottom;
  }
}
.second_grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 48px;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
}
.left_top {
  justify-self: start;
  align-self: start;
}
.right_bottom {
  justify-self: end;
  align-self: end;
}
/*-------------------------------------
第三章
--------------------------------------*/
.third_content {
  width: 100%;
  padding: 104px 0;

  background:
    url("../svg/bg_dec1_1.svg") no-repeat left 10px top 10px, url("../svg/bg_dec1_2.svg") no-repeat right 10px top 10px, url("../svg/bg_dec1_3.svg") no-repeat right 10px bottom 10px, url("../svg/bg_dec1_4.svg") no-repeat left 10px bottom 10px, url("../images/bg_dragon_archive.jpg") no-repeat center, #9AC2BD33;
  background-size:
    100px 100px, 100px 100px, 100px 100px, 100px 100px, cover, auto;
  z-index: 30;
}
@media screen and (max-width:767px) {
  .third_content {
    background-size:
      70px 70px, 70px 70px, 70px 70px, 70px 70px, cover, auto;
  }
}
.third_front {
  height: 100%;
  background-image: url("../images/dec_dragon.png");
  background-repeat: no-repeat;
  background-position: right -350px center;
  background-size: 1166px 1000px;
  z-index: 15;
}
@media screen and (max-width:767px) {
  .third_front {
    background-size: 777.33px 666.66px;
    background-position: right -550px center;
  }
}
.third_section .text_wrap {
  /*padding: 104px 0;*/
  inset: auto;
}
@media screen and (max-width:767px) {
  .third_section .text_wrap {
    width: 80%;
  }
    .third_section {
        margin-bottom: 560px;
    }
}
/*-------------------------------------
終章
--------------------------------------*/
.monolog_text p:not(:nth-of-type(4)) {
  margin-bottom: 30px;
}
.monolog_section {
    margin-bottom: 160px;
}
/*-------------------------------------
aside
--------------------------------------*/
aside {
  position: relative;
  background: url("../images/bg_texture.png"), #F5F2E7;
  z-index: 20;
}
aside div {
  width: 100%;
  padding: 136px 0;
  background: linear-gradient(rgba(245, 242, 231, 0.2), rgba(245, 242, 231, 0.2)), url("../images/bg_library.jpg") no-repeat center top -120px;
  text-align: center;
}
.aside_text {
  font-size: 24px;
}
@media screen and (max-width:767px) {
  .aside_text {
    width: 80%;
    margin: 0 auto;
    font-size: 20px;
  }
}
/*-------------------------------------
開催概要　グッズ紹介　共通
--------------------------------------*/
.overview, .merchandise {
  font-size: 16px;
  background: url("../images/bg_texture.png") #F5F2E7;
}
.dec_arrow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 60px;
  background: url("../svg/dec_arrow.svg") no-repeat;
  background-size: contain;
}
.overview_container, .merchandise_container {
  position: relative;
  max-width: 1136px;
  margin: 0 auto;
  padding: 56px;
  border: 1px solid #B4AC87;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width:767px) {
  .overview_container, .merchandise_container {
    padding-left: 5%;
    padding-right: 5%;
  }
}
.article_h {
  font-size: 24px;
  text-align: center;
}
/*-------------------------------------
開催概要
--------------------------------------*/
.overview {
  padding-top: 160px;
}
.overview_detail a {
  text-decoration: underline;
}
.overview h3 {
  margin-bottom: 40px;
}
.article_flex {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.article_flex div {
  max-width: 500px;
}
.ticket_list li {
  display: grid;
  max-width: 500px;
  grid-template-columns: 21px 1fr auto;
  align-items: baseline;
}
.price {
  text-align: right;
  padding-left: 1em;
}
.overview li::before {
  content: url("../svg/dec_arrow.svg");
  display: inline-block;
  width: 17px;
  height: 20px;
  margin-right: 4px;
}
@media screen and (max-width:767px) {
  .article_flex {
    flex-direction: column;
    gap: 40px;
  }
  .top_map {
    width: 100%;
  }
}
/*-------------------------------------
グッズ紹介
--------------------------------------*/
.merchandise {
  padding: 160px 0 280px;
}
.merchandise_container h3 {
  margin-bottom: 8px;
}
.merchandise_container p:nth-child(3) {
  margin-bottom: 40px;
  text-align: center;
}
.merchandise_container p:nth-last-child(2) {
  margin-bottom: 16px;
  text-align: center;
}
.goods_list {
  margin-bottom: 40px;
  padding: 0 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr 15px) 1fr;
}
.goods_list li:nth-child(2n) {
  background: url("../svg/dec_line.svg") no-repeat center;
}
.goods_list img {
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #B4AC87;
  border-radius: 5px;
}
.goods_list h4 {
  line-height: 1;
  margin-bottom: 8px;
}
.goods_list h4 span:nth-child(2) {
  font-size: 12px;
}
@media screen and (max-width:767px) {
  .goods_list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .goods_list li:nth-child(2n) {
    display: none;
  }
}
/*-------------------------------------
moreボタン　全共通
--------------------------------------*/
.more_btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 500px;
  height: 60px;
  margin: 0 auto;
  background: url("../svg/dec_arrow_triangle.svg") no-repeat right 24px center, #9AC2BD;
  border: 1px solid #4A4737;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: 0.5s;
}
@media screen and (max-width:767px) {
  .more_btn {
    width: 80%;
  }
  .btn_2nd {
    display: none;
  }
  /*topのpaddingが10%あるから合計で80%になる*/
  .mw_none {
    width: 90%;
  }
}
.more_btn span:nth-child(1) {
  font-size: 24px;
}
.more_btn span:nth-child(2) {
  font-size: 14px;
}
.more_btn:hover, .more_btn:active {
  box-shadow: none;
  transform: translateY(2px);
}
.more_btn span:last-child {
  position: absolute;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  border: 3px solid #D1FAF6;
  border-radius: 8px;
  opacity: 0;
  box-shadow: 0 0 30px rgba(209, 250, 246, 1);
  pointer-events: none;
}
.more_btn:hover span:last-child, .more_btn:active span:last-child {
  animation: blinking 5s infinite forwards;
}
@keyframes blinking {
  0%, 50%, 100% {
    opacity: 0;
  }
  25%, 75% {
    opacity: 1;
  }
}
/*-------------------------------------
toTOPボタン　全共通
--------------------------------------*/
.to_top_btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 80px;
  height: 80px;
  text-align: center;
  background: url("../svg/dec_arrow2.svg") no-repeat center top 4px, rgba(180, 172, 135, 0.45);
  background-size: 24px 27px;
  border: 1px solid #4A4737;
  border-radius: 20px;
  transition: 0.3s;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.to_top_btn.show {
  opacity: 1;
  pointer-events: auto;
}
.to_top_btn:hover, .to_top_btn:active {
  background-color: rgba(180, 172, 135, 1);
}
.to_top_btn p {
  padding-bottom: 4px;
}