@charset "utf-8";
/* ============================================================
   株式会社吉岡商店 廃車買取LP
   ------------------------------------------------------------
   ブレークポイントは 1024px の1本だけです。
     〜1023px … スマホ版レイアウト（480px／768px以上は600pxで中央寄せ）
     1024px〜 … PC専用レイアウト
   デザイン元のプロトタイプが window.innerWidth で出し分けていた
   ものを、そのままメディアクエリに移し替えています。
   ============================================================ */

:root {
  --blue: #0B6FD4;
  --blue-dark: #08528F;
  --blue-pale: #CFE6FA;
  --blue-bg: #EAF4FD;
  --ink: #1F2933;
  --ink-2: #3E4A59;
  --ink-3: #5A6675;
  --ink-4: #93A0AF;
  --line: #E6EBF1;
  --line-2: #D3DCE6;
  --orange: #E8541F;
  --orange-dark: #CF4415;
  --red: #E60012;
  --yellow: #FFE100;
  --gray-bg: #F5F7FA;
  --round: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  /* ファーストビュー用の角ゴシック。丸ゴシックより硬い印象になります */
  --gothic: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --archivo: Archivo, 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; }
/* hidden属性は display 指定のある要素にも効かせます
   （.contact-card などが display:flex を持っているため） */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: var(--round); font-weight: 900; }
img { max-width: 100%; }
/* 画面幅ごとの画像パーツの出し分け。
   .hdr-logo img など、あとから出てくる指定に負けないよう !important を付けています。
   pc-only は下の 1024px 以上のブロックでまとめて表示に戻します。 */
.pc-only { display: none !important; }
/* ファーストビュー右カラムの見出し帯・黄色帯はPC版だけの要素です */
.fv-assess-head, .fv-assess-band { display: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: #A6AFBA; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

@keyframes yk-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes yk-sheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- ページ枠 ---------- */
.page {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.8;
  font-weight: 400;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(15, 35, 70, .08);
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) { .page { max-width: 600px; } }
@media (min-width: 1024px) {
  .page { max-width: none; box-shadow: none; padding-bottom: 0; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2rem); }
.wrap-narrow { max-width: 840px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2rem); }
.section { padding: clamp(3rem, 9vw, 5rem) 0; scroll-margin-top: 88px; }

/* セクション背景は「白 → 淡いブルー」を1つおきに繰り返します。
   実績カルーセルは中身が無いと非表示になるため、表示中のセクションだけを
   数え直す処理を lp.js の stripeSections() が行います。
   （ファーストビュー・お問い合わせ・フッターは単色のため対象外） */
