@charset "UTF-8";

/* ============================================================
   株式会社タナカ築庭 デモサイト
   カラーは 13_Web構成.md 第5章（G5選定シート）に準拠。色相は変更しない。
   ============================================================ */

:root {
  --c-base:        #4A6D8C; /* ベース（面）  白文字 5.37:1 */
  --c-base-dark:   #35516B; /* ベース濃（面）白文字 8.25:1 */
  --c-base-light:  #EBF0F5; /* ベース淡（地） */
  --c-accent:      #F2C200; /* アクセント（面）黒系文字 12.5:1 */
  --c-accent-text: #907300; /* アクセント（文字）白背景 4.53:1 */
  --c-white:       #FFFFFF;
  --c-text:        #1F2933;
  --c-text-sub:    #4B5563;
  --c-line:        #D6DEE7;

  --wrap: 1120px;
  --gutter: 24px;
  --section: 96px;

  --shadow-1: 0 1px 3px rgba(31, 41, 51, .08), 0 6px 16px rgba(31, 41, 51, .06);
  --shadow-2: 0 4px 10px rgba(31, 41, 51, .12), 0 14px 34px rgba(31, 41, 51, .12);

  --header-h: 84px;
  --header-h-sm: 60px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-white);
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-base-dark); }
ul, ol { padding-left: 1.4em; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 .6em; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: 34px; }
h2 { font-size: 27px; }
h3 { font-size: 20px; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- 共通レイアウト ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--c-base-light); }
.section--white { background: var(--c-white); }
.section__lead { max-width: 46em; color: var(--c-text-sub); }

.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: .12em;
  color: var(--c-accent-text); margin: 0 0 10px;
}
.section__head { margin-bottom: 40px; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* 画像内の文字は使わない。装飾の区切りはCSSで引く */
.rule { height: 4px; width: 56px; background: var(--c-accent); border-radius: 2px; margin: 0 0 24px; }
.center .rule { margin-inline: auto; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 26px; border-radius: 6px;
  font-size: 16px; font-weight: 700; line-height: 1.4;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
  text-align: center;
}
.btn--primary { background: var(--c-accent); color: #1F2933; border-color: var(--c-accent); }
.btn--primary:hover { background: #ffd42e; }
.btn--solid { background: var(--c-base); color: var(--c-white); border-color: var(--c-base); }
.btn--solid:hover { background: var(--c-base-dark); border-color: var(--c-base-dark); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.85); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--outline { background: var(--c-white); color: var(--c-base-dark); border-color: var(--c-base); }
.btn--outline:hover { background: var(--c-base-light); }
.btn--wide { width: 100%; max-width: 420px; }
.btn__sub { display: block; font-size: 13px; font-weight: 500; opacity: .85; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

:where(a, button, [tabindex], summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--c-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--c-base);
  color: var(--c-white);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .2s ease-out, background-color .2s ease-out;
}
.header.is-small { height: var(--header-h-sm); background: rgba(74, 109, 140, .93); }
.header__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  width: 100%; display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--c-white); flex: 0 0 auto; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand__sub { font-size: 12px; letter-spacing: .08em; opacity: .85; white-space: nowrap; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; flex-wrap: wrap; gap: 0 2px; list-style: none; margin: 0; padding: 0; }
.gnav a {
  display: block; padding: 8px 10px; border-radius: 4px;
  color: var(--c-white); text-decoration: none; font-size: 15px; font-weight: 500;
  white-space: nowrap; transition: background-color .2s ease-out;
}
.gnav a:hover { background: rgba(255,255,255,.14); }
.gnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-accent); }
.header__tel {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  background: var(--c-accent); color: #1F2933; text-decoration: none;
  padding: 8px 16px; border-radius: 6px; line-height: 1.25;
  transition: background-color .2s ease-out;
}
.header__tel:hover { background: #ffd42e; }
.header__tel b { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.header__tel span { font-size: 11px; font-weight: 500; }
.header.is-small .header__tel { padding: 5px 14px; }
.header.is-small .header__tel b { font-size: 15px; }
.header.is-small .brand__sub { display: none; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-accent); color: #1F2933; padding: 10px 16px; border-radius: 0 0 6px 6px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- ファーストビュー ---------- */
.hero { position: relative; background: var(--c-base-dark); color: var(--c-white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(53,81,107,.90) 0%, rgba(53,81,107,.74) 46%, rgba(53,81,107,.30) 100%);
}
.hero__inner { position: relative; padding-block: 104px 92px; }
.hero__body { max-width: 40em; }
.hero h1 { font-size: 40px; line-height: 1.45; margin-bottom: 20px; text-shadow: 0 2px 14px rgba(0,0,0,.28); }
.hero__sub { font-size: 18px; margin-bottom: 28px; }
.hero .btn-row { margin-bottom: 34px; }

.trustbar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.trustbar li {
  position: relative; padding: 2px 20px; font-size: 15px; font-weight: 500;
  border-left: 1px solid rgba(255,255,255,.4);
}
.trustbar li:first-child { border-left: 0; padding-left: 0; }
.trustbar b { color: var(--c-accent); font-weight: 700; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.9);
}
.scroll-cue::after {
  content: ""; width: 12px; height: 12px;
  border-right: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent);
  transform: rotate(45deg); animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .55; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ---------- 下層ページ ヒーロー ---------- */
.pagehero { position: relative; background: var(--c-base-dark); color: var(--c-white); overflow: hidden; }
.pagehero__media { position: absolute; inset: 0; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(53,81,107,.92) 0%, rgba(53,81,107,.70) 62%, rgba(53,81,107,.42) 100%);
}
.pagehero__inner { position: relative; padding-block: 66px 58px; }
.pagehero h1 { margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.28); }
.pagehero p { max-width: 44em; margin: 0; }

