/* 数字で見るエンバド */
.stats-page .container {
  max-width: 720px;
}

.stats-back {
  display: inline-block;
  margin-bottom: 20px;
  color: #3d348b;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.stats-back:hover {
  text-decoration: underline;
}

.stats-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.stats-lead {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
}

.stats-period,
.stats-updated {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.stats-note {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin: 12px 0 24px;
  padding: 10px 12px;
  background: #f8f9fc;
  border-radius: 10px;
}

.stats-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stats-metric {
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.stats-metric--accent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  grid-column: 1 / -1;
}

.stats-metric--accent .stats-metric-label,
.stats-metric--accent .stats-metric-hint {
  color: rgba(255, 255, 255, 0.85);
}

.stats-metric-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.stats-metric-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats-metric-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #777;
}

.stats-section {
  margin-bottom: 28px;
}

.stats-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.stats-section-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 12px;
}

.stats-chart-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 280px;
}

.stats-chart-wrap--bars canvas {
  height: 240px;
}

.stats-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.stats-table th {
  background: #f8f9fc;
  font-weight: 600;
  color: #333;
  position: sticky;
  top: 0;
}

.stats-table td:nth-child(2),
.stats-table td:nth-child(3),
.stats-table th:nth-child(2),
.stats-table th:nth-child(3) {
  text-align: right;
}

.stats-cta {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.stats-cta-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.stats-cta-link:hover {
  opacity: 0.95;
}

@media (min-width: 560px) {
  .stats-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-metric--accent {
    grid-column: auto;
  }
}
