@charset "utf-8";

/* ==========================================================================
   ヤマ造園 デモサイト 共通スタイル
   配色・タイポグラフィ・レイアウトは 13_Web構成.md 第5章に準拠
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. トークン
   -------------------------------------------------------------------------- */
:root {
  /* 配色（13_Web構成.md 第5-1節。色相は1つも変更していない） */
  --c-base:        #FFFFFF;
  --c-base-sub:    #F7F2EA;
  --c-accent:      #659902; /* 面：帯・アイコン・チップの選択色 */
  --c-accent-text: #4F7A02; /* 文字・ボタン背景（白文字 5.2:1） */
  --c-accent-hover:#3F6202; /* ボタンホバー（白文字 7.0:1） */
  --c-sub:         #8C6239; /* 大見出し・区切り帯（白文字 5.4:1） */
  --c-sub-dark:    #6B4A2B; /* 小見出し・強調（白背景 7.9:1） */
  --c-text:        #2B2620; /* 本文（白背景 15.4:1） */
  --c-line:        #E3DACE; /* 罫線・カード枠 */

  /* レイアウト */
  --w-max:   1120px;
  --w-read:   720px;
  --pad-sec:   96px;
  --radius:     8px;
  --shadow:       0 2px 8px rgba(43, 38, 32, .08);
  --shadow-hover: 0 6px 20px rgba(43, 38, 32, .14);

  /* 書体 */
  --f-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* モーション（150-200ms / 400-700ms / 1000ms以上 の3種のみ） */
  --t-fast: 200ms;
  --t-mid:  700ms;
}

/* --------------------------------------------------------------------------
   2. リセット
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;      /* 本文 17px（15px未満を1か所も使わない） */
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-base);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }

a { color: var(--c-accent-text); }

/* キーボード操作のフォーカスは必ず見えるようにする */
:focus-visible {
  outline: 3px solid var(--c-accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* スクリーンリーダー専用 */
.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;
}

/* キーボードでの本文スキップ */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-accent-text); color: #fff;
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
  transition: top var(--t-fast) ease-out;
}
.skip-link:focus { top: 8px; }

/* --------------------------------------------------------------------------
   3. 見出し・本文
   -------------------------------------------------------------------------- */
h1, h2 { font-family: var(--f-mincho); font-weight: 500; line-height: 1.5; margin: 0; }
h3, h4 { font-family: var(--f-sans);   font-weight: 700; line-height: 1.6; margin: 0; }

h1 { font-size: 42px; color: var(--c-sub-dark); }
h2 { font-size: 32px; color: var(--c-sub-dark); }
h3 { font-size: 22px; color: var(--c-sub-dark); }
h4 { font-size: 19px; color: var(--c-sub-dark); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 19px; line-height: 1.9; }

/* 注記・キャプション（最小 15px） */
.note, figcaption, .ai-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-sub-dark);
}

/* AI生成画像の注記 */
.ai-note {
  margin: 8px 0 0;
  color: #6B6259;
}

/* セクション見出しの上に置く小さな帯（ライトブラウン） */
.sec-label {
  display: inline-block;
  font-size: 15px; font-weight: 700; letter-spacing: .08em;
  color: var(--c-sub);
  margin: 0 0 12px;
}
.sec-label::before {
  content: ""; display: inline-block;
  width: 28px; height: 2px; margin-right: 10px;
  background: var(--c-sub); vertical-align: middle;
}

/* 本文中のテキストリンク：下線が左から右へ伸びる（CSS・200ms） */
.prose a, .text-link {
  color: var(--c-accent-text);
  text-decoration: none;
  background-image: linear-gradient(var(--c-accent-text), var(--c-accent-text));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--t-fast) ease-out;
}
.prose a:hover, .text-link:hover { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   4. レイアウト
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: 24px; }
.readable { max-width: var(--w-read); }

.section { padding-block: var(--pad-sec); }
.section--tint { background: var(--c-base-sub); }
.section--paper {
  background-color: var(--c-base-sub);
  background-image: url("../images/bg-paper-texture.png");
  background-size: 420px;
  background-repeat: repeat;
}

.section-head { margin-bottom: 48px; }
.section-head p { max-width: var(--w-read); }

/* 区切り帯（ライトブラウン 8px） */
.divider { height: 8px; background: var(--c-sub); }

/* グリッド：3列 / 2列 / 1列 */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 画像＋テキストの左右分割 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* --------------------------------------------------------------------------
   5. ヘッダー（2段：上=ロゴ+電話+相談 ／ 下=ナビ7項目）
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 84px;
  transition: height var(--t-fast) ease-out;
}
.header__navrow { border-top: 1px solid var(--c-line); background: rgba(255,255,255,.97); }

