@charset "UTF-8";

/* ローディング */
#loading-screen {
  width: 100vw;
  height: 100vh;
  background-color: #ffecec;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.block {
  width: 500px;
  height: 300px;
  position: relative;
  top: 35%;
  transform: translateY(-50%);
}

.block1 {
  position: absolute;
  bottom: 1000px;
  right: 0;
}

.block2 {
  position: absolute;
  bottom: 1000px;
  left: 0;
}

.block3 {
  position: absolute;
  bottom: 1000px;
  left: 0;
}

.block4 {
  position: absolute;
  bottom: 1000px;
  right: 50px;
}

.block5 {
  position: absolute;
  bottom: 1000px;
  left: 150px;
}

.block6 {
  position: absolute;
  bottom: 1000px;
  left: 200px;
}

.block7 {
  position: absolute;
  bottom: 50px;
  left: 200px;
  display: none;
}

.block8 {
  position: absolute;
  bottom: 0;
  left: 250px;
  display: none;
}

.block1.drop {
  animation: block1 0.5s ease-out forwards;
}

@keyframes block1 {
  0% {
    bottom: 1000px;
  }
  100% {
    bottom: 0;
  }
}

.block2.drop {
  animation: block2 0.5s ease-out forwards;
}

@keyframes block2 {
  0% {
    bottom: 1000px;
  }
  100% {
    bottom: 0;
  }
}

.block3.drop {
  animation: block3 0.5s ease-out forwards;
}

@keyframes block3 {
  0% {
    bottom: 1000px;
  }
  100% {
    bottom: 0;
  }
}

.block4.drop {
  animation: block4 0.5s ease-out forwards;
}

@keyframes block4 {
  0% {
    bottom: 1000px;
  }
  100% {
    bottom: 0;
  }
}

.block5.drop {
  animation: block5 0.5s ease-out forwards;
}

@keyframes block5 {
  0% {
    bottom: 1000px;
  }
  100% {
    bottom: 0;
  }
}

.block6.drop {
  animation: block6 0.5s ease-out forwards;
}

@keyframes block6 {
  0% {
    bottom: 1000px;
  }
  100% {
    bottom: 50px;
  }
}

.block6.delete {
  display: none;
}

.block7.active {
  display: block;
}

.block8.active {
  display: block;
  animation: block8 0.5s ease-out forwards;
}

@keyframes block8 {
  0% {
    bottom: 50px;
  }
  100% {
    bottom: 0;
  }
}

.cat {
  position: absolute;
  bottom: 1000px;
  left: 250px;
  width: 50px;
  height: 50px;
}

.cat img {
  width: 100%;
}

.cat.drop {
  animation: cat 1.5s ease-in forwards;
}

@keyframes cat {
  0% {
    bottom: 1000px;
  }
  50% {
    bottom: 100px;
  }
  /* 70%{
          bottom: 300px;
      } */
  75% {
    bottom: 150px;
  }
  100% {
    bottom: 100px;
  }
}

.cat.active {
  animation: cat_a 0.5s ease-in forwards;
}

@keyframes cat_a {
  0% {
    bottom: 100px;
  }
  100% {
    bottom: 50px;
  }
}

.logo {
  width: 80%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
}

