/* ===== フォント読み込み ===== */
@font-face {
  font-family: 'Pixelcastle';
  src: url('./fonts/Pixelcastle.ttf') format('truetype');
}

@font-face {
  font-family: 'ScaryMincho';
  src: url('./fonts/07ReallyScaryMinchotai.ttf') format('truetype');
}

/* ===== Weirdcore背景 ===== */
body.dreamcore {
  background: radial-gradient(circle at 50% 50%, #000000 0%, #050010 40%, #020008 100%);
  color: #e0e0e0;
  font-family: "ScaryMincho", serif;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-size: 400% 400%;
  animation: bgPulse 25s ease-in-out infinite;
  position: relative;
}

/* 背景のゆらぎ */
@keyframes bgPulse {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(15deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

/* 背景装飾 */
body.dreamcore::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    url("https://upload.wikimedia.org/wikipedia/commons/7/7f/Human_eye_closeup.jpg"),
    url("https://upload.wikimedia.org/wikipedia/commons/e/e3/Windows_error_dialog.png"),
    url("https://upload.wikimedia.org/wikipedia/commons/9/99/Starsinthesky.jpg");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 25%, 20%, cover;
  background-position: 10% 35%, 80% 70%, center;
  opacity: 0.08;
  mix-blend-mode: lighten;
  filter: blur(5px) contrast(1.2);
  animation: floatImages 60s ease-in-out infinite alternate;
}

body.dreamcore::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 2px,
    transparent 3px,
    transparent 4px
  );
  mix-blend-mode: lighten;
  opacity: 0.06;
  animation: flicker 3s infinite;
}

/* 星や目の浮遊 */
@keyframes floatImages {
  0% { background-position: 8% 35%, 85% 72%, center; filter: hue-rotate(0deg) blur(4px); }
  50% { background-position: 12% 40%, 82% 68%, center; filter: hue-rotate(20deg) blur(6px); }
  100% { background-position: 8% 35%, 85% 72%, center; filter: hue-rotate(0deg) blur(4px); }
}

/* ちらつき */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 0.08; }
  20%, 24%, 55% { opacity: 0.03; }
}

/* ===== 記事タイトル ===== */
.blog-article-title {
  font-family: 'Pixelcastle', monospace;
  font-size: 3rem;
  margin: 60px 0 10px;
  color: #0ff;
  text-shadow:
    0 0 5px #0ff,
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 40px #0ff;
  letter-spacing: 2px;
  animation: neonFlicker 2s infinite alternate;
  text-align: center;
}

/* ネオン管の明滅 */
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { text-shadow: 
      0 0 5px #0ff,
      0 0 10px #0ff,
      0 0 20px #0ff,
      0 0 40px #0ff; opacity: 1; }
  20%, 24%, 55% { text-shadow: 0 0 2px #0ff; opacity: 0.5; }
}

/* 日付 */
.blog-date {
  font-family: 'ScaryMincho', serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  text-align: center;
}

/* 記事本文 */
.blog-article {
  font-family: 'ScaryMincho', serif;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #d0d0d0;
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: left;
}

/* HOMEボタン中央配置 */
.back-home {
  text-align: center;
  margin-bottom: 80px;
}

.home-button {
  display: inline-block;
  padding: 12px 28px;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px #0ff;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 10px rgba(0,255,255,0.3);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.home-button:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 25px #0ff, 0 0 40px #0ff;
  transform: scale(1.05);
}

/* フッター中央配置 */
.blog-footer {
  padding: 20px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 0 5px #0ff;
  letter-spacing: 1.5px;
  border-top: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  text-align: center;
  position: relative;
}

/* フッター走査光 */
.blog-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: footerSweep 10s infinite linear;
}

@keyframes footerSweep {
  0% { left: -120%; opacity: 0; }
  50% { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}.blog-article img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 12px; /* おしゃれおまけ */
}
