/* 共通の色・書体（仕様書「デザイン」） */
:root {
  --bg: #D6D7DA;
  --surface: #E4E5E8;
  --field: #EDEEEE;
  --line: #C2C4C9;
  --sub: #4E5159;
  --text: #1C1D21;
  --pink: #E34283;
  --pink-text: #EA2173;
  --today: #F2DFE7;
  --font: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  /* 時刻・数字の書体。IBM Plex Mono は見づらかったので本文と同じ書体にした（Noto Sans JP の数字は幅がそろっている） */
  --mono: "Noto Sans JP", "Yu Gothic UI", "Hiragino Sans", "Meiryo", sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; }

/* hidden 属性を付けた要素は、display を指定したクラス（.btn など）があっても必ず隠す */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input, select {
  font: inherit;
  color: var(--text);
}

.mono { font-family: var(--mono); }

/* 汎用ボタン */
.btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover { background: #ECEDEF; }
.btn.primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-weight: 700;
}
.btn.primary:hover { background: #D93879; }
.btn.icon { width: 34px; padding: 0; }
.btn svg { width: 16px; height: 16px; }

/* 色の丸 */
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
}

/* 9色の選択 */
.swatches {
  display: flex;
  gap: 6px;
  align-items: center;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
}
.swatch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
}
/* 選んでいる色は、同じ色の線で丸く囲む（--c はその色） */
.swatch.selected { border-color: var(--c, var(--text)); }

/* −／＋ の小さいボタン */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.stepper button {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.stepper output {
  min-width: 56px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }
