/* ===== デモプレビュー ===== */
.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 {
  margin-top: 20px;
  background: #F7F9FC;
  border: 1px solid #E3E8EF;
  border-radius: 8px;
  padding: 16px 20px;
}
.demo-try-label {
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  margin-bottom: 8px;
}
.demo-try-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #2D3748;
  margin-bottom: 10px;
}
.demo-try-note {
  font-size: 12px;
  color: #718096;
}

/* ===== こんな場面で使えます ===== */
.use-case-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
}
.use-case-list li {
  padding-left: 16px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: #2D3748;
}
.use-case-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #2B7FE8;
  font-size: 12px;
  top: 3px;
}

/* ===== 構成テーブル ===== */
.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0 20px;
}
.parts-table th,
.parts-table td {
  padding: 9px 12px;
  border: 1px solid #E3E8EF;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.parts-table th {
  background: #F7F9FC;
  font-weight: 600;
  color: #4A5568;
  white-space: nowrap;
}
.parts-table td:first-child {
  text-align: center;
  width: 32px;
  color: #718096;
  white-space: nowrap;
}
.parts-table a {
  color: #2B7FE8;
  text-decoration: none;
}
.parts-table a:hover {
  text-decoration: underline;
}

/* ===== 実装のポイント ===== */
.impl-notes {
  background: #F0F6FF;
  border-left: 3px solid #2B7FE8;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  margin: 16px 0 20px;
}
.impl-notes h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 8px;
}
.impl-notes p {
  font-size: 13px;
  line-height: 1.75;
  color: #2D3748;
}

/* ===== コードタブの高さ制限（応用例） ===== */
.tab-content pre {
  max-height: 480px;
  overflow-y: auto;
}
