/* ===== デモプレビュー（③ 動作サンプル） ===== */
.demo-preview-link {
  display: block;
  margin-bottom: 16px;
}

.demo-preview-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid #D0D7E0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.demo-open-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  color: #2B7FE8;
  background: #fff;
  border: 1.5px solid #2B7FE8;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.demo-open-btn:hover {
  background: #2B7FE8;
  color: #fff;
}

/* ===== 操作ヒント（.demo-try） ===== */
.demo-try {
  margin-top: 20px;
  padding: 16px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.demo-try-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.demo-try-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-try-list li {
  font-size: 13px;
  color: #374151;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.demo-try-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: 9px;
  top: 3px;
  color: #2B7FE8;
}

.demo-try-note {
  font-size: 12px;
  color: #6B7280;
  margin: 0;
}

/* ===== こんな場面で使えます（.use-case-list） ===== */
.use-case-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.use-case-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  padding-left: 8px;
  border-left: 3px solid #2B7FE8;
}

/* ===== 構成テーブル（.parts-table） ===== */
.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 20px;
}

.parts-table th,
.parts-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.parts-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.parts-table td:first-child {
  width: 32px;
  text-align: center;
  color: #9CA3AF;
  font-weight: 600;
}

.parts-table td a {
  color: #2B7FE8;
  text-decoration: none;
}

.parts-table td a:hover {
  text-decoration: underline;
}

/* ===== 実装のポイント（.impl-notes） ===== */
.impl-notes {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}

.impl-notes h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0369A1;
}

.impl-notes p {
  font-size: 13px;
  line-height: 1.7;
  color: #374151;
}

/* ===== コード表示の高さ制限 ===== */
.tab-content pre {
  max-height: 480px;
  overflow-y: auto;
}

/* ===== プロンプトセクション ===== */
.prompt-notes {
  margin-bottom: 16px;
}

.prompt-note-caution {
  font-size: 12px;
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.prompt-note-tip {
  font-size: 12px;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  padding: 8px 12px;
}
