@charset "UTF-8";
/* ==========================================================================
   池田モータース｜リニューアル提案デモ
   カラーは 13_Web構成.md 第5章（G5選定シート）を正とする。色相は変更しない。
   ========================================================================== */

/* ---------- トークン ---------- */
:root {
  --white:      #FFFFFF;
  --tint:       #F1F7E6; /* ベース補助 */
  --green:      #5A8126; /* アクセント（面・文字） 白文字と 4.56:1 */
  --green-dark: #47661E; /* ホバー・押下 */
  --lime:       #8CC63F; /* 装飾のみ。文字色には使わない */
  --red:        #D5342E; /* 注意喚起のみ */
  --ink:        #1F1F1F;
  --sub:        #555555;
  --line:       #E3E8DA;

  --wrap: 1120px;
  --pad-y: 96px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);

  --f-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --f-sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --header-h: 84px;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 日本語の折り返し ----------
   単語の途中で改行されないよう、文節（フレーズ）単位で折り返す。
   auto-phrase 未対応のブラウザでは strict の禁則処理だけが効く。 */
:where(h1, h2, h3, h4, p, li, td, th, figcaption, dd, dt, label, .btn, a) {
  line-break: strict;
  word-break: auto-phrase;
}
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p, li, td, figcaption) { text-wrap: pretty; }
/* 数値の範囲など、途中で折り返したくない語 */
.nb { white-space: nowrap; }

/* ---------- 共通パーツ ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
/* 固定ヘッダーぶん、ページ内リンクの着地位置を下げる */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.section { padding-block: var(--pad-y); }
.section--tint { background: var(--tint); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
  text-decoration: none; transition: top 200ms ease-out;
}
.skip-link:focus { top: 0; }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 見出し */
.h-lead {
  font-family: var(--f-round); font-weight: 700; line-height: 1.45;
  font-size: clamp(26px, 3.4vw, 36px); letter-spacing: .01em;
  color: var(--ink);
}
.h-sub {
  font-family: var(--f-sans); font-weight: 700; line-height: 1.6;
  font-size: clamp(20px, 2.1vw, 26px);
}
.h-small { font-family: var(--f-sans); font-weight: 700; font-size: 20px; line-height: 1.6; }

.section-head { margin-bottom: 44px; }
.section-head .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--green);
  letter-spacing: .12em; margin-bottom: 10px;
}
.section-head .label::before {
  content: ""; width: 26px; height: 2px; background: var(--lime);
}
.section-head p { margin-top: 16px; max-width: 62ch; }

.note { font-size: 14px; line-height: 1.8; color: var(--sub); }
.note--warn { color: var(--red); font-weight: 700; }
.credit { font-size: 14px; color: var(--sub); margin-top: 8px; }

/* リンク下線（左から右へ・200ms） */
.link-u {
  position: relative; text-decoration: none; font-weight: 700;
  display: inline-block;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 200ms ease-out;
}
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--green-dark); }
.btn--ghost { background: #fff; color: var(--green); border-color: var(--green); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--tint); }
.btn--lg { min-height: 64px; font-size: 19px; padding: 16px 34px; }
.btn .ic { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* 写真枠：ホバーズーム（枠固定・中身のみ1.05倍／0.6秒） */
.ph { overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.ph img { width: 100%; transition: transform 600ms ease-out; }
.ph--3x2 img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.ph:hover img, a:hover .ph img, .card:hover .ph img { transform: scale(1.05); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header.is-compact { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.header__inner {
  height: 100%; display: flex; align-items: center; gap: 20px;
  width: min(100% - 32px, 1240px); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; min-height: 44px; padding: 4px 2px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--f-round); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .02em; }
.brand__sub { display: block; font-family: var(--f-sans); font-size: 11px; color: var(--sub); letter-spacing: .06em; font-weight: 400; }

.gnav { margin-left: auto; }
.gnav ul { display: flex; align-items: center; gap: 4px; }
.gnav a {
  display: block; padding: 10px 12px; font-size: 15px; font-weight: 700;
  color: var(--ink); text-decoration: none; border-radius: 8px;
  transition: color 200ms ease-out, background-color 200ms ease-out;
}
.gnav a:hover { color: var(--green); background: var(--tint); }
.gnav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 8px 8px 0 0; }

.header__tel {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  min-height: 44px; transition: background-color 200ms ease-out;
}
.header__tel:hover, .header__tel:focus-visible { background: var(--green-dark); }
.header__tel .ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
.header__tel .num { font-family: var(--f-round); font-size: 17px; letter-spacing: .02em; }

.navtoggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
}
.navtoggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform 200ms ease-out, opacity 200ms ease-out; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.90) 38%, rgba(255,255,255,.42) 66%, rgba(255,255,255,.20) 100%);
}
.hero__inner { padding-block: clamp(56px, 8vw, 104px); }
.hero__body { max-width: 660px; }
.hero h1 {
  font-family: var(--f-round); font-weight: 700;
  font-size: clamp(28px, 4.6vw, 42px); line-height: 1.4; letter-spacing: .01em;
}
.hero h1 .mk { color: var(--green); }
.hero__lead { margin-top: 20px; max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__imgnote { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--sub); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 4px; }
.hero--sub .hero__inner { padding-block: clamp(44px, 6vw, 78px); }

