body {
  font-family: var(--font-sans-jp);
  font-size: var(--fs-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--lh-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans-jp);
  font-weight: var(--font-weight-bold);
  line-height: var(--lh-heading);
  color: var(--color-text-primary);
}
h1 { font-size: var(--fs-h1); font-weight: var(--font-weight-black); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin-bottom: var(--spacing-md); line-height: var(--lh-body); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--color-text-link-hover); text-decoration: underline; }

/* ── フォーカス可視化 ─────────────────────────────
   マウス操作では出さず、キーボード操作でだけ出す。
   hover と違い「そこが操作できる」ことを色以外でも示す必要があるため、
   リングは全インタラクティブ要素で共通にする。 */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
/* 濃い緑背景（フッター・CTAセクション）の上では白リングに切り替える */
.c-footer :focus-visible,
.c-cta-section :focus-visible,
.l-section--primary :focus-visible {
  outline-color: #fff;
}

/* ── モーション低減 ───────────────────────────────
   ドロワーの slide・カードの lift・トーストのアニメを一律で止める。
   ここで一括して面倒を見るので、個別コンポーネントには書かない。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 数字・料金強調 */
.c-price {
  font-family: var(--font-sans-en);
  font-size: var(--fs-price);
  font-weight: var(--font-weight-bold);
  color: var(--color-cta);
}

/* 最終確認日などのメタ情報 */
.c-meta {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
}

/* 更新日バッジ */
.c-updated-badge {
  display: inline-block;
  font-size: var(--fs-caption);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-medium);
}

/* 星評価 */
.c-stars { display: inline-flex; gap: 1px; }
.c-stars__item { font-size: 1rem; }
.c-stars__item--filled { color: var(--color-secondary); }
.c-stars__item--half   { color: var(--color-secondary); opacity: 0.6; }
.c-stars__item--empty  { color: var(--color-border); }

/* アイコン */
.c-icon--ok  { color: var(--color-success); }
.c-icon--ng  { color: var(--color-text-muted); }
.c-icon__label { font-size: var(--fs-caption); margin-left: 2px; }

/* インラインSVGアイコン共通（色は currentColor でテキストに追従） */
.c-icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* パンくずリスト */
.c-breadcrumb {
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  padding: var(--spacing-sm) 0;
}
.c-breadcrumb a { color: var(--color-text-muted); }
.c-breadcrumb a:hover { color: var(--color-primary); }
.c-breadcrumb__sep { margin: 0 4px; }

/* 記事本文（the_content）の読みやすさ確保。reset.cssでul/olのlist-styleが消えているため個別に復元 */
.entry-content { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--color-text-primary); }
.entry-content h2 {
  font-size: var(--fs-h2);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
  border-left: 4px solid var(--color-primary);
}
.entry-content h3 {
  font-size: var(--fs-h3);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}
.entry-content p { margin-bottom: var(--spacing-md); }
.entry-content ul, .entry-content ol {
  margin: 0 0 var(--spacing-md);
  padding-left: 1.4em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: var(--spacing-xs); }
.entry-content a { text-decoration: underline; }
.entry-content blockquote {
  margin: 0 0 var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-border);
  color: var(--color-text-secondary);
}
.entry-content table {
  width: 100%;
  margin-bottom: var(--spacing-md);
  border-collapse: collapse;
  font-size: 0.9rem;
}
.entry-content th, .entry-content td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}
.entry-content th { background: var(--color-bg-section); font-weight: var(--font-weight-medium); }
.entry-content img { border-radius: var(--radius-md); margin-bottom: var(--spacing-md); }

/* 視覚的には非表示だがスクリーンリーダー・検索エンジンには読める（見出し構造確保用） */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 見出し・カード名の折り返し（2026-09-06・本番 375px の実測）──
   日本語には単語境界が無いので、幅の狭い端末では最終行に1文字だけ落ちる。
   本番で実際に出ていたのは次の4か所である。

     セクション見出し   「地域別で不用品回収業者を探｜す」
     業者カードの社名   「関西クリーンサービ｜ス」
     記事カードの見出し 「…持ち込み・料｜金」
     記事詳細の h1      「…持ち込み・料｜金」

   text-wrap: balance は行数を変えずに各行の長さを均すので、
   1文字だけ落ちる行が無くなる（実測：最終行 1文字 → 5〜7文字）。
   対応していないブラウザでは単に無視され、いまと同じ折り返しになる。
   本文には掛けない。balance は数行までの短いテキスト向けで、
   長い段落に掛けると効かないうえに描画コストだけが乗る。 */
.l-section__heading h2,
.c-company-card__name,
.c-article-card__title,
.c-article-header__title {
  text-wrap: balance;
}