.fade-out {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/*＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝  */

body {
  font-family: "Zen Maru Gothic", serif;
  font-weight: 400;
  font-style: normal;
  background-color: #ffeccb;
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;
}

header h1 {
  width: 30vw;
  max-width: 300px;
  margin-left: 5vw;
}

header h1 img {
  width: 100%;
}

header nav {
  width: 50vw;
  max-width: 700px;
  padding-top: 3.5vw;
  margin-right: 5vw;
}

header ul {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

header ul li {
  width: 30%;
  list-style: none;
  position: relative;
}

header ul li.current {
  transform: scale(1.1);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.sidenavi {
  position: fixed;
  top: 30%;
  right: 5%;
  z-index: 99;
}

.sidenavi ul li {
  width: 100px;
  list-style: none;
  margin: 30px 0;
}

.sidenavi ul li a img {
  width: 100%;
}

.sidenavi ul li.current {
  transform: scale(1.1);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
.sidenavi ul li:not(.current):hover {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

header ul li a {
  text-decoration: none;
  position: relative;
}

header ul li a img {
  width: 100%;
  max-width: 180px;
}

header ul li a {
  position: relative;
}

header ul li a .cur_img {
  position: absolute;
  top: -82px;
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
}

header ul li a .cur_img img {
  width: 100%;
}

.cur_img.fade-out-page {
  animation: jumpUp 0.6s ease forwards;
}

@keyframes jumpUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-200px);
    opacity: 0;
  }
}

.cur_img.fade-in-page {
  animation: jumpIn 0.6s ease forwards;
}

@keyframes jumpIn {
  from {
    transform: translateY(-200px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav ul li:not(.current):hover {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ＝＝＝＝＝＝＝＝本文＝＝＝＝＝＝＝＝＝＝ */
.wrapper {
  width: 100%;
  margin: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wrapper.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.title_text {
  width: 80%;
  margin: auto;
  padding: 5rem 0;
}

.title_text p {
  font-size: 2rem;
  line-height: 2;
}

.video-frame {
  width: 80%;
  margin: auto;
  height: 50vh;
  background-image: url("../images/waku/top_movie.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.video-frame video {
  position: absolute;
  top: 0;
  right: 7vw;
  width: 70%; /* 親要素に合わせる */
  height: 100%; /* 高さも合わせる */
  object-fit: contain; /* coverだと切れるので縮小したい場合はcontain */
  border-radius: 8px;
  /* border: solid 7px #979797; */
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
}

.play_button {
  width: 40%;
  max-width: 400px;
  margin: 30px auto;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.play_button img {
  width: 100%;
  display: block;
  border-radius: 80px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play_button:hover img {
  transform: translateY(3px) scale(0.97);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* PCなど hoverできる端末だけ */
@media (hover: hover) and (pointer: fine) {
  .play_button:hover img {
    transform: translateY(3px) scale(0.97);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

/* スマホなど hoverが無い端末では :active を使う */
@media (hover: none) and (pointer: coarse) {
  .play_button:active img {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

.button_chara {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.button_chara img {
  border: none;
  box-shadow: none !important;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0;
}

.play_button:hover .button_chara {
  opacity: 1;
}

/* footer */

footer {
  background-color: rgb(162, 230, 215);
  height: 50vh;
  padding-top: 10vh;
}

.footer_img {
  text-align: center;
  width: 30%;
  margin: auto;
}

.footer_img a {
  display: block;
}

.footer_img a img {
  width: 100%;
}

.since p {
  text-align: center;
}

.bg-fall {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* 落ちる画像の共通スタイル */
.falling {
  position: absolute;
  top: -100px;
  object-fit: contain;
  opacity: var(--opacity, 0.95);
  width: var(--size, 64px);
  height: auto;
  transform: translateX(-50%) translateY(0) rotate(0deg);
  animation: fall var(--duration, 6s) linear var(--delay, 0s) forwards,
    sway var(--duration, 6s) ease-in-out var(--delay, 0s) forwards;
  /* spin var(--duration, 6s) linear var(--delay, 0s) forwards; */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* 下へ落ちる */
@keyframes fall {
  0% {
    transform: translateX(-50%) translateY(-10vh);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(110vh);
    opacity: 0;
  }
}

/* 左右にふわっと揺れる（ドリフト） */
@keyframes sway {
  0% {
    margin-left: 0;
  }
  50% {
    margin-left: var(--drift, 40px);
  }
  100% {
    margin-left: 0;
  }
}

@keyframes spin {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: var(--spin, 180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .falling {
    animation: none;
    opacity: 0.3;
  }
}

/* カード */
.hslider {
  position: relative;
  width: 90%;
  margin: 24px auto 70px;
  padding: 0 56px;
  box-sizing: border-box;
}

.hslider .viewport {
  overflow: hidden;
  border-radius: 16px;
}

.hslider .track {
  display: flex;
  gap: 50px;
  padding: 8px;
  margin: 0;
  list-style: none;
  transition: transform 0.35s ease;
  will-change: transform;
}

.hslider .card {
  flex: 0 0 var(--card-w, 350px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border: solid #888888 5px;
}

.hslider .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* アニメーション定義 */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* カードを順番にアニメーション */
.hslider .card {
  opacity: 0;
}

/* 各カードに遅延を付ける */
.hslider .card:nth-child(1) {
  animation-delay: 0.2s;
}
.hslider .card:nth-child(2) {
  animation-delay: 0.4s;
}
.hslider .card:nth-child(3) {
  animation-delay: 0.6s;
}
.hslider .card:nth-child(4) {
  animation-delay: 0.8s;
}
.hslider .card:nth-child(5) {
  animation-delay: 1s;
}
.hslider .card:nth-child(6) {
  animation-delay: 1.2s;
}

.hslider .track {
  display: flex;
  gap: 50px;
  padding: 8px;
  margin: 0;
  list-style: none;
  transition: transform 0.35s ease;
  will-change: transform;
}

#catslider .viewport > .track {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 50px;
}
#catslider .track > .card {
  flex: 0 0 var(--card-w, 350px);
}

.charapanel {
  width: 80%;
  margin: 100px auto;
}
.charapanel .character {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 50px;
}

.charapanel ul {
  list-style: none;
}

.chara {
  flex: 0 0 var(--card-w, 350px); /* 1枚の横幅 */
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border: solid #888888 5px;
}

.chara img {
  width: 100%;
}

.charapanel .chara {
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeUpChara {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.charapanel.inview .chara {
  animation: fadeUpChara 0.8s ease forwards;
}
.charapanel.inview .chara:nth-child(1) {
  animation-delay: 0s;
}
.charapanel.inview .chara:nth-child(2) {
  animation-delay: 0.2s;
}
.charapanel.inview .chara:nth-child(3) {
  animation-delay: 0.4s;
}
.charapanel.inview .chara:nth-child(4) {
  animation-delay: 0.6s;
}

.chara img {
  display: block;
  width: 100%;
  border-radius: 16px;

  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18), 0 8px 12px rgba(0, 0, 0, 0.12);
  transform: perspective(800px) translateZ(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.chara img:hover {
  transform: perspective(800px) translateY(-6px) translateZ(20px)
    rotateX(1.5deg);
  box-shadow: 0 26px 36px rgba(0, 0, 0, 0.22), 0 12px 16px rgba(0, 0, 0, 0.16);
  filter: saturate(1.02);
}

.gamepanel {
  width: 80%;
  margin: 100px auto;
}
.gamepanel .gameinfo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 50px;
}

.gamepanel ul {
  list-style: none;
}

.gameinfo .game img,
.gameinfo2 img {
  opacity: 0;
}

.game {
  width: 30%;
}

.game img {
  width: 100%;
}

.gameinfo2 {
  width: 50%;
  margin: auto;
}

.gameinfo2 img {
  width: 100%;
}

/* ===== Hamburger===== */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  margin: 8px 16px 8px auto;
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2001;
}
.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: #ff6461;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 12px;
}
.hamburger span:nth-child(2) {
  top: 20px;
}
.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(129 229 226 / 95%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.mobile-menu li {
  text-align: center;
}

.mobile-menu li a img {
  width: 200px;
  height: auto;
  display: block;
}
/* ===== スマホ ===== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  header nav:not(#mobile-menu) {
    display: none !important;
  }
  .sidenavi {
    display: none !important;
  }

  header h1 {
    width: 46vw;
    max-width: 240px;
    margin-left: 4vw;
  }
  header {
    align-items: center;
  }

  .title_text p {
    font-size: 1.5rem;
  }

  #catslider .track {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hslider .card {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

@media (max-width: 920px) {
  .hslider {
    padding: 0 48px;
  }
  .hslider .card {
    --card-w: 240px;
  }
}

@media (max-width: 720px) {
  .hslider {
    padding: 0;
  }
  .hslider .card {
    --card-w: 72vw;
  }

  .video-frame {
    background-image: none;
  }

  .video-frame video {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    /* border: solid 7px #979797; */
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
  }

  #loading-screen {
    width: 100vw;
    height: 100vh;
    background-color: #ffecec;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
  }

  .title_text {
    width: 80%;
    margin: auto;
    padding: 2rem 0;
  }

  footer {
    background-color: rgb(162, 230, 215);
    height: 20vh;
    padding-top: 3vh;
  }

  .gamepanel .gameinfo {
    display: block;
  }

  .game {
    width: 50%;
    margin: auto;
  }

  .game img {
    width: 100%;
  }

  .gameinfo2 {
    width: 100%;
    margin: auto;
  }

  .gameinfo2 img {
    width: 100%;
  }

  /* .block {
    width: 250px;
    height: 150px;
    position: relative;
    top: 35%;
    transform: translateY(-50%);
  }

  .block1 {
    position: absolute;
    bottom: 500px;
    right: 0;
  }

  .block2 {
    position: absolute;
    bottom: 500px;
    left: 0;
  }

  .block3 {
    position: absolute;
    bottom: 500px;
    left: 0;
  }

  .block4 {
    position: absolute;
    bottom: 500px;
    right: 25px;
  }

  .block5 {
    position: absolute;
    bottom: 500px;
    left: 75px;
  }

  .block6 {
    position: absolute;
    bottom: 500px;
    left: 100px;
  }

  .block7 {
    position: absolute;
    bottom: 10px;
    left: 100px;
    display: none;
  }

  .block8 {
    position: absolute;
    bottom: 0;
    left: 125px;
    display: none;
  } */
}
