/* 背景全体 */
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #1a001a 0%, #000000 90%);
  color: #d3c4f9; /* 薄紫色 */
  font-family: "Yu Mincho", "Yu Gothic", "MS PGothic", serif;
  position: relative;
  overflow: hidden;
  filter: contrast(1.1) brightness(0.85);
}

/* 霧のアニメーションレイヤー */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(140, 70, 255, 0.12), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(180, 120, 255, 0.1), transparent 50%);
  animation: mistMove 40s linear infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* ぐるぐる怪しい光アニメーション */
body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 250vmin;
  height: 250vmin;
  background: repeating-radial-gradient(
    circle at center,
    rgba(150, 100, 255, 0.04),
    rgba(150, 100, 255, 0.02) 40px,
    transparent 60px
  );
  transform: translate(-50%, -50%);
  animation: swirlRotate 120s linear infinite reverse;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

/* 微細なノイズを重ねる */
body::before,
body::after {
  mix-blend-mode: screen;
}

@keyframes mistMove {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  100% {
    background-position: 100% 100%, 0% 0%;
  }
}

@keyframes swirlRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 共通ヘッダーも少し怪しく */
#common-header {
  position: relative;
  z-index: 10;
  color: #b3a0ff;
  text-shadow:
    0 0 10px #7d59ff,
    0 0 20px #ae7aff;
  font-weight: 700;
  font-size: 1.4rem;
  font-family: "Yu Mincho", serif;
  padding: 1rem;
  border-bottom: 1px solid rgba(140, 70, 255, 0.3);
}

/* リンクなどがあれば怪しい紫色に */
a {
  color: #c8aaff;
  text-decoration: underline dotted;
  transition: color 0.3s ease;
}

a:hover {
  color: #e3d3ff;
  text-shadow: 0 0 10px #b98aff;
}

/* 文字はかすかにゆらゆら光る */
@keyframes textGlow {
  0%, 100% {
    text-shadow:
      0 0 4px #9a7eff,
      0 0 10px #9a7eff;
  }
  50% {
    text-shadow:
      0 0 6px #d3baff,
      0 0 16px #d3baff;
  }
}
h1, h2, p {
  animation: textGlow 5s ease-in-out infinite;
  line-height: 1.7;
  letter-spacing: 0.06em;
  user-select: none;
}
