@charset "UTF-8";
/* ============================================================
   UDGARAGE 本店サイト リニューアル 共通スタイル
   設計書: 00_デザインシステム.md 準拠
   - アクセントはネイビー1色（#16324F）。LINE行きは緑（#06C755）専用
   - 白系クリーン・余白を贅沢に・1画面1メッセージ
   - ブレーク: SP 〜767px / TB 768〜1023px / PC 1024px〜
   ============================================================ */

/* ------------------------------------------------------------
   1. デザイントークン（CSS変数）
   ------------------------------------------------------------ */
:root {
  /* カラー（00 §2-1） */
  --color-base: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-sub: #5C5C58;
  --color-text-placeholder: #757570; /* 入力欄プレースホルダ（白背景でコントラスト比 約4.7:1） */
  --color-navy: #16324F;
  --color-navy-hover: #0F2438;
  --color-navy-tint-1: #56718D; /* データ可視化用のネイビー淡色（グラフ・内訳バー） */
  --color-navy-tint-2: #8195AB;
  --color-dark-band: #2B2B2B;
  --color-dark-band-text: #F5F5F2;
  --color-border: #E6E4DE;
  --color-line-green: #06C755;
  --color-line-green-hover: #05AF4C;
  --color-ph-bg: #E9E7E2;
  --color-gray-band: #F2F2F0;

  /* タイポグラフィ（00 §3） */
  --font-family-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --fs-display: 48px;
  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-h4: 16px;
  --fs-body: 16px;
  --fs-small: 13px;
  --fs-num-l: 32px;

  /* レイアウト（00 §5） */
  --container-max: 1200px;   /* 内容実質 1120px + 左右padding 40px */
  --container-pad: 40px;
  --container-narrow: 760px; /* コラム本文 */
  --section-pad: 96px;
  --section-pad-band: 80px;
  --header-h: 72px;

  /* その他 */
  --radius-s: 6px;
  --radius-m: 8px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, .06);
  --transition: .25s ease;
}

@media (max-width: 767px) {
  :root {
    --fs-display: 30px;
    --fs-h1: 26px;
    --fs-h2: 22px;
    --fs-h3: 18px;
    --fs-h4: 15px;
    --fs-body: 15px;
    --fs-small: 12px;
    --fs-num-l: 26px;
    --container-pad: 20px;
    --section-pad: 56px;
    --section-pad-band: 48px;
    --header-h: 60px;
  }
}

/* ------------------------------------------------------------
   2. リセット / ベース
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--color-text);
  background-color: var(--color-base);
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
}

/* SP追従バーぶんの逃げ（SPのみ、mainの最後で余白確保） */
@media (max-width: 767px) {
  body {
    padding-bottom: 56px;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* フォーカス可視（アクセシビリティ） */
:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-navy);
  color: #FFFFFF;
}

/* ------------------------------------------------------------
   3. タイポグラフィ
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.5;
}

h1 { font-size: var(--fs-h1); line-height: 1.4; letter-spacing: 0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); line-height: 1.6; }

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

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.4;
}

.lead {
  max-width: 42em;
}

.small,
small {
  font-size: var(--fs-small);
  line-height: 1.7;
}

.text-sub {
  color: var(--color-text-sub);
}

/* 金額・数値強調（Num-L） */
.num-l {
  font-size: var(--fs-num-l);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  font-feature-settings: "tnum";
}

/* 本文テキストリンク（00 §4-1(d)） */
.text-link {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.text-link:hover {
  text-decoration-color: var(--color-navy);
  color: var(--color-navy);
}

.text-center { text-align: center; }

/* ------------------------------------------------------------
   4. レイアウト
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--container-pad) * 2);
}

.section {
  padding-block: var(--section-pad);
}

.section--surface {
  background: var(--color-surface);
}

.section--gray {
  background: var(--color-gray-band);
}

/* カードグリッド: PC3列 → TB2列 → SP1列（00 §5-2） */
.grid {
  display: grid;
  gap: 32px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1023px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid { gap: 16px; }
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------
   5. セクション見出しの型（00 §4-3）
   欧文ラベル + 和文H2 + ネイビーバー
   ------------------------------------------------------------ */
.sec-head {
  text-align: center;
  margin-bottom: 56px;
}
.sec-head__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.sec-head__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
}
.sec-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-navy);
  margin: 20px auto 0;
}

