:root {
  --ink: #1a1311;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --accent: #2563eb;
  --accent-orange: #e86b3a;
  --accent-orange-soft: #fff0e8;
  --card: #ffffff;
  --maxw: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 15px;
}

img { max-width: 100%; display: block; height: auto; }

.demo-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.demo-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.demo-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
}

.demo-header h1 {
  font-size: 18px;
  font-weight: 800;
}

.demo-header a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.demo-intro {
  margin-bottom: 28px;
}

.demo-intro h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin-bottom: 10px;
}

.demo-intro p {
  color: var(--gray);
  font-size: 14px;
}

/* ===== Data stats ===== */
.data-stats {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 24px 40px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .06);
}

.data-stats-head {
  margin-bottom: 28px;
}

.data-stats-label {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.data-stats-head h3 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 8px;
}

.data-stats-date {
  font-size: 13px;
  color: var(--gray);
}

.data-stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.data-stats-card {
  background: var(--card);
  border-radius: 4px;
  padding: 22px 24px 28px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.data-stats-card__title {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent-orange);
}

.data-stats-card__body {
  padding-top: 24px;
}

.data-stats-card__body--row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.data-stats-card__body--col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.data-stats-card__icon {
  width: 56px;
  flex: 0 0 56px;
}

.data-stats-card__value {
  color: var(--accent-orange);
  font-weight: 800;
  line-height: 1;
}

.data-stats-card__value .js-count {
  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 8vw, 72px);
  letter-spacing: -.02em;
}

.data-stats-card__value small {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800;
  margin-left: 2px;
}

.data-stats-card__note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
}

.data-stats-bars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.data-stats-bars li {
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.data-stats-bar {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.data-stats-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, var(--accent-orange));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}

.data-stats-card.is-visible .data-stats-bar span {
  transform: scaleX(1);
}

.data-stats-card--wide {
  grid-column: 1 / -1;
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}

.demo-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 680px) {
  .data-stats {
    padding: 28px 16px 32px;
  }

  .data-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .data-stats-card {
    padding: 18px 18px 24px;
  }

  .data-stats-card__body--row {
    gap: 12px;
  }

  .data-stats-card__icon {
    width: 48px;
    flex-basis: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .data-stats-bar span {
    transform: scaleX(1);
    transition: none;
  }
}
