@charset "UTF-8";
/* =========================================================
   有限会社 半田モータース｜デモサイト
   カラーは 13_Web構成.md 第5章（G5選定シート）に準拠
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --c-base: #FFFFFF;
  --c-base-2: #F5F2EE;
  --c-accent: #F08A24;      /* 面（ボタン背景・罫）用 */
  --c-accent-ink: #B4600C;  /* 白地に置く文字・リンク用 */
  --c-sub: #1A1A1A;         /* 本文・見出し */
  --c-muted: #5C5651;       /* 注記・キャプション */
  --c-line: rgba(26, 26, 26, 0.14);
  --c-line-soft: rgba(26, 26, 26, 0.08);

  --w-max: 1120px;
  --pad-section: 96px;
  --pad-inline: 24px;
  --radius: 4px;

  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-card-h: 0 2px 6px rgba(26, 26, 26, 0.10), 0 16px 36px rgba(26, 26, 26, 0.12);

  --header-h: 88px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-sub);
  background: var(--c-base);
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--c-accent-ink); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: 0.01em; }
p, ul, ol, dl, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-accent-ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--c-accent); color: var(--c-sub);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 700;
  transition: top 200ms ease-out;
}
.skip-link:focus { top: 8px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--w-max); margin-inline: auto; padding-inline: var(--pad-inline); }
.section { padding-block: var(--pad-section); }
.section--tint { background: var(--c-base-2); }
.section--dark { background: var(--c-sub); color: var(--c-base); }
.section--flush { padding-block: 0; }

.sec-head { margin-bottom: 40px; max-width: 40em; }
.sec-head .eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--c-accent-ink); margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.sec-head h2::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--c-accent); border-radius: 2px; margin-top: 16px;
}
.sec-head p { margin-top: 18px; color: var(--c-muted); }
.section--dark .sec-head p { color: rgba(255, 255, 255, 0.82); }

.lead { font-size: 18px; }
.note {
  font-size: 14px; line-height: 1.8; color: var(--c-muted);
}
.note--ai { margin-top: 8px; }
.section--dark .note { color: rgba(255, 255, 255, 0.72); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--c-base);
  border-bottom: 1px solid var(--c-line-soft);
  will-change: height, background-color;
}
.header-inner {
  height: var(--header-h);
  max-width: 1280px; margin-inline: auto; padding-inline: var(--pad-inline);
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--c-sub); line-height: 1.3; }
.logo-mark { font-size: 12px; letter-spacing: 0.1em; color: var(--c-muted); }
.logo-name { font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; }
.gnav a {
  display: block; padding: 8px 12px; font-size: 15px; font-weight: 500;
  color: var(--c-sub); text-decoration: none; border-radius: var(--radius);
  position: relative;
}
.gnav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease-out;
}
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { font-weight: 700; }

.header-tel { flex-shrink: 0; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 10px 14px; font-size: 14px; font-weight: 700;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--c-accent); color: var(--c-sub); }
.btn-primary:hover { background: #E27E17; }
.btn-outline { background: var(--c-base); color: var(--c-sub); border-color: var(--c-sub); }
.btn-outline:hover { background: var(--c-base-2); }
.btn-icon { width: 22px; height: 22px; flex-shrink: 0; }
.btn-tel { background: var(--c-accent); color: var(--c-sub); font-size: 15px; padding: 12px 18px; }
.btn-tel .tel-label { white-space: nowrap; }
.btn-lg { font-size: 18px; padding: 20px 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: var(--header-h); background: var(--c-base-2); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(380px, 56vw, 620px); object-fit: cover; }
.hero-body {
  position: absolute; inset: 0;
  display: flex; align-items: center;
}
.hero-body .wrap { width: 100%; }
.hero-panel {
  max-width: 720px; background: rgba(255, 255, 255, 0.92);
  padding: 40px 40px 36px; border-radius: var(--radius);
  border-left: 6px solid var(--c-accent);
}
.hero-panel h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.4; }
.hero-panel .hero-sub { margin-top: 18px; color: var(--c-muted); font-size: 16px; }
.hero-panel .btn-row { margin-top: 28px; }
.hero-panel .btn { font-size: 15px; padding: 15px 22px; }
.hero-caption {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 12px; color: #FFFFFF; background: rgba(26, 26, 26, 0.6);
  padding: 4px 10px; border-radius: var(--radius);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.12em; color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(26, 26, 26, 0.9), 0 0 12px rgba(26, 26, 26, 0.7);
}
.scroll-cue .cue-line {
  width: 1px; height: 40px; background: rgba(255, 255, 255, 0.85);
  animation: cue 1600ms ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 下層ページ用の細いヒーロー */
.page-hero { margin-top: var(--header-h); position: relative; background: var(--c-sub); }
.page-hero img { width: 100%; height: clamp(200px, 26vw, 320px); object-fit: cover; opacity: 0.55; }
.page-hero .page-hero-body { position: absolute; inset: 0; display: flex; align-items: center; }
.page-hero h1 { color: #FFFFFF; font-size: clamp(26px, 4vw, 40px); }
.page-hero .page-hero-sub { color: rgba(255, 255, 255, 0.86); margin-top: 12px; }
.page-hero--plain { background: var(--c-base-2); padding-block: clamp(48px, 8vw, 88px); }
.page-hero--plain h1 { color: var(--c-sub); }
.page-hero--plain .page-hero-sub { color: var(--c-muted); }
.page-hero .hero-caption { z-index: 2; }

.breadcrumb { font-size: 13px; color: var(--c-muted); padding-top: 18px; }
.breadcrumb a { color: var(--c-accent-ink); }
.breadcrumb span { margin-inline: 6px; }

/* ---------- 比較スライダー（主役層） ---------- */
.compare {
  position: relative; width: 100%; max-width: 900px; margin-inline: auto;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--c-sub); touch-action: pan-y; user-select: none;
  box-shadow: var(--shadow-card);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-tag {
  position: absolute; top: 14px; z-index: 3;
  background: rgba(26, 26, 26, 0.78); color: #FFFFFF;
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: var(--radius);
  pointer-events: none;
}
.compare-tag.is-before { left: 14px; }
.compare-tag.is-after { right: 14px; }
.compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); z-index: 4;
  width: 3px; background: #FFFFFF; transform: translateX(-50%); pointer-events: none;
}
.compare-handle {
  position: absolute; top: 50%; left: var(--pos, 50%); z-index: 5;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; border: 3px solid var(--c-sub);
  background: var(--c-accent); color: var(--c-sub);
  display: grid; place-items: center; cursor: grab;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.35);
}
.compare-handle:active { cursor: grabbing; }
.compare-handle svg { width: 28px; height: 28px; display: block; }
.compare-figure { margin: 0; }
.compare-figure figcaption { margin-top: 10px; text-align: center; }

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

