:root {
  --line: #132338; /* 下線の色 */
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  margin: 0;
  background: #fafcff;
  color: #111;
}

.page-header { padding: 24px 20px 8px; }

.title-line {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 8px;
  /* 画像のような見出し下線： */
  border-bottom: 4px solid var(--line);
}

/* もう少し装飾したい場合は下の疑似要素を使う（任意）
.title-line {
  position: relative;
  padding-bottom: 10px;
}
.title-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--line);
}
*/

.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px 18px;
}

.toolbar input[type="range"] { width: 160px; }

.canvas-wrap {
  padding: 0 20px 30px;
}

#canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 5 / 3;          /* レスポンシブ比率 */
  background: #fff;
  border: 2px solid #d8dde6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  touch-action: none;           /* タッチ操作でスクロールしない */
  margin: 0 auto;
}