.breadcrumb { background: var(--c-base-light); font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 0; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: var(--c-text-sub); }
.breadcrumb a { color: var(--c-base-dark); }

/* ---------- 主役層：ドラッグ比較 ---------- */
.compare-section { background: var(--c-base-light); }
.compare-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }

.compare {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-2);
  touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  background: var(--c-base-dark);
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__img--y3 { z-index: 1; }
.compare__img--y1 { z-index: 2; }
.compare__img--y0 { z-index: 3; }

.compare__handle {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 5;
  width: 3px; margin-left: -1.5px; background: var(--c-white);
  box-shadow: 0 0 0 1px rgba(31,41,51,.28);
}
.compare__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-white); box-shadow: var(--shadow-2);
  display: grid; place-items: center; color: var(--c-base-dark);
}
.compare__grip::before, .compare__grip::after {
  content: ""; position: absolute; width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.compare__grip::before { transform: rotate(-135deg); margin-left: -14px; }
.compare__grip::after  { transform: rotate(45deg);   margin-left: 14px; }
.compare:focus-visible { outline: 3px solid var(--c-accent-text); outline-offset: 4px; }

.compare__labels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  list-style: none; margin: 18px 0 0; padding: 0; text-align: center;
}
.compare__labels li { font-size: 15px; font-weight: 700; color: var(--c-text-sub); }
.compare__labels span { display: inline-block; padding-bottom: 6px; border-bottom: 4px solid transparent; transition: color .2s ease-out, border-color .2s ease-out; }
.compare__labels li.is-active span { color: var(--c-text); border-bottom-color: var(--c-accent); }
.compare__hint { font-size: 14px; color: var(--c-text-sub); margin-top: 14px; text-align: center; }

/* ---------- カード ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-1); will-change: transform;
}
.card--link { text-decoration: none; color: inherit; }
.card__body { padding: 24px; flex: 1 1 auto; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: 16px; color: var(--c-text-sub); }
.card__more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--c-accent-text); font-size: 15px; }
.card__more::after { content: " →"; }
.card__icon { width: 96px; height: 96px; margin: 26px auto 0; }
.card__icon img { width: 100%; height: 100%; object-fit: contain; }

/* 写真のホバーズーム（枠固定・中身1.05倍・0.6秒） */
.zoom { overflow: hidden; }
.zoom img { transition: transform .6s ease-out; }
.card:hover .zoom img, .zoom:hover img { transform: scale(1.05); }

