html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #f9f9f9;
}
a {
  opacity: 1;
  transition: all 0.3s;
}
a:hover {
  opacity: 1;
}

/* ======ハンバーガーメニューここから====== */
/*========= ナビゲーションのためのCSS ===============*/

#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 50;
  /*ナビのスタート位置と形状*/
  top: 0;
  /* right: -120%; */
  width: 100%;
  height: 100vh; /*ナビの高さ*/
  background: #ffe600;
  /*動き*/
  transform: translateX(29px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.31, 0.46, 0.2, 0.97);
  pointer-events: none;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  /* right: 0; */
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh; /*表示する高さ*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
.g-nav-list_wrapper {
  /*ナビゲーション天地中央揃え*/
  /* position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
}

/*リストのレイアウト設定*/
.g-nav-title {
  /* background-color: aqua; */
  font-size: 2.3rem;
  letter-spacing: 0.2rem;
  margin-top: 200px;
  margin-bottom: 30px;
  text-align: center;
}
.g-nav-list_wrapper ul {
  /* background-color: aquamarine; */
  width: 100px;
  margin: 0 auto;
}
#g-nav li {
  list-style: none;
  /* background-color: antiquewhite; */
  /* text-align: center; */
}

#g-nav li a {
  color: #333;
  text-decoration: none;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  margin-bottom: 20px;
}

/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: fixed;
  z-index: 100; /*ボタンを最前面に*/
  top: 4px;
  right: 4px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: none;
}

/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  left: 14px;
  height: 1px;
  border-radius: 2px;
  background-color: #666;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top: 15px;
}

.openbtn span:nth-of-type(2) {
  top: 23px;
}

.openbtn span:nth-of-type(3) {
  top: 31px;
}

.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

@media (max-width: 960px) {
  .hero {
    display: none;
  }
  .nav {
    display: none;
  }
  .openbtn {
    display: block;
  }
  .g-nav-list {
    display: block;
  }
}

/* ======ハンバーガーメニューここまで====== */

/* ======スクロールここから====== */
.scroll {
  display: inline-block;
  color: #ffe600;
  font-size: 0.645rem;
  letter-spacing: 0.2rem;
  position: absolute;
  bottom: 180px;
  right: 40px;
  text-shadow: 1px 1px 2px #9f9f9f;
}
.scroll::after {
  content: "";
  display: block;
  width: 0.7px;
  height: 170px;
  background-color: #ffe600;
  top: 30px;
  left: 50%;
  position: absolute;
  box-shadow: 1px 1px 2px #9f9f9f;
}
@keyframes scrollAnimation {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
.scroll::after {
  animation-name: scrollAnimation;
  animation-duration: 1.8s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
@media (max-width: 960px) {
  #section_top {
    width: 100%;
    height: 752px;
    margin: 0;
  }
  .scroll {
    right: 15px;
  }
}

/* ======galleryここから====== */
/* グリッド表示ここから */

.gallery_wrap {
  /* width: 90%; */
  /* background-color: aqua; */
}
.demo01 {
  columns: 300px auto;
  /* 列間のgap */
  column-gap: var(--gap);
  /* padding: 0 70px; */
  /* max-width: 960px; */
  margin: 0 auto;
}
.gallery-content {
  /* width: calc(100% / 3); */
  width: 300px;
  margin-bottom: 20px;
  margin-right: 20px;
}

.gallery-content img {
  width: 100%;
  border: solid 0.7px #333;
}

@media (max-width: 960px) {
  .gallery_block {
    padding: 40px;
  }
  .gallery-content {
    width: 48%;
    margin-bottom: 0px;
    margin-right: 0px;
  }
}

/* モーダル表示ここから */
/*全て共通：モーダルのボタンの色を変更したい場合*/
.modaal-close:after,
.modaal-close:before {
  background: #ccc;
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before {
  background: #666;
}
/* ======galleryここまで====== */

/* ======ヘッダーナビゲーション====== */
h1 {
  padding-top: 40px;
  width: 85px;
  /* background-color: bisque; */
}
h1 p {
  font-size: 2.3rem;
  letter-spacing: 0.2rem;
  margin: 10px auto 10px;
  width: 45px;
  /* background-color: aqua; */
}
.nav_content {
  margin-top: 420px;
  margin-left: 2px;
  display: flex;
  transform: rotate(-90deg);
  transform-origin: left top;
  height: 80px;
  width: 280px;
  align-items: center;
  /* background-color: aquamarine; */
  letter-spacing: 0.2rem;
}
.nav_content li a img {
  margin-top: 5px;
  width: 25px;
  transform: rotate(90deg);
}

.nav_content li a p {
  margin-right: 25px;
  font-size: 0.8rem;
}

/* ======ナビゲーションにホバーで下線を引く====== */
.hover_line {
  position: relative;
  text-decoration: none; /*デフォルトで下線を非表示*/
  display: inline-block;
}
/** 下線を右から引く **/
.hover_line:after {
  position: absolute;
  bottom: -3px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px; /*下線の太さ*/
  background: #333; /*下線の色*/
  transition: transform 0.3s; /*アニメーション速度*/
  transform-origin: right top; /*アニメーションの起点*/
  transform: scale(0, 1); /*幅は0*/
}
.hover_line:hover:after {
  transform-origin: left;
  transform: scale(1, 1); /*幅を1に*/
}

/* ======スクロールに応じてセクション名下から１文字ずつ表示====== */
.text-animation {
  opacity: 0;
}
.text-animation.show {
  opacity: 1;
}
.text-animation.show .text-animation-span {
  display: inline-block;
  overflow: hidden;
}
.text-animation.show span {
  display: inline-block;
  letter-spacing: 0.1em;
  animation: showText 0.5s backwards;
}

@keyframes showText {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .text-animation.show span {
    letter-spacing: 0.08em;
  }
}

/* ======ウィンドウが要素を読み込んだらセクション名下から１文字ずつ表示====== */
.text-animation_g {
  opacity: 0;
}
.text-animation_g.show {
  opacity: 1;
}
.text-animation_g.show .text-animation-span {
  display: inline-block;
  overflow: hidden;
}
.text-animation_g.show span {
  display: inline-block;
  letter-spacing: 0.1em;
  animation: showText 1s backwards 0.4s;
}

@keyframes showText {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body,
a {
  cursor: none;
}

#cursor {
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
  pointer-events: none;
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 50%;
  z-index: 999;
  -webkit-transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
}
#cursor.hov_ {
  top: -11px;
  left: -11px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.75);
}

