/* ===== 配色（ここだけ変えれば全体に反映） ===== */
:root {
  --title-bg: #1b2a41;      /* タイトル帯の背景 */
  --title-text: #ffffff;    /* タイトル帯の文字 */
  --accent: #e22d30;        /* アクセント（線・印・ホバー） */
  --list-bg: #f4f4f4;       /* 一覧タイトルの背景 */
  --text: #333333;          /* 本文の文字 */
  --heading: #222222;       /* 本文見出しの文字 */
}

/* ===== 全体 ===== */
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
}

/* ===== 記事タイトル（個別ページ） ===== */
body .post__title {
  font-size: 2.6rem !important;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--title-text);
  background: var(--title-bg);
  padding: .7em .8em;
  border-left: 8px solid var(--accent);
  border-radius: 4px;
  margin-bottom: .8em;
}

/* ===== 一覧ページの記事タイトル ===== */
body .list__title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.4;
  padding: .3em 0 .3em .6em;
  border-left: 6px solid var(--accent);
  background: var(--list-bg);
}
body .list__title a {
  color: #111111;
  text-decoration: none;
}
body .list__title a:hover {
  color: var(--accent);
}

/* タイトル内側の要素にも同じ文字サイズを使わせる */
body .post__title *,
body .list__title * {
  font-size: inherit;
}

/* ===== 本文 ===== */
body .content {
  font-size: 1rem;
  line-height: 1.9;
}

/* 本文中の見出し ## */
body .content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
  background: none;
  border-left: none;
  padding: 0 0 .3em;
  margin: 2.2em 0 .9em;
  border-bottom: 2px solid #dddddd;
}

/* 本文中の見出し ### */
body .content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  background: none;
  border: none;
  padding: 0;
  margin: 1.8em 0 .6em;
}
body .content h3::before {
  content: "■ ";
  color: var(--accent);
  font-size: .8em;
}

/* ===== スマートフォン ===== */
@media (max-width: 600px) {
  body .post__title { font-size: 1.8rem; }
  body .list__title { font-size: 1.4rem; }
  body .content h2  { font-size: 1.2rem; }
}