.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-43 img { width: 100%; height: 100%; object-fit: cover; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-169 img { width: 100%; height: 100%; object-fit: cover; }

/* AI生成画像の注記 */
.ai-note { font-size: 12px; line-height: 1.6; color: var(--c-text-sub); margin: 6px 0 0; }
.card .ai-note { padding: 6px 24px 0; }

/* ---------- 数字 ---------- */
.stats { position: relative; color: var(--c-white); overflow: hidden; background: var(--c-base-dark); }
.stats__media { position: absolute; inset: 0; }
.stats__media img { width: 100%; height: 100%; object-fit: cover; }
.stats__media::after { content: ""; position: absolute; inset: 0; background: rgba(53, 81, 107, .86); }
.stats__inner { position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat__num { font-size: 56px; font-weight: 700; line-height: 1.1; color: var(--c-accent); }
.stat__num small { font-size: 22px; margin-left: 4px; }
.stat__label { font-size: 15px; margin: 8px 0 0; }

/* ---------- タイムライン ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--c-line); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-base-light);
}
.section--white .timeline li::before { box-shadow: 0 0 0 4px var(--c-white); }
.timeline__year { display: block; font-size: 14px; font-weight: 700; color: var(--c-accent-text); letter-spacing: .04em; }
.timeline__title { display: block; font-size: 18px; font-weight: 700; margin-top: 2px; }
.timeline__note { display: block; font-size: 15px; color: var(--c-text-sub); margin-top: 2px; }

/* ---------- バッジ ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-accent); color: #1F2933;
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.badge img { width: 26px; height: 26px; }

/* ---------- 交互ブロック ---------- */
.alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.alt + .alt { margin-top: 72px; }
.alt__media img { border-radius: 10px; }
.alt--rev .alt__media { order: 2; }
.alt__body h3 { font-size: 24px; }
.alt__body ul { color: var(--c-text-sub); font-size: 16px; }

/* ---------- 表 ---------- */
.table-plain th, .table-plain td { padding: 16px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; font-size: 16px; }
.table-plain th { width: 200px; font-weight: 700; color: var(--c-base-dark); background: var(--c-base-light); }
.table-plain caption { text-align: left; font-weight: 700; padding-bottom: 12px; }

.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; }
.history b { color: var(--c-base-dark); font-weight: 700; }

/* ---------- アコーディオン ---------- */
.acc { border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-white); overflow: hidden; }
.acc + .acc { margin-top: 14px; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 18px; color: var(--c-text); text-align: left;
  transition: background-color .2s ease-out;
}
.acc__btn:hover { background: var(--c-base-light); }
.acc__mark { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc__mark::before, .acc__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--c-accent-text);
  transition: transform .2s ease-out;
}
.acc__mark::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.acc__mark::after  { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.acc__btn[aria-expanded="true"] .acc__mark::after { transform: translate(-50%, -50%) scaleY(0); }
.acc__panel { padding: 0 24px 24px; }
.acc__panel[hidden] { display: none; }

/* ---------- リスト各種 ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 0 0 10px 26px; font-size: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px;
  border-left: 2px solid var(--c-accent-text); border-bottom: 2px solid var(--c-accent-text);
  transform: rotate(-45deg);
}
.worklist { list-style: none; padding: 0; margin: 0; }
.worklist li { padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.worklist .client { color: var(--c-text-sub); font-size: 15px; white-space: nowrap; }

.qual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.qual-grid dl { margin: 0; }
.qual-grid div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 16px; }
.qual-grid dt { margin: 0; }
.qual-grid dd { margin: 0; font-weight: 700; white-space: nowrap; }

/* 本文中のテキストリンク（左から右へ下線） */
.tlink { position: relative; color: var(--c-base-dark); text-decoration: none; font-weight: 700; }
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--c-accent-text); transform: scaleX(0); transform-origin: left center;
  transition: transform .2s ease-out;
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }

