@charset "UTF-8";
/* =====================================================================
   ブログ記事（single-blog.php）の新しい見た目 — 2026-11-19
   header.php でブログ記事のときだけ、common.css・blog-before.css の後に読み込む。
   このファイルの読み込みを外せば、元の見た目に戻る（common.css は変えていない）。

   決めたこと（内山さん 11/19・見比べページ UCHIYAMA/blog_layout_ab/heading_20261119/ で選択）
   - レイアウト：1カラム（サイドバーなし）・本文の幅 780px・本文 18px（スマホ 17px）
   - 部品：新B（青の面）。枠線で囲む形は使わない
   - 強調：マーカー（黄色）・見出しのすぐ下の段落の強調だけ残す（ほかはふつうの文字）
   - 余白：ゆったり（行間 2.0・段落の間 2em・見出しの前を広く）
   - おすすめの資料：最初の h2 の手前に2点、関連記事の手前に「おすすめ資料設定」の資料（functions.php）
   - 古い記事（HubSpot由来・見出しに style が直接書かれたもの）にも効かせるため、見出しの大きさ・余白・色は !important
   ===================================================================== */

article.blog.blog--single {
  --x-accent: #007deb;
  --x-ink: #131416;
  --x-text: #363a3f;
  --x-panel: #e8f1fb;
  --x-quote: #f1f4f8;
  --x-th-bg: #1f3a56;
  --x-th-fg: #fff;
  --x-row: #f5f8fc;
  --x-line: #e3e8ee;
  --x-mark: #ffe98a;
}

/* ---------- レイアウト：1カラム ---------- */
article.blog.blog--single .sidebar { display: none; }
article.blog.blog--single .container { justify-content: center; }
article.blog.blog--single .articleInner { max-width: 780px; }

/* ---------- 本文の文字・行・段落 ---------- */
article.blog.blog--single .articleContent {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--x-text);
}
article.blog.blog--single .articleContent p { margin-bottom: 2em; }
article.blog.blog--single .articleContent div > p:last-child { margin-bottom: 0; }
article.blog.blog--single .articleContent figure.wp-block-image { margin-bottom: 40px; }

/* ========== 見出し（囲まない） ========== */
article.blog.blog--single .articleContent :is(h2, h3, h4) {
  position: relative;
  line-height: 1.5 !important;
  letter-spacing: 0.02em;
  font-weight: 700 !important;
  color: var(--x-ink) !important;
  border: 0;
  background: none;
}
article.blog.blog--single .articleContent :is(h2, h3, h4) * { color: inherit !important; font-size: inherit !important; }
/* h2：上に青い短い線 */
article.blog.blog--single .articleContent h2 {
  font-size: 30px !important;
  padding: 24px 0 0 !important;
  margin: 120px 0 48px !important;
}
article.blog.blog--single .articleContent h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--x-accent);
}
/* h3：左に青い線 */
article.blog.blog--single .articleContent h3 {
  font-size: 24px !important;
  padding: 0 0 0 16px !important;
  border-left: 4px solid var(--x-accent);
  margin: 80px 0 28px !important;
}
/* h4：小さな青い四角 */
article.blog.blog--single .articleContent h4 {
  font-size: 20px !important;
  padding: 0 0 0 18px !important;
  margin: 52px 0 18px !important;
}
article.blog.blog--single .articleContent h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--x-accent);
}

