/* =============================================================================
 * 川口草刈りサービス — サイト固有テーマ
 *
 * 型の出どころ: tools/serp_design/kusakari.md
 *   主参考 = https://mowing-man.com/tokyo/ （「東京 草刈」でポータルを除いた1位の業者サイト）
 *   採ったのは配色の方向・構成の順番・余白・罫線の使い方だけ。
 *   画像・文章・ロゴ・イラスト・コードは一切流用していない。イラストは自作SVG。
 *
 * 特異性について:
 *   packages/shared の scoped CSS は `.hero[data-astro-cid-xxxx]` の形にコンパイルされる
 *   （= 0,2,0）。`html .hero`（0,1,1）では負けるので、テーマ側はクラスを2回書いて
 *   `html .hero`（0,2,1）にして上書きする。
 *
 * コントラスト（WCAG 2.2 SC 1.4.3 AA / 1.4.11）:
 *   #3F6212 on #FFF  = 7.08:1   本文・白文字を載せる地の両方でAA
 *   #FFF    on #3F6212 = 7.08:1
 *   #241A00 on #F59E0B = 8.00:1  CTAボタン（白文字だと2.15:1で不足するため濃茶に倒す）
 *   #3F6212 対 #F59E0B = 3.30:1（UI部品3:1）／色差 P型 ΔE39.9・D型 ΔE54.2 でどちらも ok
 *   #063017 on #06C755 = 6.45:1  追従CTAのLINE（白文字は2.26:1で不足）
 *   #5C6350 on #FFF  = 6.26:1 / on #F4F8EC = 5.81:1   補足テキスト
 *   #65A30D on #FFF  = 3.09:1   罫線・バッジ・大文字のみ。本文には使わない
 * ========================================================================== */

/*
 * Astro はバンドルCSS（global.css＋各コンポーネントの scoped）の <link> を head の
 * 最後に差し込む。theme.css はその前に置かれるので、:root 同士だと同特異性で
 * global.css が勝つ。トークンは html:root（0,1,1）で1段上げて定義する。
 * --c-primary / --c-accent はここで定義しない（site.config.ts の theme が唯一の出所で、
 * Base.astro が head 末尾の <style define:vars> で流し込む）。
 */
html:root {
  --k-primary-dark: #33500e;
  --k-primary-tint: #eef4e2;
  /* 明るい黄緑。装飾罫線・上端ライン・バッジ用（白に3.09:1なので本文には使わない） */
  --k-lime: #65a30d;
  /* CTA。琥珀（site.config の accent）＋濃茶文字 */
  --k-accent-dark: #b97505;
  --k-ink: #241a00;

  --c-text: #262b1e;
  --c-muted: #5c6350;
  --c-border: #d5dbcb;
  --k-border-soft: #e5eadc;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f8ec;
  /* ページの地。白いコンテンツカードを浮かせる（主参考の #EDF0F5 と同じ組み立て） */
  --k-page: #e9ede2;

  --c-footer-bg: #2b3a1b;
  --c-footer-fg: #f1f4ea;
  --c-footer-muted: #b7c4a4;

  --w-container: 1060px;
  --k-card: 1120px;
  --k-bar: 56px;

  --k-font: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    'Noto Sans JP', Meiryo, system-ui, sans-serif;
}

