/* ==========================================================================
   hero_select.css
   キャラクター選択ページ（index.php）のヒーローセクション専用スタイル。
   ========================================================================== */

.hero {
  position: relative;
  margin: 0 0 28px;
  padding: 40px 28px 36px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 18%, rgba(6, 199, 85, 0.16), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(255, 111, 160, 0.18), transparent 42%),
    radial-gradient(circle at 82% 92%, rgba(139, 124, 246, 0.14), transparent 46%),
    linear-gradient(150deg, #eafff4 0%, #fdf2f8 55%, #f3f0ff 100%);
}

/* 画像を使わずに質感を足す、うっすらとしたドットのテクスチャ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(28, 28, 30, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  background: rgba(6, 199, 85, 0.14);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 14px;
  font-family: "Zen Maru Gothic", var(--font-base);
  font-weight: 900;
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero__stat-num {
  font-family: "Zen Maru Gothic", var(--font-base);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

.hero__stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hero__stat-divider {
  width: 1px;
  height: 30px;
  background: var(--color-border);
}

/* --------------------------------------------------------------------------

   -------------------------------------------------------------------------- */

.hero__visual {
  position: relative;
  height: 220px;
}

.hero__glow {
  position: absolute;
  inset: 10% 12%;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.hero__bubble {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 26px 26px 26px 6px;
  box-shadow: 0 10px 24px rgba(28, 28, 30, 0.12);
  animation: hero-float 6s ease-in-out infinite;
}

.hero__bubble--1 {
  top: 6%; left: 6%;
  width: 74px; height: 74px;
  background: linear-gradient(145deg, #06c755, #049c43);
  animation-delay: 0s;
}
.hero__bubble--2 {
  top: 2%; left: 46%;
  width: 54px; height: 54px;
  border-radius: 26px 26px 6px 26px;
  background: linear-gradient(145deg, #ff8fb8, #ff6fa0);
  animation-delay: 0.6s;
}
.hero__bubble--3 {
  top: 30%; left: 62%;
  width: 88px; height: 88px;
  background: linear-gradient(145deg, #a89bff, #8b7cf6);
  animation-delay: 1.1s;
}
.hero__bubble--4 {
  top: 58%; left: 20%;
  width: 46px; height: 46px;
  border-radius: 26px 6px 26px 26px;
  background: linear-gradient(145deg, #ffcf85, #ffb648);
  animation-delay: 1.6s;
}
.hero__bubble--5 {
  top: 62%; left: 68%;
  width: 60px; height: 60px;
  background: linear-gradient(145deg, #7fe0c8, #35c2a0);
  animation-delay: 0.3s;
}
.hero__bubble--6 {
  top: 40%; left: 4%;
  width: 40px; height: 40px;
  background: linear-gradient(145deg, #ffffff, #f0f0f2);
  box-shadow: 0 6px 16px rgba(28, 28, 30, 0.1), inset 0 0 0 1px var(--color-border);
  animation-delay: 2s;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bubble {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .hero {
    padding: 32px 20px 28px;
    border-radius: 22px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero__title {
    font-size: clamp(1.4rem, 1.1rem + 3vw, 1.9rem);
  }

  .hero__visual {
    height: 130px;
    margin-top: 8px;
  }

  /* モバイルでは要素数を絞って軽やかに見せる */
  .hero__bubble--3,
  .hero__bubble--6 {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero__stats {
    gap: 14px;
  }

  .hero__stat-label {
    font-size: 0.68rem;
  }
}
