/* =====================================================
   style-c.css — index-C（最適化版）専用の上書きスタイル
   style4.css の後に読み込むこと
   ① Service：PCでもコンパクトなカード表示
   ② Service：費用の目安テーブル
   ③ Service：代表紹介（費用の下）
   ④ Option：アコーディオン版（B案ベース）
   ===================================================== */

/* ---------- ① Service section：PCコンパクト化 ---------- */
@media (min-width: 769px) {
  .service-aboutus { padding: 24px 32px 32px; gap: 24px; }
  .service-h2      { padding: 32px 0 8px; }

  .service-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .service-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "img   title"
      "body  body";
    align-items: center;
    column-gap: 14px;
    row-gap: 10px;
    padding: 16px 18px;
    flex: none;
    min-width: 0;
  }
  .service-card .card-img {
    grid-area: img;
    width: 112px;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
  }
  .service-card .card-title {
    grid-area: title;
    width: auto;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    letter-spacing: -0.01em;
  }
  .service-card .card-title br.pc-br { display: none; }
  .service-card .card-body {
    grid-area: body;
    font-size: 14px;
    line-height: 1.7;
  }
  .service-follow { padding: 8px 0 0; gap: 8px; }
  .service-follow .follow-title { font-size: 17px; }
  .service-follow .follow-body  { font-size: 14px; line-height: 1.7; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .service-cards-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ④ Option section：アコーディオン ---------- */
.option-section { gap: 24px; padding-top: 96px; }
.option-section .inner-1150 { gap: 24px; }
.option-header { padding: 32px 0 0; }
.option-tap-note { font-size: 14px; opacity: .85; }

.option-acc {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.option-acc-item { background: #fff; }
.option-acc-item:first-child { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.option-acc-item:last-child  { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.option-acc-item + .option-acc-item { border-top: 1px solid #fff; }
.option-acc-item .faq-q { background: #f0f3f8; }
.option-acc-item .faq-q:hover { background: #e2e8f1; }
.option-acc-item .faq-q-text { font-weight: 700; color: var(--blue-primary); }

.option-acc-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 32px 32px;
}
.option-acc-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.8; color: #111; }
.option-acc-text strong { font-weight: 700; }
.option-acc-text .option-card-disclaimer { margin-top: 10px; }
.option-acc-img {
  flex-shrink: 0;
  width: 260px;
  margin: 0;
  text-align: center;
}
.option-acc-img img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d0d1d3;
  border-radius: 6px;
  cursor: zoom-in;
}
.option-acc-img figcaption {
  font-size: 11.5px;
  color: #777;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .option-section { padding-top: 72px; gap: 16px; }
  .option-header  { padding: 16px 0 0; }
  .option-tap-note { font-size: 12px; }
  .option-acc-item .faq-q { padding: 16px 16px; }
  .option-acc-item .faq-toggle { width: 36px; }
  .option-acc-inner { flex-direction: column; gap: 14px; padding: 16px 16px 24px; }
  .option-acc-text { font-size: 13.5px; line-height: 1.75; }
  .option-acc-img { width: 100%; max-width: 360px; align-self: center; }
}

/* ---------- ⑥ KV：B版文言にあわせた調整 ---------- */
.hero-simple-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.hero-simple-title .gold { color: var(--gold); }
@media (max-width: 768px) {
  .hero-simple-badge { font-size: 11.5px; padding: 3px 12px; margin-bottom: 8px; }
}
@media (max-width: 768px) {
  .hero-simple-title { font-size: clamp(22px, 6.4vw, 28px); letter-spacing: 0; line-height: 1.35; }
  .hero-simple-tagline { font-size: 14px; margin-top: 20px; }
}

/* ---------- ② 費用の目安（6枚目のカード・控えめ） ---------- */
.service-card--price {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 1px dashed #c9cbd0;
  box-shadow: none;
  padding: 18px 20px;
}
.price-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-text);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.price-card-title span { font-size: 11px; font-weight: 400; }
.price-card-label { font-size: 15px; font-weight: 700; color: var(--blue-primary); }
.price-card-value { font-size: 22px; font-weight: 700; color: #111; line-height: 1.2; letter-spacing: .01em; }
.price-card-value span { font-size: 13px; margin: 0 2px; font-weight: 400; }
.price-card-work { font-size: 12.5px; color: var(--gray-text); line-height: 1.6; margin-top: 2px; }
.price-card-note { font-size: 11px; color: #777; line-height: 1.55; margin-top: 6px; }

@media (max-width: 768px) {
  .service-card--price {
    display: flex !important;
    padding: 14px 16px;
    gap: 3px;
  }
  .price-card-value { font-size: 19px; }
  .price-card-work  { font-size: 12px; }
  .price-card-note  { font-size: 10.5px; }
}

/* ---------- ③ 会社概要（左）・代表紹介（右） ---------- */
.service-company {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  overflow: hidden;
}
.company-profile { padding: 24px 28px 22px; min-width: 0; background: var(--blue-light-bg); }
.company-profile-box { margin-top: 12px; padding: 16px 18px 14px; background: #fff; border-radius: 0; }
.company-profile-name { font-size: 18px; font-weight: 700; color: var(--blue-primary); line-height: 1.4; }
.company-profile-kana { font-size: 13px; font-weight: 400; margin-left: 4px; }
.company-profile-lead { margin-top: 0; font-size: 13.5px; line-height: 1.7; color: var(--gray-text-dark); }
.company-profile-lead br.pc-br { display: none; }
.company-profile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px 0;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e6e7e9;
  font-size: 13px;
  line-height: 1.6;
}
.company-profile-list > div { display: flex; gap: 10px; min-width: 0; }
.company-profile-list dt { flex-shrink: 0; width: 64px; font-weight: 700; color: var(--gray-text); }
.company-profile-list dd { margin: 0; color: #111; overflow-wrap: anywhere; }
.company-profile-link { margin-top: 12px; font-size: 12.5px; }
.company-profile-link a { color: var(--blue-primary); text-decoration: underline; text-underline-offset: 2px; }

.company-rep {
  min-width: 0;
  padding: 24px 28px 22px;
  background: var(--blue-light-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.company-rep-head { display: flex; align-items: center; gap: 16px; }
.company-rep-img { flex-shrink: 0; width: 88px; height: 110px; overflow: hidden; border-radius: 6px; }
.company-rep-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.company-rep-headtext { min-width: 0; }
.company-rep-name  { font-size: 13px; font-weight: 700; color: #111; line-height: 1.5; }
.company-rep-title { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--blue-primary); line-height: 1.55; }
.company-rep-note  { font-size: 11px; font-weight: 400; }
.company-rep-bodywrap { display: flex; align-items: flex-start; gap: 14px; }
.company-rep-body  { flex: 1; min-width: 0; font-size: 13px; color: #111; line-height: 1.75; }
.company-rep-body strong { font-weight: 700; }
.company-rep-book  { flex-shrink: 0; width: 84px; }
.company-rep-book img { width: 100%; height: auto; display: block; box-shadow: 0 2px 8px rgba(0,0,0,.18); }

@media (max-width: 1024px) {
  .company-profile, .company-rep { padding: 20px 20px 18px; }
}
@media (max-width: 768px) {
  .service-company { grid-template-columns: 1fr; border-radius: 8px; }
  .company-profile { padding: 14px 14px 12px; }
  .company-profile-box { margin-top: 10px; padding: 12px 12px 10px; }
  .company-profile-name { font-size: 15px; }
  .company-profile-kana { font-size: 11px; }
  .company-profile-lead { font-size: 12.5px; }
  .company-profile-list { gap: 5px; font-size: 12px; margin-top: 10px; padding-top: 10px; }
  .company-profile-list dt { width: 56px; }
  .company-profile-link { font-size: 11.5px; }
  .company-rep { padding: 14px 14px 16px; gap: 10px; }
  .company-rep-img { width: 72px; height: 90px; }
  .company-rep-name  { font-size: 12px; }
  .company-rep-title { font-size: 13px; }
  .company-rep-note  { font-size: 10px; }
  .company-rep-body  { font-size: 12.5px; line-height: 1.7; }
  .company-rep-book  { width: 64px; }
}

/* ---------- ⑦ FAQ・フォーム（B案文言に統一） ---------- */
.form-section-h2 .subtitle small { font-size: 12.5px; color: var(--gray-text); line-height: 1.6; display: inline-block; margin-top: 4px; }
.form-section-h2 .subtitle .nowrap { white-space: nowrap; }
.form-required-note { font-size: 12.5px; color: var(--gray-text); margin: -8px 0 0; }
@media (max-width: 768px) {
  .form-section-h2 .subtitle small { font-size: 11.5px; }
  .form-required-note { font-size: 11.5px; }
}

/* =====================================================
   ⑧ index-D：文字サイズ・幅・余白の統一
   - 見出し / サブ / 本文 / 注記 を 4段階に固定
   - コンテンツ幅を 2種類（wide / narrow）に固定
   - セクション上下余白を統一
   ===================================================== */
:root {
  --d-h2:      30px;   /* セクション見出し */
  --d-sub:     17px;   /* 見出し下のサブ文 */
  --d-body:    15px;   /* 本文 */
  --d-small:   13px;   /* 注記 */
  --d-lead:    18px;   /* 強調リード */
  --d-btn:     22px;   /* CTAボタン */
  --d-w-wide:  1080px;
  --d-w-narrow: 920px;
  --d-sec-pad: 72px;
}

/* ---- 幅 ---- */
.inner-1152, .inner-1150 { max-width: var(--d-w-wide); }
.inner-960 { max-width: var(--d-w-narrow); }
.option-acc { max-width: var(--d-w-narrow); }
.form-inner-area { width: var(--d-w-wide); }
.cta-block { max-width: var(--d-w-narrow); padding: 24px 24px 56px; }
.cta-main-btn { width: auto; min-width: 560px; max-width: 100%; padding: 16px 56px; }

/* ---- セクション見出し（全セクション共通） ---- */
.section-h2 .title,
.service-h2 .title,
.option-header .title,
.flow-h2 .title,
.faq-h2 .title,
.form-section-h2 .title {
  font-size: var(--d-h2);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.section-h2 .subtitle,
.service-h2 .subtitle,
.option-header .subtitle,
.flow-h2 .subtitle,
.faq-h2 .subtitle,
.form-section-h2 .subtitle {
  font-size: var(--d-sub);
  line-height: 1.7;
  margin-top: 10px;
}
.section-h2, .faq-h2 { padding: 0 0 32px; }
.service-h2 { padding: 8px 0 8px; }
.option-header { padding: 0; }
.form-section-h2 { padding: 0 0 8px; }

/* ---- セクション余白 ---- */
.lead-section { padding: var(--d-sec-pad) 24px 40px; }
.lead-section .section-h2 { padding-top: 0; }
.lead-note { font-size: var(--d-lead); line-height: 1.8; }
.service-section { padding: 0 24px 16px; }
.service-aboutus { padding: 32px 32px 36px; gap: 24px; }
.option-section { padding: 108px 24px 72px; gap: 32px; }
.option-section .inner-1150 { gap: 32px; }
.flow-section { padding: var(--d-sec-pad) 24px calc(var(--d-sec-pad) + 60px); }
.flow-section .inner-960 { gap: 40px; }
.faq-section { padding: var(--d-sec-pad) 24px 40px; gap: 0; }
.faq-section .cta-block { padding-top: 40px; padding-bottom: 8px; }
.form-section { padding: 64px 24px 72px; }
.form-inner-area { padding: 56px 48px; gap: 40px; }
.form-stack { gap: 40px; padding: 0; }

/* ---- 本文サイズ ---- */
.service-card .card-title { font-size: 16px; }
.service-card .card-body,
.company-profile-lead, .company-profile-list,
.company-rep-body,
.service-follow .follow-body,
.option-acc-text,
.flow-step-desc,
#faq .faq-a-inner,
.form-section-h2 .subtitle p { font-size: var(--d-body); line-height: 1.8; }
.company-profile-name { font-size: 18px; }
.company-rep-title, .service-follow .follow-title { font-size: 17px; line-height: 1.6; }
.price-card-work, .price-card-note, .faq-note,
.company-profile-link, .form-required-note,
.option-acc-img figcaption, .option-tap-note { font-size: var(--d-small); }
.price-card-note { font-size: 12px; }

/* ---- CTA ---- */
.cta-main-btn { font-size: var(--d-btn); line-height: 1.5; }
.cta-note, .cta-note-lg { font-size: 18px; line-height: 1.6; }
.cta-note-md { font-size: 15px; font-weight: 500; line-height: 1.7; }
.cta-note--fee { gap: 2px; margin-top: 8px; }

/* ---- アコーディオン（Option / FAQ 共通） ---- */
.faq-q { padding: 20px 28px; }
.faq-q-text { font-size: 17px; line-height: 1.6; }
.option-acc-item .faq-q-text { font-weight: 700; }
#faq .faq-q-text { font-weight: 500; }
.faq-toggle { width: 40px; font-size: 20px; }
.faq-a-inner { padding: 20px 28px 32px; }
.option-acc-inner { padding: 20px 28px 32px; }

/* ---- Flow ---- */
.flow-step-title { font-size: 18px; }

/* ---- Form ---- */
.form-label, .form-radio-item span, .form-input, .form-textarea, .form-textarea-label { font-size: 16px; }
.form-label { width: 160px; }
.form-input { height: 52px; padding: 8px 20px; }
.form-submit-btn { font-size: 18px; font-weight: 700; width: auto; min-width: 480px; max-width: 100%; margin: 0 auto; padding: 16px 56px; }
.form-agree-group label { font-size: 15px; }

/* ---- Hero ---- */
.hero-simple { min-height: 440px; padding: 72px 24px; }
.hero-simple-title { font-size: 40px; line-height: 1.35; }
.hero-simple-subtitle { font-size: 22px; margin-top: 14px; }
.hero-simple-tagline { font-size: 18px; margin-top: 28px; line-height: 1.7; }
.hero-simple-badge { font-size: 14px; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  :root { --d-h2: 26px; --d-sec-pad: 56px; }
  .cta-main-btn { min-width: 0; width: 100%; }
  .form-submit-btn { min-width: 0; width: 100%; }
}

/* ---- SP ---- */
@media (max-width: 768px) {
  :root {
    --d-h2: 22px;
    --d-sub: 14px;
    --d-body: 14px;
    --d-small: 12px;
    --d-lead: 15px;
    --d-btn: 16px;
    --d-sec-pad: 48px;
  }
  .inner-1152, .inner-1150, .inner-960, .option-acc, .form-inner-area { width: 100%; }
  .section-h2 .title, .service-h2 .title, .option-header .title,
  .flow-h2 .title, .faq-h2 .title, .form-section-h2 .title { font-size: var(--d-h2); line-height: 1.5; }
  .section-h2 .subtitle, .service-h2 .subtitle, .option-header .subtitle,
  .flow-h2 .subtitle, .faq-h2 .subtitle, .form-section-h2 .subtitle { font-size: var(--d-sub); margin-top: 8px; }
  .section-h2, .faq-h2 { padding: 0 0 20px; }
  .lead-section { padding: var(--d-sec-pad) 16px 28px; }
  .lead-note { font-size: var(--d-lead); line-height: 1.75; }
  .service-section { padding: 0 12px 8px; }
  .service-aboutus { padding: 20px 12px 24px; gap: 16px; }
  .service-h2 { padding: 0 0 4px; }
  .option-section { padding: 80px 16px 48px; gap: 20px; }
  .option-section .inner-1150 { gap: 20px; }
  .flow-section { padding: var(--d-sec-pad) 16px calc(var(--d-sec-pad) + 40px); }
  .flow-section .inner-960 { gap: 24px; }
  .faq-section { padding: var(--d-sec-pad) 16px 24px; }
  .faq-section .cta-block { padding: 24px 0 8px; }
  .form-section { padding: 40px 12px 48px; }
  .form-inner-area { padding: 28px 16px; gap: 24px; }
  .form-stack { gap: 24px; }
  .cta-block { padding: 16px 16px 40px; }
  .cta-main-btn { font-size: var(--d-btn); padding: 14px 20px; }
  .cta-note, .cta-note-lg { font-size: 15px; }
  .cta-note-md { font-size: 13px; }

  .service-card .card-title { font-size: 14.5px; }
  .service-card .card-body, .company-profile-lead, .company-profile-list,
  .company-rep-body, .service-follow .follow-body, .option-acc-text,
  .flow-step-desc, #faq .faq-a-inner, .form-section-h2 .subtitle p { font-size: var(--d-body); line-height: 1.75; }
  .company-profile-name { font-size: 16px; }
  .company-rep-title, .service-follow .follow-title { font-size: 14.5px; }
  .price-card-value { font-size: 19px; }

  .faq-q { padding: 14px 16px; }
  .faq-q-text { font-size: 14.5px; line-height: 1.55; }
  .faq-toggle { width: 32px; font-size: 18px; }
  .faq-a-inner { padding: 14px 16px 22px; }
  .option-acc-inner { padding: 14px 16px 22px; }

  .flow-step-title { font-size: 16px; }
  .form-label, .form-radio-item span, .form-input, .form-textarea, .form-textarea-label { font-size: 15px; }
  .form-input { height: 48px; padding: 8px 14px; }
  .form-submit-btn { font-size: 16px; padding: 14px 20px; }
  .form-agree-group label { font-size: 14px; }

  .hero-simple { min-height: 0; padding: 40px 20px 36px; }
  .hero-simple-title { font-size: clamp(22px, 6.4vw, 26px); }
  .hero-simple-subtitle { font-size: 16px; margin-top: 10px; }
  .hero-simple-tagline { font-size: 13.5px; margin-top: 16px; }
}

/* ---- Form 幅を絞る ---- */
.order-form { max-width: 820px; margin: 0 auto; }
.form-stack .form-section-h2 { max-width: 820px; }

/* ---- SP 微調整 ---- */
@media (max-width: 768px) {
  :root { --d-h2: 21px; }
  .section-h2 .title, .service-h2 .title, .option-header .title,
  .flow-h2 .title, .faq-h2 .title, .form-section-h2 .title { letter-spacing: 0; }
  .hero-simple-badge { font-size: 11px; padding: 3px 10px; letter-spacing: -0.01em; }
  .lead-note br { display: none; }
  .service-card .card-title { font-size: 14px; letter-spacing: -0.02em; }
  .service-h2 .subtitle br { display: none; }
}
@media (max-width: 768px) {
  .lead-note, .service-h2 .subtitle, .option-header .subtitle, .flow-h2 .subtitle, .form-section-h2 .subtitle { text-wrap: balance; }
}

/* =====================================================
   ⑨ FV：左＝写真／右＝ベタ塗り（バナーと統一）
   ===================================================== */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 520px;
  background: #2f56a6;
}
.hero-split-photo { position: relative; overflow: hidden; }
.hero-split-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-split-body {
  display: flex;
  align-items: center;
  color: #fff;
  padding: 56px 64px 56px 56px;
}
.hero-split-inner { max-width: 560px; }
.hero-split-badge {
  display: inline-block;
  background: #fff;
  color: #2f56a6;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  padding: 7px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}
.hero-split-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.hero-split-mark {
  display: inline-block;
  background: #fff;
  color: #2f56a6;
  padding: 0 10px;
  margin: 0 2px;
  line-height: 1.25;
  border-radius: 2px;
}
.hero-split-sub {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.hero-split-tag {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  opacity: .95;
}
.hero-split-tag strong { font-weight: 700; color: var(--gold); }

@media (max-width: 1100px) {
  .hero-split-title { font-size: 34px; }
  .hero-split-body { padding: 48px 40px; }
}
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-split-photo { aspect-ratio: 16 / 10; }
  .hero-split-body { padding: 24px 20px 28px; }
  .hero-split-inner { max-width: none; }
  .hero-split-badge { font-size: 12px; padding: 5px 14px; margin-bottom: 14px; }
  .hero-split-title { font-size: clamp(24px, 7vw, 30px); letter-spacing: 0.01em; line-height: 1.4; }
  .hero-split-mark { padding: 0 6px; }
  .hero-split-sub { font-size: 16px; margin-top: 12px; }
  .hero-split-tag { font-size: 13.5px; margin-top: 10px; line-height: 1.7; }
}

/* ---- FV CTA（黄色） ---- */
.hero-split-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 28px;
  min-width: 320px;
  padding: 14px 40px;
  background: #F4B337;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.hero-split-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.hero-split-cta-sub { font-size: 12.5px; font-weight: 500; opacity: .95; letter-spacing: .02em; }
@media (max-width: 768px) {
  .hero-split-cta { display: flex; width: 100%; min-width: 0; margin-top: 18px; padding: 12px 20px; font-size: 17px; }
  .hero-split-cta-sub { font-size: 11.5px; }
}

/* ---- 色・ボタン幅・フォント調整（FV） ---- */
:root { --gold: #F4B337; }
.cta-main-btn--gold { background: #F4B337; }
.hero-split-cta { display: flex; width: 100%; min-width: 0; font-size: 20px; font-weight: 700; }
.hero-split-cta-sub { font-weight: 400; font-size: 13px; }
.hero-split-title { font-weight: 700; letter-spacing: 0.02em; line-height: 1.5; }
.hero-split-mark { font-weight: 700; }
.hero-split-badge { font-weight: 700; font-size: 14px; }
.hero-split-sub { font-weight: 500; font-size: 20px; }
.hero-split-tag { font-weight: 400; }
.hero-split-tag strong { font-weight: 700; }
@media (max-width: 768px) {
  .hero-split-cta { font-size: 17px; }
  .hero-split-cta-sub { font-size: 11.5px; }
  .hero-split-sub { font-size: 16px; }
}

/* ---- FV：画像幅を狭める（左 42% / 右 58%） ---- */
.hero-split { grid-template-columns: 42fr 58fr; }
.hero-split-body { padding: 56px 64px 56px 64px; }
.hero-split-inner { max-width: 600px; }
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
}

/* ---- FV：ブルーをサイト基調色に統一 ---- */
.hero-split { background: var(--blue-primary); }
.hero-split-badge, .hero-split-mark { color: var(--blue-primary); }

/* ---- SP：FVの再調整（後方の共通指定を上書き） ---- */
@media (max-width: 768px) {
  .hero-split-badge { font-size: 12px; padding: 5px 14px; }
  .hero-split-title { font-size: clamp(24px, 7vw, 30px); line-height: 1.4; }
  .hero-split-sub { font-size: 16px; }
}

/* =====================================================
   ⑩ index-E：固定CTA＋フォームドロワー
   ===================================================== */
.form-anchor { height: 0; }
body { padding-bottom: 88px; }               /* 固定ボタン分の逃げ */

/* ---- 固定ボタン ---- */
.cta-dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  transition: transform .3s ease, opacity .3s ease;
}
.cta-dock.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.cta-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 560px;
  padding: 12px 24px;
  background: #F4B337;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .15s;
}
.cta-dock-btn:hover { transform: translateY(-1px); }
.cta-dock-sub { font-size: 12px; font-weight: 400; }

/* ---- オーバーレイ ---- */
.cta-drawer-overlay {
  position: fixed; inset: 0;
  z-index: 950;
  background: rgba(8,14,26,.55);
  opacity: 0;
  transition: opacity .3s ease;
}
.cta-drawer-overlay.is-open { opacity: 1; }
.cta-drawer-overlay[hidden] { display: none; }

/* ---- ドロワー本体（共通） ---- */
.cta-drawer {
  position: fixed;
  z-index: 960;
  background: #d2e2f6;
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.cta-drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cta-drawer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}
.cta-drawer .form-section-h2 { padding: 0 0 8px; }
.cta-drawer .order-form { gap: 20px; }
.cta-drawer .form-submit-btn { width: 100%; min-width: 0; }
.cta-drawer-close {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--blue-primary);
  border: 1px solid #c9d3e4;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.cta-drawer-close-x { font-size: 14px; line-height: 1; }
.cta-drawer-handle { display: none; }
.cta-drawer-tel {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-text-dark);
}
.cta-drawer-tel a { font-weight: 700; color: var(--blue-primary); text-decoration: none; font-size: 18px; margin: 0 4px; }
.cta-drawer-tel small { font-size: 12px; }
body.drawer-open { overflow: hidden; }

/* ---- PC：右からサイドバー（幅 92%） ---- */
@media (min-width: 769px) {
  .cta-drawer {
    top: 0; right: 0; bottom: 0;
    width: 92vw;
    transform: translateX(100%);
    border-radius: 16px 0 0 16px;
  }
  .cta-drawer.is-open { transform: translateX(0); }
  .cta-drawer-close { top: 16px; left: 16px; }
  .cta-drawer-inner { padding: 64px 40px 56px; }
  .cta-drawer .form-section-h2 .title { font-size: var(--d-h2); }
}

/* ---- SP：下からボトムシート（高さ 92%） ---- */
@media (max-width: 768px) {
  body { padding-bottom: 76px; }
  .cta-dock { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .cta-dock-btn { font-size: 16px; padding: 10px 16px; border-radius: 8px; }
  .cta-dock-sub { font-size: 11px; }
  .cta-drawer {
    left: 0; right: 0; bottom: 0;
    height: 92vh;
    height: 92dvh;
    transform: translateY(100%);
    border-radius: 18px 18px 0 0;
  }
  .cta-drawer.is-open { transform: translateY(0); }
  .cta-drawer-handle {
    display: block;
    width: 44px; height: 5px;
    margin: 10px auto 0;
    border-radius: 3px;
    background: #9fb2cf;
    flex-shrink: 0;
  }
  .cta-drawer-close { top: 10px; right: 12px; padding: 6px 12px; font-size: 13px; }
  .cta-drawer-inner { padding: 36px 16px 40px; }
  .cta-drawer .form-section-h2 .title { font-size: 20px; }
  .cta-drawer-tel a { font-size: 17px; }
}
/* 重なり順（ヘッダーより上に） */
.cta-dock { z-index: 1050; }
.cta-drawer-overlay { z-index: 1100; }
.cta-drawer { z-index: 1200; }

/* ---- スクロール到達時の「ふわっと」オープン ---- */
.cta-drawer.is-soft {
  transition: transform .9s cubic-bezier(.16,.84,.3,1), opacity .9s ease;
  opacity: 0;
}
.cta-drawer.is-soft.is-open { opacity: 1; }
.cta-drawer-overlay { transition: opacity .3s ease; }
.cta-drawer-overlay.is-soft { transition: opacity .9s ease; }

/* ---- PC：固定ボタン表示中はヘッダーを畳む ---- */
@media (min-width: 769px) {
  #site-header { transition: transform .35s ease, opacity .35s ease; }
  #site-header.is-collapsed { transform: translateY(-100%); opacity: 0; pointer-events: none; }
}

/* ---- 0918 追加修正 ---- */
/* card-title：明示的な<br>で折り返し位置を固定 */
.service-card .card-title { text-wrap: initial; white-space: normal; }
.service-card .card-title br { display: inline; }
@media (min-width: 769px) and (max-width: 1024px) {
  .service-card { max-width: none; min-width: 0; flex-basis: auto; }
}
/* 費用の目安カードだけ淡い黄色地 */
.service-card--price { background: #fffeed; border-color: #e6d9a0; }
/* FAQ：最後のCTAを削除し、下に余白 */
.faq-section .inner-960 { padding-bottom: 96px; }
@media (max-width: 768px) {
  .faq-section .inner-960 { padding-bottom: 160px; }
}

/* ---- 固定ボタン：B案スタイル（電話＋ネイビー） ---- */
.cta-dock {
  gap: 10px;
  align-items: stretch;
  background: rgba(255,255,255,.94);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.cta-dock-tel {
  flex: 0 0 auto;
  display: none;                       /* PCでは非表示 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px;
  background: #e9ebef;
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid #d3d6dc;
  border-radius: 10px;
  text-decoration: none;
}
.cta-dock-btn {
  max-width: 640px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #1f5599 0%, #143a6c 100%);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  font-size: 20px;
  font-weight: 700;
  gap: 2px;
}
.cta-dock-sub { font-size: 12.5px; font-weight: 400; opacity: .95; }
@media (max-width: 768px) {
  .cta-dock { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .cta-dock-tel { display: flex; }
  .cta-dock-btn { flex: 1 1 auto; max-width: none; font-size: 18px; padding: 10px 12px; }
  .cta-dock-sub { font-size: 11.5px; }
}

/* ---- SP：FVを圧縮してファーストビューにリードの冒頭まで入れる ---- */
@media (max-width: 768px) {
  .hero-split-photo { aspect-ratio: 16 / 7; }
  .hero-split-body  { padding: 16px 20px 18px; }
  .hero-split-badge { font-size: 11.5px; padding: 4px 12px; margin-bottom: 10px; }
  .hero-split-title { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.35; }
  .hero-split-mark  { padding: 0 5px; }
  .hero-split-sub   { font-size: 15px; margin-top: 8px; line-height: 1.45; }
  .hero-split-sub br.sp-br { display: none; }
  .hero-split-tag   { font-size: 12.5px; margin-top: 6px; line-height: 1.6; }
  .hero-split-cta   { margin-top: 12px; padding: 10px 16px; font-size: 16px; gap: 0; }
  .hero-split-cta-sub { font-size: 11px; }
  .lead-section { padding-top: 28px; }
  .section-h2 { padding-bottom: 12px; }
}

/* ---- SP：FVビジュアルをさらに圧縮 ---- */
@media (max-width: 768px) {
  .hero-split-photo { aspect-ratio: 16 / 5; }
  .hero-split-body  { padding: 14px 20px 16px; }
  .hero-split-badge { margin-bottom: 8px; }
  .hero-split-title { font-size: clamp(21px, 6vw, 24px); line-height: 1.3; }
  .hero-split-sub   { margin-top: 6px; font-size: 14.5px; }
  .hero-split-tag   { margin-top: 4px; font-size: 12px; line-height: 1.55; }
  .hero-split-cta   { margin-top: 10px; padding: 9px 16px; font-size: 15.5px; }
  .hero-split-cta-sub { font-size: 10.5px; }
  .lead-section { padding-top: 22px; }
  .section-h2 { padding-bottom: 10px; }
}

/* ---- SP 調整（0918 devtools検証分） ---- */
@media (max-width: 1024px) {
  .inner-960, .inner-1150, .inner-1152 { padding-left: 0; padding-right: 0; }
}
@media (max-width: 768px) {
  .hero-split-sub   { display: none; }
  .hero-split-title { line-height: 1.6; }
}

/* ---- ヘッダーとKVの隙間を詰める（実測値。JSで実高さに同期） ---- */
#page-wrapper { padding-top: 46px; }
@media (max-width: 768px) { #page-wrapper { padding-top: 40px; } }
