/* ==========================================================================
   home.css — トップページ専用スタイル
   .btn / .search-bar / .category-grid / .section系は style.css を継承。
   ========================================================================== */

.home-hero {
  position: relative;
  padding-block: 96px 72px;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(ellipse 80% 50% at 85% 100%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.home-hero::before {
  background: var(--cyan);
  top: -120px;
  left: 8%;
  animation: heroOrbFloatA 16s ease-in-out infinite;
}
.home-hero::after {
  background: var(--blue);
  bottom: -140px;
  right: 8%;
  animation: heroOrbFloatB 18s ease-in-out infinite;
}
@keyframes heroOrbFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
}
@keyframes heroOrbFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -20px) scale(1.1); }
}

.home-hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, transparent 25%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 25%, black 60%, transparent 100%);
}
.home-hero__waves .wave { stroke-width: 0.65; vector-effect: non-scaling-stroke; }
.wave--a { stroke: rgba(91, 219, 235, 0.16); }
.wave--b { stroke: rgba(99, 163, 247, 0.14); }
.wave--c { stroke: rgba(101, 226, 219, 0.1); }

.home-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 20px;
}
.eyebrow-cycle {
  display: inline-block;
  min-width: 4.5em;
  font-weight: 700;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.eyebrow-cycle.is-fading { opacity: 0; transform: translateY(4px); }
.home-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.4;
  max-width: 820px;
}
.home-hero__accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero__desc { margin-top: 20px; max-width: 560px; color: var(--text-muted); }
.home-hero__inner .search-bar { margin-top: 36px; max-width: 600px; }
.home-hero__actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.home-hero__stats { margin-top: 46px; display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; }
.home-hero__stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.home-hero__stats dt { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }
.home-hero__stats dd { font-size: 0.74rem; color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  .home-hero__waves .wave--a, .home-hero__waves .wave--b, .home-hero::before, .home-hero::after { animation: none; }
}

/* ---------- New data grid (新しく追加されたデータ) ---------- */
.new-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.new-data-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.new-data-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--surface-hover);
}
.new-data-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.new-data-card__new {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #041018;
  background: var(--gradient);
  padding: 2px 8px;
  border-radius: 999px;
}
.new-data-card__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}
.new-data-card__song { font-weight: 700; font-size: 0.94rem; }
.new-data-card__work { margin-top: 4px; font-size: 0.82rem; color: var(--text-muted); }
.new-data-card__artist { margin-top: 2px; font-size: 0.76rem; color: var(--text-dim); }

@media (max-width: 900px) {
  .new-data-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .new-data-grid { grid-template-columns: 1fr; }
}

/* ---------- Mini timeline (トップページ用の簡易プレビュー) ---------- */
.mini-timeline { display: flex; flex-direction: column; gap: 12px; }
.mini-timeline__row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background 0.2s, border-color 0.2s;
}
.mini-timeline__row:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.mini-timeline__year { font-family: var(--font-mono); font-weight: 700; color: var(--cyan); font-size: 1.05rem; }
.mini-timeline__body { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mini-timeline__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}
.mini-timeline__song { font-weight: 700; }
.mini-timeline__work { color: var(--text-muted); font-size: 0.86rem; }
.mini-timeline__artist { color: var(--text-dim); font-size: 0.8rem; }

@media (max-width: 640px) {
  .mini-timeline__row { grid-template-columns: 50px 1fr; padding: 12px 14px; }
}

.new-data-card__date { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .72rem; color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.new-data-card__date span { color: var(--cyan); }
