@charset "utf-8";

/* =========================================================================
   萩原自動車 デモサイト  共通スタイル
   カラーは 13_Web構成.md 第5章（G5選定シート）に従う。色相は変更しない。
   ========================================================================= */

:root {
  --base: #FFFFFF;
  --paper: #FFF5F8;
  --accent-ink: #C81E56;
  --accent: #DF2965;
  --accent-soft: #EC7FA3;
  --sub: #1F6FB2;
  --sub-deep: #17568A;
  --ink: #1A1A1E;
  --ink-sub: #55555C;

  --line: #EFE2E8;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 28px rgba(31, 111, 178, .12);
  --radius: 16px;

  --wrap: 1120px;
  --gap-section: 96px;
  --header-h: 84px;
  --header-h-small: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sub); text-decoration: underline; text-underline-offset: .2em; }
a:hover { color: var(--sub-deep); }

:focus-visible {
  outline: 3px solid var(--sub);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

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

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  transition: height .2s ease-out, background-color .2s ease-out;
}
.site-header.is-small {
  height: var(--header-h-small);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: 100%;
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  line-height: 1.25;
}
.logo:hover { color: var(--ink); }
.logo-ja {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
}
.logo-en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--sub);
}
.logo-cert {
  font-size: 11px;
  color: var(--ink-sub);
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}
.site-header.is-small .logo-en { display: none; }

.gnav { margin-left: auto; }
.gnav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.gnav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.gnav a:hover { background: var(--paper); color: var(--accent-ink); }
.gnav a[aria-current="page"] {
  color: var(--accent-ink);
  box-shadow: inset 0 -3px 0 var(--accent-soft);
}

/* 電話ボタン：スクロールしても縮まない */
.header-tel {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.header-tel img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.header-tel .t-num {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1.2;
}
.header-tel .t-lead {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  opacity: .95;
}

.nav-toggle { display: none; }

/* ------------------------------------------------------------------- main */

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

.section { padding: var(--gap-section) 0; }
.section--paper { background: var(--paper); }

.section-head { margin-bottom: 44px; text-align: center; }
.section-head .label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--sub-deep);
  margin-bottom: .3em;
}
.section-head p { color: var(--ink-sub); margin: 0; }

.lead { font-size: 18px; }
.note {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.7;
}
.figure-note {
  font-size: 12px;
  color: var(--ink-sub);
  margin: 6px 0 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ badges */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--sub);
  color: var(--sub-deep);
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 16px;
  line-height: 1.6;
}
.badge--accent { border-color: var(--accent); color: var(--accent-ink); }
.badge img { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 18px 28px;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
  font-family: inherit;
}
.btn img { width: 24px; height: 24px; flex: 0 0 auto; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary img { filter: brightness(0) invert(1); }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }

.btn--sub {
  background: #fff;
  color: var(--sub-deep);
  border-color: var(--sub);
}
.btn--sub:hover { background: var(--sub); color: #fff; }
.btn--sub:hover img { filter: brightness(0) invert(1); }

.btn--ghost {
  background: rgba(255, 255, 255, .92);
  color: var(--accent-ink);
  border-color: #fff;
}
.btn--ghost:hover { background: #fff; color: var(--accent-ink); }

.btn--lg { padding: 22px 34px; font-size: 19px; }
.btn--block { width: 100%; }

.btn-tel { flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.btn-tel .t-num {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-tel .t-lead { font-size: 14px; font-weight: 700; }
.btn-tel .t-sub { font-size: 12px; font-weight: 400; opacity: .92; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dfe7ee;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .95) 40%, rgba(255, 255, 255, .74) 56%, rgba(255, 255, 255, .18) 78%, rgba(255, 255, 255, 0) 94%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.45;
  color: var(--sub-deep);
  margin-bottom: .4em;
}
.hero h1 .mark { color: var(--accent-ink); }
.hero-sub {
  font-size: 16px;
  color: var(--ink-sub);
  margin-bottom: 20px;
}
.hero .badges { margin-bottom: 26px; }
.hero .btn-row { margin-bottom: 14px; }

/* 下層ページのヒーロー */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #dfe7ee;
}
.page-hero .hero-bg { object-position: center 58%; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 32%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .1) 74%, rgba(255, 255, 255, 0) 90%);
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0;
  max-width: 720px;
}
.page-hero h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  color: var(--sub-deep);
  margin-bottom: .3em;
}
.page-hero p { color: var(--ink-sub); margin: 0; }

