/* =========================================================
   base.css  ── グローバルリセット・基本要素

   【このファイルの責務】
   - ブラウザデフォルトのリセット（box-sizing, margin, padding）
   - body, a, img, h1〜h4, p など HTML 基本タグのベーススタイル
   - ::selection, :focus-visible などの全体共通スタイル

   【触るべきとき】
   ・本文フォントを変えたい  → body の font-family を変更（または tokens.css の --font-body）
   ・行間を変えたい          → body の line-height を変更
   ・リンクの基本色を変えたい → a の color を変更

   【触ってはいけないもの】
   ・レスポンシブは responsive.css に書く
   ・コンポーネント固有のスタイルはそれぞれの CSS ファイルへ
========================================================= */

/* =========================================================
   01 Global Reset
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: .025em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  letter-spacing: .03em;
}

/* Phase 4 (E-008) 「新聞寄り」typography 階層
   h1 大胆 + h2-h4 控えめ。記事タイトルは本文側で目立たせる */
h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.3;
}
h2 {
  font-size: 28px;
  line-height: 1.45;
}
h3 {
  font-size: 22px;
  line-height: 1.6;
}
h4 {
  font-size: 18px;
  line-height: 1.6;
}

/* SP (= 680px 以下) で h1-h2 を 1 段階下げる */
@media (max-width: 680px) {
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 17px; }
}

p, ul, ol, figure, blockquote, pre {
  margin: 0;
}

::selection {
  background: rgba(79,111,67,.20);   /* 苔緑のハイライト */
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid rgba(79,111,67,.45);   /* 苔緑のフォーカス輪郭 */
  outline-offset: 3px;
}
