/* ============================================================
   start.css — 「はじめ方(完全導入ガイド)」専用の追加スタイル
   styles.css のトークンと .step / .cmd / .say-list / .remember-grid
   などの既存クラスを土台に、このページだけで使う部品を足す。
   ここでは styles.css の既存クラスを上書きしない(.st-cmd 内の .cmd を除く)。
   ============================================================ */

/* ---------- 目次リンクの着地位置(トップバーが固定のため) ---------- */

main > section[id] { scroll-margin-top: 96px; }

/* 手順書のリード文は本文と同じ幅で読ませる(styles.css の 420px は狭い) */
.start-hero .hero-lede { max-width: 640px; }

/* ---------- ヒーロー: 導入の3段 ---------- */

.st-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
  margin-top: 28px;
}
.st-track-item {
  background: var(--paper-2);
  padding: 16px 18px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.st-track-n {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; line-height: 1;
  color: var(--stamp);
}
.st-track-ja { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.st-track-p { font-size: 13px; color: var(--ink-2); }
.st-track-time {
  font-family: var(--font-mono); font-size: 11.5px;
  border-top: 1px solid var(--hairline);
  padding-top: 6px; margin-top: auto;
}

.st-jump {
  display: flex; gap: 8px 18px; flex-wrap: wrap;
  margin-top: 24px;
  font-size: 13.5px;
}
.st-jump a { text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 1px; }
.st-jump a:hover { color: var(--stamp); border-bottom-color: var(--stamp); }

/* ---------- セクション内の小見出しブロック ---------- */

.st-block {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-top: 44px;
}
.st-block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.st-block-n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--paper); background: var(--ink);
  padding: 1px 9px; flex: none;
}
.st-block-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: 0.04em;
}
.st-block p { max-width: 680px; font-size: 14px; margin-bottom: 10px; }
.st-block-lede { color: var(--ink-2); }

.st-sub {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  margin: 20px 0 8px;
}

/* ---------- 用意するもの / 汎用カード ---------- */

.st-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
  margin: 14px 0 4px;
}
.st-card {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--ink-2);
  padding: 16px 18px;
}
.st-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.st-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; max-width: none; }
.st-card p + p { margin-top: 6px; }

/* ---------- 番号つきの手順リスト ---------- */