.section, .carousel-section { background: #fff; }
.section.is-tint, .carousel-section.is-tint { background: var(--blue-bg); }
.section-title {
  margin: 0 0 clamp(3rem, 9vw, 5rem);
  text-align: center;
  font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.5;
}

/* ---------- ヘッダー ---------- */
/* ロゴ・ボタンはPC／スマホともデザイン支給の画像です */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.hdr-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .55rem calc(12px + env(safe-area-inset-right, 0px)) .55rem 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.hdr-logo { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.hdr-logo img { display: block; width: auto; height: 38px; }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.hdr-cta-sp, .hdr-tel-sp {
  flex: none; padding: 0; border: none; background: none; line-height: 0; cursor: pointer;
}
.hdr-cta-sp img, .hdr-tel-sp img { display: block; width: auto; height: 34px; }
.hdr-tel-sp img { filter: drop-shadow(0 2px 4px rgba(11, 111, 212, .28)); }
.hdr-tel-sp:active img { filter: brightness(.94); }

/* 査定ボタンは「押せる」ことがすぐ分かるように、
   ・1pxの影を4枚重ねて、画像の形に沿った4pxの厚み（立体の側面）を作る
   ・その下にぼかした影を置いて、紙面から浮かせる
   ・ときどき軽く弾ませ、押すと厚みが潰れて沈む
   の3つで見せます。画像は透過なので、角丸を推測せずに形へ正確に付きます。 */
.hdr-cta-sp {
  animation: yk-tap 2.8s ease-in-out infinite;
  transform-origin: center;
}
.hdr-cta-sp img {
  filter:
    drop-shadow(0 1px 0 #A00058) drop-shadow(0 1px 0 #A00058)
    drop-shadow(0 1px 0 #A00058) drop-shadow(0 1px 0 #A00058)
    drop-shadow(0 5px 7px rgba(120, 0, 66, .42));
  transition: filter .12s ease, transform .12s ease;
}
.hdr-cta-sp:active { animation: none; }
.hdr-cta-sp:active img {
  transform: translateY(4px);
  filter: drop-shadow(0 1px 3px rgba(120, 0, 66, .4)) brightness(.96);
}
/* 隣の電話アイコンに当たらない範囲（最大+3.5%）で弾ませます */
@keyframes yk-tap {
  0%, 70%, 100% { transform: scale(1); }
  78% { transform: scale(1.035); }
  86% { transform: scale(.988); }
  93% { transform: scale(1.01); }
}

@media (max-width: 389px) {
  .hdr-inner { padding: .5rem 10px; }
  .hdr-actions { gap: 6px; }
  .hdr-logo img { height: 30px; }
  .hdr-cta-sp img, .hdr-tel-sp img { height: 30px; }
}

@media (min-width: 1024px) {
  /* 左右の余白はファーストビュー（.fv-inner）と同じ40pxにして、
     ロゴの左端・電話ボタンの右端が下のコンテンツと揃うようにします */
  .hdr-inner { padding: 0 40px; min-height: 76px; justify-content: space-between; gap: 16px; }
  .hdr-actions { gap: 14px; margin-left: auto; }
  /* PCでは査定フォームがすぐ隣にあるので、弾ませる演出はしません */
  .hdr-cta-sp { animation: none; }
  /* PC版は支給いただいたロゴ・ボタン画像を使います */
  .hdr-logo-pc { height: 40px; }
  .hdr-cta-pc, .hdr-tel-pc {
    display: block; flex: none; padding: 0; border: none; background: none;
    line-height: 0; cursor: pointer;
  }
  .hdr-cta-pc img { display: block; width: auto; height: 52px; }
  .hdr-tel-pc img { display: block; width: auto; height: 58px; }
  .hdr-cta-pc:hover img, .hdr-tel-pc:hover img { filter: brightness(1.06); }
}

/* ------------------------------------------------------------
   ファーストビュー（〜1023px：スマホ版）
   ------------------------------------------------------------
   見出し・吹き出し・CTAはすべて支給画像です。位置と大きさは
   すべて % 指定なので、画面幅が変わってもデザイン画どおりの
   比率のまま拡大・縮小します（% の基準はページ幅）。
   ------------------------------------------------------------ */
.fv { position: relative; padding: 0; background: var(--blue); }
.fv-stripe {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, #4384F1 0 10.4%, #226EE2 10.4% 20.8%);
}
.fv-inner { position: relative; overflow: hidden; padding: 0; text-align: left; }

/* 画像に置き換えた見出しは、読み上げ・検索エンジン用に文字を残す */
.fv-kansai, .fv-kouka {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* --- 各パーツの位置（すべて % = ページ幅基準。画像は余白ゼロに切り出し済み） ---
   画像の縦横比      関西 5.758 / 高価買取 3.754 / 吹き出し 1.916 / CTA 2.783 / 人物 0.5188
   ページ幅を100%としたときの縦位置
     関西エリア限定    3.2 〜 18.5
     廃車高価買取     19.3 〜 39.0
     吹き出し1        40.6 〜 64.1
     吹き出し2        67.5 〜 91.0
     人物            27.0 〜（95.4以降はCTA帯の下に隠れる）
     CTA（桃＋黄）    95.4 〜 127.7（この下に厚み・影のぶん20pxの余白）
   ヒーロー全体の高さ = ページ幅の約129%                                  */
/* コピーは人物より前面に置きます（人物の髪が「廃車」バッジの後ろに回り込む） */
.fv-head-row { position: relative; z-index: 2; padding: 3.2% 6% 0; }
.fv-kouka-row { position: relative; z-index: 2; padding: .8% 3% 0 0; }
.fv-img-kansai { display: block; width: 100%; height: auto; }
.fv-img-kouka { display: block; width: 74%; height: auto; margin-left: auto; }

.fv-lower { position: relative; width: 100%; aspect-ratio: auto; padding-bottom: 4.4%; }
/* 人物は元素材をそのまま（切り取りなし）使い、脚は桃色ブロックの後ろへ続かせます。
   top:0 + マイナスの margin-top で、位置も大きさもページ幅基準に揃えています
   （margin の % はページ幅が基準なので、画面幅が変わっても比率が崩れません）。 */
.fv-person {
  position: absolute; left: -3%; top: 0; margin-top: -12%; bottom: auto;
  z-index: 1; width: 58%; height: auto; max-width: none;
}
.fv-bubbles {
  position: relative; z-index: 2; padding-top: 1.6%;
  display: flex; flex-direction: column; align-items: flex-end;
}
.fv-bubble { line-height: 0; }
.fv-bubble.a { width: 45%; margin-right: 1%; }
.fv-bubble.b { width: 45%; margin: 3.4% 4.5% 0 0; }
.fv-img-bubble { display: block; width: 100%; height: auto; }

/* CTA帯は背景にヒーローと同じストライプを敷いて不透明にし、
   人物の脚の下端をここで隠します（.fv-stripe と幅・起点が同じなので柄がつながります） */
/* 下の余白20pxは、ボタンの厚みと影がヒーローの外にはみ出して
   切れないようにするための逃げです（.fv-inner が overflow:hidden のため）。
   背景のストライプは、その下端20pxだけに敷いています。
   ・上側を透明にしておくことで、人物の脚が桃色ブロックの左右の余白から
     下へ続いて見え、「ブロックの後ろに立っている」ように見えます
   ・下端だけ不透明にして、そこで脚を止めます
   （全幅を不透明にすると、体が横一線で切れて見えてしまうため） */
.fv-cta-area {
  position: relative; z-index: 3; padding: 0 5% 20px; scroll-margin-top: 96px;
  background:
    repeating-linear-gradient(90deg, #4384F1 0 10.4%, #226EE2 10.4% 20.8%)
    0 100% / 100% 20px no-repeat;
}
/* ヘッダーの査定ボタンと同じ作り。2pxの影を3枚重ねて画像の形に沿った
   6pxの厚み（立体の側面）を作り、その下のぼかし影で紙面から浮かせます。
   弾むタイミングはヘッダーと半周ずらして、2つが同時に動かないようにしています。 */
.fv-cta {
  display: block; width: 100%; padding: 0; border: none;
  background: none; line-height: 0; cursor: pointer;
  animation: yk-tap 2.8s ease-in-out 1.4s infinite;
  transform-origin: center bottom;
}
.fv-cta img {
  display: block; width: 100%; height: auto;
  filter:
    drop-shadow(0 2px 0 #A00058) drop-shadow(0 2px 0 #A00058) drop-shadow(0 2px 0 #A00058)
    drop-shadow(0 8px 11px rgba(120, 0, 66, .4));
  transition: filter .12s ease, transform .12s ease;
}
.fv-cta:active { animation: none; }
.fv-cta:active img {
  transform: translateY(6px);
  filter: drop-shadow(0 2px 5px rgba(120, 0, 66, .38)) brightness(.96);
}

@media (min-width: 1024px) {
  /* ------------------------------------------------------------
     ファーストビュー（1024px〜：PC版）
     左カラム＝キャッチコピーと人物、右カラム＝かんたん査定カード。
     ------------------------------------------------------------ */
  .fv-stripe { background: repeating-linear-gradient(90deg, #4384F1 0 36px, #226EE2 36px 72px); }
  .fv-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: grid; grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-rows: auto auto 1fr; gap: 0 28px; align-items: stretch;
  }
  .fv-cta-area { display: none; }

  .fv-head-row { grid-column: 1; grid-row: 1; padding: 64px 0 0; }
  .fv-kouka-row { grid-column: 1; grid-row: 2; padding: 6px 0 0; }
  /* 2行を右揃えで積み、「関西エリア限定」が「高価買取」の真上に来るようにします */
  .fv-img-kansai { width: 86%; max-width: 580px; margin-left: auto; }
  .fv-img-kouka { width: 80%; max-width: 545px; margin-left: auto; }

  .fv-lower {
    grid-column: 1; grid-row: 3; align-self: stretch; position: relative;
    min-height: 240px; padding-bottom: 0;
  }
  /* 吹き出しの幅（56%）と合わせて、電卓にかぶらない配分にしています */
  .fv-person {
    position: absolute; left: 6%; top: auto; margin-top: 0; bottom: 0; z-index: 1;
    width: 39%; max-width: 265px; height: auto;
  }
  .fv-bubbles {
    position: absolute; right: 0; bottom: 40px; z-index: 2;
    width: 56%; max-width: 376px; padding-top: 0;
    display: flex; flex-direction: column; align-items: flex-end; gap: 48px;
  }
  .fv-bubble.a { width: 100%; margin: 0; }
  .fv-bubble.b { width: 100%; margin: 0 26px 0 0; }

  /* ---- 右カラム：かんたん査定カード ----
     ピンクの見出し帯・査定カード・黄色の帯を1枚のカードにまとめています。
     見出しと帯を横長のスリムな帯にしたぶん、選択肢の見える範囲を広くしました。
     高さは決め打ちなので、ステップが変わってもヒーローの高さは動きません
     （選択肢が多いステップは、カードの中だけがスクロールします）。 */
  .fv-assess {
    grid-column: 2; grid-row: 1 / -1; align-self: start; height: 760px;
    display: flex; flex-direction: column; padding: 26px 0 30px;
  }
  .fv-assess-card {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 14px 32px rgba(6, 22, 52, .26);
  }
  .fv-assess-head {
    flex: none; display: flex; align-items: center; justify-content: center;
    gap: 12px; margin: 0; padding: 13px 16px;
    background: linear-gradient(90deg, #E5007F 0%, #FF3D9A 100%);
    color: #fff; white-space: nowrap;
  }
  .fv-assess-head .sub {
    display: flex; align-items: center; gap: 4px;
    font-size: 15px; font-weight: 700; line-height: 1.3;
  }
  .fv-assess-head .sub i { font-style: normal; font-weight: 500; }
  .fv-assess-head .main {
    font-family: var(--round); font-size: 27px; font-weight: 900;
    line-height: 1.25; letter-spacing: .02em;
  }
  .fv-assess-band {
    flex: none; display: block; margin: 0; padding: 11px 12px; background: var(--yellow);
    text-align: center; font-size: 15px; font-weight: 700;
    letter-spacing: .01em; line-height: 1.4; color: #111; white-space: nowrap;
  }
  .fv-assess-band em { font-style: normal; color: var(--red); letter-spacing: .06em; }

  /* 画像パーツの出し分け。PC用を出し、スマホ用を隠します
     （.fv-img-kansai などのクラスはPC・スマホ共通なので、
       ここは pc-only / sp-only 側で切り替えます） */
  .pc-only { display: block !important; }
  .sp-only { display: none !important; }
}

/* ---------- こんな車でも買取できます ---------- */
#types .section-title {
  font-size: clamp(1.25rem, 5.6vw, 1.75rem); white-space: nowrap;
}
.types-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.types-grid li {
  background: #fff; border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2rem) 1rem; text-align: center;
}
.types-grid img {
  display: block; width: 100%; max-width: 150px; height: 88px;
  object-fit: contain; margin: 0 auto 1.25rem;
}
.types-grid h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--blue); line-height: 1.6; }
@media (min-width: 768px) { .types-grid { grid-template-columns: repeat(3, 1fr); } }

.flow-note { display: block; margin-top: .5rem; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 買取実績カルーセル ---------- */
.carousel-section { padding: clamp(3rem, 9vw, 5rem) 0; overflow: hidden; }
.carousel-section[hidden] { display: none; }
.carousel-mask {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.rail {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  /* 指では左右も上下も動かせるようにする（ページの縦スクロールを妨げない） */
  touch-action: pan-x pan-y; cursor: grab; -webkit-overflow-scrolling: touch;
  /* html の smooth 指定が効くと自動スクロールがカクつくので打ち消す */
  scroll-behavior: auto;
}
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 2rem; width: max-content; padding: 0 1rem; }
.result-card {
  flex: none; width: 280px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.result-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.result-card .noimg {
  width: 100%; aspect-ratio: 16/9; background: #EBF1F8;
  display: grid; place-items: center; color: var(--ink-4); font-size: 12px; line-height: 1.6;
}
.result-card .body { padding: 1.1rem; }
.result-card h3 { margin: 0 0 .3rem; font-size: 16px; font-weight: 700; color: var(--blue); line-height: 1.6; }
.result-card .meta { margin: 0 0 .8rem; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }
.result-card .tag {
  display: inline-block; margin-bottom: .9rem; padding: .25rem .7rem; border-radius: 4px;
  background: var(--blue-pale); color: var(--blue); font-size: 11.5px; font-weight: 700; line-height: 1.6;
}
.result-card .price { margin: 0; line-height: 1.1; }
.result-card .price b { font-family: var(--archivo); font-size: 2rem; font-weight: 900; color: var(--orange); }
.result-card .price span { margin-left: .2em; font-size: 13px; font-weight: 700; color: var(--ink); }
.carousel-note { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.9; }

/* ---------- 買取の流れ ---------- */
.flow-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .flow-grid { grid-template-columns: repeat(4, 1fr); } }
.flow-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.flow-num {
  font-family: var(--archivo); font-weight: 900; font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1; color: var(--blue-pale); letter-spacing: -.02em;
}
.flow-rule { flex: 1; height: 1px; background: var(--blue-pale); }
.flow-grid img { flex: none; width: 56px; height: 56px; object-fit: contain; display: block; }
.flow-grid h3 { margin: 0 0 .5rem; font-size: 17px; font-weight: 700; color: var(--blue); line-height: 1.6; }
.flow-grid p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.9; }

/* ---------- 対応エリア ---------- */
/* ---------- お引き取り対応エリア ---------- */
.area-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 700px)  { .area-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-cards { grid-template-columns: repeat(3, 1fr); } }
.area-card {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 2px solid var(--blue); border-radius: 10px;
  padding: 1.5rem 1.25rem;
}
.area-card .area-map {
  width: 100%; max-width: 190px; height: 150px; margin: 0 auto .25rem;
  object-fit: contain;
}
.area-card h3 {
  margin: .75rem 0 1rem; font-family: var(--gothic); font-size: 18px; font-weight: 900;
  letter-spacing: .02em; color: var(--orange); text-align: center;
}
.area-card p {
  margin: 0; width: 100%; font-size: 13.5px; font-weight: 500;
  line-height: 2; color: var(--ink-2); text-align: left; word-break: keep-all;
}
.area-card .nw { white-space: nowrap; }
.area-note { margin: 2rem 0 0; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.8; }

/* ---------- お引き取り不可エリア ---------- */
.ng-scroll { overflow-x: auto; }
.ng-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 2px solid var(--ink); table-layout: fixed;
}
.ng-table caption {
  padding: .9rem 1rem; border: 2px solid var(--ink); border-bottom: none;
  background: var(--gray-bg); font-family: var(--gothic);
  font-size: clamp(15px, 4.2vw, 18px); font-weight: 900; color: var(--ink);
}
.ng-table th, .ng-table td {
  border: 1px solid var(--ink); padding: 1rem 1.1rem;
  font-size: 14px; line-height: 1.9; text-align: left; vertical-align: middle;
}
.ng-table th { width: 30%; font-weight: 700; color: var(--ink); }
.ng-table td { color: var(--ink-2); font-weight: 500; }

/* スマホでは横に伸ばさず、県名の下に市町村を並べる */
@media (max-width: 699px) {
  .ng-table, .ng-table caption, .ng-table tbody,
  .ng-table tr, .ng-table th, .ng-table td { display: block; width: auto; }
  .ng-table caption { border-bottom: 2px solid var(--ink); text-align: center; }
  .ng-table tr + tr { border-top: 1px solid var(--ink); }
  .ng-table th { border: none; padding: .9rem 1rem .2rem; background: var(--gray-bg); }
  .ng-table td { border: none; padding: .7rem 1rem 1rem; }
}
/* ---------- 迷惑投稿よけ ---------- */
/* 人には見えず、読み上げソフトにも読まれない入力欄。
   display:none だと無視するボットがいるため、画面外に追い出しています。 */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* Turnstile（ボット判定）の置き場所。未設定のときは何も出ません。 */
.ts-box:not(:empty) { margin: 0 0 1rem; }

.ng-note { margin: .75rem 0 0; text-align: right; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 選ばれる理由 ---------- */
.reason-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem); margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.reason-row:last-child { margin-bottom: 0; }
.reason-row.rev { flex-direction: row-reverse; }
.reason-media {
  flex: 1 1 340px; position: relative; aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden; background: #EBF1F8;
}
.reason-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reason-body { flex: 1 1 340px; }
.reason-tag {
  margin: 0 0 .75rem; font-family: var(--archivo); font-weight: 700;
  font-size: 14px; letter-spacing: .14em; color: var(--orange);
}
.reason-body h3 {
  margin: 0 0 1.5rem; font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900; color: var(--blue); line-height: 1.6;
}
.reason-body p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.9; }

/* ---------- 代表メッセージ ---------- */
.msg-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(2rem, 4vw, 3.5rem); }
.msg-media {
  flex: 1 1 300px; position: relative; aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden; background: #EBF1F8;
}
.msg-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.msg-body { flex: 1 1 360px; }
.msg-body h2 {
  margin: 0 0 1.5rem; font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  font-weight: 900; color: var(--blue); line-height: 1.5;
}
.msg-body p { font-size: 15px; color: var(--ink-2); line-height: 1.9; }

/* ---------- よくあるご質問 ---------- */
/* よくあるご質問の直下に出す約束バナー */
.faq-promise {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin: -2.5rem 0 3rem; padding: clamp(.85rem, 3vw, 1.1rem) 1rem;
  background: #FFF8DC; border: 3px solid var(--blue); border-radius: 8px;
  font-family: var(--gothic); font-size: clamp(15px, 4.4vw, 20px); font-weight: 900;
  line-height: 1.5; letter-spacing: -.01em; text-align: center; color: var(--blue-dark);
}
.faq-promise svg { flex: none; color: var(--orange); }

.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--gray-bg); border-radius: 6px; }
.faq-item h3 { margin: 0; }
.faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 56px; padding: 1rem 1.25rem; background: none; border: none;
  color: var(--blue); font-size: 15px; font-weight: 700; line-height: 1.7;
  text-align: left; cursor: pointer;
}
.faq-btn .icon { flex: none; font-family: var(--archivo); font-size: 20px; font-weight: 700; color: var(--ink-3); }
.faq-panel { padding: 0 1.25rem 1.25rem; }
.faq-panel p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* ---------- ご相談が必要なお車について ---------- */
/* 中の青い箱が画面幅いっぱいに広がるので、セクション側の上下余白は取りません。
   余白があると、前後のセクションとのあいだに白い帯が浮いて見えます。 */