/* スクロールで縮小（GSAPが .is-compact を付ける） */
.header.is-compact { background: rgba(255, 255, 255, .93); }  /* backdrop-filter は描画が不安定なため使わない */
.header.is-compact .header__inner { height: 60px; }
.header.is-compact .brand__sub { display: none; }
.header.is-compact .gnav a { padding: 8px 0; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--f-mincho); font-size: 22px; color: var(--c-sub-dark); line-height: 1.2; }
.brand__sub { display: block; font-family: var(--f-sans); font-size: 15px; color: var(--c-sub); }

.gnav ul { display: flex; gap: 28px; }
.gnav a {
  display: inline-block;
  font-size: 16px; font-weight: 700; color: var(--c-text);
  text-decoration: none; padding: 13px 0;
  white-space: nowrap;                 /* 折り返させない */
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--c-accent-text); border-bottom-color: var(--c-accent); }

.header__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }

/* モバイル用のメニュー開閉ボタン */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: none; border: 1px solid var(--c-line); border-radius: var(--radius);
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--c-sub-dark); }

/* --------------------------------------------------------------------------
   6. ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;                 /* タップ領域 44px 以上 */
  padding: 12px 26px;
  font-family: var(--f-sans); font-size: 17px; font-weight: 700; line-height: 1.4;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out,
              border-color var(--t-fast) ease-out;
}
.btn--primary { background: var(--c-accent-text); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); }