/* 左揃え版（コラム系） */
.sec-head--left {
  text-align: left;
}
.sec-head--left::after {
  margin-inline: 0;
}

/* ダーク帯・ネイビー帯の上で使う場合 */
.sec-head--invert .sec-head__label { color: rgba(245, 245, 242, .7); }
.sec-head--invert .sec-head__title { color: var(--color-dark-band-text); }
.sec-head--invert::after { background: var(--color-dark-band-text); }

@media (max-width: 767px) {
  .sec-head { margin-bottom: 32px; }
}

/* ------------------------------------------------------------
   6. ボタン（00 §4-1）
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-s);
  border: 1.5px solid transparent;
  text-align: center;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (max-width: 767px) {
  .btn {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    max-width: 360px;
  }
}

/* (a) プライマリ（ネイビー塗り）— LINE以外の最重要CV専用 */
.btn--primary {
  background: var(--color-navy);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--color-navy-hover);
}

/* (b) セカンダリ（ネイビー枠線・白地） */
.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn--secondary:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}

/* (c) LINEボタン（緑・LINE専用。他用途禁止） */
.btn--line {
  background: var(--color-line-green);
  color: #FFFFFF;
}
.btn--line:hover {
  background: var(--color-line-green-hover);
}
.btn--line .btn__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* (d) ダーク帯・ネイビー帯上の白枠線反転版 */
.btn--ghost-invert {
  background: transparent;
  border-color: var(--color-dark-band-text);
  color: var(--color-dark-band-text);
}
.btn--ghost-invert:hover {
  background: var(--color-dark-band-text);
  color: var(--color-dark-band);
}

/* 非活性（フォーム送信ボタン等） */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .4;
  cursor: not-allowed;
}
.btn--primary:disabled:hover {
  background: var(--color-navy);
}

/* ------------------------------------------------------------
   7. カード（00 §4-2）
   ------------------------------------------------------------ */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-card);
}
a.card:hover {
  transform: translateY(-2px);
}
.card__media {
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  overflow: hidden;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  flex: 1;
}
.card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
}
.card__text {
  font-size: 15px;
  line-height: 1.8;
}
.card__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
.card:hover .card__link,
.card__link:hover {
  color: var(--color-navy);
}
.card__meta {
  font-size: var(--fs-small);
  color: var(--color-text-sub);
}

/* ------------------------------------------------------------
   8. PHコンポーネント（画像プレースホルダー）
   使用例: <div class="ph" style="aspect-ratio:16/9">PH-TOP-01｜1920×1080px｜説明</div>
   ------------------------------------------------------------ */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9; /* 各所で style="aspect-ratio:..." 上書き可 */
  background: var(--color-ph-bg);
  border: 2px dashed #C9C6BE;
  border-radius: var(--radius-m);
  color: var(--color-text-sub);
  font-size: var(--fs-small);
  line-height: 1.7;
  text-align: center;
  padding: 16px;
  overflow: hidden;
}

.ph--square { aspect-ratio: 1 / 1; }
.ph--wide { aspect-ratio: 3 / 1; }
.ph--noround { border-radius: 0; }

.ph.ph--image {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  object-fit: cover;
}

.ph.ph--icon {
  object-fit: contain;
  padding: 14px;
  background: var(--color-ph-bg);
}

