/* ページ種別「article」専用スタイル（旧HTMLのインライン<style>を統合・重複除去） */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

.article-title-block {
  background: white;
  padding: 32px 40px 24px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

.article-title-block .cat-tag {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: inherit;
}

.article-title-block h1 {
  font-family: inherit;
  font-size: 26px;
  line-height: 1.55;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text);
}

.article-meta-line {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
  font-family: inherit;
}

.article-main {
  background: white;
  padding: 32px 40px 48px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.lead {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
}

.data-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 20px 0;
  background: var(--primary-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.data-cell {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border-right: 1px solid var(--border-strong);
  padding: 0 24px;
}

.data-cell:last-child { border-right: none; }

.data-cell .num {
  font-family: inherit;
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: 0;
}

.data-cell .unit {
  font-size: 14px;
  color: var(--text-sub);
  font-family: inherit;
}

.data-cell .label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: .02em;
  margin: 0;
  font-family: inherit;
}

.source-note {
  font-size: 9.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 24px;
  font-family: inherit;
}

/* データ帯の直下にくる出典は帯に接続して見せる */
.data-highlight + .source-note {
  margin-top: -30px;
  padding: 9px 24px 10px;
  background: var(--primary-pale);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 100px;
  align-self: start;
}

.side-block {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.side-block:last-child { border-bottom: none; }

.side-block h4 {
  font-size: 14px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
}

.side-rank-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: none;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

.side-rank-item:last-child { border-bottom: none; }

.side-rank-item:hover { text-decoration: none; color: var(--link); }

.side-rank-num {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
}

.side-rank-item .n { font-size: 13px; font-weight: 700; }

.side-rank-item .s { font-size: 11px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 16px -4px; padding: 0 4px; }

.article-cta {
  margin: 32px 0;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.article-cta p { margin-bottom: 12px; font-size: 15px; }

.column-box {
  border-left: 3px solid var(--muted);
  padding: 4px 0 4px 16px;
  margin: 24px 0;
  color: var(--text-sub);
}

.column-box .clabel {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.column-box p { margin: 0 0 8px; font-size: 14px; }

/* トラブル事例カード（罫線区切り版） */
.case-block {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  margin: 0;
}

.case-block:last-of-type { border-bottom: 1px solid var(--border); }

.case-block .case-tag {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.case-block .case-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.case-block .case-body {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 8px;
}

.case-block .case-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: inherit;
}

/* チェックリスト */
.checklist {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.checklist li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px dotted var(--border);
  position: relative;
  font-size: 14px;
  line-height: 1.8;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.checklist li strong { font-weight: 700; color: var(--text); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; padding: 12px; }
  .article-title-block h1 { font-size: 22px; }
  .side { position: static; }
  .data-highlight { grid-template-columns: 1fr; gap: 12px; }
  .data-cell { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; padding-right: 0; }
  .data-cell:last-child { border-bottom: none; }
  .data-cell .num { font-size: 26px; }
}

.article-title-block h1 {
  font-size: 28px;
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 600;
}

/* 導入リード */
.lead {
  font-size: 15px;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 32px;
  padding: 0;
}

/* データボックス */
.data-highlight {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* サイドバー */
.side {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 100px;
  align-self: start;
}

/* 本文内テーブル横スクロール */
.table-wrap { overflow-x: auto; margin: 16px -4px; padding: 0 4px; }

/* 記事内CTAブロック */
.article-cta {
  margin: 32px 0;
  padding: 28px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* コラム */
.column-box {
  border-left: 3px solid var(--muted);
  padding: 4px 0 4px 16px;
  margin: 24px 0;
  color: var(--text-sub);
}

.data-cell .num {
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: 0;
}

/* ステップ */
.step-block {
  border-top: 1px solid var(--border);
  padding: 26px 0 22px;
}

.step-block:last-of-type { border-bottom: 1px solid var(--border); }

/* 番号は塗りのチップ。白抜き文字で見出しの起点を明示する */
.step-block .step-num-label {
  display: inline-block;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 7px 12px 6px;
  border-radius: 2px;
  margin-bottom: 12px;
  font-family: inherit;
}

.step-block .step-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-deep);
  line-height: 1.45;
  letter-spacing: .01em;
}

.step-block p { margin-bottom: 8px; font-size: 14px; line-height: 1.9; }

.step-block .step-tips {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-sub);
}

.step-block .step-tips li { margin-bottom: 4px; }

/* エンディングノート項目テーブル */
.note-item-list {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.note-item-list li {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.85;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  row-gap: 2px;
  align-items: start;
}

.note-item-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* 番号は塗りの正方形。2行分をまたいで項目全体の起点になる */
.note-item-list .no {
  grid-row: 1 / span 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 700; font-size: 16px;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}

.note-item-list .cat {
  color: var(--primary-deep);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}

.data-cell .num { font-size: 24px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; padding: 12px; }
  .article-title-block h1 { font-size: 22px; }
  .side { position: static; }
  .data-highlight { grid-template-columns: 1fr; gap: 12px; }
  .data-cell { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; padding-right: 0; }
  .data-cell:last-child { border-bottom: none; }
  .data-cell .num { font-size: 24px; }
  .step-block .step-title { font-size: 18.5px; }
  .note-item-list li { grid-template-columns: 36px 1fr; column-gap: 12px; }
  .note-item-list .no { width: 36px; height: 36px; font-size: 14px; }
  .note-item-list .cat { font-size: 16px; }
}

.article-title-block .cat-tag {
  display: inline-block;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.article-meta-line {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
}

.data-highlight {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .data-highlight { padding: 22px 18px; margin: 26px 0; gap: 16px; }
}

.data-cell .num {
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.data-cell .unit {
  font-size: 14px;
  color: var(--text-sub);
}

.data-cell .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.source-note,
.article-body p.source-note,
.article-body .source-note {
  font-size: 9.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.article-cta {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary-pale) 0%, #fff 100%);
  border: 2px solid var(--primary);
  border-radius: 4px;
}

.column-box {
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  padding: 16px 22px;
  margin: 24px 0;
  color: var(--text-sub);
  border-radius: 4px;
}

.column-box .clabel {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; padding: 12px; }
  .side { position: static; }
  .data-highlight { grid-template-columns: 1fr; gap: 12px; }
  .data-cell { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 12px; padding-right: 0; }
  .data-cell:last-child { border-bottom: none; }
  .data-cell .num { font-size: 24px; }
}

.data-cell .num { font-size: 30px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }


/* ============================================================
   読みやすさの調整（2026-09-26）
   ・本文カラムを広げる（1240px − サイドバー300px − 余白 = 本文 約860px）
   ・本文の内側の余白を広げる
   ・行間と段落の間隔を広げる
   ・本文中で小さかった文字（STEP・事例・チェックリスト）を本文と同じ大きさに
============================================================ */
.article-layout { gap: 40px; padding: 24px 20px; }

.article-title-block { padding: 44px 56px 28px; }
.article-title-block h1 { font-size: 30px; line-height: 1.6; letter-spacing: .02em; margin-bottom: 16px; }

.article-main,
.article-main.article-body { padding: 44px 56px 64px; }

.lead { font-size: 16.5px; line-height: 2.05; letter-spacing: .03em; margin-bottom: 40px; }

.article-body p { font-size: 16.5px; line-height: 2.05; letter-spacing: .03em; margin: 0 0 1.9em; }
.article-body ul, .article-body ol { margin: 28px 0 40px; }
.article-body li { font-size: 16.5px; line-height: 1.95; letter-spacing: .02em; margin-bottom: 14px; }

.article-body h2 { font-size: 25px; line-height: 1.55; letter-spacing: .02em; margin: 80px 0 32px; padding-bottom: 14px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20px; line-height: 1.6; margin: 52px 0 22px; padding-bottom: 10px; }

.data-highlight { padding: 32px 32px; margin: 40px 0; }

.article-body .toc { padding: 28px 32px; margin: 36px 0 56px; }
.article-body .toc ol { font-size: 15.5px; line-height: 2.1; }

.step-block { padding: 32px 0 28px; }
.step-block p { font-size: 16px; line-height: 2; margin-bottom: 14px; }
.step-block .step-tips { font-size: 15px; line-height: 1.9; }

.case-block { padding: 32px 20px; }
.case-block .case-body { font-size: 16px; line-height: 2; }

.checklist li { font-size: 16px; line-height: 1.95; padding: 16px 0 16px 34px; }
.checklist li::before { top: 17px; }

.column-box { padding: 20px 26px; margin: 32px 0; }
.column-box p { font-size: 15.5px; line-height: 1.95; }

.article-cta { padding: 28px 32px; margin: 44px 0; }
.article-body .article-cta p { font-size: 15.5px; line-height: 1.9; margin: 0 0 14px; }

.article-body .table-scroll td, .article-body .table-scroll th,
.article-body .table-wrap td, .article-body .table-wrap th { padding: 14px 16px; line-height: 1.8; }

@media (max-width: 900px) {
  .article-layout { padding: 12px; }
  .article-title-block { padding: 26px 22px 20px; }
  .article-title-block h1 { font-size: 23px; line-height: 1.6; }
  .article-main,
  .article-main.article-body { padding: 32px 22px 48px; }
  .article-body h2 { font-size: 21px; margin: 60px 0 24px; }
  .article-body h3 { font-size: 18px; margin: 42px 0 18px; }
  .data-highlight { padding: 24px 20px; margin: 32px 0; }
  .article-body .toc { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .lead, .article-body p { font-size: 16px; line-height: 2; letter-spacing: .02em; }
  .article-body li { font-size: 16px; line-height: 1.9; }
  .step-block p, .case-block .case-body, .checklist li { font-size: 15.5px; }
}


/* ── 実例の囲み ────────────────────────────────────────────────
   「実例だと分かる」ことだけを目的にした軽い区切り。
   左の縦帯・上部の棒線・枠線は使わない（実例の範囲は囲みの面で示す）。 */
.case-note {
  margin: 18px 0 32px;
  padding: 18px 22px 14px;
  background: #F8F6F2;
  border-radius: 8px;
}
.case-note__label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #EDE7DE;
  color: #7A6A55;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
}
.case-note--law .case-note__label { background: #E4EDF2; color: var(--primary-deep); }
.case-note__body > p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.95; }
.case-note__body > p:last-child { margin-bottom: 0; }
.case-note__src {
  margin: 14px 0 0; padding-top: 10px;
  border-top: 1px solid #E7E1D8;
  font-size: 11.5px; line-height: 1.7; color: var(--muted); font-style: normal;
}
@media (max-width: 560px) {
  .case-note { margin: 16px 0 26px; padding: 16px 16px 12px; }
}

/* 中段の広告枠。バナーが「広告の枠」として主張しないよう、背景・枠線・余白は付けない。
   PC用(468×60)とSP用(234×60)は画面幅で出し分け、どちらも中央に置く。 */
.ad-box {
  margin: 44px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}
.ad-box .ad-pc, .ad-box .ad-sp { text-align: center; }
.ad-box img { max-width: 100%; height: auto; }

/* サイドバーの中段（要点カードと業者リストの間）。カード間の余白に合わせる */
.side-ad {
  margin: 0 0 20px;
  text-align: center;
  line-height: 0;
}
.side-ad img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
/* PC用/SP用の出し分け。SP用は初期状態では出さない */
.ad-box .ad-sp { display: none; }
@media (max-width: 480px) {
  .ad-box .ad-pc { display: none; }
  .ad-box .ad-sp { display: block; }
}
