@charset "UTF-8";

/* 全体 */
body {
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
  background: #888;
  color: #222;
}

/* ローディング画面 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #aaa, #666);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

/* ノイズ */
#noise {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;

  background: repeating-radial-gradient(
    circle,
    rgba(255,255,255,0.08) 0px,
    rgba(0,0,0,0.08) 2px,
    transparent 4px
  );
}

.noise-active {
  opacity: 1;
}

/* テキスト */
.loader {
  text-align: center;
}

#loading-text {
  font-size: 16px;
  letter-spacing: 5px;
  color: #111;

  animation: zoom 3s infinite alternate;
}

/* 拡大 */
@keyframes zoom {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* 歪み */
.glitch {
  animation: glitch 0.2s;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-5px, 3px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(3px, -2px); }
  100% { transform: translate(0); }
}

/* 背景画像 */
.hero {
  width: 100%;
  height: 100vh;

  background-image: url("Liminal.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* ロゴ（透過画像） */
.hero-logo {
  width: 600px; 
  max-width: 90%;
}

@media (max-width: 768px) {

  .hero {
    height: 100vh; 
  }

  .hero-logo {
    width: 90%; 
  }

}
body {
  margin: 0;
  background: #555;
  font-family: 'Share Tech Mono', monospace;
}

body {
  margin: 0;
  background: #444444;
  color: #eaeaea;
  font-family: 'Share Tech Mono', monospace;
}

/* セクション */
.concept {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ノイズ */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.08;
}

/* 中身 */
.wrapper {
  position: relative;
  max-width: 800px;
  padding: 40px;
}

.title {
  font-size: 48px;
  letter-spacing: 4px;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

/* 上品グリッチ */
.glitch {
  position: relative;
  display: inline-block;
}

/* 薄いズレ */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

/* 白ベースのズレだけ */
.glitch::before {
  color: #ffffff;
  transform: translate(1px, -1px);
}

.glitch::after {
  color: #ffffff;
  transform: translate(-1px, 1px);
}

/* “たまに発動する”グリッチ */
@keyframes subtleGlitch {
  0%, 90%, 100% {
    opacity: 0;
  }
  92% {
    opacity: 0.3;
  }
  94% {
    opacity: 0;
  }
  96% {
    opacity: 0.25;
  }
}

.glitch::before {
  animation: subtleGlitch 5s infinite;
}

.glitch::after {
  animation: subtleGlitch 5s infinite reverse;
}

/* テキスト */
.text-block p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 1.5em;
  line-height: 1.9;
  letter-spacing: 1px;
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
}

.highlight {
  background: rgba(204, 201, 201, 0.25); /* 半透明グレー */
  padding: 20px 25px;
  border-radius: 8px;

  /* 少しだけ小さく見せる */
  transform: scale(0.96);

  /* 中央寄せ＋幅制限 */
  max-width: 90%;
  margin: 40px auto;

  /* ほんのり浮かせる */
  box-shadow: 0 0 20px rgba(0,0,0,0.4);

  /* ガラスっぽくするなら */
  backdrop-filter: blur(4px);
}

/* フェード */
.fade {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s forwards;
}

/* 順番表示 */
.fade:nth-of-type(1) { animation-delay: 0.5s; }
.fade:nth-of-type(2) { animation-delay: 2s; }
.fade:nth-of-type(3) { animation-delay: 4s; }
.fade:nth-of-type(4) { animation-delay: 6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 強調 */
.danger {
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255,255,255,0.25);
  animation: softFlash 4s ease-in-out infinite;
}

/* 最後の一文ちょい演出 */
.last {
  margin-top: 40px;
  letter-spacing: 3px;
  font-size: 18px;
  opacity: 0.8;
}

.cinematic {
  text-align: center;
  margin-top: 80px;

  font-size: 20px;
  letter-spacing: 6px; /* ←これが重要 */

  opacity: 0;
  animation: cinematicFade 2.5s forwards;
  animation-delay: 6.5s;

  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,0.2);
}

/* ゆっくり出てくる */
@keyframes cinematicFade {
  0% {
    opacity: 0;
    transform: translateY(40px);
    letter-spacing: 10px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 6px;
  }
}

/* 横スクロール */
.gallery {
  display: flex;
  gap: 60px;
  padding: 100px 60px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  scroll-snap-type: none; 
}

/* スクロールバー消す（任意） */
.gallery::-webkit-scrollbar {
  display: none;
}

.card {
  width: 220px;
  text-align: center;
  text-decoration: none;
  color: #ddd;
  flex-shrink: 0;
  scroll-snap-align: center;
}

/* 縦長画像 */
.card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: brightness(0.6) blur(1px);
  transition: 0.4s;
}

/* タイトル */
.card p {
  margin-top: 15px;
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
  transition: 0.4s;

  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ホバー演出（不思議感） */
.card:hover img {
  transform: scale(1.08);
  filter: brightness(1) blur(0);
}

.card:hover p {
  opacity: 1;
  letter-spacing: 4px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .gallery {
    display: flex;
    gap: 40px;
    padding: 60px 20px;
  }

  .card img {
    width: 150px;
    height: 260px;
  }
}

.hero,
.concept,
.gallery {
  opacity: 0;
  transition: opacity 2s;
}

.show {
  opacity: 1;
}

.gallery {
  scroll-snap-type: x mandatory;
}

.card {
  scroll-snap-align: start;
}

body.page1 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page2 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page3 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page4 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page5 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page6 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page7 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page8 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page9 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page10 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

body.page11 {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.08em;
}

/* 三本線ボタン */
.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 100;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  margin-bottom: 5px;
  transition: 0.3s;
}

/* 開いたときバツになる */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* メニュー本体 */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(5px);
  transition: 0.4s;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 開いた状態 */
.menu.active {
  right: 0;
}

/* メニューリスト */
.menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 20px;
  letter-spacing: 2px;
  transition: 0.3s;
}

/* ホバーで不気味に */
.menu a:hover {
  color: #ffdb3b;
  text-shadow: 0 0 8px rgb(255, 247, 0);
}

/* サブメニュー */
.sub-menu {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.sub-menu li {
  margin: 8px 0;
}

/* 小リンク */
.sub-menu a {
  font-size: 14px;
  color: #aaa;
  letter-spacing: 1px;
  transition: 0.3s;
}

/* ホバーでじわっと */
.sub-menu a:hover {
  color: #ffdb3b;
  text-shadow: 0 0 6px rgb;
}