/* ===== Horror Hero Banner with Animations ===== */

.horror-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 500px;
  overflow: hidden;
  background: #000;
}

/* Background image with slow zoom */
.horror-hero__bg {
  position: absolute;
  inset: -20px;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
.horror-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.3) saturate(0.8);
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* Fog overlay layer 1 */
.horror-hero__fog {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139,0,0,0.03) 20%,
    rgba(0,0,0,0.15) 50%,
    rgba(139,0,0,0.03) 80%,
    transparent 100%
  );
  animation: fogDrift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.horror-hero__fog--2 {
  background: linear-gradient(
    -90deg,
    transparent 0%,
    rgba(255,255,255,0.02) 30%,
    rgba(0,0,0,0.2) 60%,
    transparent 100%
  );
  animation: fogDrift2 16s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  0% { transform: translateX(-5%); opacity: 0.6; }
  100% { transform: translateX(5%); opacity: 1; }
}
@keyframes fogDrift2 {
  0% { transform: translateX(8%); opacity: 0.4; }
  100% { transform: translateX(-8%); opacity: 0.8; }
}

/* Flicker light effect */
.horror-hero__flicker {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(139,0,0,0.15), transparent 60%);
  animation: flicker 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flicker {
  0%, 100% { opacity: 0.3; }
  5% { opacity: 0.8; }
  10% { opacity: 0.2; }
  15% { opacity: 0.9; }
  20% { opacity: 0.4; }
  50% { opacity: 0.6; }
  80% { opacity: 0.3; }
  85% { opacity: 0.7; }
  90% { opacity: 0.2; }
  95% { opacity: 0.8; }
}

/* Content overlay with text */
.horror-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

/* Site title - horror font */
.horror-hero__title {
  font-size: 4rem !important;
  font-weight: 900 !important;
  color: #e94560 !important;
  text-shadow:
    0 0 20px rgba(139,0,0,0.8),
    0 0 40px rgba(139,0,0,0.4),
    0 0 80px rgba(139,0,0,0.2),
    2px 2px 4px rgba(0,0,0,0.9) !important;
  letter-spacing: 0.15em;
  margin: 0 0 5px !important;
  animation: titleAppear 2s ease-out forwards, titleGlow 3s ease-in-out 2s infinite alternate;
  opacity: 0;
}
@keyframes titleAppear {
  0% { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes titleGlow {
  0% { text-shadow: 0 0 20px rgba(139,0,0,0.8), 0 0 40px rgba(139,0,0,0.4), 2px 2px 4px rgba(0,0,0,0.9); }
  100% { text-shadow: 0 0 30px rgba(233,69,96,0.9), 0 0 60px rgba(139,0,0,0.6), 0 0 100px rgba(139,0,0,0.3), 2px 2px 4px rgba(0,0,0,0.9); }
}

/* English subtitle */
.horror-hero__subtitle {
  font-size: 1rem;
  color: rgba(233,69,96,0.6);
  letter-spacing: 0.5em;
  margin-bottom: 30px;
  animation: subtitleAppear 2s ease-out 0.5s forwards;
  opacity: 0;
}
@keyframes subtitleAppear {
  0% { opacity: 0; letter-spacing: 1em; }
  100% { opacity: 1; letter-spacing: 0.5em; }
}

/* Description */
.horror-hero__desc {
  font-size: 1.4rem !important;
  color: #d4d4d4 !important;
  font-weight: 700;
  margin: 0 0 8px !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  animation: descAppear 1.5s ease-out 1s forwards;
  opacity: 0;
}
.horror-hero__subdesc {
  font-size: 0.95rem !important;
  color: #888 !important;
  margin: 0 !important;
  animation: descAppear 1.5s ease-out 1.5s forwards;
  opacity: 0;
}
@keyframes descAppear {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Vignette (dark edges) */
.horror-hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Bottom gradient fade to page bg */
.horror-hero::after {
  content: ;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, #0a0a0a);
  z-index: 15;
  pointer-events: none;
}

/* Remove old CSS pseudo hero text */
.p-topPage .l-mainContent__inner::before,
.p-topPage .l-mainContent__inner::after {
  display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .horror-hero { height: 350px; }
  .horror-hero__title { font-size: 2.5rem !important; }
  .horror-hero__desc { font-size: 1.1rem !important; }
  .horror-hero__subtitle { font-size: 0.8rem; letter-spacing: 0.3em; }
}

/* Hide default SWELL main visual */
.p-mainVisual, .p-topMV { display: none !important; }

/* Horror Mincho font for titles */
.horror-hero__title {
  font-family: 'Shippori Mincho', serif !important;
  font-size: 4.5rem !important;
  font-weight: 800 !important;
}
.horror-hero__subtitle {
  font-family: 'Courier New', monospace;
}
.horror-hero__desc {
  font-family: 'Shippori Mincho', serif !important;
  font-weight: 700;
}
/* Apply Mincho to article titles too for horror feel */
.p-articleTitle, .p-postList__title {
  font-family: 'Shippori Mincho', serif !important;
}
/* Header site title */
.c-headLogo__link {
  font-family: 'Shippori Mincho', serif !important;
  font-weight: 800 !important;
}

/* ===== Horror Font V2 - Brush/Calligraphy Horror ===== */

/* Use Yuji Syuku (遊字書体) - creepy calligraphy font */
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&display=swap');

/* Horror title font - brush calligraphy */
.horror-hero__title {
  font-family: 'Yuji Syuku', 'Shippori Mincho', serif !important;
  font-size: 5rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  transition: transform 0.08s, text-shadow 0.08s, opacity 0.08s, filter 0.08s;
}

.horror-hero__subtitle {
  font-family: 'Courier New', 'Lucida Console', monospace;
  letter-spacing: 0.6em;
}

.horror-hero__desc {
  font-family: 'Yuji Syuku', 'Shippori Mincho', serif !important;
  font-size: 1.5rem !important;
}

/* Article titles also get horror font */
.p-articleTitle {
  font-family: 'Yuji Syuku', 'Shippori Mincho', serif !important;
}

/* Header site logo */
.c-headLogo__link {
  font-family: 'Yuji Syuku', 'Shippori Mincho', serif !important;
}

/* Make hero content area allow wider positioning */
.horror-hero__content {
  justify-content: center !important;
  align-items: center !important;
  transition: none !important;
}

/* Brighter background image */
.horror-hero__bg img {
  filter: brightness(0.55) contrast(1.2) saturate(0.9) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .horror-hero__title { font-size: 3rem !important; }
  .horror-hero__content {
    transform: translate(0, 0) !important;
  }
}