.breadcrumb {
  font-size: 13px;
  color: var(--ink-sub);
  padding: 14px 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: var(--accent-soft); }

/* スクロール誘導矢印 */
.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sub-deep);
  text-align: center;
  text-decoration: none;
}
.scroll-cue span {
  display: block;
  width: 14px;
  height: 14px;
  margin: 4px auto 0;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: .45; }
}

/* ------------------------------------------------------------- 3つの入口 */

.gates {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.gate {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.gate:hover { color: var(--ink); border-color: var(--accent-soft); }
.gate img.gate-icon { width: 46px; height: 46px; }
.gate .g-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-ink);
}
.gate h3 { font-size: 21px; margin: 0; color: var(--sub-deep); }
.gate p { font-size: 15px; color: var(--ink-sub); margin: 0; }
.gate .g-action {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  color: var(--sub);
}
.gate--urgent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.gate--urgent:hover { color: #fff; border-color: var(--accent-ink); }
.gate--urgent img.gate-icon { filter: brightness(0) invert(1); width: 56px; height: 56px; }
.gate--urgent .g-label,
.gate--urgent h3,
.gate--urgent p,
.gate--urgent .g-action { color: #fff; }
.gate--urgent h3 { font-size: 25px; }
.gate--urgent .g-tel {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

/* ------------------------------------------------- 主役：判定チャート */

.shindan {
  position: relative;
  overflow: hidden;
  background: var(--sub-deep);
}
.shindan-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
.shindan::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 86, 138, .82), rgba(23, 86, 138, .72));
}
.shindan-inner {
  position: relative;
  z-index: 2;
  padding: var(--gap-section) 0;
}
.shindan .section-head h2 { color: #fff; }
.shindan .section-head .label { color: #fff; opacity: .9; }
.shindan .section-head p { color: rgba(255, 255, 255, .9); }

.shindan-stage {
  position: relative;
  min-height: 440px;
  max-width: 860px;
  margin-inline: auto;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
.step-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent-ink);
  margin-bottom: 4px;
}
.step h3 {
  font-size: clamp(21px, 2.6vw, 27px);
  color: var(--sub-deep);
  margin-bottom: 1em;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--sub);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  color: var(--sub-deep);
  line-height: 1.5;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.choice small {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-sub);
}
.choice:hover { background: var(--sub); color: #fff; border-color: var(--sub); }
.choice:hover small { color: rgba(255, 255, 255, .9); }
.choice[aria-pressed="true"] {
  background: var(--sub);
  color: #fff;
  border-color: var(--sub-deep);
}
.choice[aria-pressed="true"] small { color: rgba(255, 255, 255, .9); }

.step-back {
  margin-top: 22px;
  background: none;
  border: 0;
  color: var(--sub);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 2px;
  text-decoration: underline;
}

.result-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.result-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.result-head h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.result-facts {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.result-facts li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.result-facts .k {
  flex: 0 0 130px;
  font-weight: 700;
  color: var(--ink-sub);
  font-size: 14px;
}
.sticker-yes { color: var(--accent-ink); font-weight: 700; }
.sticker-no { color: var(--ink-sub); font-weight: 700; }
.result-fact-line {
  background: var(--paper);
  border-left: 5px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.shindan-progress {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}
.shindan-progress i {
  display: block;
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
}
.shindan-progress i.on { background: #fff; }
.shindan-hint {
  text-align: center;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  margin: 20px 0 0;
}

/* ピン留め時：カードを重ねる。JSが .is-pinned を付ける */
.shindan.is-pin-active { min-height: 100vh; display: flex; align-items: center; }
.shindan.is-pin-active .shindan-inner { padding: 40px 0; width: 100%; }
.shindan.is-pin-active .section-head { margin-bottom: 26px; }
.shindan-stage.is-pinned .step {
  position: absolute;
  inset: 0 0 auto 0;
}
.shindan-stage.is-pinned .step[hidden] { display: none; }

/* 縦積みステップUI（768px未満／JS無効時） */
.shindan-stage:not(.is-pinned) .step { margin-bottom: 20px; }
.shindan-stage:not(.is-pinned) .step:last-child { margin-bottom: 0; }

/* reduced-motion 時に出す A〜D の表 */
.shindan-table-fallback { display: none; }

/* ----------------------------------------------------------- サービス群 */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper);
}
.card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease-out;
}
.card:hover .card-figure img { transform: scale(1.05); }
.card-body { padding: 24px 24px 26px; }
.card-body h3 {
  font-size: 20px;
  color: var(--sub-deep);
  margin-bottom: .4em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-body h3 img { width: 26px; height: 26px; }
.card-body p { font-size: 15px; color: var(--ink-sub); margin: 0; }

/* 理由カード */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: reason;
}
.reason {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
}
.reason h3 {
  font-size: 20px;
  color: var(--sub-deep);
  margin-bottom: .5em;
}
.reason .num {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--accent-ink);
}
.reason p { font-size: 15px; color: var(--ink-sub); margin: 0; }

