/* ===== Custom Font ===== */
@font-face {
  font-family: 'BananaSlip';
  src: url('YDWbananaslipplus.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #E8D520;
  color: #1a1a1a;
  font-family: 'BananaSlip', 'Noto Sans JP', sans-serif;
}

/* ===== Fade-in Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.4s;
}

.fade-in-delay-2 {
  animation-delay: 0.8s;
}

.fade-in-delay-3 {
  animation-delay: 1.2s;
}

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

/* ===== PC Logo Animation ===== */
.pc-logo {
  opacity: 0;
  transform: scale(0.9);
  animation: logoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Particle Effect ===== */
#particles {
  overflow: hidden;
}

.particle {
  position: absolute;
  pointer-events: none;
  animation: floatUp linear infinite;
  opacity: 0;
}

.particle.circle {
  border-radius: 50%;
}

.particle.star {
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1) rotate(360deg);
  }
}

/* ===== Comment Cards ===== */
.comment-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .comment-card {
    padding: 1.25rem;
  }
}

/* ===== Banner Links (C案用) ===== */
.banner-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(26, 26, 26, 0.3);
  border-radius: 0.5rem;
  padding: 0.875rem 1.25rem;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
}

.banner-link:hover {
  background: rgba(26, 26, 26, 0.1);
}

/* ===== Banner Buttons (立体ボタン) ===== */
.banner-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex: 1;
  padding: 1rem 1.25rem;
  background: #1a1a1a;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -2px rgba(0,0,0,0.15);
  transition: all 0.3s;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
}

.banner-btn:hover {
  background: #333333;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ===== Modal ===== */
#trailer-modal {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#trailer-modal.modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#trailer-modal.modal-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#trailer-modal .relative.z-10 {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#trailer-modal.modal-hidden .relative.z-10 {
  transform: scale(0.92);
  opacity: 0;
}

#trailer-modal.modal-visible .relative.z-10 {
  transform: scale(1);
  opacity: 1;
}

/* ===== Full Bleed (SP poster visual) ===== */
.full-bleed {
  width: 100vw;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #E8D520;
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(26, 26, 26, 0.3);
}