.ph.ph--qr {
  object-fit: contain;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.ph.ph--map {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
}

.article-body .ph.ph--image {
  border: 1px solid rgba(34, 39, 43, .12);
  box-shadow: 0 14px 36px rgba(34, 39, 43, .10);
  background: #f4f1e9;
}

/* カード内の画像PH（上角丸のみ） */
.card .ph,
.card__media .ph {
  border-radius: 0;
  border-left: 0;
  border-top: 0;
  border-right: 0;
}

/* ------------------------------------------------------------
   9. パンくず（00 §4-6）
   ------------------------------------------------------------ */
.breadcrumb {
  padding: 16px 0 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: var(--fs-small);
  color: var(--color-text-sub);
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "›";
  color: var(--color-text-sub);
}
.breadcrumb a {
  color: var(--color-text-sub);
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

/* ページヘッダー（パンくず + H1 + リード） */
.page-header {
  padding: 40px 0 var(--section-pad);
  text-align: center;
}
.page-header .breadcrumb {
  text-align: left;
  margin-bottom: 48px;
}
.page-header__lead {
  max-width: 42em;
  margin: 24px auto 0;
}
@media (max-width: 767px) {
  .page-header {
    padding-top: 24px;
  }
  .page-header .breadcrumb {
    margin-bottom: 32px;
  }
}

/* ------------------------------------------------------------
   10. 注意喚起帯（ダーク反転セクション／00 §4-4）
   1ページ1回まで
   ------------------------------------------------------------ */
.dark-band {
  background: var(--color-dark-band);
  color: var(--color-dark-band-text);
  padding-block: var(--section-pad-band);
  text-align: center;
}
.dark-band__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 242, .65);
  margin-bottom: 16px;
}
.dark-band__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
}
.dark-band__body {
  max-width: 42em;
  margin: 0 auto 40px;
  line-height: 2;
}
.dark-band a:focus-visible {
  outline-color: var(--color-dark-band-text);
}

/* ------------------------------------------------------------
   11. ページ末尾ネイビーCTA帯（00 §2-2 例外規定／1ページ1回まで）
   ------------------------------------------------------------ */
.cta-band {
  background: var(--color-navy);
  color: #FFFFFF;
  padding-block: var(--section-pad-band);
  text-align: center;
}
.cta-band__title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}
.cta-band__body {
  max-width: 42em;
  margin: 0 auto 40px;
  line-height: 2;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.cta-band .btn--ghost-invert {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.cta-band .btn--ghost-invert:hover {
  background: #FFFFFF;
  color: var(--color-navy);
}
.cta-band__note {
  margin-top: 24px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .75);
}
.cta-band a:focus-visible {
  outline-color: #FFFFFF;
}
@media (max-width: 767px) {
  .cta-band__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ------------------------------------------------------------
   12. 共通ヘッダー（00 §4-7）
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* テキストロゴ（PH-CMN-01 代替） */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 0 0 auto;
}
.site-logo__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
}
.site-logo__tagline {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
  margin-top: 2px;
}

.global-nav {
  margin-left: auto;
}
.global-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.global-nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}
.global-nav__list a:hover {
  color: var(--color-navy);
}
/* 現在地: 2px ネイビーアンダーライン */
.global-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-navy);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.global-nav__list a:hover::after,
.global-nav__list a.is-current::after,
.global-nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__cta {
  flex: 0 0 auto;
  padding: 10px 22px;
  font-size: 14px;
}
@media (max-width: 767px) {
  .site-header__cta.btn {
    width: auto;
    max-width: none;
  }
}

/* ハンバーガー（SPのみ） */
.drawer-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
}
.drawer-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}
body.is-drawer-open .drawer-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
body.is-drawer-open .drawer-toggle span:nth-child(2) {
  opacity: 0;
}
body.is-drawer-open .drawer-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SPドロワー（全画面・白背景・縦並び） */
.drawer {
  display: none;
}