.card {
  background: var(--c-base); border: 1px solid var(--c-line-soft);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card); text-decoration: none; color: inherit;
  will-change: transform;
}
.card .thumb { overflow: hidden; }
.card .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms ease-out; }
.card:hover .thumb img { transform: scale(1.05); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 19px; }
.card-body p { font-size: 15px; line-height: 1.85; color: var(--c-muted); }
.card-more { margin-top: auto; font-weight: 700; color: var(--c-accent-ink); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.card-more img { width: 18px; height: 18px; }

/* 3つの理由 */
.reason { text-align: left; padding: 32px 28px; background: var(--c-base); border-radius: var(--radius); border: 1px solid var(--c-line-soft); }
.reason img { width: 56px; height: 56px; margin-bottom: 16px; }
.reason h3 { font-size: 19px; margin-bottom: 10px; }
.reason p { font-size: 15px; color: var(--c-muted); line-height: 1.85; }

/* 工程 */
.steps { counter-reset: step; display: grid; gap: 28px; }
.step { background: var(--c-base); border: 1px solid var(--c-line-soft); border-radius: var(--radius); overflow: hidden; }
.step .thumb { overflow: hidden; }
.step .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 600ms ease-out; }
.step:hover .thumb img { transform: scale(1.05); }
.step-body { padding: 20px 22px 24px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding-inline: 8px; border-radius: 17px;
  background: var(--c-accent); color: var(--c-sub); font-weight: 700; font-size: 14px;
  margin-bottom: 12px;
}
.step-body h3 { font-size: 18px; margin-bottom: 8px; }
.step-body p { font-size: 15px; color: var(--c-muted); line-height: 1.85; }

/* リスト */
.list-check { display: grid; gap: 14px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.list-check img { width: 24px; height: 24px; margin-top: 6px; flex-shrink: 0; }
.list-check strong { display: block; }
.list-check span { color: var(--c-muted); font-size: 15px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  background: var(--c-base); border: 1px solid var(--c-line);
  border-radius: 999px; padding: 8px 18px; font-size: 15px;
}
.section--tint .tag-list li { background: var(--c-base); }

/* 定義テーブル */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--c-line-soft);
  vertical-align: top; font-size: 16px;
}
.info-table th { width: 200px; font-weight: 700; }
.info-table td { color: var(--c-muted); }

/* 流れ */
.flow { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
.flow-item { background: var(--c-base); border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--c-line-soft); position: relative; }
.flow-no {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--c-accent);
  display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.flow-item h3 { font-size: 17px; margin-bottom: 8px; }
.flow-item p { font-size: 15px; color: var(--c-muted); line-height: 1.85; }

/* 費用 */
.cost-box { background: var(--c-base); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; }
.cost-box h3 { font-size: 18px; margin-bottom: 14px; }
.cost-figures { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 18px 0; }
.cost-figures .fig { font-size: 15px; color: var(--c-muted); }
.cost-figures .fig b { display: block; font-size: 26px; color: var(--c-sub); letter-spacing: 0.02em; }
.cost-figures .fig.is-after b { color: var(--c-accent-ink); }
.cost-figures .arrow { width: 26px; height: 26px; }