/* ---------- CTA帯 ---------- */
.cta { background: var(--c-base); color: var(--c-white); }
.cta h2 { font-size: 25px; }
.cta p { color: rgba(255,255,255,.92); }
.cta--accent { background: var(--c-accent); color: #1F2933; }
.cta--accent p { color: #384451; }
.telblock { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.telblock__num { font-size: 34px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.telblock__note { font-size: 14px; }

/* ---------- フォーム（見た目のみ） ---------- */
.form { display: grid; gap: 22px; max-width: 720px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 16px; }
.field .req { color: #B3261E; font-size: 13px; margin-left: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px;
  border: 1px solid #9AA7B4; border-radius: 6px; background: var(--c-white); color: var(--c-text);
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-base); box-shadow: 0 0 0 3px rgba(74,109,140,.2); outline: none;
}
.field .help { font-size: 14px; color: var(--c-text-sub); }
.formnote { background: var(--c-base-light); border-left: 4px solid var(--c-accent); padding: 16px 20px; font-size: 15px; border-radius: 0 6px 6px 0; }

/* ---------- フッター ---------- */
.footer { background: var(--c-base-dark); color: var(--c-white); padding-block: 56px 28px; }
.footer a { color: var(--c-white); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: 18px; margin-bottom: 14px; }
.footer h3 { font-size: 14px; letter-spacing: .1em; color: var(--c-accent); margin-bottom: 12px; }
.footer address { font-style: normal; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.92); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; font-size: 15px; }
.footer li a { text-decoration: none; }
.footer li a:hover { text-decoration: underline; }
.footer__tel { display: inline-block; font-size: 24px; font-weight: 700; text-decoration: none; margin-top: 4px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.24); }
.footer__demo {
  background: rgba(255,255,255,.10); border-left: 4px solid var(--c-accent);
  padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.85; margin: 0 0 18px;
}
.footer__copy { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }

/* ---------- 404 ---------- */
.errorpage { padding-block: 120px; text-align: center; }
.errorpage .code { font-size: 72px; font-weight: 700; color: var(--c-base-light); line-height: 1; margin-bottom: 8px; }

/* ---------- 基礎層（GSAPで解除） ----------
   初期の非表示は <html class="js"> が付いているときだけ。
   JSが動かない・CDNが読めない環境では本文が最初から見えるようにする。 */
.js .js-reveal { opacity: 0; transform: translateY(28px); }
.no-motion .js-reveal { opacity: 1 !important; transform: none !important; }

/* ============================================================
   768px未満：全要素を1カラムに折り返す
   ============================================================ */
@media (max-width: 1000px) {
  .compare-layout { grid-template-columns: 1fr; gap: 36px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gnav a { padding: 8px 9px; font-size: 14px; }
  .brand__sub { display: none; }
}

@media (max-width: 767.98px) {   /* 768px未満。端数DPRでも確実に効くよう .98 で切る */
  :root { --section: 64px; --header-h: 108px; --header-h-sm: 92px; }
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  h3 { font-size: 19px; }

  .header { height: auto; min-height: var(--header-h); padding-block: 10px; }
  .header.is-small { height: auto; }
  .header__inner { flex-wrap: wrap; gap: 10px 14px; }
  .brand { order: 1; }
  .header__tel { order: 2; margin-left: auto; }
  .gnav { order: 3; margin-left: 0; width: 100%; }
  .gnav ul { gap: 2px; }
  .gnav a { padding: 6px 8px; font-size: 13px; }
  main { padding-top: 120px; }

  .grid--2, .grid--3, .grid--4, .alt, .qual-grid { grid-template-columns: 1fr; }
  .alt { gap: 28px; }
  .alt + .alt { margin-top: 48px; }
  .alt--rev .alt__media { order: 0; }
  .stats__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .hero__inner { padding-block: 56px 64px; }
  .hero h1 { font-size: 27px; }
  .hero__sub { font-size: 16px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(53,81,107,.90) 0%, rgba(53,81,107,.86) 100%); }
  .trustbar { flex-direction: column; }
  .trustbar li { border-left: 0; padding: 0; }
  .btn, .btn--wide { width: 100%; max-width: none; }
  .btn-row { flex-direction: column; }
  .scroll-cue { display: none; }

  .table-plain th, .table-plain td { display: block; width: auto; }
  .table-plain th { border-bottom: 0; }
  .history li { grid-template-columns: 1fr; gap: 2px; }
  .worklist li { flex-direction: column; }
  .worklist .client { white-space: normal; }

  .compare__grip { width: 40px; height: 40px; }
  .compare__labels li { font-size: 13px; }
  .telblock__num { font-size: 27px; }
  .stat__num { font-size: 46px; }
  .acc__btn { padding: 16px; font-size: 16px; }
  .acc__panel { padding: 0 16px 20px; }
  .card__body { padding: 20px; }
  .card .ai-note { padding: 6px 20px 0; }
}