#notice { padding: 0; }
.notice-box { background: var(--blue); padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem); text-align: center; }
.notice-box h2 { margin: 0 0 1.5rem; font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 900; color: #fff; line-height: 1.5; }
.notice-box .lead {
  margin: 0 auto 3rem; max-width: 36em; font-size: clamp(14px, 1.7vw, 16px);
  color: rgba(255, 255, 255, .92); line-height: 1.9;
}
.notice-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn-pink {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 64px; padding: 0 clamp(1.75rem, 4vw, 3rem); border: none; border-radius: 8px;
  background: linear-gradient(90deg, #E5007F 0%, #FF0066 100%); color: #fff;
  font-size: clamp(15px, 2vw, 17px); font-weight: 700; line-height: 1.5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); cursor: pointer;
}
.btn-pink:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 64px; padding: 0 clamp(1.75rem, 4vw, 3rem);
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 8px; color: #fff;
  font-size: clamp(15px, 2vw, 17px); font-weight: 700; line-height: 1.5;
}
.btn-ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.notice-tel { margin: 2rem 0 0; font-size: 13px; color: rgba(255, 255, 255, .75); line-height: 1.8; }
.notice-tel a {
  color: #fff; font-family: var(--archivo); font-weight: 700; font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
}
.notice-tel a:hover { color: #fff; }

/* ---------- 会社概要 ---------- */
.company-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.9; }
.company-table th {
  width: 30%; padding: 1.1rem 1rem; text-align: left; vertical-align: top; font-weight: 700;
  color: var(--blue); background: var(--gray-bg); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.company-table td { padding: 1.1rem 1rem; vertical-align: top; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* ---------- お申し込み・お問い合わせ ---------- */
#contact { background: var(--blue); scroll-margin-top: 80px; }
#contact h2 {
  margin: 0 0 1.25rem; text-align: center; font-size: clamp(1.5rem, 4.2vw, 2.25rem);
  font-weight: 900; color: #fff; line-height: 1.5;
}
#contact .lead {
  margin: 0 auto clamp(3rem, 9vw, 5rem); max-width: 50em; text-align: center;
  font-size: 14px; color: rgba(255, 255, 255, .9); line-height: 1.9;
}
.contact-cols { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: stretch; }
.contact-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  background: #fff; border-radius: 8px; padding: clamp(1.5rem, 3vw, 2rem); text-align: center;
}
.contact-card h3 {
  margin: 0 0 1.5rem; display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: 15px; font-weight: 700; color: var(--blue); line-height: 1.6;
}
.contact-tel {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  font-family: var(--archivo); font-weight: 900; font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--blue); line-height: 1.3; letter-spacing: -.01em;
}
.contact-tel:hover { color: var(--orange); }
.contact-card p { margin: .75rem 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.75rem; border-radius: 6px; background: #06C755;
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.btn-line:hover { background: #05A948; color: #fff; }
.btn-insta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.75rem; border-radius: 6px; white-space: nowrap;
  background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%);
  color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5;
}
.btn-insta:hover { color: #fff; filter: brightness(1.08); }
.contact-card h3 svg { flex: none; }
.contact-form-card {
  flex: 1.6 1 420px; background: #fff; border-radius: 8px; padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.contact-form-card > h3 { margin: 0 0 1.5rem; text-align: center; font-size: 15px; font-weight: 700; color: var(--blue); line-height: 1.6; }
.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.form-label {
  display: block; margin-bottom: .5rem; font-size: 13.5px;
  font-weight: 700; color: var(--ink); line-height: 1.6;
}
.badge-req {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem; border-radius: 3px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 700;
}
.badge-opt { margin-left: .5rem; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.field {
  width: 100%; min-height: 52px; padding: .85rem 1rem; border: 1px solid var(--line-2);
  border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6;
}
textarea.field { min-height: 120px; line-height: 1.8; resize: vertical; }
.check-row {
  display: flex; align-items: flex-start; gap: .7rem; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.7;
}
.check-row input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--blue); flex: none; }
.form-error { margin: 0; font-size: 13px; font-weight: 500; color: #C4400F; line-height: 1.7; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; min-height: 56px; border: none; border-radius: 6px; background: var(--orange);
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer;
}
.btn-submit:hover { background: var(--orange-dark); }
.btn-submit:disabled { background: #D8DEE6; cursor: not-allowed; }
.form-foot { margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.form-sent { padding: 2.5rem 1rem; text-align: center; }
.form-sent .t { margin: 0 0 1rem; font-size: clamp(1.05rem, 3vw, 1.25rem); font-weight: 900; color: var(--blue); line-height: 1.6; }
.form-sent .d { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* ---------- フッター ---------- */
.ftr { background: var(--blue-dark); padding: clamp(3rem, 5.5vw, 4.5rem) 0 2.5rem; }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.ftr-brand { flex: 1 1 300px; }
.ftr-brand img { height: 30px; width: auto; display: block; margin-bottom: .35rem; }
.ftr-brand .sub {
  margin: 0 0 1.5rem; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255, 255, 255, .8); line-height: 1.4;
}
.ftr-brand .addr { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); line-height: 1.9; }
.ftr-sns {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
}
.ftr-sns li[hidden] { display: none; }
.ftr-sns a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85);
}
.ftr-sns a:hover { color: #fff; }
.ftr-sns svg { flex: none; }
.ftr-nav {
  flex: 1 1 300px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50% - .5rem, 140px), 1fr)); gap: 1rem 2rem;
}
.ftr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.ftr-nav .head {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: rgba(255, 255, 255, .55); line-height: 1.6; margin-bottom: .35rem;
}
/* 指で押しやすいよう、リンクの当たり判定を上下に広げる */
.ftr-nav a {
  display: inline-block; padding: .45rem 0;
  font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.8;
}
.ftr-nav a:hover { color: #fff; }
.ftr-copy { margin: 3rem 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .55); line-height: 1.8; }