@media (max-width: 1023px) {
  .global-nav {
    display: none;
  }
  .drawer-toggle {
    display: flex;
    margin-left: auto;
  }
  .site-header__cta {
    display: none;
  }
  .drawer {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    background: var(--color-surface);
    padding: 32px var(--container-pad) 48px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  body.is-drawer-open .drawer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  body.is-drawer-open {
    overflow: hidden;
  }
  .drawer__list {
    display: flex;
    flex-direction: column;
  }
  .drawer__list a {
    display: block;
    padding: 18px 4px;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition);
  }
  .drawer__list a:hover,
  .drawer__list a.is-current {
    color: var(--color-navy);
  }
  .drawer__cta {
    margin-top: 40px;
    text-align: center;
  }
  .drawer__cta .btn {
    width: 100%;
    max-width: none;
  }
}

/* ------------------------------------------------------------
   13. 共通フッター（00 §4-8）
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-text); /* #1A1A1A 濃墨 */
  color: var(--color-dark-band-text);
  padding: 72px 0 0;
  font-size: 14px;
}
.site-footer a {
  transition: opacity var(--transition);
}
.site-footer a:hover {
  opacity: .7;
}
.site-footer a:focus-visible {
  outline-color: var(--color-dark-band-text);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

/* フッターロゴ（PH-CMN-02 代替のテキストロゴ白版） */
.site-footer__brand {
  max-width: 320px;
}
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.2;
  margin-bottom: 20px;
}
.footer-logo__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.site-footer__tagline {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.site-footer__sns {
  display: flex;
  gap: 20px;
  font-size: var(--fs-small);
}
.site-footer__sns a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(245, 245, 242, .4);
  padding-bottom: 2px;
}

.site-footer__nav h2 {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(245, 245, 242, .6);
  margin-bottom: 16px;
}
.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.site-footer__info {
  border-top: 1px solid rgba(245, 245, 242, .18);
  margin-top: 64px;
  padding: 28px 0;
  font-size: var(--fs-small);
  line-height: 2;
}
.site-footer__info p {
  margin-bottom: 0;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 0 28px;
  font-size: var(--fs-small);
  color: rgba(245, 245, 242, .75);
}
.site-footer__legal p {
  margin-bottom: 0;
}
.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 48px;
  }
  .site-footer__inner {
    flex-direction: column;
    gap: 40px;
  }
  .site-footer__info {
    margin-top: 40px;
  }
}

/* ------------------------------------------------------------
   14. LINE CTAバー（00 §4-5）
   PC: 右下フローティング / SP: 画面下部固定バー（LINE+電話）
   ------------------------------------------------------------ */
.line-follow {
  position: fixed;
  z-index: 90;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.line-follow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.line-follow__line,
.line-follow__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: #FFFFFF;
}
.line-follow__line {
  background: var(--color-line-green);
}
.line-follow__line:hover {
  background: var(--color-line-green-hover);
}
.line-follow__tel {
  background: var(--color-navy);
}
.line-follow__tel:hover {
  background: var(--color-navy-hover);
}
.line-follow__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* PC: 右下フローティング（LINEのみ・ピル型） */
@media (min-width: 768px) {
  .line-follow {
    right: 32px;
    bottom: 32px;
  }
  .line-follow__line {
    padding: 16px 28px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    font-size: 15px;
  }
  .line-follow__tel {
    display: none;
  }
}

/* SP: 画面下部固定バー（全幅・高さ56px・LINE|電話） */
@media (max-width: 767px) {
  .line-follow {
    inset: auto 0 0 0;
    display: flex;
    height: 56px;
  }
  .line-follow.is-hidden {
    transform: translateY(100%);
  }
  .line-follow__line {
    flex: 1 1 60%;
    font-size: 15px;
  }
  .line-follow__tel {
    flex: 1 1 40%;
    font-size: 15px;
  }
}