.crumbs { font-size: 14px; color: var(--sub); margin-bottom: 14px; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }

/* ---------- 症状カード ---------- */
.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.symptom {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  min-height: 104px; will-change: transform;
}
.symptom__ic { width: 52px; height: 52px; flex: none; }
.symptom > span { display: block; }
.symptom__t { display: block; font-weight: 700; font-size: 17px; line-height: 1.6; }
.symptom__go { display: block; font-size: 13px; color: var(--green); font-weight: 700; margin-top: 2px; }

/* ---------- 主役層：ピン留めストーリー ---------- */
.story { background: var(--tint); }
.story__head { text-align: center; margin-bottom: 40px; }
.story__title { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 警告灯マーク（Lottieの代替＝CSSアニメーション） */
.lamp { width: 46px; height: 46px; flex: none; }
.lamp path { fill: var(--red); opacity: .16; }
.lamp.is-on path { animation: lampBlink 2400ms ease-out 1 forwards; }
@keyframes lampBlink {
  0%   { opacity: .16; }
  18%  { opacity: 1; }
  62%  { opacity: 1; }
  100% { opacity: .16; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp path { opacity: 1; }
  .lamp.is-on path { animation: none; }
}

/* 既定は「縦積み」。JS有効・768px以上・reduced-motion無しのときだけ
   .is-pinned が付与されてピン留めレイアウトに切り替わる。 */
.story__pin { display: block; }

.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; padding: 6px 0; }
.steps .txt { display: none; }
.steps .dot {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 2px solid var(--lime); background: #fff; color: var(--sub);
  display: grid; place-items: center; font-family: var(--f-round); font-weight: 700; font-size: 15px;
}
.steps .txt { font-size: 15px; font-weight: 700; color: var(--sub); line-height: 1.6; padding-top: 4px; }
.steps li.is-done .dot { background: var(--lime); border-color: var(--lime); color: #fff; }
.steps li.is-active .dot { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.is-active .txt { color: var(--ink); }

.stage { position: relative; }
.panel {
  position: relative; opacity: 1; margin-bottom: 18px;
  border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.panel:last-child { margin-bottom: 0; }
.panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ピン留めモード（JSが付与） */
@media (min-width: 768px) {
  .story__pin.is-pinned { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; }
  .story__pin.is-pinned .steps { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; margin-bottom: 0; }
  .story__pin.is-pinned .steps .txt { display: block; }
  .story__pin.is-pinned .stage {
    aspect-ratio: 4 / 3; background: #000; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
  }
  /* 段階の切替。出現＝1000ms ease-out ／ 消失＝400ms ease-in。
     パネルは z-index 順に重なっており、実際に見た目が動くのは境目の1枚だけ。 */
  .story__pin.is-pinned .panel {
    position: absolute; inset: 0; margin: 0;
    border-radius: 0; box-shadow: none;
    opacity: 0; transition: opacity 400ms ease-in;
  }
  .story__pin.is-pinned .panel.is-shown { opacity: 1; transition: opacity 1000ms ease-out; }
  /* 段階を飛ばしたときは、境目の1枚以外は動かさず即座に確定させる */
  .story__pin.is-pinned .panel.no-trans { transition: none; }
  .story__pin.is-pinned .panel img { height: 100%; aspect-ratio: auto; }
}
.panel__cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.panel__no { display: block; font-family: var(--f-round); font-weight: 700; font-size: 14px; color: #fff; opacity: .85; letter-spacing: .1em; }
.panel__t { display: block; font-family: var(--f-round); font-weight: 700; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.5; margin-top: 2px; }
.panel__d { display: block; font-size: 15px; line-height: 1.8; margin-top: 8px; color: rgba(255,255,255,.92); max-width: 52ch; }
.panel__note { position: absolute; right: 10px; top: 8px; font-size: 12px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 4px; }

/* 料金の帯 */
.fee {
  margin-top: 44px; background: #fff; border: 2px solid var(--lime);
  border-radius: var(--radius); padding: 28px 32px;
}
.fee__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 36px; }
.fee__label { font-weight: 700; font-size: 17px; }
.fee__item { display: flex; align-items: baseline; gap: 8px; }
.fee__item .k { font-size: 15px; color: var(--sub); }
.fee__num { font-family: var(--f-round); font-weight: 700; font-size: clamp(28px, 3vw, 36px); color: var(--green); line-height: 1.2; }
.fee__tax { font-size: 14px; color: var(--sub); }
.fee .note { margin-top: 14px; }

/* ---------- カード類 ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  will-change: transform;
}
.card .ph { border-radius: 0; aspect-ratio: 4 / 3; }
.card .ph img { height: 100%; object-fit: cover; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body .credit { margin-top: 0; }
.card__go { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 15px; color: var(--green); }

/* 記事カード */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); will-change: transform;
}
.post__n { font-family: var(--f-round); font-weight: 700; color: var(--lime); font-size: 15px; letter-spacing: .1em; }
.post__t { font-weight: 700; font-size: 18px; line-height: 1.6; }
.post__x { font-size: 15px; color: var(--sub); line-height: 1.8; }

/* 考え方 */
.policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.policy__item { background: rgba(255,255,255,.94); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.policy__item h3 { font-family: var(--f-round); font-weight: 700; font-size: 21px; line-height: 1.5; margin-bottom: 10px; }
.policy__item--warn { border-top: 4px solid var(--red); }
.policy__item--warn h3 { color: var(--red); }

.bg-photo { position: relative; isolation: isolate; }
.bg-photo__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bg-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.bg-photo__img::after { content: ""; position: absolute; inset: 0; background: rgba(241,247,230,.9); }

/* ---------- 表 ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl caption { text-align: left; font-weight: 700; margin-bottom: 10px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; font-size: 16px; }
.tbl thead th { background: var(--tint); font-weight: 700; }
.tbl th[scope="row"] { background: #fbfdf7; width: 32%; font-weight: 700; }
.tbl .price { font-family: var(--f-round); font-weight: 700; font-size: 22px; color: var(--green); white-space: nowrap; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- アコーディオン ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc + .acc { margin-top: 14px; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 0; padding: 20px 22px; text-align: left; cursor: pointer;
  font-weight: 700; font-size: 17px; line-height: 1.6; min-height: 64px;
  transition: background-color 200ms ease-out;
}
.acc__btn:hover { background: var(--tint); }
.acc__btn .mk { width: 18px; height: 18px; flex: none; position: relative; }
.acc__btn .mk::before, .acc__btn .mk::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--green);
  transform: translateY(-50%); transition: transform 200ms ease-out;
}
.acc__btn .mk::after { transform: translateY(-50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .mk::after { transform: translateY(-50%) rotate(0deg); }
.acc__panel { padding: 0 22px 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.acc__panel[hidden] { display: none; }

/* ---------- 対応エリア・アクセス ----------
   対応エリア → 所在地の情報 → 「写真」と「地図」を左右同じ高さで並べる。 */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-top: 32px; }
.access figure { margin: 0; }
.address { font-size: 17px; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.areas li {
  border: 1px solid var(--lime); border-radius: 999px; padding: 6px 16px;
  font-size: 15px; font-weight: 700; background: #fff;
}
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { border-bottom: 1px solid var(--line); padding: 13px 4px; text-align: left; font-size: 16px; vertical-align: top; }
.info th { width: 30%; font-weight: 700; white-space: nowrap; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
/* 写真と同じ 3:2 にして、左右の高さをそろえる */
.map iframe { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; border: 0; }

.tel-block { text-align: center; }
.tel-block .k { font-size: 15px; font-weight: 700; color: var(--sub); letter-spacing: .08em; }
.tel-num {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 2px; text-decoration: none; color: var(--green);
  font-family: var(--f-round); font-weight: 700; font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.25; letter-spacing: .02em;
}
.tel-num .ic { width: .78em; height: .78em; fill: currentColor; }
.tel-num:hover { color: var(--green-dark); }

/* ---------- 最終CTA ---------- */
.cta-final { background: var(--green); color: #fff; }
.cta-final .h-lead, .cta-final .k { color: #fff; }
.cta-final .tel-num { color: #fff; }
.cta-final .tel-num:hover { color: var(--tint); }
.cta-final .note { color: rgba(255,255,255,.86); }
.cta-final__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-final .btn--ghost { background: #fff; color: var(--green); border-color: #fff; }
.cta-final .btn--ghost:hover { background: var(--tint); }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* ---------- フッター ---------- */
.footer { background: #2A2E26; color: #E8EBE3; padding-block: 56px 40px; }
.footer a { color: #E8EBE3; text-decoration: none; }
.footer a:hover { color: var(--lime); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.footer__name { font-family: var(--f-round); font-weight: 700; font-size: 21px; margin-bottom: 12px; }
.footer__addr { font-size: 15px; line-height: 1.9; color: #C9CFC1; }
.footer h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--lime); }
.footer nav li + li { margin-top: 2px; }
.footer nav a { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.footer__addr a { display: inline-block; min-height: 30px; }
.footer__demo {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: 13px; line-height: 1.9; color: #B9C0B0;
}
.footer__copy { margin-top: 14px; font-size: 13px; color: #9AA292; }

/* ---------- スマートフォン固定バー ---------- */
.mobilebar { display: none; }

/* ---------- フォーム（見た目のみ） ---------- */
.form { display: grid; gap: 22px; max-width: 720px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.req { color: var(--red); font-size: 14px; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 17px;
  border: 1px solid #C8CFBE; border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color 200ms ease-out;
}
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 168px; resize: vertical; }
.field .hint { font-size: 14px; color: var(--sub); margin-top: 6px; }

/* ---------- 404 ---------- */
.err { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.err__code { font-family: var(--f-round); font-weight: 700; font-size: clamp(64px, 14vw, 128px); color: var(--lime); line-height: 1; }
.err__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- 基礎層（フェードイン） ----------
   既定は「見えている」状態。main.js が実際に動いたときだけ html.js-anim が付き、
   まだ表示されていない .reveal を隠す。CDNの読み込みに失敗しても本文は消えない。 */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal:not(.is-revealed) { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal:not(.is-revealed) { opacity: 1; transform: none; }
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1080px) {
  .gnav a { padding: 10px 8px; font-size: 14px; }
  .brand__sub { display: none; }
}

@media (max-width: 900px) {
  .symptoms { grid-template-columns: repeat(2, 1fr); }
  .cards3, .posts, .policy { grid-template-columns: 1fr 1fr; }
  .access { grid-template-columns: 1fr; }
  .story__pin { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 767px) {
  :root { --pad-y: 64px; --header-h: 68px; }

  body { padding-bottom: 76px; } /* 固定バーぶん */

  .header__inner { gap: 10px; width: calc(100% - 24px); }
  .navtoggle { display: block; margin-left: 0; order: 3; width: 44px; height: 44px; flex: none; }
  /* 電話ボタンは常時表示。狭い幅ではアイコンのみにして収める（aria-labelで名前を補う） */
  .header__tel { order: 2; margin-left: auto; padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
  .header__tel .lbl, .header__tel .num { display: none; }
  .header__tel .ic { width: 20px; height: 20px; }
  .brand__name { font-size: 17px; }
  .brand__mark { width: 30px; height: 30px; }

  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    max-height: calc(100dvh - var(--header-h) - 76px); overflow-y: auto;
  }
  .gnav[hidden] { display: none; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 16px; }
  .gnav a { padding: 15px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnav a[aria-current="page"] { box-shadow: none; background: var(--tint); }

  .symptoms, .cards3, .posts, .policy { grid-template-columns: 1fr; }
  .symptoms { gap: 14px; }
  .cards3, .posts { gap: 20px; }

  .hero__bg::after { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 55%, rgba(255,255,255,.72) 100%); }
  .hero__cta .btn { width: 100%; }

  .fee { padding: 22px 20px; }
  .fee__row { gap: 10px 22px; }

  .info th { width: 34%; white-space: normal; }
  .tbl th[scope="row"] { width: 38%; }

  /* 主役層：768px未満はピン留めせず縦積み（既定レイアウトのまま） */
  .story__pin { display: block !important; }
  .panel { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; margin-bottom: 18px !important; }
  .panel__cap { padding: 20px 18px 18px; }

  .footer__top { grid-template-columns: 1fr; gap: 26px; }

  /* 固定バー */
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(0,0,0,.1);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobilebar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none;
  }
  .mobilebar .b1 { background: var(--green); color: #fff; }
  .mobilebar .b2 { background: #fff; color: var(--green); border: 2px solid var(--green); }
  .mobilebar .ic { width: 20px; height: 20px; fill: currentColor; }
}

@media (max-width: 420px) {
  .steps .dot { width: 30px; height: 30px; font-size: 14px; }
  .symptom { padding: 16px; gap: 12px; min-height: 88px; }
  .symptom__ic { width: 44px; height: 44px; }
}

/* ---------- 印刷 ---------- */
@media print {
  .header, .mobilebar, .hero__bg, .cta-final { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  main { padding-top: 0; }
}