/* 写真ギャラリー */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo figure { margin: 0; }
.photo .frame {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.photo .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease-out;
}
.photo:hover .frame img { transform: scale(1.05); }
.photo figcaption {
  font-size: 15px;
  font-weight: 700;
  color: var(--sub-deep);
  margin-top: 10px;
}

/* グリッド／フレックスの子は既定で min-width:auto のため、
   中の広い表がコンテナを押し広げてしまう。0 にして .table-scroll 側で横スクロールさせる */
.split > *,
.cards > *,
.gates > *,
.reasons > *,
.photos > *,
.flow > *,
.footer-grid > *,
.btn-row > * { min-width: 0; }

.table-scroll { max-width: 100%; }

/* ------------------------------------------------------------ 情報テーブル */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 16px;
  min-width: 560px;
}
table.tbl caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--sub-deep);
  padding-bottom: 10px;
}
table.tbl th,
table.tbl td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
table.tbl thead th {
  background: var(--sub);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
table.tbl tbody th {
  background: var(--paper);
  color: var(--sub-deep);
  white-space: nowrap;
  width: 190px;
}
table.tbl td.c { text-align: center; }
table.tbl tr.is-d td,
table.tbl tr.is-d th { background: #FFF9FB; }

.info-table th { font-weight: 700; }

/* ------------------------------------------------------------ アコーディオン */

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  padding: 22px 8px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--sub-deep);
  text-align: left;
  cursor: pointer;
  line-height: 1.6;
}
.acc-btn:hover { color: var(--accent-ink); }
.acc-btn .mk {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  position: relative;
}
.acc-btn .mk::before,
.acc-btn .mk::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.acc-btn .mk::before { width: 16px; height: 3px; }
.acc-btn .mk::after { width: 3px; height: 16px; transition: opacity .15s ease-out; }
.acc-btn[aria-expanded="true"] .mk::after { opacity: 0; }
.acc-panel { padding: 0 8px 26px; }
.acc-panel[hidden] { display: none; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.price-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  font-size: 16px;
}
.price-list .p {
  font-weight: 700;
  color: var(--accent-ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------- 汎用ブロック */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.split--photo-left { grid-template-columns: 5fr 6fr; }

.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 30px;
}
.box--accent { border-left: 6px solid var(--accent); }
.box--sub { border-left: 6px solid var(--sub); }
.box h3 { font-size: 21px; color: var(--sub-deep); }

.emergency {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.emergency h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.emergency p { color: rgba(255, 255, 255, .95); }
.emergency .tel-big {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 20px 40px;
  margin: 12px 0 10px;
}
.emergency .tel-big .t-num {
  font-size: clamp(30px, 5.4vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
.emergency .tel-big .t-lead { font-size: 13px; font-weight: 700; }

/* 5段階の流れ */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: flow;
}
.flow li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sub);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--accent-soft);
  border-bottom: 3px solid var(--accent-soft);
  transform: translateY(-50%) rotate(-45deg);
}
.flow strong {
  display: block;
  font-size: 17px;
  color: var(--sub-deep);
}
.flow span { font-size: 13px; color: var(--ink-sub); line-height: 1.7; display: block; }

