/* ===== BASE ===== */
body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== Range Slider ===== */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ===== Number Input ===== */
.input-num {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e293b;
  padding: 0.375rem 0.75rem;
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.15s;
}
.input-num:focus {
  border-color: #2563eb;
}

/* ===== Input labels ===== */
.input-label-bold {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

/* ===== KPI Card ===== */
.kpi-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.kpi-label-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}
.kpi-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.kpi-value {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

/* ===== Tooltip ===== */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
}
.tooltip-box {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: #1e293b;
  color: #fff;
  font-size: 0.6875rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
  max-width: 220px;
  white-space: normal;
  display: none;
  line-height: 1.5;
  font-weight: 400;
}
.tooltip-wrap:hover .tooltip-box {
  display: block;
}