#stalker {
  pointer-events: none;
  position: fixed;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  -webkit-transition: top, 0.5s, left 0.5s, width 0.5s, height 0.5s,
    background-color 0.5s, -webkit-transform 0.2s;
  transition: top, 0.5s, left 0.5s, width 0.5s, height 0.5s,
    background-color 0.5s, -webkit-transform 0.2s;
  transition: transform 0.2s, top, 0.5s, left 0.5s, width 0.5s, height 0.5s,
    background-color 0.5s;
  transition: transform 0.2s, top, 0.5s, left 0.5s, width 0.5s, height 0.5s,
    background-color 0.5s, -webkit-transform 0.2s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
  z-index: 999;
}
#stalker.hov_ {
  top: -40px;
  left: -40px;
  width: 80px;
  height: 80px;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  background: rgba(0, 25, 255, 0.8);
  mix-blend-mode: difference;
  cursol: pointer;
}

.wrap {
  text-align: center;
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .cursor,
  #stalker {
    display: none;
  }
}

/* a {
  display: block;
  max-width: 200px;
  width: 100%;
  background: #000;
  color: #fff;
  padding: 15px 0;
  text-align: center;
  text-decoration: none;
  margin: 0 auto 50px;
} */

button {
  max-width: 200px;
  width: 100%;
  padding: 20px 0;
}

/* -------ループで流れるテキストここから------- */
article {
  overflow: hidden;
}
.loop_wrap {
  display: flex;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.loop_wrap div {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 6.25rem;
  overflow: hidden;
  font-family: "Noto Serif JP";
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px #000;
  letter-spacing: 0.4rem;
}

.loop_wrap div:nth-child(odd) {
  animation: loop 50s -25s linear infinite;
}

.loop_wrap div:nth-child(even) {
  animation: loop2 50s linear infinite;
}

@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}
/* -------ループで流れるテキストここまで------- */

footer {
  margin-top: 100px;
  height: 310px;
  width: 100%;
  background-color: #ffe600;
}
.footer_title {
  margin: 0 90px;
  padding-top: 30px;
  font-size: 2.3rem;
  letter-spacing: 0.2rem;
}
.footer_wrapper {
  display: flex;
  margin: 0 90px;
  padding-top: 20px;
}
.footer-nav_area {
  display: flex;
}
.footer_sns_container {
  width: 220px;
}
.footer-nav_books-container {
  width: 240px;
}
.footer-nav_content {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  margin-bottom: 20px;
}
.footer-nav_books {
  margin: -10px 0 0 5px;
}
.footer-nav_books-title {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  margin: 10px 0 0 5px;
}
.copyright {
  margin-top: 20px;
  text-align: center;
  letter-spacing: 0.18rem;
}

@media (max-width: 960px) {
  footer {
    height: 100%;
    margin-top: 50px;
  }
  .footer_title {
    margin: 0px 40px;
    font-size: 1.875rem;
  }
  .footer_wrapper {
    margin: 20px 40px 0 40px;
  }
  .footer-nav_area {
    display: block;
  }
  .footer_sns_container {
    width: 40%;
  }
  .footer-nav_books-container {
    width: 100%;
  }
  .footer-nav_books-title {
    font-size: 0.69rem;
  }
  .footer-nav_books {
    margin: 10px 0 20px 5px;
  }
  .footer-nav_content {
    margin-bottom: 15px;
  }
  .copyright {
    padding-bottom: 20px;
    text-align: center;
  }
}