/* ------------------------------------------------------------------- フォーム */

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-weight: 700;
  font-size: 16px;
  color: var(--sub-deep);
}
.field .req {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}
.field .help { font-size: 13px; color: var(--ink-sub); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sub);
  outline: 3px solid rgba(31, 111, 178, .25);
  outline-offset: 0;
}
.field textarea { min-height: 160px; resize: vertical; }

/* --------------------------------------------------------------- 最終CTA帯 */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
}
.cta-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(223, 41, 101, .9), rgba(200, 30, 86, .92));
}
.cta-band-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(23px, 3.2vw, 32px); }
.cta-band p { color: rgba(255, 255, 255, .95); }
.cta-band .btn-row { margin-top: 26px; }
.cta-band .btn--ghost .t-num { color: var(--accent-ink); }

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

.site-footer {
  background: #22222A;
  color: #D8D8DE;
  padding: 64px 0 28px;
  font-size: 15px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer-grid h2,
.footer-grid h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: .8em;
}
.f-logo-ja { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.4; }
.f-logo-en { font-size: 11px; letter-spacing: .28em; color: var(--accent-soft); }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-list a { text-decoration: none; }
.f-list a:hover { text-decoration: underline; }
.f-tel {
  display: inline-block;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}
.f-tel:hover { text-decoration: underline; }
.f-emergency { color: var(--accent-soft); font-weight: 700; }
.footer-note {
  font-size: 13px;
  line-height: 1.85;
  color: #ADADB6;
  padding-top: 22px;
}
.footer-copy {
  font-size: 12px;
  color: #8C8C96;
  padding-top: 10px;
}

/* ------------------------------------------------------------- 基礎層 準備 */

/* JSが動く環境でだけ隠す。JS無効・読込失敗時は最初から見えている状態にする */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-revealed,
.is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------------- 404ページ */

.notfound {
  padding: 110px 0;
  text-align: center;
}
.notfound .code {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
.notfound h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--sub-deep); }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 1080px) {
  .gnav a { padding: 10px 10px; font-size: 14px; }
  .header-tel .t-num { font-size: 19px; }
}

@media (max-width: 900px) {
  :root { --gap-section: 64px; }
  .gates { grid-template-columns: 1fr; }
  .cards, .reasons, .photos { grid-template-columns: repeat(2, 1fr); }
  .split, .split--photo-left { grid-template-columns: 1fr; gap: 28px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow li:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root {
    --gap-section: 56px;
    --header-h: 68px;
    --header-h-small: 60px;
  }
  body { font-size: 16px; }

  .header-inner { gap: 10px; width: min(100% - 20px, 100%); }
  .logo-ja { font-size: 17px; }
  .logo-en, .logo-cert { display: none; }
  .header-tel { padding: 7px 12px; gap: 6px; margin-left: auto; }
  .header-tel .t-num { font-size: 19px; }
  .header-tel .t-lead { display: none; }
  .header-tel img { width: 18px; height: 18px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--ink);
  }
  .nav-toggle span::before { top: -7px; }
  .nav-toggle span::after { top: 7px; }

  .gnav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin: 0;
    padding: 8px 16px 18px;
    display: none;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a {
    padding: 15px 8px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .hero { min-height: 0; }
  .hero-inner { padding: 44px 0 64px; max-width: none; }
  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .9) 52%, rgba(255, 255, 255, .55) 100%);
  }
  .hero-bg { object-position: 66% center; }
  .page-hero { min-height: 190px; }
  .page-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .82));
  }
  .page-hero-inner { padding: 34px 0; }

  .cards, .reasons, .photos, .cards--2, .flow { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .step { padding: 28px 22px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .result-facts li { flex-direction: column; gap: 2px; }
  .result-facts .k { flex: none; }
  table.tbl { font-size: 15px; }
}

/* ==========================================================================
   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;
  }
  .card:hover .card-figure img,
  .photo:hover .frame img { transform: none; }
  .scroll-cue span { animation: none; }
  .reveal,
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .shindan-table-fallback { display: block; }
  .shindan-interactive { display: none; }
  .shindan-hint { display: none; }
}

@media print {
  .site-header, .scroll-cue, .cta-band { display: none; }
}
