@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* --- 全体 --- */
/*  font-family: 'Orbitron', sans-serif;*/

/*set*/
body {
  margin: 0;
  background:#000;
  overflow-x: hidden;  /* 横スクロールのみ無効にする */
  overflow-y: auto;
  position: relative;
  color:#fff;
    font-family: 'Noto Serif JP', serif;
}


.context {
    width: 100%;
    position: absolute;
    top:50vh;
    
}

.alien_symbol {
    font-family: fantasy; /* 記号は固定 */
    letter-spacing: 0; /* ハイフンの間隔をなくす */
  }

.alien_symbol2 {
    font-family: cursive; /* 記号は固定 */
    letter-spacing: 0; /* ハイフンの間隔をなくす */
  }

.context h1{
    text-align: center;
    color: #fff;
    font-size: 50px;
}


#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
  pointer-events: none; /* マウスイベントを通す */
}

.header, .content, .main {
  position: relative;
  z-index: 1;
}

a {
  color: #fff;
}

.img {
  width: 100%;
}

/* --- ページレイアウト --- */
.page-container {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
}

/* --- グリッチ文字効果 --- */
.glitch {
  font-size: 3.2em;
  color: #fff;
  position: relative;
  margin-bottom: 20px;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: #0ff;
  z-index: -1;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 red;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip-path: inset(0 0 80% 0); }
  20% { clip-path: inset(10% 0 60% 0); }
  40% { clip-path: inset(20% 0 40% 0); }
  60% { clip-path: inset(30% 0 20% 0); }
  80% { clip-path: inset(40% 0 10% 0); }
  100% { clip-path: inset(50% 0 0 0); }
}

@keyframes glitch-anim2 {
  0% { clip-path: inset(50% 0 0 0); }
  20% { clip-path: inset(40% 0 10% 0); }
  40% { clip-path: inset(30% 0 20% 0); }
  60% { clip-path: inset(20% 0 40% 0); }
  80% { clip-path: inset(10% 0 60% 0); }
  100% { clip-path: inset(0 0 80% 0); }
}

/* --- 波動アニメーション --- */
.wave {
  width: 120px;
  height: 20px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 20px;
}

.wave span {
  width: 6px;
  height: 100%;
  background: #0ff;
  animation: waveAnim 1.2s infinite ease-in-out;
}

.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.2); }
}

/* --- カウントダウン --- */
.countdown_h1 {
  font-size: 2em;
  margin-bottom: 5px;
  text-shadow: 0 0 5px #39ff14, 0 0 10px #39ff14;
  text-align: center;
}

.countdown {
  font-size: 2em;
  letter-spacing: 0.1em;
  text-shadow: 0 0 5px #39ff14, 0 0 20px #39ff14;
  text-align: center;
}

.countdown span {
  font-size: 2rem;
  padding: 0 1rem;
}

/* --- イントロスクリーン --- */
#intro-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* --- フレックスレイアウト（alien用） --- */
.flex_alien {
  display: flex;
  justify-content: space-between;
}

.flex_alien > p {
  width: 49%;
}

.flex_alien > p img {
  width: 100%;
}


.flex_alien_pc {
  display: flex;
  justify-content: space-between;
}

.flex_alien_pc > p {
  width: 49%;
}

.flex_alien_pc > p img {
  width: 100%;
}

.flex_alien_sp {
  display: none;
}

#noise {
  display: none;
  animation: none !important; /* ← 念のため */
}

/* --- 砂嵐ノイズ画面 --- */
#static-screen, #noise {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif') center center / cover no-repeat;
  z-index: 9999;
  display: none;
  animation: noiseAnimation 1s linear;
}

@keyframes noiseAnimation {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- シグナルメッセージ --- */
#signal-message {
  position: fixed;
  z-index: 9998;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: lime;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  background: black;
  padding: 1rem 2rem;
  border: 2px solid lime;
  display: none;
}

/* --- メインコンテンツ --- */
#main-content {
  display: none;
  padding: 2rem;
  font-family: 'Orbitron', monospace;
  color: #fff;
  background-color: black;
  position:relative;
  z-index:1;
}

    /* 背景GIF */
    .background {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: url('https://www.everglades.jp/images/plan/alien_project/alien.gif') center center / cover no-repeat;
      z-index: -1;
            opacity: 0;
      animation: fadeInOut 5s infinite;
    }

        @keyframes fadeInOut {
      0% { opacity: 0; }
      20% { opacity: 1; }
      80% { opacity: 1; }
      100% { opacity: 0; }
    }

/* --- フェードインテキスト --- */
.fadein-text {
  opacity: 0;
  animation: fadein 1s ease-in-out forwards;
  animation-delay: 2s;
  max-width: 600px;
  font-size: 1.1em;
  color: #ccc;
}

@keyframes fadein {
  to { opacity: 1; }
}

/* --- 画面サイズ調整（レスポンシブ） --- */
@media (max-width: 768px) {
  .flex_alien {
    display: block;
  }
  .flex_alien > p {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
  }
  .flex_alien > p:last-child {
    margin-bottom: 0;
  }
  .flex_alien > p img {
    width: 80%;
  }

  .flex_alien_sp {
    display: block;
  }
  .flex_alien_sp > p {
    width: 100%;
    text-align: center;
    margin-bottom: 1em;
  }
  .flex_alien_sp > p:last-child {
    margin-bottom: 0;
  }
  .flex_alien_sp > p img {
    width: 80%;
  }

.flex_alien_pc {
  display: none;
}
}

@media (max-width: 500px) {}
@media (max-width: 440px) {}
@media (max-width: 375px) {}
@media (max-width: 320px) {}