.st-ol { list-style: none; counter-reset: stol; max-width: 680px; margin: 10px 0 14px; }
.st-ol > li {
  counter-increment: stol;
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
}
.st-ol > li:last-child { border-bottom: none; }
.st-ol > li::before {
  content: counter(stol);
  position: absolute; left: 0; top: 9px;
  width: 21px; height: 21px;
  border: 1px solid var(--ink-2); border-radius: 50%;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.st-ol code, .st-block code, .st-step-inner code {
  font-size: 12.5px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  padding: 0 4px;
  word-break: break-word;
}

/* ---------- 注記 / 警告 ---------- */

.st-note, .st-warn {
  max-width: 680px;
  font-size: 13.5px; line-height: 1.85;
  padding: 12px 16px;
  margin: 12px 0 16px;
  background: var(--paper-2);
  border-left: 4px solid var(--ink-2);
}
.st-warn { border-left-color: var(--stamp); }
.st-note-h { display: block; font-weight: 700; margin-bottom: 2px; }
.st-warn .st-note-h { color: var(--stamp); }
.st-note p, .st-warn p { margin: 0; max-width: none; font-size: 13.5px; }
.st-note p + p, .st-warn p + p { margin-top: 6px; }

/* ---------- コマンド欄(コピーボタン付き) ---------- */

.st-cmd {
  max-width: 680px;
  border: 1px solid var(--ink);
  background: var(--ink);
  margin: 10px 0 16px;
}
.st-cmd-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 8px 5px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--ink);
}
.st-cmd-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-2);
}
.st-copy {
  margin-left: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 12px; font-weight: 600;
  padding: 3px 14px;
  white-space: nowrap;
}
.st-copy:hover { background: var(--ink); color: var(--paper); }
.st-copy.is-done { background: var(--room-ship); border-color: var(--room-ship); color: #FFFFFF; }
.st-cmd .cmd { margin: 0; border-radius: 0; max-width: none; }

/* ---------- 表(動作確認・分岐表) ---------- */

.st-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  margin: 14px 0 8px;
}
.st-table {
  width: 100%; min-width: 520px;
  border-collapse: collapse;
  background: var(--paper-2);
  font-size: 13.5px;
}
.st-table th, .st-table td {
  text-align: left; vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
}
.st-table thead th {
  background: var(--paper-deep);
  font-size: 12px; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.st-table tbody tr:last-child td { border-bottom: none; }
.st-table code {
  font-size: 12.5px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 0 4px;
  word-break: break-all;
}
.st-table-ok { color: var(--room-ship); font-weight: 600; }
.st-table-ok code { color: var(--room-ship); }

/* ---------- Claude のプラン比較 ---------- */

.st-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.st-plan {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  padding: 16px 18px;
}
.st-plan.is-pick { background: #FFFFFF; border: 2px solid var(--stamp); padding: 15px 17px; }
.st-plan-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.st-plan-tag {
  display: inline-block; margin-top: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid var(--ink-2); color: var(--ink-2);
  padding: 0 8px;
}
.st-plan.is-pick .st-plan-tag { background: var(--stamp); border-color: var(--stamp); color: #FFFFFF; }
.st-plan ul { list-style: none; margin-top: 10px; }
.st-plan li {
  position: relative;
  padding: 4px 0 4px 14px;
  font-size: 13px; color: var(--ink-2);
}
.st-plan li::before { content: "—"; position: absolute; left: 0; color: var(--hairline); }

/* ---------- 開閉ブロック ---------- */

.st-fold {
  max-width: 900px;
  border: 1px solid var(--hairline);
  background: var(--paper-2);
  margin: 14px 0 16px;
}
.st-fold-sum {
  cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600;
  color: var(--stamp);
  padding: 10px 16px;
}
.st-fold-sum::-webkit-details-marker { display: none; }
.st-fold-sum::before { content: "\25B8  "; }
.st-fold[open] > .st-fold-sum::before { content: "\25BE  "; }
.st-fold[open] > .st-fold-sum { border-bottom: 1px solid var(--hairline); }
.st-fold-inner { padding: 16px 18px 20px; }
.st-fold-inner > :first-child { margin-top: 0; }

/* ---------- チェックリスト ---------- */

.st-check-panel {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 20px 22px 22px;
  margin-top: 14px;
}
.st-check-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.st-check-count { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.st-check-hint { font-size: 13px; color: var(--ink-2); }
.st-check-bar {
  height: 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 16px;
}
.st-check-bar span {
  display: block; height: 100%; width: 0;
  background: var(--room-ship);
  transition: width var(--dur) ease;
}
.st-check { list-style: none; border-top: 1px solid var(--hairline); }
.st-check > li { border-bottom: 1px solid var(--hairline); }
.st-check-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 2px;
  font-size: 14px;
  cursor: pointer;
}
.st-check-item input {
  width: 18px; height: 18px; margin: 3px 0 0; flex: none;
  accent-color: var(--room-ship);
}
.st-check-item input:checked + span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--hairline); }
.st-check-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.st-check-done { font-size: 13.5px; font-weight: 700; color: var(--room-ship); }

/* ---------- インストールの8ステップ ---------- */

.st-toolrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

.st-stage {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-bottom: 28px;
}
.st-stage-item { background: var(--paper-2); padding: 14px 16px; }
.st-stage-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--stamp); display: block; margin-bottom: 4px;
}
.st-stage-ja { font-family: var(--font-display); font-size: 16px; font-weight: 600; display: block; }
.st-stage-p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }

.st-steps { list-style: none; }
.st-steps > li { margin-bottom: 10px; }

