/* ============================================================
   article.css — 記事本文の共通スタイル
   使い方: <article> 要素に適用。Tailwind と共存するため
          すべてのセレクタを article スコープで定義。
   ============================================================ */

/* ----- ベース ----- */
article {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* ----- 見出し ----- */
article h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
  border-left: 5px solid #2563eb;
  padding-left: 16px;
  margin-bottom: 32px;
}

article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
  margin-top: 52px;
  margin-bottom: 20px;
}

article h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-top: 28px;
  margin-bottom: 8px;
}

/* ----- テキスト ----- */
article p {
  margin-bottom: 14px;
  color: #444;
}
article p:last-child { margin-bottom: 0; }

/* ----- リード文 ----- */
article .lead {
  background: #eff6ff;
  padding: 20px 24px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 40px;
}
article .lead p { margin-bottom: 12px; }

.img-box{
  text-align:center!important;
  width: 640px;
  height: 400px;
  margin-bottom: 10px;
}

/* ----- テーブル共通 ----- */
article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.875rem;
}
article th {
  background: #1e3a8a;
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  line-height: 1.5;
}
article td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  line-height: 1.7;
  color: #374151;
}
article tr:last-child td { border-bottom: none; }
article tr:nth-child(even) td { background: #f8faff; }
article tbody tr:hover td { background: #eff6ff; transition: background 0.15s; }

/* 概要テーブル */
article .overview-table th:first-child { width: 140px; }
article .overview-table th:nth-child(2) { width: 80px; }

/* ステップテーブル */
article .step-table th:first-child { width: 80px; }
article .step-table td:first-child {
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  text-align: center;
  white-space: nowrap;
}
article .step-table tr:nth-child(even) td:first-child { background: #1d4ed8; }
article .step-table tr:nth-child(even) td { background: #f8faff; }
article .step-table tr:hover td { background: #eff6ff; }
article .step-table tr:hover td:first-child { background: #1e40af; }

/* よくあるミステーブル */
article .mistake-table th { background: #9a3412; }
article .mistake-table td:first-child { font-weight: 700; color: #9a3412; }
article .mistake-table tr:nth-child(even) td { background: #fff7ed; }
article .mistake-table tr:hover td { background: #ffedd5; }

/* ----- カテゴリセクション ----- */
article .cat-section { margin-top: 44px; }

article .cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 6px;
  margin-bottom: 2px;
}
article .cat-header h2 {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
article .cat-range {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.18);
  padding: 2px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

/* カテゴリカラー */
article .c1  { background: #1d4ed8; }
article .c2  { background: #0f766e; }
article .c3  { background: #92400e; }
article .c4  { background: #6d28d9; }
article .c5  { background: #075985; }
article .c6  { background: #78350f; }
article .c7  { background: #065f46; }
article .c8  { background: #881337; }
article .c9  { background: #4c1d95; }
article .c10 { background: #374151; }

/* ----- 個別ヒント ----- */
article .tip {
  border-left: 3px solid #bfdbfe;
  padding: 2px 0 2px 16px;
  margin-top: 24px;
}
article .tip h3 { margin-top: 0; }

/* ----- スタート順番リスト ----- */
article .start-steps {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
  counter-reset: step;
}
article .start-steps li {
  counter-increment: step;
  padding: 10px 14px 10px 50px;
  position: relative;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}
article .start-steps li:last-child { border-bottom: none; }
article .start-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 26px;
  text-align: center;
}

/* ----- チェックリスト ----- */
article .checklist {
  list-style: none;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
article .checklist li {
  padding: 10px 16px 10px 44px;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
article .checklist li:last-child { border-bottom: none; }
article .checklist li:nth-child(even) { background: #fafafa; }
article .checklist li::before {
  content: "☐";
  position: absolute;
  left: 14px;
  top: 9px;
  color: #9ca3af;
  font-size: 1.1rem;
}

/* ----- FAQ ----- */
article .faq dt {
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 12px 16px 12px 40px;
  border-radius: 6px 6px 0 0;
  margin-top: 18px;
  position: relative;
}
article .faq dt::before {
  content: "Q";
  position: absolute;
  left: 13px;
  font-weight: 900;
  color: #2563eb;
}
article .faq dd {
  background: #fff;
  border: 1px solid #dbeafe;
  border-top: none;
  padding: 14px 16px 14px 40px;
  border-radius: 0 0 6px 6px;
  margin-left: 0;
  position: relative;
  color: #444;
}
article .faq dd::before {
  content: "A";
  position: absolute;
  left: 13px;
  top: 14px;
  font-weight: 900;
  color: #16a34a;
}

/* ----- まとめブロック ----- */
article .summary {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 20px;
}
article .summary p { margin-bottom: 14px; }

/* ----- レスポンシブ ----- */
@media (max-width: 620px) {
  article h1 { font-size: 1.25rem; }
  article h2 { font-size: 1.1rem; }
  article th,
  article td { padding: 8px 10px; font-size: 0.85rem; }
}
