/* ===== スピナー本体 ===== */

.tp-spinner-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: #F4F6F9;
  border-radius: 10px;
}

/* 時・分それぞれのフィールド（上下ボタン＋入力欄） */
.tp-spinner-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ▲ / ▼ ボタン */
.tp-spin-btn {
  width: 44px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #5A6A7A;
  user-select: none;
  transition: background 0.1s, border-color 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.tp-spin-btn:hover  { background: #EFF4FD; border-color: #2B7FE8; color: #2B7FE8; }
.tp-spin-btn:active { background: #D0E4FD; }

/* 数値入力欄 */
.tp-spin-input {
  width: 72px;
  height: 56px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  font-family: monospace;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  outline: none;
  color: #1A2332;
  background: #fff;
  transition: border-color 0.15s;
  /* スピナー非表示（ブラウザ標準のupdown矢印を消す） */
  -moz-appearance: textfield;
}
.tp-spin-input::-webkit-inner-spin-button,
.tp-spin-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.tp-spin-input:focus { border-color: #2B7FE8; }

/* ":" セパレーター */
.tp-colon {
  font-size: 32px;
  font-weight: 700;
  color: #5A6A7A;
  line-height: 1;
}

/* ===== デモコンテナ: 縦並びレイアウト ===== */
.demo-container {
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

/* ===== 決定ボタン・結果 ===== */
.tp-confirm-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 28px;
  background: #2B7FE8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: sans-serif;
  transition: opacity 0.15s;
}
.tp-confirm-btn:hover { opacity: 0.85; }

.tp-result {
  margin: 10px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.tp-result.has-value {
  padding: 10px 14px;
  background: #F0F7FF;
  border: 1px solid #2B7FE8;
  border-radius: 6px;
  color: #1A5EA8;
  font-weight: 600;
}
.tp-result.is-error { color: #E53E3E; }

/* ===== ライブラリ案内ボックス ===== */
.tp-library-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #F4F6F9;
  border-left: 3px solid #9AA5B4;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  line-height: 1.75;
  color: #5A6A7A;
}
.tp-library-note strong { color: #1A2332; }
.tp-library-note a { color: #2B7FE8; }

/* ===== 共通パーツ ===== */

.updated-at { font-size: 12px; color: #9AA5B4; }

.source-hint {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 13px;
  color: #5A6A7A;
  background: #F4F6F9;
  border-left: 3px solid #2B7FE8;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}
.source-hint code {
  font-family: monospace;
  background: #E8EDF4;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.prompt-notes {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #F4F6F9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}
.prompt-note-caution { margin: 0 0 8px; color: #E65100; }
.prompt-note-tip     { margin: 0; color: #5A6A7A; }

.demo-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.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; }

/* レスポンシブ */
@media (max-width: 480px) {
  .tp-spinner-wrap { padding: 16px; gap: 8px; }
  .tp-spin-input   { width: 64px; height: 52px; font-size: 24px; }
}
