* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: black;
  color: white;
  font-family: sans-serif;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  font-family: "Times New Roman" , "游明朝" , "Yu Mincho" , "游明朝体" , "YuMincho" , "ヒラギノ明朝 Pro W3" , "Hiragino Mincho Pro" , "HiraMinProN-W3" , "HGS明朝E" , "ＭＳ Ｐ明朝" , "MS PMincho" , serif;
}

#loading {
  position: fixed;
  width: 100%;
  max-width: 768px;
  height: 100vh;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#loading img.logo {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  transition: all .3s ease-out;
  animation: OP .6s ease-out 0s infinite forwards; /* ←チカチカ */
}

@keyframes OP {
  0% {opacity: 1;}
  10% {opacity: .2;}
  30% {opacity: .7;}
  50% {opacity: .4;}
  70% {opacity: .9;}
  100% {opacity: 1;}
}

/* テープ */
.tape {
  display: none;
  position: absolute;
  width: 130%;
  opacity: 0;
}

.tape img {
  width: 100%;
}

/* スマホサイズ（768px以下）だけ表示するようにする */
/* @media screen and (max-width: 768px) { */
  .tape {
    display: block;
    opacity: 0;
  }
/* } */

/* ===== 1本目：真ん中 → 右 ===== */
.tape1 {
  top: 100%;
  left: -200%;
  transform: rotate(25deg);
  animation: tapeIn1 0.6s ease-out 0.3s forwards;
}
@keyframes tapeIn1 {
  0% {
    top: -10%;
    left: -100%;
    opacity: 0;
  }
  100% {
    top: 10%;
    left: -10%;
    opacity: 1;
  }
}

/* ===== 2本目：右上 → 左 ===== */
.tape2 {
  top: -100%;
  left: 100%;
  transform: rotate(-20deg);
  animation: tapeIn2 0.6s ease-out 0.6s forwards;
}
@keyframes tapeIn2 {
  0% {
    top: -15%;
    left: 100%;
    opacity: 0;
  }
  100% {
    top: 5%;
    left: -20%;
    opacity: 1;
  }
}

/* ===== 3本目：上 → 真横 ===== */
.tape3 {
  top: -100%;
  left: -50%;
  transform: rotate(-10deg);
  animation: tapeIn3 0.6s ease-out 0.9s forwards;
}
@keyframes tapeIn3 {
  0% {
    top: 69%;
    left: -60%;
    opacity: 0;
  }
  100% {
    top: 65%;
    left: -10%;
    opacity: 1;
  }
}

#hamburger {
  position: fixed;
  top: -80px; /* 最初は画面外 */
  right: 0;
  width: 50px;
  height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 8px;
  z-index: 20;
  background-color: black;
  transition: top 0.5s ease;
  cursor: pointer;
}

#hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.4s ease;
  transform-origin: center;
}

/* 出現状態 */
#hamburger.visible {
  top: 0;
}

/* 変形後（バツ状態） */
#hamburger.active .top {
  transform: rotate(45deg) translate(9px, 6px);
}

#hamburger.active .middle {
  opacity: 0;
}

#hamburger.active .bottom {
  transform: rotate(-45deg) translate(9px, -7px);
}

/* ハンバーガーメニュー中身 */
#menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100vh;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.9);
  background-image: url("../images/splash.png");
  background-size: cover;
  color: white;
  text-align: center;
  transition: top 0.5s ease, opacity 0.5s ease;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  margin: 30px 0;
  font-size: 25px;
  font-weight: bold;
}

#menu a {
  color: white;
  text-decoration: none;
}

/* 表示状態 */
#hamburger.active + #menu {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

#sns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  bottom: 20px;
  right: -80px; /* 最初は画面の外に隠れてる */
  z-index: 10;
  transition: right .5s ease;
}

#sns.visible {
  right: 5px;
}

#sns img {
  width: 45px;
  border-radius: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

#sns img:hover {
  transform: scale(1.1);
  filter: brightness(1.5);
}

#main-content {
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#keyvisual img {
  display: block;
  /* グラデーションマスク */
  mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
  /* 古いブラウザ用 */
  -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

#keyvisual img , #cc img{
  width: 100%;
  height: auto;
}

#cc {
  margin: 30px 0;
}

.slider-wrapper {
  position: relative;
  width: 100%;
}

.slider {
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 0;
  background-color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;/* 上下グラデーションのマスク */
  /* mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 97%, transparent 100%); */
}

.slider img {
  filter: drop-shadow(2px 3px 5px gray);
  width: 75%;
  display: block;
  margin: 10px 0;
}

.spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/spot.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 5;
  pointer-events: none; /* スライドの操作を邪魔しない */
}

.title {
  text-align: center;
  overflow: hidden;
  margin: 40px 0 30px;
}

.title img {
  width: 130%;
  position: relative;
  right: 15%;
}

.slide-left-target {
  transform: translateX(-200px);
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.slide-left {
  transform: translateX(0);
  opacity: 1;
}

#story img {
  right: 0%;
}

#access img {
  right: 7%;
}

#thumbnail {
  width: 100%;
  /* padding: 0 20px; */
  aspect-ratio: 16/9;
}

#thumbnail iframe {
  width: 100%;
  height: 100%;
}

.manga, #taoreru {
  text-align: center;
  background-image: url("../images/splash.png");
  background-size: cover;
}

.manga img{
  width: 90%;
  margin: 10px 0;
}

#taoreru, #manga4 {
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}

#taoreru img {
  width: 100%;
}

#taoreru.visible, #manga4.visible {
  opacity: 1;
}

#blackout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#blackout.active {
  opacity: 1;
  pointer-events: all;
}

.scream img {
  width: 100%;
}
@keyframes screamFade {
  0%   { opacity: 0; transform: scale(0.9); }
  10%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); }
}

.character-main img {
  width: 70%;
  margin: 30px auto;
  display: block;
}

.character-thumb {
  display: flex;
  gap: 10px;
  margin: 10px 5px;
}

.character-thumb img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

/* メインは最初全部消しておく */
.character-main > div { display: none; }

.text {
  font-size: 15px;
  margin: 20px 30px;
  line-height: 25px;
}

.text p {
  margin: 15px 0;
}

.square {
  border: solid 2px white;
  padding: 5px 10px;
  margin-right: 10px;
}

.map {
  width: 100%;
  position: relative;
}

.map iframe {
  width: 100%;
}

.mystery {
  margin: 150px 0 200px;
  text-align: center;
  font-size: 27px;
}