/* ---------- 下部固定バー（スマホのみ） ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 600px; margin: 0 auto;
  z-index: 60; display: flex; background: #fff;
  box-shadow: 0 -2px 14px rgba(11, 32, 70, .16); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-bar a, .bottom-bar button {
  flex: 1; min-height: 60px; display: flex; align-items: center; justify-content: center;
  gap: .5rem; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4;
  border: none; cursor: pointer; white-space: nowrap;
}
/* 小さい端末で「フォームで申し込む」が2行に折り返さないようにする */
@media (max-width: 359px) {
  .bottom-bar a, .bottom-bar button { font-size: 13px; gap: .35rem; }
}
.bottom-bar .tel { background: var(--blue); }
.bottom-bar .tel:hover { background: #153B7E; color: #fff; }
.bottom-bar .form { background: var(--orange); }
.bottom-bar .form:hover { background: var(--orange-dark); color: #fff; }
/* ファーストビューの査定ボタンと重ならないよう、そこが見えている間は引っ込めます */
.bottom-bar { transition: transform .25s ease; }
.bottom-bar.is-hidden { transform: translateY(110%); pointer-events: none; }
@media (min-width: 1024px) { .bottom-bar { display: none; } }

/* ============================================================
   かんたん査定モーダル
   ============================================================ */
.modal-wrap {
  position: fixed; inset: 0; z-index: 100; display: flex;
  justify-content: center; align-items: flex-end; padding: 0;
}
.modal-wrap[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(6, 22, 52, .66); border: none; padding: 0; }
.modal-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  max-width: 480px; max-height: 92vh; background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 24px 64px rgba(6, 22, 52, .4); overflow: hidden; animation: yk-sheet .28s ease;
}
.modal-head {
  position: relative; flex: none; padding: 1rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
.modal-head-row { display: flex; align-items: center; gap: .85rem; padding-right: 3rem; }
.modal-step {
  font-family: var(--archivo); font-weight: 700; font-size: 12.5px;
  letter-spacing: .08em; color: var(--blue); white-space: nowrap;
}
.modal-bar { flex: 1; height: 6px; border-radius: 999px; background: #E3EAF3; overflow: hidden; }
.modal-bar i { display: block; height: 100%; background: var(--blue); border-radius: 999px; transition: width .35s ease; }
.modal-close {
  position: absolute; top: .55rem; right: clamp(.5rem, 2vw, 1rem); width: 44px; height: 44px;
  display: grid; place-items: center; border: none; background: none;
  color: var(--ink-3); cursor: pointer; border-radius: 8px;
}
.modal-close:hover { background: #F1F4F8; color: var(--blue); }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(1.25rem, 3vw, 1.75rem); }
.modal-foot {
  flex: none; padding: .9rem clamp(1rem, 3vw, 1.75rem) 1.1rem;
  border-top: 1px solid var(--line); background: #fff;
}
.modal-foot[hidden] { display: none; }
.step-pane { animation: yk-fade .25s ease; }
.step-pane[hidden] { display: none; }
.step-title {
  margin: 0 0 1.25rem; font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 900; color: var(--blue); line-height: 1.6;
}
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.opt-grid.years { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.opt-btn {
  min-height: 56px; padding: .75rem 1rem; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.5;
  cursor: pointer; text-align: center;
}
.opt-btn:hover { border-color: var(--blue); background: #F4F8FD; }
/* 選んだものが分かるようにします（STEP6は自動で次に進まないため） */
.opt-btn.on { border-color: var(--blue); background: #E7F1FC; font-weight: 700; box-shadow: inset 0 0 0 1px var(--blue); }
.search-field {
  width: 100%; min-height: 52px; margin-bottom: 1rem; padding: .8rem 1rem;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  font-size: 16px; color: var(--ink); line-height: 1.6;
}
/* 旧STEP7「特殊なご事情」をSTEP6の下半分としてまとめたブロック */
.special-block { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.special-block[hidden] { display: none; }
.step-subtitle {
  margin: 0 0 .85rem; font-size: 14.5px; font-weight: 900;
  color: var(--blue); line-height: 1.7;
}
.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-card {
  display: flex; align-items: flex-start; gap: .75rem; min-height: 56px; padding: 1rem;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  font-size: 15px; color: var(--ink); line-height: 1.6; cursor: pointer;
}
.check-card:hover { border-color: var(--blue); background: #F4F8FD; }
.check-card input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--blue); flex: none; }
.hint { margin: 1rem 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.btn-big {
  display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  min-height: 64px; margin-top: 1.5rem; border: none; border-radius: 8px;
  background: var(--orange); color: #fff; font-size: 16px; font-weight: 700;
  line-height: 1.5; cursor: pointer;
}
.btn-big:hover { background: var(--orange-dark); }
.btn-big:disabled { background: #D8DEE6; cursor: not-allowed; }
.result-pane { text-align: center; }
.result-label { margin: 0 0 .5rem; font-size: 13px; font-weight: 700; color: var(--ink-3); line-height: 1.6; }
.result-amount { margin: 0; color: var(--blue); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.result-amount .n { font-family: var(--archivo); font-size: clamp(1.9rem, 7vw, 2.6rem); }
.result-amount .w { font-size: clamp(1rem, 3vw, 1.3rem); margin: 0 .25em; }
.result-amount .y { font-size: clamp(.95rem, 2.6vw, 1.15rem); margin-left: .15em; }
.result-note { margin: 1rem 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }
.consult-title { margin: 0 0 .6rem; font-size: clamp(1.05rem, 3vw, 1.25rem); font-weight: 900; color: var(--blue); line-height: 1.6; }
.consult-body { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.btn-back {
  display: block; width: 100%; margin-top: .75rem; min-height: 44px; background: none;
  border: none; color: var(--ink-3); font-size: 13.5px; font-weight: 500;
  cursor: pointer; text-decoration: underline;
}
.btn-back:hover { color: var(--blue); }

@media (min-width: 1024px) {
  /* ------------------------------------------------------------
     PCでは、査定（STEP1〜6）と査定結果をファーストビュー右カラムに
     カードとして直接置きます。申し込みフォーム以降だけ、JSが
     .as-overlay を付けて画面中央のダイアログに切り替えます。
     ------------------------------------------------------------ */
  .modal-wrap, .modal-wrap[hidden] {
    position: static; display: flex !important; z-index: auto;
    flex: 1 1 0; min-height: 0; padding: 0; align-items: stretch;
  }
  .modal-card {
    width: 100%; height: 100%; max-width: none; max-height: none;
    border-radius: 0; box-shadow: none; animation: none;
  }
  .modal-scrim, .modal-close { display: none; }
  .modal-head { padding: .85rem 1.1rem; }
  .modal-head-row { padding-right: 0; }
  .modal-body { padding: 1.1rem; scrollbar-gutter: stable; }
  /* 査定結果は中身が短いので、カードの中央に置きます */
  .result-pane {
    min-height: 100%; display: flex; flex-direction: column; justify-content: center;
  }
  .modal-foot { padding: .9rem 1.1rem 1rem; }

  /* 申し込みフォーム以降：画面中央のダイアログに戻す
     （.modal-wrap は場所取りとして残すので、後ろのレイアウトは動きません） */
  .modal-wrap.as-overlay .modal-scrim {
    display: block; position: fixed; inset: 0; z-index: 200;
  }
  /* 中央寄せに transform を使うと0.5px単位の位置になり、文字がにじみます。
     inset + margin:auto なら整数ピクセルに収まるので、文字がくっきり出ます。 */
  .modal-wrap.as-overlay .modal-card {
    position: fixed; z-index: 201; inset: 0; margin: auto;
    width: min(760px, calc(100vw - 3rem)); height: max-content; max-height: 88vh;
    box-shadow: 0 24px 64px rgba(6, 22, 52, .4);
  }
  .modal-wrap.as-overlay .modal-close { display: grid; }
  .modal-wrap.as-overlay .modal-head { padding: 1rem 1.75rem; }
  .modal-wrap.as-overlay .modal-head-row { padding-right: 3rem; }
  .modal-wrap.as-overlay .modal-body { padding: 1.75rem; }
  .modal-wrap.as-overlay .modal-foot { padding: .9rem 1.75rem 1.1rem; }
}
.frow {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem;
  align-items: start; padding: 1.15rem 0; border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .frow { grid-template-columns: 172px minmax(0, 1fr); gap: 1.25rem; } }
.flabel { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
@media (min-width: 1024px) { .flabel { padding-top: .85rem; } }
.req {
  display: inline-block; margin-left: .5rem; padding: .05rem .4rem; border: 1px solid var(--orange);
  border-radius: 3px; color: #C4400F; font-size: 10.5px; font-weight: 700;
  line-height: 1.6; vertical-align: 2px;
}
.opt {
  display: inline-block; margin-left: .5rem; padding: .05rem .4rem; border: 1px solid #C9D2DD;
  border-radius: 3px; color: var(--ink-3); font-size: 10.5px; font-weight: 700;
  line-height: 1.6; vertical-align: 2px;
}
.err { margin: .45rem 0 0; font-size: 12.5px; color: #C4400F; line-height: 1.7; }
.err[hidden] { display: none; }
.mfield {
  width: 100%; min-height: 56px; padding: .9rem 1rem; border: 1px solid var(--line-2);
  border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6;
}
textarea.mfield { min-height: 96px; line-height: 1.8; resize: vertical; }
.mfield.zip { max-width: 220px; }
.radio-list { display: flex; flex-direction: column; gap: .5rem; }
.radio-btn {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 52px;
  padding: .7rem 1rem; border-radius: 8px; cursor: pointer; text-align: left;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 14.5px; font-weight: 500; line-height: 1.6;
}
.radio-btn:hover { border-color: var(--blue); background: #F4F8FD; }
.radio-btn[aria-checked="true"] { border-color: var(--blue); background: #F4F8FD; font-weight: 700; }
.radio-btn i {
  flex: none; display: block; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #B7C4D3; box-sizing: border-box;
}
.radio-btn[aria-checked="true"] i { border: 6px solid var(--blue); }
.doc-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem;
  font-size: 13px; font-weight: 700; text-decoration: underline;
}
.factory-note {
  margin: .7rem 0 0; padding: .7rem .85rem; border-radius: 6px; background: #F4F8FD;
  font-size: 13px; color: var(--ink); line-height: 1.8;
}
.zone-note {
  margin: .5rem 0 0; padding: .6rem .8rem; border-radius: 6px; background: #F4F8FD;
  border-left: 3px solid var(--blue-pale); font-size: 12.5px; color: var(--ink-2); line-height: 1.8;
}
.blocked-note { margin-bottom: 1.5rem; padding: 1rem; background: #F4F8FD; border-radius: 8px; }
.blocked-note p { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.9; }

/* 予約カレンダー */
.cal { border: 1px solid var(--line); border-radius: 10px; padding: .85rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.cal-nav {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; color: var(--blue);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.cal-nav:disabled { color: #C9D2DD; cursor: not-allowed; }
.cal-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { margin-bottom: 2px; }
.cal-dow span { text-align: center; padding: .3rem 0; font-size: 11.5px; font-weight: 700; line-height: 1.5; color: var(--ink-3); }
.cal-dow span:first-child { color: #C4400F; }
.cal-dow span:last-child { color: var(--blue); }
.cal-cell {
  min-height: 44px; border-radius: 6px; font-size: 14px; line-height: 1;
  font-family: var(--archivo); font-weight: 500; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
}
.cal-cell:disabled { border-color: transparent; background: #F7F8F9; color: #C9D2DD; cursor: default; }
.cal-cell.empty { border: none; background: transparent; }
.cal-cell.on { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 900; }
.cal-foot { margin: .75rem 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.8; }
.sel-date {
  margin: 0 0 .7rem; padding: .7rem .9rem; border-radius: 8px; background: #F7F8F9;
  color: var(--ink-4); font-size: 13px; font-weight: 500; line-height: 1.5;
}
.sel-date.on {
  background: #F4F8FD; color: var(--blue);
  font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 900;
}

/* 確認画面 */
.crow {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .2rem;
  padding: .85rem 0; border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .crow { grid-template-columns: 158px minmax(0, 1fr); gap: 1.25rem; } }
.crow .k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); line-height: 1.7; }
.crow .v { font-size: 14px; color: var(--ink); line-height: 1.8; white-space: pre-line; }
.done-pane { padding: 1.5rem 0; text-align: center; }
.done-pane .t { margin: 0 0 1rem; font-size: clamp(1.05rem, 3vw, 1.3rem); font-weight: 900; color: var(--blue); line-height: 1.6; }
.done-pane .d { margin: 0 0 1.75rem; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.receipt {
  display: inline-block; padding: 1rem 1.5rem; border: 1px solid var(--blue-pale);
  border-radius: 8px; background: #F4F8FD;
}
.receipt .k { margin: 0 0 .25rem; font-size: 12px; font-weight: 700; color: var(--ink-3); line-height: 1.6; }
.receipt .v { margin: 0; font-family: var(--archivo); font-size: 1.35rem; font-weight: 900; color: var(--blue); letter-spacing: .02em; }
.agree-row {
  display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .85rem;
  cursor: pointer; font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
}
.agree-row input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--blue); flex: none; }
.foot-btns { display: flex; gap: .6rem; }
.btn-secondary {
  flex: none; min-width: 110px; min-height: 56px; padding: 0 1rem;
  border: 1px solid #B7C4D3; border-radius: 8px; background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--blue); background: #F4F8FD; }
.btn-send {
  flex: 1; min-height: 56px; border: none; border-radius: 8px; background: var(--orange);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn-send:hover { background: var(--orange-dark); }
.btn-send:disabled { background: #D8DEE6; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step-pane, .modal-card, .hdr-cta-sp, .fv-cta { animation: none; }
}

/* ============================================================
   印刷・PDF書き出し用
   ------------------------------------------------------------
   画面用の「追従」「横スクロール」をやめ、全部が紙に載る形にします。
   npm run pdf でこの体裁のPDFを書き出せます。
   ============================================================ */
@media print {
  body { background: #fff; }
  /* 幅はそのまま（画面と同じ見た目で出す）。枠線と下部バーの余白だけ消す */
  .page { box-shadow: none; padding-bottom: 0; }

  /* 追従ヘッダーは先頭に1回だけ、下部固定バーは印刷しない */
  .hdr { position: static; }
  .bottom-bar, .modal-wrap { display: none !important; }
  /* 査定カードを外すぶん、ファーストビュー右カラムの高さも詰める */
  .fv-assess, .fv-assess-card { height: auto !important; min-height: 0 !important; }

  /* カルーセルは複製された2セット目以降を隠し、折り返して全件見せる */
  .carousel-mask { -webkit-mask-image: none; mask-image: none; }
  .rail { overflow: visible; }
  .rail-track {
    width: auto; flex-wrap: wrap; justify-content: center;
    gap: 1rem; padding: 0 clamp(1.25rem, 5vw, 2rem);
  }
  .rail-track .result-card:not(.print-keep) { display: none; }

  /* アコーディオンは開いた状態で印刷する */
  .faq-panel[hidden] { display: block !important; }
  .faq-btn .icon { display: none; }

  /* 区切りの良いところで改ページする */
  .section, .carousel-section { break-inside: auto; }
  .reason-row, .result-card, .faq-item, .contact-card { break-inside: avoid; }
  h2, h3 { break-after: avoid; }

  a { text-decoration: none; }
}
