/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", "Arial", sans-serif;
  background-color: #f4f7f6; /* 少し色のついた背景で白カードを目立たせる */
  color: #333;
  line-height: 1.5;
}

/* --- Utility & Layout --- */
.scroll-text {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: #666;
  margin-top: 40vh;
  margin-bottom: 10vh;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.container {
  width: 100%;
  min-height: 150vh; /* スクロールさせるための高さ */
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
  margin-inline: auto;
}

/* --- Stat Card Design --- */
.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  /* モダンなシャドウ設定 */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05),
    0 8px 10px -6px rgba(0, 0, 0, 0.01);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 装飾的なトップバー */
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* カードごとの色変化 (nth-childでバリエーション) */
.stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, #10b981, #3b82f6);
}
.stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}
.stat-card:nth-child(5)::before {
  background: linear-gradient(90deg, #6366f1, #a855f7);
}
.stat-card:nth-child(6)::before {
  background: linear-gradient(90deg, #14b8a6, #0ea5e9);
}

.stat-icon {
  font-size: 32px;
  color: #4b5563;
  background: #f3f4f6;

  /* 変更点: 完全な正円にするための設定 */
  width: 64px;
  height: 64px;
  display: inline-flex; /* Flexboxで中央寄せ */
  justify-content: center;
  align-items: center;
  border-radius: 50%; /* ここは維持 */

  margin-bottom: 16px;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 8px;
  display: block;
}

.stat-number-wrapper {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
}

.stat-number {
  font-family: "Oswald", sans-serif; /* 数字特化フォント */
  font-size: 48px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.stat-unit {
  font-size: 16px;
  font-weight: 700;
  color: #6b7280;
}

/* --- GSAP Animation Initial State --- */
/* スクロールしてきた時にふわっと出す用 */
.stat-card {
  opacity: 0;
  transform: translateY(20px);
}
