/* ===== Weirdcore Blog Style with Pixelcastle Title ===== */

/* タイトルフォント読み込み */
@font-face {
  font-family: 'Pixelcastle';
  src: url('./fonts/Pixelcastle-Regular.woff2') format('woff2'),
       url('./fonts/Pixelcastle-Regular.woff') format('woff'),
       url('./fonts/Pixelcastle-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* 本文用フォント: うはこわい明朝体（serif系で代用） */
body.dreamcore {
  background: 
    url('./images/bg.jpg') no-repeat center center fixed,
    radial-gradient(circle at 50% 50%, #020008 0%, #050010 40%, #000000 100%);
  background-size: cover, 400% 400%;
  color: #e0e0e0;
  font-family: "'ScaryMincho', serif";
  text-align: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  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(20deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

/* ===== 背景装飾 ===== */
body.dreamcore::before,
body.dreamcore::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

/* 👁️ ぼやけた目・星・ウィンドウエラー */
body.dreamcore::before {
  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: 30%, 20%, cover;
  background-position: 10% 30%, 80% 70%, center;
  opacity: 0.07;
  mix-blend-mode: lighten;
  filter: blur(4px) contrast(1.1);
  animation: floatImages 60s ease-in-out infinite alternate;
}

body.dreamcore::after {
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 2px,
    transparent 3px,
    transparent 4px
  );
  mix-blend-mode: lighten;
  opacity: 0.08;
  animation: flicker 3s infinite;
}

/* 背景エフェクトアニメ */
@keyframes floatImages {
  0% { background-position: 8% 35%, 85% 72%, center; filter: hue-rotate(0deg) blur(3px); }
  50% { background-position: 12% 40%, 82% 68%, center; filter: hue-rotate(25deg) blur(5px); }
  100% { background-position: 8% 35%, 85% 72%, center; filter: hue-rotate(0deg) blur(3px); }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 0.08; }
  20%, 24%, 55% { opacity: 0.04; }
}

/* ===== タイトル ===== */
.blog-site-title {
  font-family: 'Pixelcastle', monospace;
  font-size: 3.8rem;
  margin: 80px 0 50px;
  color: #c8f7ff;
  text-shadow:
    0 0 6px #00ffff,
    0 0 15px #ff00ff,
    0 0 35px rgba(255, 0, 255, 0.6);
  letter-spacing: 3px;
  animation: titleFlicker 3s infinite;
  position: relative;
}

@keyframes titleFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.6; }
}

/* ===== 記事リスト ===== */
.blog-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 80px;
  max-width: 720px;
}

.blog-list li {
  margin: 25px 0;
  padding: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.1),
    inset 0 0 10px rgba(255, 0, 255, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.blog-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  animation: noiseMove 8s infinite linear;
}

@keyframes noiseMove {
  0% { left: -100%; opacity: 0; }
  40% { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.blog-list li:hover {
  transform: scale(1.03) rotate(0.3deg);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 15px #ff00ff,
    0 0 30px rgba(0, 255, 255, 0.3);
}

.blog-list a {
  font-family: "UhakwaiMincho", "Hiragino Mincho Pro", "Yu Mincho", serif;
  text-decoration: none;
  font-size: 1.6rem;
  color: #aeeaff;
  text-shadow:
    0 0 10px #00ffff,
    0 0 20px #ff00ff;
  transition: all 0.3s ease;
}

.blog-list a:hover {
  color: #ffffff;
  text-shadow:
    0 0 15px #ff00ff,
    0 0 30px #00ffff;
  filter: blur(0.5px);
}

/* ===== Homeボタン ===== */
.back-home {
  margin-bottom: 90px;
}

.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 #00ffff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(255, 0, 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 #00ffff, 0 0 40px #ff00ff;
  transform: scale(1.05);
}

/* ===== フッター ===== */
.blog-footer {
  padding: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 8px #00ffff;
  letter-spacing: 1.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  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; }