/* 事例（/case/・/case/ai.html・/case/vba.html、F-024）。
   課題別ページと同じ1列の書類の型（welfare.css・topic.css）に、事例の箇条と一覧の見出しだけを足す。値は tokens.css の変数だけ */

/* 状況・限界: 罫線で区切った箇条 */
.case-points { list-style: none; margin: var(--s4) 0 0; padding: 0; border-top: 2px solid var(--c-text); }
.case-points li { position: relative; padding: var(--s3) 0 var(--s3) var(--s4); border-bottom: var(--rule-w) solid var(--c-rule); }
.case-points li::before { content: ""; position: absolute; left: 2px; top: calc(var(--s3) + 0.7em); width: 8px; height: 2px; background: var(--c-text-2); }

/* やったこと: 順番のある段 */
.case-steps { margin: var(--s4) 0 0; padding: 0 0 0 1.4em; display: grid; gap: var(--s3); max-width: var(--measure); }
.case-steps li { padding-left: var(--s1); }
.case-steps li::marker { font-family: var(--font-num); font-weight: var(--fw-head); color: var(--c-blue); }

/* VBA の事例: 状況・やったこと・作ったもの・変化の2列の表 */
.case-dl > div { grid-template-columns: 8em minmax(0, 1fr); }

/* 事例の一覧 */
.case-tag { font-size: var(--fs-note); font-weight: var(--fw-head); color: var(--c-text-2); }
.case-entry h2 { margin-top: var(--s1); }
.case-entry h2 a { color: var(--c-text); text-decoration: none; }
.case-entry h2 a:hover { color: var(--c-blue); text-decoration: underline; }

/* 罫線と表は節の幅（topic.css の .topic > .doc-sec）いっぱいにそろえ、文の段落だけ行の長さを抑える */
.topic .support-list, .topic .ex-case, .topic .case-points { max-width: none; width: 100%; }
.topic .ex-case + p { margin-top: var(--s3); }
.topic p + .note { margin-top: var(--s3); }

@media (max-width: 600px) {
  .case-dl > div { grid-template-columns: 1fr; }
}