/* ------------------------------------------------------------
   15. FAQアコーディオン
   ------------------------------------------------------------ */
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
}
.faq-item + .faq-item {
  margin-top: 16px;
}
.faq-item__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  transition: color var(--transition);
}
.faq-item__q:hover {
  color: var(--color-navy);
}
.faq-item__q::before {
  content: "Q";
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--color-navy);
}
.faq-item__q .faq-item__icon {
  flex: 0 0 auto;
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 16px;
  height: 2px;
  background: var(--color-navy);
  transform: translateY(-50%);
  transition: transform var(--transition);
}
.faq-item__icon::after {
  transform: translateY(-50%) rotate(90deg);
}
.faq-item__q[aria-expanded="true"] .faq-item__icon::after {
  transform: translateY(-50%) rotate(0deg);
}
.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.faq-item__a-inner {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.9;
}
.faq-item__a-inner::before {
  content: "A";
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--color-text-sub);
}

/* ------------------------------------------------------------
   16. フォーム
   ------------------------------------------------------------ */
.form {
  max-width: 720px;
  margin-inline: auto;
}
.form__field {
  margin-bottom: 32px;
}
.form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
.form__required {
  display: inline-block;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--color-navy);
  border-radius: 3px;
  line-height: 1.6;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(22, 50, 79, .12);
}
.form__input::placeholder,
.form__textarea::placeholder {
  /* 白背景に対してコントラスト比 4.5:1 以上（#B5B2AA は約2.1:1で不足していた） */
  color: var(--color-text-placeholder);
}
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form__textarea {
  min-height: 10em;
  resize: vertical;
}
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--color-navy);
  flex: 0 0 auto;
  cursor: pointer;
}
.form__submit {
  width: 100%;
  max-width: none;
}
.form__note {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--color-text-sub);
}

/* スパム対策のおとり項目。人の目にも支援技術にも触れさせない。
   display:none だと入力を嫌うボットがいるため、画面外へ逃がす。 */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信失敗の案内（hidden 属性で制御するため既定は非表示） */
.form__error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: #FDECEC;
  border: 1px solid #E0B4B4;
  color: #A02B2B;
  font-size: var(--fs-small);
  line-height: 1.7;
}
.form__error[hidden] { display: none; }

/* 送信完了メッセージ（インライン表示・alert禁止） */
.form-success {
  max-width: 720px;
  margin-inline: auto;
  padding: 48px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  text-align: center;
}
.form-success[hidden] {
  display: none;
}
.form-success__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 16px;
}
.form-success__body {
  max-width: 36em;
  margin: 0 auto 32px;
}

/* ------------------------------------------------------------
   17. テーブル（会社概要・料金表など）
   ------------------------------------------------------------ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 15px;
}
.table th,
.table td {
  padding: 18px 24px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}
.table th {
  width: 28%;
  min-width: 8em;
  background: var(--color-base);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .table th,
  .table td {
    display: block;
    width: 100%;
    border: none;
  }
  .table th {
    padding: 12px 16px 4px;
    background: var(--color-base);
    white-space: normal;
    min-width: 0; /* PC用の min-width:8em を解除し、SPでは全幅の見出し行にする */
  }
  .table td {
    padding: 4px 16px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .table tr:first-child th {
    border-top: 1px solid var(--color-border);
  }
  .table {
    border: 1px solid var(--color-border);
  }
}

/* ------------------------------------------------------------
   18. スクロールフェードイン（.reveal）
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }

/* JS無効・省モーション環境では常に表示 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* 疑似要素（.fv__scroll::after 等の infinite アニメ）は `*` にマッチしないため明示的に含める。
     iteration-count を 1 にしないと .01ms のループが無限に回り続ける */
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   19. ユーティリティ（8pxグリッド）
   ------------------------------------------------------------ */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
@media (max-width: 767px) {
  .btn-row {
    flex-direction: column;
    align-items: center;
  }
}

/* 視覚的に隠す（スクリーンリーダー用） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
