/* index.html - Top page specific styles */

/* System fonts for header and footer only */
.site-header,
.site-header *,
.site-footer,
.site-footer * {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", sans-serif !important;
}

/* Stories Section */
.panel-stories {
  padding: 80px 0;
}

.stories-main-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(28px, 4vw, 42px);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.story-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.story-card-inner {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  min-height: 320px;
  justify-content: center;
}

.story-card-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-family: 'Soukou Mincho', 'Yu Mincho', serif;
}

.story-card-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 2.0;
  color: var(--text-secondary);
  margin: 0;
  font-family: 'Harenosora', serif;
}

.story-card .btn {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 920px) {
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-card-inner {
    padding: 32px 24px;
    min-height: 280px;
  }
}



@media (max-width: 768px) {
  .panel-stories {
    padding: 20px 0;
    background: #0B0B0D !important;
  }

  /* Fix: Disable background animation effects on mobile */
  .panel-stories.bg-aurora::before,
  .panel-stories.ripple-effect::before,
  .panel-stories.bg-shine::after,
  .panel-stories.light-streak::before {
    display: none !important;
  }

  /* Fix: Override background overlay color on mobile */
  .panel-stories .panel-bg-image {
    display: none !important;
  }

  .panel-stories .panel-bg-overlay {
    background: #0B0B0D !important;
  }

  .stories-main-title {
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
    /* Fix: Override gradient text effect on mobile */
    background: linear-gradient(135deg, #D4AF37 0%, #8B2332 50%, #D4AF37 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #D4AF37 !important;
    /* Fix: Ensure title has height */
    height: auto !important;
    min-height: 40px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
  }

  /* Fix: Force title text to be visible on mobile (override animations) */
  .stories-main-title span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    display: inline !important;
    background: inherit !important;
    -webkit-background-clip: inherit !important;
    background-clip: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

  /* Ensure card sizes fit better on small screens */
  .story-card-inner {
    min-height: auto;
    padding: 24px 16px;
  }

  .story-card-title {
    font-size: 20px;
  }

  .story-card-desc {
    font-size: 13px;
    line-height: 1.8;
  }

  /* Fix: Disable Scroll Snap on Mobile to prevent forced scrolling */
  .page-top main {
    scroll-snap-type: none !important;
    height: auto !important;
    min-height: auto !important;
  }

  .page-top .panel {
    scroll-snap-align: none !important;
    height: auto !important;
    min-height: 100vh !important;
  }

  /* Fix: Allow vertical scroll on Cast section (override touch-action: none) */
  #castScroll {
    touch-action: pan-y !important;
  }

  /* Fix: Standardize Access section size (remove 100vh) */
  .page-top .panel-access {
    height: auto !important;
    min-height: auto !important;
    padding: 60px 0 !important;
  }

  /* Reduce internal padding for Access card on mobile */
  .page-top .panel-access .panel-card {
    padding: 40px 24px !important;
    margin: 0 16px !important;
    width: auto !important;
    max-width: none !important;
  }

  /* Compact typography for Access section */
  .page-top .panel-access .panel-title {
    font-size: 28px !important;
    /* Was 52px on desktop */
    margin-bottom: 24px !important;
  }
}
