/* === デモ: セレクトボックス（単一パターン・中央寄せ） === */

/* セレクトボックスを囲むラッパー */
.sl-wrapper {
  width: 100%;
  max-width: 360px;
}

/* ラベル */
.sl-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1A2332;
}

/* セレクトボックス本体 */
.sl-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  font-size: 14px;
  color: #1A2332;
  background: #fff;
  cursor: pointer;
  font-family: sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.sl-select:focus {
  border-color: #2B7FE8;
  box-shadow: 0 0 0 3px rgba(43, 127, 232, 0.12);
}

/* 結果表示エリア */
.sl-result {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  min-height: 24px;
}
/* 未選択時のプレースホルダー */
.sl-result-placeholder {
  margin: 0;
  color: #9AA5B4;
  font-size: 14px;
}
/* 選択済み: 枠線付きボックスで表示 */
.sl-result.has-value {
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  color: #1A2332;
}
/* value・テキストの各行 */
.sl-result-row {
  margin: 0 0 4px;
}
.sl-result-row:last-child {
  margin: 0;
}

/* 更新日表示 */
.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;
  width: 100%;
  max-width: 360px;
  margin-top: 16px;
}
.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;
}

/* デモコンテナ: 縦方向に並べてリセットを下に置く */
.demo-container {
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
}

/* レスポンシブ: 480px 以下で余白を詰める */
@media (max-width: 480px) {
  .demo-container { padding: 20px 16px; }
  .sl-wrapper,
  .demo-controls { max-width: 100%; }
}