/* ---------------------------------------------------------------- 土台 */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  background: var(--k-page);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body.theme-kusakari {
  font-family: var(--k-font);
  background: var(--k-page);
  color: var(--c-text);
  line-height: 1.95;
  font-size: 1rem;
  /* 追従CTA（56px）＋ホームインジケータの逃げ */
  padding-bottom: calc(var(--k-bar) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.theme-kusakari { padding-bottom: 0; }
}

body.theme-kusakari a { color: var(--k-primary-dark); }

/* 本文カード。主参考と同じ「淡い地の上に白いカード」構造 */
html body.theme-kusakari:not(#never) #main {
  display: block;
  max-width: var(--k-card);
  margin: 1.25rem auto 3rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-top: 0;
}

@media (max-width: 767px) {
  html body.theme-kusakari:not(#never) #main {
    margin: 0 0 1.5rem;
    border-inline: 0;
    border-bottom: 0;
  }
}

html body.theme-kusakari:not(#never) .section { padding-block: clamp(2rem, 5vw, 3.25rem); }

html body.theme-kusakari:not(#never) .section--soft {
  background: var(--c-bg-soft);
  border-block: 1px solid var(--k-border-soft);
}

/* ---------------------------------------------------------------- 見出し */

/*
 * 全幅の見出しバー。主参考は白→#EEE の縦グラデ＋下1px罫線＋上に緑の細線で、
 * 背景色を切り替えずにこのバーだけで段を作っていた。同じ組み立てにする。
 */
html body.theme-kusakari:not(#never) .section > .container > h2,
html body.theme-kusakari:not(#never) .section > .container > .container > h2 {
  background: linear-gradient(180deg, #ffffff 0%, var(--k-primary-tint) 100%);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  border-radius: 0;
  padding: 0.7rem 1rem 0.7rem 1.05rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.0625rem, 2.6vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.55;
  color: #232a1b;
  letter-spacing: 0.01em;
}

html body.theme-kusakari:not(#never) h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #232a1b;
}

/* ---------------------------------------------------------------- ヘッダー */

html body.theme-kusakari:not(#never) .site-header {
  background: #fff;
  border-bottom: 0;
  /* 下のナビ帯を box-shadow で全幅まで伸ばすため、はみ出しをここで切る */
  overflow: hidden;
}

html body.theme-kusakari:not(#never) .site-header__inner {
  max-width: var(--k-card);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  row-gap: 0;
}

/* ブランド。マークは自作SVG（草の葉3本） */
html body.theme-kusakari:not(#never) .site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.9rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #232a1b;
  line-height: 1.3;
}

html body.theme-kusakari:not(#never) .site-header__brand::before {
  content: '';
  inline-size: 2.375rem;
  block-size: 2.375rem;
  flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M16 27C16 19 13 13 8 9'/%3E%3Cpath d='M16 27C16 18 19 12 25 8'/%3E%3Cpath d='M16 27C16 22 16 17 16 13'/%3E%3C/g%3E%3C/svg%3E")
      center / 78% no-repeat,
    linear-gradient(160deg, var(--k-lime) 0%, var(--c-primary) 70%);
}

/* 全幅の主色ナビ帯。box-shadow を左右に飛ばして親の overflow:hidden で切る
   （100vw を使うと縦スクロールバーぶん横スクロールが出る） */
html body.theme-kusakari:not(#never) .site-header__nav {
  order: 3;
  width: 100%;
  margin-inline-start: 0;
  gap: 0;
  background: var(--c-primary);
  box-shadow: -50vw 0 0 var(--c-primary), 50vw 0 0 var(--c-primary);
  flex-wrap: wrap;
}

html body.theme-kusakari:not(#never) .site-header__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 主参考は全幅のタブを等分していた。同じ割り方にする */
  flex: 1 1 0;
  min-block-size: 48px;
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.22);
}

html body.theme-kusakari:not(#never) .site-header__nav a:first-child {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}

html body.theme-kusakari:not(#never) .site-header__nav a:hover {
  background: var(--k-primary-dark);
  text-decoration: none;
}

html body.theme-kusakari:not(#never) .site-header__tel {
  margin-inline-start: auto;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--c-border);
  color: var(--k-primary-dark);
  text-align: center;
}

html body.theme-kusakari:not(#never) .site-header__tel-num {
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  html body.theme-kusakari:not(#never) .site-header__brand { font-size: 1rem; }
  html body.theme-kusakari:not(#never) .site-header__nav a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ---------------------------------------------------------------- ヒーロー */

/*
 * 主参考は写真ヒーローを持たず、緑ナビ帯のすぐ下から本文に入る。
 * ここは写真（イメージ写真）を敷く形に変えた。写真が無いとき（image を渡さないとき）は
 * 従来どおり主色の上端ライン・淡いグラデーション・自作SVGの草シルエットで面を作るので、
 * 下の .hero と .hero--photo の2本立てにしてある。
 */
html body.theme-kusakari:not(#never) .hero {
  background:
    radial-gradient(115% 85% at 88% 0%, rgba(101, 163, 13, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--c-bg-soft) 100%);
  border-top: 4px solid var(--c-primary);
  border-bottom: 1px solid var(--k-border-soft);
  padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 7vw, 4.25rem);
  position: relative;
  overflow: hidden;
}

/* 下端の草。自作のSVG（葉5本のタイルを横に繰り返す） */
html body.theme-kusakari:not(#never) .hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='28' viewBox='0 0 60 28'%3E%3Cg fill='none' stroke='%233f6212' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M8 28C8 19 5 13 1 9'/%3E%3Cpath d='M16 28C16 18 20 11 27 7'/%3E%3Cpath d='M24 28C24 21 24 16 24 12'/%3E%3Cpath d='M38 28C38 20 34 14 29 10'/%3E%3Cpath d='M48 28C48 19 52 12 58 8'/%3E%3C/g%3E%3C/svg%3E")
    repeat-x left bottom;
  opacity: 0.22;
  pointer-events: none;
}

html body.theme-kusakari:not(#never) .hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--w-container);
}

html body.theme-kusakari:not(#never) .hero__title {
  font-size: clamp(1.5rem, 5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #1f2718;
  max-width: 22em;
}

html body.theme-kusakari:not(#never) .hero__title::before {
  content: '';
  display: block;
  inline-size: 3.5rem;
  block-size: 5px;
  margin-block-end: 1.1rem;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--k-lime) 100%);
}

html body.theme-kusakari:not(#never) .hero__lead {
  margin-block-start: 1.375rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid rgba(63, 98, 18, 0.3);
  max-width: 36em;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.95;
}

html body.theme-kusakari:not(#never) .hero__actions { margin-block-start: 2rem; gap: 0.875rem; }

/* ------------------------------------------------ ヒーロー（写真ありのとき） */

/*
 * packages/shared 側の .hero--photo は暗幕 rgba(0,0,0,.55〜.45) を敷くだけだが、
 * この theme.css の .hero（0,3,1 相当）が背景ごと勝ってしまうので、同じ強さで
 * 写真版を書き直す。暗幕は写真の明るい側（右上の路面）でも白文字が AA を切らない
 * 濃さにしてある。実測値はこのブロック末尾のコメント。
 */
html body.theme-kusakari:not(#never) .hero--photo {
  background:
    linear-gradient(
      100deg,
      rgba(16, 24, 9, 0.9) 0%,
      rgba(16, 24, 9, 0.82) 48%,
      rgba(16, 24, 9, 0.66) 100%
    ),
    var(--hero-image) center / cover no-repeat;
  border-top: 4px solid var(--k-lime);
  border-bottom: 0;
  color: #fff;
}

/* 草シルエットは写真の上だと汚れに見えるので、写真版では下端の主色ラインに置き換える */
html body.theme-kusakari:not(#never) .hero--photo::after {
  background: none;
  block-size: 5px;
  opacity: 1;
  background-image: linear-gradient(90deg, var(--c-primary) 0%, var(--k-lime) 100%);
}

html body.theme-kusakari:not(#never) .hero--photo .hero__title {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* 見出し上のバーは、暗い地では明るい側だけにする */
html body.theme-kusakari:not(#never) .hero--photo .hero__title::before {
  background: linear-gradient(90deg, var(--k-lime) 0%, #d9f99d 100%);
}

html body.theme-kusakari:not(#never) .hero--photo .hero__lead {
  color: #f2f5ea;
  border-inline-start-color: rgba(217, 249, 157, 0.65);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

html body.theme-kusakari:not(#never) .hero--photo .hero__note { color: #e6ebdc; }

/*
 * コントラスト実測（2026-08-25。Playwright で文字だけ隠してヒーローを撮り、
 * 見出し・リード文それぞれの矩形の中で「いちばん明るい実ピクセル」を最悪ケースとして
 * 対比を計算した。WCAG 2.2 SC 1.4.3 の AA は 4.5:1）
 *   390px   見出し #FFFFFF 対 #505547 = 7.69:1 ／ リード #F2F5EA 対 #595D52 = 6.11:1
 *   1440px  見出し #FFFFFF 対 #4C523F = 8.12:1 ／ リード #F2F5EA 対 #3D452F = 9.10:1
 * 写真を差し替えたら暗幕の濃さを測り直すこと（明るい空が大きく入ると落ちる）。
 * text-shadow は上の計算に入れていない（効かない環境でも AA を割らない濃さにしてある）。
 */

/* ---------------------------------------------------------------- ボタン */

html body.theme-kusakari:not(#never) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 52px;
  padding: 0.85rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

html body.theme-kusakari:not(#never) .btn--primary {
  background: var(--c-accent);
  /* 白文字だと 2.15:1 で不足するため濃茶（8.10:1） */
  color: var(--k-ink);
  border-color: var(--k-accent-dark);
  box-shadow: 0 3px 0 var(--k-accent-dark);
}

html body.theme-kusakari:not(#never) .btn--primary:hover {
  filter: none;
  background: #ffb020;
  box-shadow: 0 3px 0 var(--k-accent-dark);
}

html body.theme-kusakari:not(#never) .btn--ghost {
  background: #fff;
  border: 2px solid var(--c-primary);
  color: var(--k-primary-dark);
}

html body.theme-kusakari:not(#never) .btn--ghost:hover { filter: none; background: var(--k-primary-tint); }

html body.theme-kusakari:not(#never) .btn:focus-visible {
  outline: 3px solid var(--k-primary-dark);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- 診断CTA */

html body.theme-kusakari:not(#never) .dg {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-accent);
  border-radius: 0;
  padding: 1.5rem 1.25rem 1.75rem;
}

html body.theme-kusakari:not(#never) .dg__title {
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  font-weight: 700;
  color: #232a1b;
  background: none;
  border: 0;
  padding: 0;
}

html body.theme-kusakari:not(#never) .dg__num {
  border-radius: 0;
  background: var(--c-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html body.theme-kusakari:not(#never) .dg__opt {
  border-radius: 0;
  border: 1px solid var(--c-border);
  background: #fff;
}

html body.theme-kusakari:not(#never) .dg__opt:has(input:checked) {
  background: var(--k-primary-tint);
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 2px var(--c-primary);
}

html body.theme-kusakari:not(#never) .dg__opt:has(input:focus-visible) {
  outline: 3px solid var(--k-primary-dark);
  outline-offset: 2px;
}

html body.theme-kusakari:not(#never) .dg__amount {
  color: var(--k-primary-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

html body.theme-kusakari:not(#never) .dg__result { border-top: 1px solid var(--c-border); }

/* ---------------------------------------------------------------- 料金表 */

html body.theme-kusakari:not(#never) .pricetable { margin-block: 1.75rem; }

html body.theme-kusakari:not(#never) .pricetable caption {
  background: var(--c-primary);
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.6;
}

html body.theme-kusakari:not(#never) .pricetable__unit { color: rgba(255, 255, 255, 0.85); }

html body.theme-kusakari:not(#never) .pricetable th,
html body.theme-kusakari:not(#never) .pricetable td {
  border: 1px solid var(--c-border);
  padding: 0.7rem 0.85rem;
  line-height: 1.75;
}

html body.theme-kusakari:not(#never) .pricetable thead th {
  background: var(--k-primary-tint);
  color: #232a1b;
  font-weight: 700;
}

html body.theme-kusakari:not(#never) .pricetable tbody tr:nth-child(2n) th,
html body.theme-kusakari:not(#never) .pricetable tbody tr:nth-child(2n) td {
  background: #fafcf5;
}

html body.theme-kusakari:not(#never) .pricetable tbody td:first-of-type {
  font-weight: 700;
  color: var(--k-primary-dark);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

html body.theme-kusakari:not(#never) .pricetable__tbd {
  font-weight: 400;
  color: var(--c-muted);
}

/* 面積の目安（index.astro 側の表）も同じ語彙に揃える */
html body.theme-kusakari:not(#never) .sizes { font-size: 0.95rem; }

html body.theme-kusakari:not(#never) .sizes caption {
  background: var(--c-primary);
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

html body.theme-kusakari:not(#never) .sizes th,
html body.theme-kusakari:not(#never) .sizes td {
  border: 1px solid var(--c-border);
  padding: 0.7rem 0.85rem;
}

html body.theme-kusakari:not(#never) .sizes thead th { background: var(--k-primary-tint); color: #232a1b; }
html body.theme-kusakari:not(#never) .sizes tbody tr:nth-child(2n) th,
html body.theme-kusakari:not(#never) .sizes tbody tr:nth-child(2n) td { background: #fafcf5; }

/* ---------------------------------------------------------------- カード類 */

html body.theme-kusakari:not(#never) .rules__item {
  border-radius: 0;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-primary);
  padding: 1.25rem;
}

html body.theme-kusakari:not(#never) .rules__tag {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 0.15rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-block-end: 0.75rem;
}

html body.theme-kusakari:not(#never) .rules dt { font-size: 1.0625rem; line-height: 1.6; }
html body.theme-kusakari:not(#never) .rules dd { line-height: 1.9; }

/* 4件なので auto-fit だと3+1で割れる。広い画面では2×2に固定する */
@media (min-width: 900px) {
  html body.theme-kusakari:not(#never) .works { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  html body.theme-kusakari:not(#never) .rules { gap: 1.25rem; }
}

html body.theme-kusakari:not(#never) .works__item {
  border-radius: 0;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--k-lime);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

/* カードの余白を 1.25rem にしてあるので、写真の食い出しも同じ量に合わせる */
html body.theme-kusakari:not(#never) .works__img {
  width: calc(100% + 2.5rem);
  margin: -1.25rem -1.25rem 1.15rem;
  border-bottom: 1px solid var(--c-border);
}

/* 本文中のイメージ写真。角丸なし＋細罫線でカード類と同じ語彙に揃える */
html body.theme-kusakari:not(#never) .figure img { border: 1px solid var(--c-border); }

html body.theme-kusakari:not(#never) .figure figcaption {
  border-inline-start: 3px solid var(--k-lime);
  padding-inline-start: 0.7rem;
  line-height: 1.8;
}

/* ヒーロー直下の「写真はイメージです」 */
html body.theme-kusakari:not(#never) .photo-note {
  border-bottom: 1px solid var(--k-border-soft);
  padding-inline: max(1rem, calc((100% - var(--w-container)) / 2));
  padding-block: 0.7rem;
  letter-spacing: 0.01em;
}

html body.theme-kusakari:not(#never) .works__item h3 a { text-decoration: none; }
html body.theme-kusakari:not(#never) .works__item h3 a:hover { text-decoration: underline; }
html body.theme-kusakari:not(#never) .works__item p { flex: 1; }

html body.theme-kusakari:not(#never) .works__from {
  margin-block-start: 1rem;
  padding-block-start: 0.7rem;
  border-top: 1px dashed var(--c-border);
  color: var(--k-primary-dark);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

/* 流れ。番号を丸バッジで見せる */
html body.theme-kusakari:not(#never) .flow { border-radius: 0; }

html body.theme-kusakari:not(#never) .flow__step { padding: 1.25rem 1.25rem 1.25rem 4.25rem; }

html body.theme-kusakari:not(#never) .flow__step::before {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.125rem;
  block-size: 2.125rem;
  inset-inline-start: 1.25rem;
  inset-block-start: 1.25rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

html body.theme-kusakari:not(#never) .pending {
  border: 1px dashed var(--c-border);
  border-left: 3px solid var(--k-lime);
  border-radius: 0;
  background: var(--c-bg-soft);
  line-height: 1.9;
}

/* ---------------------------------------------------------------- FAQ */

html body.theme-kusakari:not(#never) .faq__item { padding: 1.15rem 0; border-bottom: 1px solid var(--c-border); }
html body.theme-kusakari:not(#never) .faq__item:first-child { border-top: 1px solid var(--c-border); }

html body.theme-kusakari:not(#never) .faq dt {
  position: relative;
  padding-inline-start: 2.35rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #232a1b;
}

html body.theme-kusakari:not(#never) .faq dt::before {
  content: 'Q';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  background: var(--c-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

html body.theme-kusakari:not(#never) .faq dd {
  position: relative;
  padding-inline-start: 2.35rem;
  color: var(--c-muted);
  line-height: 1.95;
}

html body.theme-kusakari:not(#never) .faq dd::before {
  content: 'A';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  border: 1px solid var(--c-border);
  color: var(--k-primary-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------- 対応エリア */

html body.theme-kusakari:not(#never) .areas { gap: 0.6rem; }

html body.theme-kusakari:not(#never) .areas li {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-inline-start: 3px solid var(--c-primary);
  padding: 0.55rem 0.95rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- 末尾の帯 */

html body.theme-kusakari:not(#never) .band {
  background: var(--c-primary);
  border-top: 4px solid var(--k-lime);
  padding-block: clamp(2.25rem, 6vw, 3.25rem);
}

html body.theme-kusakari:not(#never) .band h2 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

html body.theme-kusakari:not(#never) .band p { line-height: 1.95; }

html body.theme-kusakari:not(#never) .band .btn--ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

html body.theme-kusakari:not(#never) .band .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------------------------------------------------------- 追従CTA */

html body.theme-kusakari:not(#never) .cta-bar {
  border-top: 2px solid var(--c-primary);
  background: #fff;
  box-shadow: 0 -2px 12px rgba(35, 42, 27, 0.18);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html body.theme-kusakari:not(#never) .cta-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px は WCAG 2.2 SC 2.5.8 の実装下限。56px 取る */
  min-block-size: var(--k-bar);
  padding: 0.5rem 0.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

html body.theme-kusakari:not(#never) .cta-bar__item--tel { background: var(--c-primary); color: #fff; }

/* LINE の緑に白文字は 2.26:1 で不足するので、文字を濃色に倒す（6.75:1） */
html body.theme-kusakari:not(#never) .cta-bar__item--line { background: #06c755; color: #063017; }

html body.theme-kusakari:not(#never) .cta-bar__item--form { background: var(--c-accent); color: var(--k-ink); }

/* ---------------------------------------------------------------- フッター */

html body.theme-kusakari:not(#never) .site-footer {
  margin-top: 0;
  background: var(--c-footer-bg);
  color: var(--c-footer-fg);
  border-top: 4px solid var(--k-lime);
  padding-block: 2.75rem;
}

html body.theme-kusakari:not(#never) .site-footer__inner { max-width: var(--k-card); }

html body.theme-kusakari:not(#never) .site-footer__brand {
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

html body.theme-kusakari:not(#never) .site-footer__nav { gap: 0.5rem 1.5rem; }

html body.theme-kusakari:not(#never) .site-footer a { text-decoration: none; }
html body.theme-kusakari:not(#never) .site-footer a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- パンくず */

html body.theme-kusakari:not(#never) .breadcrumb {
  max-width: var(--k-card);
  margin: 0.75rem auto -0.5rem;
  padding-inline: 1rem;
  color: var(--c-muted);
}

/* ---------------------------------------------------------------- 印刷 */

@media print {
  html body.theme-kusakari:not(#never) .cta-bar,
  html body.theme-kusakari:not(#never) .site-header__nav { display: none; }
  html body.theme-kusakari:not(#never) #main { border: 0; margin: 0; }
}