/* ========== 箇条書き・番号付き：枠なし・薄い青の面 ========== */
article.blog.blog--single .articleContent :is(ul, ol).wp-block-list {
  border: 0;
  list-style: none;
  margin: 0 0 40px;
  background: var(--x-panel);
  border-radius: 12px;
  padding: 36px 40px;
}
article.blog.blog--single .articleContent li > :is(ul, ol).wp-block-list {
  background: none;
  border-radius: 0;
  padding: 0;
  margin: 14px 0 0;
}
article.blog.blog--single .articleContent :is(ul, ol).wp-block-list > li {
  position: relative;
  border: 0;
  padding: 0 0 0 30px;
  margin: 0 0 20px;
  line-height: 1.9;
}
article.blog.blog--single .articleContent :is(ul, ol).wp-block-list > li:last-child { margin-bottom: 0; }
/* 点：青い丸 */
article.blog.blog--single .articleContent ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--x-accent);
}
article.blog.blog--single .articleContent li > ul.wp-block-list > li::before {
  background: transparent;
  border: 2px solid var(--x-accent);
  box-sizing: border-box;
}
/* 項目が1つだけの箇条書き（説明の文を置くのに使われている）：点を付けない */
article.blog.blog--single .articleContent ul.wp-block-list:has(> li:only-child) > li { padding-left: 0; }
article.blog.blog--single .articleContent ul.wp-block-list:has(> li:only-child) > li::before { display: none; }
/* 番号：青い丸に白い数字 */
article.blog.blog--single .articleContent ol.wp-block-list { counter-reset: list-counter; }
article.blog.blog--single .articleContent ol.wp-block-list > li { padding-left: 38px; counter-increment: list-counter; }
article.blog.blog--single .articleContent ol.wp-block-list > li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0.2em;
  transform: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--x-accent);
  color: #fff;
  font: 700 14px/26px "Rubik", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  text-align: center;
}

/* ========== 表 ========== */
article.blog.blog--single .articleContent figure.wp-block-table {
  margin: 0 0 40px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--x-line);
  background: #fff;
}
article.blog.blog--single .articleContent figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  font-size: 15px;
  line-height: 1.7;
}
article.blog.blog--single .articleContent figure.wp-block-table :is(th, td) {
  border: 0;
  border-bottom: 1px solid var(--x-line);
  padding: 16px 20px;
  vertical-align: top;
  background: #fff;
  color: var(--x-text);
}
article.blog.blog--single .articleContent figure.wp-block-table thead :is(th, td),
article.blog.blog--single .articleContent figure.wp-block-table tr:first-child th {
  background: var(--x-th-bg);
  color: var(--x-th-fg);
  font-weight: 700;
  border-bottom: 0;
}
article.blog.blog--single .articleContent figure.wp-block-table tbody tr:nth-child(even) td { background: var(--x-row); }
article.blog.blog--single .articleContent figure.wp-block-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
article.blog.blog--single .articleContent figure.wp-block-table tbody td:first-child { font-weight: 700; color: var(--x-ink); }

/* ========== よくある質問（囲みボックス）・引用：枠なし・薄い面 ========== */
article.blog.blog--single .articleContent .box-simple {
  border: 0;
  border-radius: 12px;
  background: var(--x-panel);
  padding: 32px 36px;
  margin: 0 0 28px;
}
article.blog.blog--single .articleContent .box-simple p.title {
  background: none;
  color: var(--x-ink);
  padding: 0;
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.6;
}
article.blog.blog--single .articleContent .box-simple__inner { padding: 0; }
article.blog.blog--single .articleContent blockquote {
  border: 0;
  border-radius: 12px;
  background: var(--x-quote);
  padding: 28px 32px;
  margin: 0 0 40px;
  color: #4b5563;
}

/* ========== 強調：マーカー・見出しのすぐ下の段落だけ ==========
   全578本で、段落・箇条書きの文中の強調 8,508 → 1,318（85%減）
   太字のまま残す：見出し・表・よくある質問の題・箇条書きの頭（li の最初の要素） */
