/* ===== フォントスケールをCSS変数で管理 ===== */
/* --fs-scale の値を変えると、em 指定のすべての子要素が比例してスケールされる */
.fs-root {
  --fs-scale: 1;
  font-size: calc(14px * var(--fs-scale));
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
}

/* ===== サイズ切り替えコントロール ===== */
.fs-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f4f6f9;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.fs-controls-label {
  font-size: 13px;
  color: #5a6a7a;
  font-weight: 600;
  white-space: nowrap;
}

.fs-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6a7a;
  background: #ffffff;
  border: 1.5px solid #d0d7e0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fs-btn:hover {
  background: #e8f0fe;
  border-color: #2b7fe8;
  color: #2b7fe8;
}

.fs-btn.is-active {
  background: #2b7fe8;
  border-color: #2b7fe8;
  color: #ffffff;
}

/* ===== コンテンツエリア ===== */
.fs-content {
  padding: 20px 24px 24px;
}

/* 大見出し（1.5em = 21px at 標準）*/
.fs-heading-lg {
  margin: 0 0 8px;
  font-size: 1.5em;
  font-weight: 700;
  color: #1a2332;
  line-height: 1.3;
  transition: font-size 0.2s ease;
}

/* 中見出し（1.15em = 16.1px at 標準）*/
.fs-heading-sm {
  margin: 0 0 10px;
  font-size: 1.15em;
  font-weight: 600;
  color: #2b4066;
  line-height: 1.4;
  transition: font-size 0.2s ease;
}

/* 本文（1em = 14px at 標準）*/
.fs-body {
  margin: 0 0 16px;
  font-size: 1em;
  color: #5a6a7a;
  line-height: 1.7;
  transition: font-size 0.2s ease;
}

/* ===== ラベル付きデータ行 ===== */
.fs-data-rows {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.fs-data-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.fs-data-row:last-child {
  border-bottom: none;
}

.fs-label {
  font-size: 1em;
  font-weight: 600;
  color: #7a8a9a;
  min-width: 4em;
  flex-shrink: 0;
}

.fs-value {
  font-size: 1em;
  color: #1a2332;
}

/* キャプション（0.85em = 11.9px at 標準）*/
.fs-caption {
  margin: 0;
  font-size: 0.85em;
  color: #9aa5b4;
  line-height: 1.6;
  transition: font-size 0.2s ease;
}

/* ===== リセットボタンエリア ===== */
.demo-controls {
  margin-top: 12px;
}

/* ===== リセットボタン ===== */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5a6a7a;
  background: #fff;
  border: 1.5px solid #d0d7e0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.reset-btn:hover {
  background: #f4f6f9;
  border-color: #9aa5b4;
}