/* 事例 */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tabs button {
  background: var(--c-base); border: 1px solid var(--c-line); border-radius: 999px;
  padding: 10px 20px; font-size: 15px; font-weight: 500; cursor: pointer;
}
.filter-tabs button[aria-selected="true"] { background: var(--c-accent); border-color: var(--c-accent); font-weight: 700; }
.case-meta { display: grid; gap: 6px; font-size: 14px; color: var(--c-muted); margin-top: 4px; }
.case-meta div { display: flex; gap: 8px; }
.case-meta dt { font-weight: 700; color: var(--c-sub); flex-shrink: 0; }
.case-meta dd { margin: 0; }

/* アコーディオン */
.faq { border-top: 1px solid var(--c-line-soft); }
.faq-item { border-bottom: 1px solid var(--c-line-soft); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 22px 0; text-align: left; font-size: 17px; font-weight: 700;
}
.faq-q .mark { color: var(--c-accent-ink); flex-shrink: 0; }
.faq-q .sign { margin-left: auto; flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--c-accent-ink); }
.faq-a { overflow: hidden; height: 0; }
.faq-a > div { padding: 0 0 22px 34px; color: var(--c-muted); font-size: 16px; }

/* 帯 */
.band { position: relative; }
.band img { width: 100%; height: clamp(180px, 22vw, 280px); object-fit: cover; }

/* CTA */
.cta-box { text-align: center; }
.cta-box h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-box p { margin-top: 16px; }
.cta-box .btn-row { justify-content: center; margin-top: 30px; }
.cta-tel { display: inline-block; margin-top: 26px; }
.cta-tel .num { font-size: 30px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 12px; }
.section--dark .cta-tel .num { color: #FFFFFF; }
.cta-tel .hours { display: block; font-size: 14px; color: var(--c-muted); margin-top: 6px; }
.section--dark .cta-tel .hours { color: rgba(255, 255, 255, 0.78); }

/* フォーム（見た目のみ） */
.form-grid { display: grid; gap: 22px; max-width: 720px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.field .req { font-size: 13px; color: var(--c-accent-ink); margin-left: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-base);
  color: var(--c-sub);
}
.field .help { font-size: 14px; color: var(--c-muted); margin-top: 6px; }

/* フッター */
.site-footer { background: var(--c-base-2); padding-block: 64px 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .name { font-size: 20px; font-weight: 700; }
.footer-brand address { font-style: normal; color: var(--c-muted); font-size: 15px; margin-top: 12px; line-height: 1.9; }
.footer-tel { font-size: 26px; font-weight: 700; color: var(--c-sub); text-decoration: none; display: inline-block; margin-top: 10px; letter-spacing: 0.03em; }
.footer-mail { font-size: 15px; word-break: break-all; }
.footer-nav h3 { font-size: 15px; margin-bottom: 12px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 15px; color: var(--c-sub); text-decoration: none; position: relative; }
.footer-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--c-accent-ink); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease-out;
}
.footer-nav a:hover::after { transform: scaleX(1); }
.footer-note {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line-soft);
  font-size: 13px; line-height: 1.9; color: var(--c-muted);
}
.footer-copy { margin-top: 14px; font-size: 13px; color: var(--c-muted); }

/* 本文中リンクの下線（左から右へ） */
.link-u { position: relative; text-decoration: none; font-weight: 700; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--c-accent-ink); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease-out;
}
.link-u:hover::after { transform: scaleX(1); }

/* 404 */
.err-page { margin-top: var(--header-h); padding-block: clamp(80px, 12vw, 140px); text-align: center; }
.err-page .code { font-size: 72px; font-weight: 700; color: var(--c-accent-ink); line-height: 1; }
.err-page h1 { font-size: clamp(22px, 3.2vw, 30px); margin-top: 20px; }
.err-page p { margin-top: 16px; color: var(--c-muted); }

/* 基礎層の初期状態
   JSが動く環境（html.js）でのみ隠す。CDNの読み込みに失敗した場合は
   html.reveal-fallback が付き、内容がそのまま表示される。 */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js.reveal-fallback .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .gnav a { padding: 8px 9px; font-size: 14px; }
  .btn-tel .tel-label { font-size: 14px; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; --pad-section: 56px; }
  .nav-toggle { display: block; }
  .gnav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--c-base); border-bottom: 1px solid var(--c-line);
    display: none; padding: 12px var(--pad-inline) 20px;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--c-line-soft); border-radius: 0; }
  .gnav a::after { display: none; }
  .header-tel .tel-label { display: none; }
  .header-tel { padding: 12px; order: 3; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-body { position: static; }
  .hero-panel { max-width: none; background: var(--c-base); margin-top: -40px; position: relative; z-index: 2; padding: 28px 24px; }
  .hero-media img { height: clamp(240px, 46vw, 380px); }
  .hero-caption { bottom: auto; top: 12px; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  :root { --pad-inline: 18px; }
  body { font-size: 17px; }
  .grid-4, .grid-3, .grid-2, .flow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-table th { width: auto; display: block; padding-bottom: 4px; border: 0; }
  .info-table td { display: block; padding-top: 0; }
  .compare-handle { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .btn { width: 100%; }
  .btn-tel, .header-tel { width: auto; }
  .cta-tel .num { font-size: 26px; }
}

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