.btn--outline { background: #fff; color: var(--c-accent-text); border-color: var(--c-accent-text); }
.btn--outline:hover { background: var(--c-base-sub); }

.btn--tel { background: var(--c-sub-dark); color: #fff; }
.btn--tel:hover { background: #55371F; }

.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 60px; padding: 16px 36px; font-size: 19px; }
.btn--block { display: flex; width: 100%; }

.btn__sub { font-size: 15px; font-weight: 400; opacity: .92; }

/* 電話ボタン（ヘッダー内）は番号を大きく見せる */
.tel-btn { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 18px; line-height: 1.25; }
.tel-btn .num { font-size: 19px; }
.tel-btn .hours { font-size: 15px; font-weight: 400; }

/* --------------------------------------------------------------------------
   7. ヒーロー
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--c-base-sub); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: clamp(420px, 56vw, 620px); object-fit: cover; object-position: 70% 50%; }

/* 左半分に白のグラデーションを敷いて文字の可読性を確保する */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 32%, rgba(255,255,255,.35) 56%, rgba(255,255,255,0) 74%);
}
.hero__body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
}
.hero__box { max-width: 560px; }
.hero h1 { font-size: 42px; margin-bottom: 20px; color: var(--c-sub-dark); }
.hero__sub { font-size: 19px; margin-bottom: 8px; }
.hero__area { font-size: 15px; color: var(--c-sub-dark); margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Lottieの代替：葉がゆっくり舞う装飾（ヒーロー余白） */
.hero__leaves { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.leaf {
  position: absolute; width: 16px; height: 16px;
  background: var(--c-accent); opacity: .22;
  border-radius: 0 100% 0 100%;
  animation: leaf-fall 14s linear infinite;
}
.leaf:nth-child(1) { left: 12%; animation-duration: 15s; animation-delay: 0s; }
.leaf:nth-child(2) { left: 28%; animation-duration: 19s; animation-delay: 4s; width: 12px; height: 12px; }
.leaf:nth-child(3) { left: 44%; animation-duration: 17s; animation-delay: 8s; }
@keyframes leaf-fall {
  0%   { transform: translateY(-40px) rotate(0deg);    opacity: 0; }
  12%  { opacity: .22; }
  88%  { opacity: .22; }
  100% { transform: translateY(660px) rotate(320deg);  opacity: 0; }
}

/* スクロール誘導矢印（上下に揺れる） */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  animation: cue-bounce 1.6s ease-in-out infinite;
}
.scroll-cue svg { width: 100%; height: 100%; stroke: var(--c-sub-dark); }
@keyframes cue-bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* 下層ページのヘッダー */
.page-hero { position: relative; background: var(--c-base-sub); }
.page-hero img { width: 100%; height: 280px; object-fit: cover; object-position: 65% 50%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 34%, rgba(255,255,255,.2) 62%, rgba(255,255,255,0) 78%);
}
.page-hero__body { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { max-width: 520px; margin: 0; }

/* パンくず */
.crumbs { font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li::after { content: "／"; margin-left: 8px; color: var(--c-line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--c-sub-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. カード
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: box-shadow var(--t-fast) ease-out;
}
.card__media { overflow: hidden; }             /* 枠固定・中の画像だけ拡大 */
.card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 600ms ease-out;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { font-size: 16px; line-height: 1.8; }
.card__foot { margin-top: auto; padding-top: 16px; }

/* カード内のアイコン */
.card__icon { width: 64px; height: 64px; margin-bottom: 14px; }

/* リンクカード全体をクリック可能にする */
.card--link { text-decoration: none; color: inherit; }

/* --------------------------------------------------------------------------
   9. セレクター（主役層）「あなたの庭に、何を足しますか」
   -------------------------------------------------------------------------- */
.selector__chips {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  font-family: var(--f-sans); font-size: 17px; font-weight: 700; line-height: 1.4;
  color: var(--c-sub-dark);
  background: #fff;
  border: 2px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out,
              border-color var(--t-fast) ease-out;
}
.chip img { width: 26px; height: 26px; }
.chip:hover { border-color: var(--c-accent); }
.chip[aria-pressed="true"] {
  background: var(--c-accent);      /* 選択中は #659902・白文字 */
  border-color: var(--c-accent);
  color: #fff;
}
.chip[aria-pressed="true"] img { filter: brightness(0) invert(1); }

.selector__status { text-align: center; font-size: 15px; color: var(--c-sub-dark); margin-bottom: 20px; }

.selector__memo {
  max-width: var(--w-read); margin: 0 auto 28px;
  background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.selector__memo h3 { font-size: 19px; margin-bottom: 6px; }
.selector__memo p { margin: 0; }

.selector__actions { display: flex; justify-content: center; margin-top: 36px; }

/* 事例カードのタグ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 15px; font-weight: 700; color: var(--c-sub);
  background: var(--c-base-sub); border: 1px solid var(--c-line);
  border-radius: 4px; padding: 2px 8px;
}

/* --------------------------------------------------------------------------
   10. アコーディオン
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--c-line); }
.acc__item { border-bottom: 1px solid var(--c-line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 18px 8px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-sans); font-size: 19px; font-weight: 700; line-height: 1.6;
  color: var(--c-sub-dark); text-align: left;
}
.acc__btn .mark {
  margin-left: auto; flex-shrink: 0;
  width: 24px; height: 24px; position: relative;
}
.acc__btn .mark::before, .acc__btn .mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--c-accent-text);
  transform: translate(-50%, -50%);
  transition: opacity var(--t-fast) ease-out;
}
.acc__btn .mark::before { width: 16px; height: 2px; }
.acc__btn .mark::after  { width: 2px; height: 16px; }
.acc__btn[aria-expanded="true"] .mark::after { opacity: 0; }

.acc__panel { overflow: hidden; }
.acc__panel > div { padding: 0 8px 24px; }
.acc__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. 緊急ブロック（ハチ・害虫）
   -------------------------------------------------------------------------- */
.alert-block {
  position: relative;
  background-image: url("../images/service-hachi.png");
  background-size: cover; background-position: 70% 50%;
  border-radius: var(--radius); overflow: hidden;
}
.alert-block::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.3) 72%, rgba(255,255,255,0) 88%);
}
.alert-block__inner { position: relative; z-index: 2; padding: 48px; max-width: 640px; }
.alert-block__inner h2 { margin-bottom: 14px; }
.alert-block .btn { margin-top: 18px; }

/* --------------------------------------------------------------------------
   12. ステップ図（ご依頼から完成まで）
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.step { text-align: center; position: relative; }
.step__num {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-base-sub); border: 1px solid var(--c-line);
  border-radius: 50%;
  font-family: var(--f-mincho); font-size: 26px; color: var(--c-sub-dark);
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 16px; }
/* 円と円を結ぶ線 */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: calc(50% + 38px);
  width: calc(100% - 76px); height: 1px; background: var(--c-line);
}

/* --------------------------------------------------------------------------
   13. 樹種カード（写真なし）
   -------------------------------------------------------------------------- */
.tree-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 20px 22px 22px;
  transition: border-color var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.tree-card:hover { border-color: var(--c-sub); box-shadow: var(--shadow); }
.tree-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tree-card__type { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--c-sub-dark); }
.tree-card__type::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-sub); }
.tree-card__type--evergreen::before { background: var(--c-accent); }
.tree-card__h { font-size: 15px; color: var(--c-sub-dark); margin-left: auto; }
.tree-card h3 { font-family: var(--f-mincho); font-weight: 500; font-size: 22px; margin-bottom: 8px; }
.tree-card p { font-size: 16px; line-height: 1.8; margin: 0 0 12px; }
/* 樹高の目安バー */
.tree-bar { height: 6px; background: var(--c-base-sub); border-radius: 3px; overflow: hidden; }
.tree-bar span { display: block; height: 100%; background: var(--c-sub); border-radius: 3px; }