article.blog.blog--single .articleContent :is(p, li) :is(strong, b) {
  font-weight: 400;
  background: none;
  color: inherit;
}
article.blog.blog--single .articleContent :is(h2, h3, h4) + p :is(strong, b) {
  font-weight: 500;
  background: linear-gradient(transparent 60%, var(--x-mark) 60%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
article.blog.blog--single .articleContent li > :is(strong, b):first-child,
article.blog.blog--single .articleContent .box-simple p.title :is(strong, b),
article.blog.blog--single .articleContent :is(h2, h3, h4, th, td) :is(strong, b) {
  font-weight: 700;
  background: none;
}

/* ========== おすすめの資料（functions.php が本文の中に出す） ========== */
article.blog.blog--single .sbRes {
  margin: 64px 0 48px;
  padding: 32px;
  background: var(--x-panel);
  border-radius: 12px;
}
article.blog.blog--single .sbRes__title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--x-ink); line-height: 1.4; }
article.blog.blog--single .sbRes__sub { font-size: 20px; font-weight: 700; color: var(--x-ink); margin: 2px 0 20px; line-height: 1.5; }
article.blog.blog--single .sbRes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
article.blog.blog--single .sbRes__item { display: block; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; }
article.blog.blog--single .sbRes__item .image { aspect-ratio: 16 / 9; overflow: hidden; }
article.blog.blog--single .sbRes__item .image img { width: 100%; height: 100%; object-fit: cover; margin: 0; display: block; }
article.blog.blog--single .sbRes__item .title { display: block; padding: 10px 12px 14px; font-size: 14px; line-height: 1.6; font-weight: 700; color: var(--x-ink); }
/* 冒頭（最初の h2 の手前）の2点：画像を左・題名を右の横長 */
article.blog.blog--single .sbRes--top { margin: 8px 0 72px; padding: 24px 28px; }
article.blog.blog--single .sbRes--top .sbRes__sub { margin-bottom: 14px; }
article.blog.blog--single .sbRes--top .sbRes__list { grid-template-columns: 1fr 1fr; gap: 16px; }
article.blog.blog--single .sbRes--top .sbRes__item { display: flex; align-items: center; gap: 12px; padding: 10px; }
article.blog.blog--single .sbRes--top .sbRes__item .image { flex: 0 0 180px; width: 180px; border-radius: 4px; }
article.blog.blog--single .sbRes--top .sbRes__item .title { padding: 0; font-size: 14px; line-height: 1.5; word-break: normal; overflow-wrap: normal; }

/* ========== スマホ（693px以下） ========== */
@media screen and (max-width: 693px) {
  article.blog.blog--single .articleContent { font-size: 17px; line-height: 1.9; letter-spacing: 0.03em; }
  article.blog.blog--single .articleContent p { margin-bottom: 1.75em; }
  article.blog.blog--single .articleContent h2 { font-size: 24px !important; padding-top: 20px !important; margin: 80px 0 32px !important; }
  article.blog.blog--single .articleContent h2::before { width: 40px; }
  article.blog.blog--single .articleContent h3 { font-size: 20px !important; padding-left: 12px !important; margin: 56px 0 20px !important; }
  article.blog.blog--single .articleContent h4 { font-size: 18px !important; padding-left: 16px !important; margin: 36px 0 14px !important; }
  article.blog.blog--single .articleContent :is(ul, ol).wp-block-list { padding: 24px 22px; margin-bottom: 32px; }
  article.blog.blog--single .articleContent li > :is(ul, ol).wp-block-list { padding: 0; }
  article.blog.blog--single .articleContent :is(ul, ol).wp-block-list > li { margin-bottom: 16px; }
  article.blog.blog--single .articleContent .box-simple { padding: 22px 20px; }
  article.blog.blog--single .articleContent figure.wp-block-table table { font-size: 14px; }
  article.blog.blog--single .articleContent figure.wp-block-table :is(th, td) { padding: 12px 14px; }
  article.blog.blog--single .sbRes { padding: 20px 16px; margin: 48px 0 32px; }
  article.blog.blog--single .sbRes__list { grid-template-columns: 1fr 1fr; gap: 12px; }
  article.blog.blog--single .sbRes__item .title { font-size: 12px; padding: 8px; }
  article.blog.blog--single .sbRes--top { padding: 18px 16px; margin: 4px 0 48px; }
  article.blog.blog--single .sbRes--top .sbRes__list { grid-template-columns: 1fr; gap: 10px; }
  article.blog.blog--single .sbRes--top .sbRes__item .image { flex-basis: 140px; width: 140px; }
}
