/* ===== aidevdemo 追加分（styles.css は DocDemo と共通。差分だけここに置く） ===== */
/* 本文の段落に max-width を付けない。幅は親のコンテナ側だけで決める */
.hero-lead, .scenario-brief, .phase-outcome, .harness-lead { max-width: none; }
/* コントラスト 3.0 未満だった薄い灰色を一段濃く */
.scenario-head, .scenario-meta-item dt, .flow-step-tag, .rail-brand { color: var(--ink-3); }
.layers { margin-top: 28px; }
.layers-head { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 10px; }
.layers-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.layer { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 10px; background: var(--bg-soft); min-width: 0; }
.layer-num { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: 0.06em; }
.layer-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.layer-where { font-size: 12px; color: var(--ink-2); margin-top: 6px; font-family: "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.layer-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
@media (max-width: 920px) { .layers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .layers-row { grid-template-columns: 1fr; } }

.phase-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.phase-layer { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--red-line); color: var(--red-deep); background: var(--red-soft); }

.config-section-kind.kind-ci { background: #1f2937; color: #fff; }

.media { margin: 0 0 20px; }
.media-el { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); background: #fff; }
.media-cap { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.media-kind { display: inline-block; font-size: 11px; font-weight: 700; color: var(--red-deep); background: var(--red-soft); border: 1px solid var(--red-line); border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }

.harness { margin: 48px 0 8px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-card); }
.harness-head h2 { font-size: 24px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.harness-lead { color: var(--ink-2); line-height: 1.8; margin: 0 0 20px; }
.harness-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.harness-btn { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: var(--r); background: var(--red); color: #fff; text-decoration: none; min-width: 220px; }
.harness-btn:hover { background: var(--red-deep); }
.harness-btn-label { font-weight: 700; font-size: 15px; }
.harness-btn-sub { font-size: 12px; opacity: 0.85; }
.harness-table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.harness-table { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: auto; }
.harness-table th, .harness-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.harness-table th { font-size: 12px; color: var(--ink-3); font-weight: 700; background: var(--bg-soft); }
.harness-table code { font-size: 12.5px; background: var(--bg-code); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.harness-steps { counter-reset: hs; }
.harness-steps .callout-item { counter-increment: hs; }
.harness-steps .callout-title::before { content: counter(hs) ". "; color: var(--red); }
@media (max-width: 720px) { .harness { padding: 20px; } }

.callout-title a { color: inherit; text-decoration: underline; text-decoration-color: var(--red-line); }
.callout-title a:hover { text-decoration-color: var(--red); }

/* ===== pmdemo 追加分 ===== */
.config-section-kind.kind-app      { background: #1f3a5f; }
.config-section-kind.kind-library  { background: #4a3f2b; }
.config-section-kind.kind-template { background: #3d4a3f; }
/* 4つの役割＋痛点の帯は 4+3 = 7 枚。5 枚固定のグリッドを枚数に応じて折り返す */
.layers-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layers-row + .layers-row { margin-top: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) { .layers-row, .layers-row + .layers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .layers-row, .layers-row + .layers-row { grid-template-columns: 1fr; } }
.layer-pain .layer-num { color: var(--ink-3); }

.terminal-note { font-size: 12px; color: var(--ink-3); padding: 8px 2px 0; line-height: 1.6; }

/* チェックと人の確認 */
.checks { margin: 0 28px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); padding: 12px 16px 10px; }
.checks-head { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 8px; }
.checks-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks-label { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; padding-left: 8px; border-left: 3px solid var(--ink-4); color: var(--ink-2); }
.checks-human .checks-label { border-left-color: var(--red); color: var(--red-deep); }
.checks-list { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.checks-list li { margin: 2px 0; }
.checks-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 720px) { .checks { margin: 0 12px 4px; } .checks-row { grid-template-columns: 1fr; } }
/* よく聞かれること */
.faq-item { padding: 14px 0; border-top: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 0; }
.faq-q { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.faq-q::before { content: "Q "; color: var(--red); }
.faq-a { color: var(--ink-2); line-height: 1.8; }
.faq-where { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