/* --------------------------------------------------------------------------
   14. 会社概要テーブル
   -------------------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; vertical-align: top;
  padding: 18px 20px; border-bottom: 1px solid var(--c-line);
  font-size: 17px; line-height: 1.9;
}
.table th { width: 200px; font-weight: 700; color: var(--c-sub-dark); background: var(--c-base-sub); }

/* --------------------------------------------------------------------------
   15. フォーム
   -------------------------------------------------------------------------- */
.form { max-width: var(--w-read); }
.field { margin-bottom: 26px; }
.field label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; color: var(--c-sub-dark); }
.field .help { font-size: 15px; color: #6B6259; margin: 0 0 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  font-family: var(--f-sans); font-size: 17px; line-height: 1.7; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { border-color: var(--c-accent-text); }
.field textarea { min-height: 190px; resize: vertical; }
.req { font-size: 15px; color: #fff; background: var(--c-sub); border-radius: 3px; padding: 1px 7px; margin-left: 8px; }

.file-box {
  border: 2px dashed var(--c-line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: #6B6259; font-size: 16px;
  background: var(--c-base-sub);
}

.demo-notice {
  background: #FFF8E7; border: 1px solid #E8D8A8; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 28px; font-size: 16px;
}

/* --------------------------------------------------------------------------
   16. CTAブロック / フッター
   -------------------------------------------------------------------------- */
.cta-block {
  background-color: var(--c-base-sub);
  background-image: url("../images/bg-paper-texture.png");
  background-size: 420px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  text-align: center;
}
.cta-block h2 { margin-bottom: 12px; }
.cta-block__btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 26px; }

.footer { background: var(--c-sub-dark); color: #F0E7DC; padding-block: 56px 32px; }
.footer a { color: #F0E7DC; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__cols li { margin-bottom: 8px; font-size: 16px; }
.footer__info { font-size: 16px; line-height: 1.9; }
.footer__tel { font-family: var(--f-mincho); font-size: 26px; color: #fff; display: inline-block; margin-top: 6px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 15px; line-height: 1.8;
}
.footer__demo { color: #EFE3D2; margin-bottom: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   17. 基礎層アニメーション（JSがない場合も内容は必ず見える）
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; }
/* JSが動く環境でのみ初期状態を隠す */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* --------------------------------------------------------------------------
   18. レスポンシブ
   -------------------------------------------------------------------------- */
@media (max-width: 1119px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gnav ul { gap: 18px; }
  .gnav a { font-size: 15px; }
  .brand__sub { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header__navrow { display: none; }
  /* 幅が足りないため、ヘッダーは「電話」と「メニュー」だけに絞る。
     相談導線はメニュー内・フッター・各ページ末尾のCTAから2タップ以内で届く */
  .header__inner { gap: 12px; }
  .header__cta .btn--primary { display: none; }
  .tel-btn { padding: 9px 14px; }
  .tel-btn .num { font-size: 17px; white-space: nowrap; }
  .tel-btn .hours { display: none; }
  .brand__name { font-size: 19px; }
  .header__navrow.is-open { display: block; }
  .gnav { padding: 8px 0 16px; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { display: block; padding: 15px 0; border-bottom: 1px solid var(--c-line); border-bottom-width: 1px; white-space: normal; }
  .gnav a[aria-current="page"] { border-bottom-color: var(--c-line); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 767px) {
  :root { --pad-sec: 56px; }
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .hero h1 { font-size: 30px; }
  .hero__sub { font-size: 17px; }
  .hero__media img { height: 520px; object-position: 62% 50%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 46%, rgba(255,255,255,.55) 100%);
  }
  .hero__body { align-items: flex-start; padding-top: 40px; }
  .page-hero img { height: 200px; }
  .page-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 60%, rgba(255,255,255,.6) 100%);
  }
  .grid, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .alert-block__inner { padding: 28px 22px; }
  .alert-block::before {
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 70%, rgba(255,255,255,.75) 100%);
  }
  .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; }
  /* 768px未満：チップは2列グリッドで通常表示（ピン留めは無効） */
  .selector__chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .chip { justify-content: flex-start; padding: 10px 14px; font-size: 16px; }
  .btn { width: 100%; }
  .hero__cta .btn, .cta-block__btns .btn { width: 100%; }
  .tel-btn { width: auto; }
}

/* --------------------------------------------------------------------------
   19. prefers-reduced-motion：全アニメーションを無効化
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .leaf, .scroll-cue { animation: none !important; }
  .card:hover .card__media img { transform: none; }
}

/* 印刷 */
@media print {
  .header, .footer, .scroll-cue, .cta-block { display: none; }
}