.st-step { border: 1px solid var(--ink); background: var(--paper); }
.st-step-sum {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 16px;
  background: var(--paper-2);
}
.st-step-sum::-webkit-details-marker { display: none; }
.st-step-sum:hover { background: var(--paper-deep); }
.st-step[open] > .st-step-sum { border-bottom: 1px solid var(--ink); }
.st-step-no {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--paper); background: var(--ink);
  padding: 2px 9px; flex: none;
}
.st-step-ja { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.st-step-do { font-size: 13px; color: var(--ink-2); margin-left: auto; text-align: right; }
.st-step-inner { padding: 18px 20px 22px; }
.st-step-inner > p { max-width: 680px; font-size: 14px; margin-bottom: 10px; }
.st-step-inner > :last-child { margin-bottom: 0; }

/* ---------- 工程図(PHASE 1〜7) ---------- */

.st-phases {
  border: 1px solid var(--ink);
  background: var(--hairline);
  display: grid; grid-template-columns: 1fr; gap: 1px;
}
.st-phase {
  background: var(--paper-2);
  display: grid;
  grid-template-columns: 96px minmax(150px, 210px) 1fr;
  gap: 16px;
  padding: 14px 16px;
  align-items: baseline;
}
.st-phase-n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--stamp); border: 1px solid var(--stamp);
  padding: 1px 6px; text-align: center; white-space: nowrap;
}
.st-phase-ja { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.st-phase-ja small {
  display: block;
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 400;
  color: var(--ink-2);
}
.st-phase-say { font-size: 13.5px; }
.st-phase-quote { font-family: var(--font-display); font-size: 14.5px; }
.st-phase-cmd {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  word-break: break-all;
}
/* .st-block code の枠飾りをここだけ打ち消す */
.st-phase .st-phase-cmd {
  background: none; border: none; padding: 0; font-size: 12px;
}

/* ---------- 活用の4方向 ---------- */

.st-dirs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px;
}
.st-dir {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--rc, var(--ink-2));
  padding: 16px 18px;
}
.st-dir h4 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.st-dir p { font-size: 13.5px; color: var(--ink-2); margin: 0; max-width: none; }
.st-dir-next { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--rc, var(--ink)); }

/* ---------- 相談の例 ---------- */

.st-ask {
  max-width: 680px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 16px 20px;
  margin: 14px 0 16px;
}
.st-ask-who { display: block; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-2); margin-bottom: 4px; }
.st-ask-line { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0; max-width: none; }

/* ---------- 他ページへの導線 ---------- */

.st-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.st-link {
  display: block; text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 14px 16px;
}
.st-link:hover { background: var(--paper-2); border-color: var(--stamp); }
.st-link-ja { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.st-link-p { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.st-link-arrow { color: var(--stamp); }

/* ---------- 外部リンクの印 / 出典 ---------- */

.st-ext::after { content: " \2197"; font-size: 0.85em; color: var(--ink-2); }

.st-source {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--ink-2);
}
.st-source a { color: var(--ink-2); }
.st-source a:hover { color: var(--stamp); }

/* ---------- レスポンシブ ---------- */

@media (max-width: 860px) {
  .st-track { grid-template-columns: 1fr; }
  .st-stage { grid-template-columns: 1fr; }
  .st-phase { grid-template-columns: 1fr; gap: 6px; padding: 14px 14px 16px; }
  .st-phase-n { justify-self: start; }
  .st-step-sum { flex-wrap: wrap; gap: 8px 12px; }
  .st-step-do { margin-left: 0; text-align: left; flex: 1 0 100%; }
}

@media (max-width: 480px) {
  .st-block { margin-top: 32px; }
  .st-check-panel { padding: 16px 14px 20px; }
  .st-cmd-bar { flex-wrap: wrap; gap: 6px; }
  .st-copy { margin-left: 0; }
  .st-step-inner { padding: 16px 14px 20px; }
  .st-ask { padding: 14px 16px; }
  .st-ask-line { font-size: 16px; }
}
