/* トップページ（templates/index.html）専用。hm- 接頭辞。
   Tailwind の再ビルドを不要にするため、新しい見た目はここに書く。 */

.hm-hero {
  position: relative; overflow: hidden;
  padding: 28px 28px 24px; border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, .25), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(167, 139, 250, .35), transparent 50%),
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 16px 40px -24px rgba(79, 70, 229, .7);
}
.hm-hero-deco { position: absolute; right: 24px; bottom: -10px; font-size: 140px; color: rgba(255,255,255,.08); pointer-events: none; }
.hm-hero-title { position: relative; margin: 0; font-size: 1.75rem; font-weight: 900; line-height: 1.4; letter-spacing: .01em; }
.hm-hero-lead { position: relative; margin: 12px 0 0; max-width: 46em; font-size: .9375rem; line-height: 1.85; color: rgba(255,255,255,.88); }
.hm-hero-lead strong { color: #fff; }
.hm-hero-actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-size: .875rem; font-weight: 800; text-decoration: none;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  transition: background-color .15s, transform .15s;
}
.hm-btn:hover { background: rgba(255,255,255,.24); transform: translateY(-1px); }
.hm-btn-primary { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.hm-btn-primary:hover { background: #fde68a; }
.hm-btn:focus-visible, .hm-card:focus-visible, .hm-more:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.hm-br { display: none; }
.hm-nowrap { white-space: nowrap; }

.hm-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.hm-h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.125rem; font-weight: 900; color: #1e293b; }
.hm-h2 i { color: #d97706; }
.hm-muted { margin: 4px 0 0; font-size: .8125rem; color: #64748b; }
.hm-more { font-size: .8125rem; font-weight: 800; color: #4f46e5; text-decoration: none; white-space: nowrap; }
.hm-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.hm-section > .hm-h2 { margin-bottom: 12px; }
.hm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hm-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.02), 0 2px 4px -1px rgba(0,0,0,.02);
  transition: border-color .15s, transform .15s;
}
.hm-card:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.hm-card-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.hm-violet { color: #7c3aed; background: #f5f3ff; }
.hm-rose { color: #e11d48; background: #fff1f2; }
.hm-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.hm-card-body strong { font-size: .95rem; color: #1e293b; }
.hm-card-body span { font-size: .8rem; color: #64748b; line-height: 1.6; }
.hm-card-arrow { color: #94a3b8; }

.hm-about { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; }
.hm-about .hm-h2 i { color: #4f46e5; }
.hm-about p { margin: 10px 0 0; max-width: 50em; font-size: .9rem; line-height: 1.9; color: #334155; }
.hm-about-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hm-about-links a { color: #4f46e5; font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .hm-hero { padding: 22px 18px 20px; }
  .hm-hero-title { font-size: 1.35rem; }
  .hm-br { display: inline; }
  .hm-hero-deco { font-size: 96px; }
  .hm-cards { grid-template-columns: 1fr; }
}

/* ---------- デビューしたVTuber ---------- */
.hm-debuts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-debut {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #ede9fe;
  box-shadow: 0 6px 18px -14px rgba(124, 58, 237, .35);
  transition: transform .15s, border-color .15s;
}
.hm-debut:hover { transform: translateY(-2px); border-color: #c4b5fd; }
.hm-debut-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f5f3ff; border: 2px solid #fff; box-shadow: 0 0 0 2px #ddd6fe; }
.hm-debut-fallback { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 1.2rem; background: #8b5cf6; }
.hm-debut-body { min-width: 0; flex: 1; }
.hm-debut-name { display: block; font-weight: 900; font-size: .95rem; line-height: 1.45; color: #1e293b; text-decoration: none; overflow-wrap: anywhere; }
.hm-debut-name::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.hm-debut-name:hover { text-decoration: underline; }
.hm-debut-date { margin-top: 3px; font-size: .75rem; font-weight: 700; color: #7c3aed; }
.hm-debut-tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hm-debut-tags li { padding: 1px 8px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: .7rem; color: #475569; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-cards-after { margin-top: 12px; }
@media (max-width: 1024px) { .hm-debuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hm-debuts { grid-template-columns: 1fr; } }
