/* === デモ: 縦並びレイアウト（2パターン） === */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
}

/* 各パターンを囲むカード */
.pb-pattern {
  margin-bottom: 16px;
  padding: 20px;
  background: #F4F6F9;
  border-radius: 8px;
  max-width: 520px;
}
.pb-pattern:last-of-type { margin-bottom: 0; }

.pb-pattern-label {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* バー外枠 */
.pb-bar-wrap {
  background: #E5E7EB;
  border-radius: 9999px;
  height: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* バー本体 */
.pb-bar {
  height: 100%;
  width: 0%;
  background: #2563EB;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* 完了時に緑に切り替える */
.pb-bar--done { background: #16A34A; }

/* ステータステキスト */
.pb-status {
  font-size: 13px;
  color: #5A6A7A;
  margin: 0 0 14px;
  min-height: 1.5em;
}

/* ボタン群 */
.pb-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 開始ボタン（青） */
.pb-start-btn {
  padding: 8px 18px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, opacity 0.15s;
}
.pb-start-btn:hover:not(:disabled) { background: #1D4ED8; }
.pb-start-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 完了ボタン（緑・フェイクプログレス用） */
.pb-done-btn {
  padding: 8px 18px;
  background: #16A34A;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, opacity 0.15s;
}
.pb-done-btn:hover:not(:disabled) { background: #15803D; }
.pb-done-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* パターン内リセットボタン */
.pb-reset-btn {
  padding: 8px 18px;
  background: #fff;
  color: #5A6A7A;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.pb-reset-btn:hover { background: #F4F6F9; border-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-block { margin-bottom: 20px; }
.prompt-block:last-child { margin-bottom: 0; }
.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}

/* プロンプト補足 */
.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; }

/* 操作ヒント（フェイクプログレス用） */
.pb-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #2B7FE8;
}

/* 全体リセットボタン */
.demo-controls {
  display: flex;
  justify-content: flex-end;
  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; }

/* レスポンシブ */
@media (max-width: 480px) {
  .pb-pattern { max-width: 100%; }
  .demo-container { padding: 16px; }
}
