.ik-form-slot {
  margin-top: 8px;
}
.ik-form-slot__empty {
  margin: 0;
  padding: 28px 24px;
  background: #f5f1ea;
  color: #5c554b;
  text-align: center;
  line-height: 1.8;
}
.ik-legacy-form,
[hidden] {
  display: none !important;
}
#mh-map-overlay:not([hidden]) {
  display: block !important;
}

/* コンセプトなど他の固定ページと同じ：ヘッダー下の白い上余白をなくしフル幅にする */
body.ik-renewed-chrome:is(
  .page-template-page-modelhouse-php,
  .page-template-page-modelhouse-thanks-php,
  .page-template-page-comoa-php,
  .page-template-page-comorumo-php,
  .page-template-page-contact-php,
  .page-template-page-thanks_page-php,
  .page-template-page-rokkostyle-php,
  .page-template-page-rokkostyle-thanks-php,
  .page-template-page-online-consultation-php,
  .page-template-page-online-consultation-thanks-php,
  .page-template-page-company-php,
  .page-template-page-ene0-php,
  .page-template-page-area-php,
  .page-template-page-superwall-php,
  .page-template-page-women-staff-php,
  .page-template-page-design-coordinate-php,
  .page-template-page-renovation-php,
  .page-template-page-zeh-php,
  .page-modelhouse,
  .page-comoa,
  .page-comorumo,
  .page-company,
  .page-ene0,
  .page-area,
  .page-superwall,
  .page-women-staff,
  .page-design-coordinate,
  .page-renovation,
  .page-zeh
) .site-body,
body.ik-renewed-chrome:is(
  .page-template-page-modelhouse-php,
  .page-template-page-modelhouse-thanks-php,
  .page-template-page-comoa-php,
  .page-template-page-comorumo-php,
  .page-template-page-contact-php,
  .page-template-page-thanks_page-php,
  .page-template-page-rokkostyle-php,
  .page-template-page-rokkostyle-thanks-php,
  .page-template-page-online-consultation-php,
  .page-template-page-online-consultation-thanks-php,
  .page-template-page-company-php,
  .page-template-page-ene0-php,
  .page-template-page-area-php,
  .page-template-page-superwall-php,
  .page-template-page-women-staff-php,
  .page-template-page-design-coordinate-php,
  .page-template-page-renovation-php,
  .page-template-page-zeh-php,
  .page-modelhouse,
  .page-comoa,
  .page-comorumo,
  .page-company,
  .page-ene0,
  .page-area,
  .page-superwall,
  .page-women-staff,
  .page-design-coordinate,
  .page-renovation,
  .page-zeh
) .site-body-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#wf-modelhouse,
#wf-modelhouse-thanks,
#wf-comoa,
#wf-comorumo,
#wf-contact,
#wf-contact-thanks,
#wf-rokkostyle,
#wf-rokkostyle-thanks,
#wf-online,
#wf-online-thanks,
#wf-company,
#wf-ene0,
#wf-zeh,
#wf-area,
#wf-superwall,
#wf-women-staff,
#wf-design-coordinate,
#wf-renovation {
  width: 100%;
  max-width: none;
  overflow-x: clip;
  letter-spacing: normal;
}

/* common.css の img { height:auto } でヒーロー画像が潰れるのを防ぐ */
[id^="wf-"] img.u-1hxqdv4,
[id^="wf-"] img.u-n5oudu,
[id^="wf-"] img.u-1a99dhh {
  max-width: none;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  /* 既存サイトフッターがあるので WF の簡易フッターは出さない */
  [data-cm-spfoot] {
    display: none !important;
  }
  /* 見学予約の下固定CTAと SideCTA が重なるのを避ける */
  body.page-comoa .ik-side-cta-float,
  body.page-comorumo .ik-side-cta-float,
  body.page-template-page-comoa-php .ik-side-cta-float,
  body.page-template-page-comorumo-php .ik-side-cta-float {
    display: none !important;
  }
  [id^="wf-"] iframe {
    max-width: 100%;
  }
}

/* 青／緑ボタンは白文字（#wf-xxx a や common.css の a { color:#000 } より優先） */
[id^="wf-"] :is(
  .u-8i5w1s,
  .u-1nvfnmr,
  .u-1gx6ahr,
  .u-quniyr,
  .u-19yosgt,
  .u-1iesm9,
  .u-15n0uhr,
  .u-1q9q8pn,
  .u-1nxwq93,
  .u-1pe2l,
  .u-12ij0ki,
  .u-436xmn,
  .u-hkv80o,
  .u-kcmcoz,
  .u-6egov4,
  .u-redve,
  .u-15kt7ln,
  .u-1fqz38a,
  .contact-btn button.check,
  .contact-btn button[name="submit"]
) {
  color: #fff !important;
}
[id^="wf-"] :is(
  .u-8i5w1s,
  .u-1nvfnmr,
  .u-1gx6ahr,
  .u-quniyr,
  .u-19yosgt,
  .u-1iesm9,
  .u-15n0uhr,
  .u-1q9q8pn,
  .u-1nxwq93,
  .u-1pe2l,
  .u-12ij0ki,
  .u-436xmn,
  .u-hkv80o,
  .u-kcmcoz,
  .u-6egov4,
  .u-redve,
  .u-15kt7ln,
  .u-1fqz38a
) i,
[id^="wf-"] :is(
  .u-8i5w1s,
  .u-1nvfnmr,
  .u-1gx6ahr,
  .u-quniyr,
  .u-19yosgt,
  .u-1iesm9,
  .u-15n0uhr,
  .u-1q9q8pn,
  .u-1nxwq93,
  .u-1pe2l,
  .u-12ij0ki,
  .u-436xmn,
  .u-hkv80o,
  .u-kcmcoz,
  .u-6egov4,
  .u-redve,
  .u-15kt7ln,
  .u-1fqz38a
) svg {
  color: inherit !important;
  fill: currentColor;
}

/* 見出しタグ差し替え後も見た目を維持（Lightning origin3 の線・余白を打ち消し） */
[id^="wf-"] :is(h2, h3, h4) {
  margin: 0;
  padding: 0;
  clear: none;
  border: none !important;
}
/* 英字ラベル直下の日本語見出し。上の margin:0 で消えた WF の間隔を戻す */
[id^="wf-"] :is(h2, h3).u-4s1ugu {
  margin-top: 12px;
}
[id^="wf-"] :is(h2, h3):is(.u-1ewgacc, .u-msyn1v, .u-epiqr5) {
  margin-top: 14px;
}
[id^="wf-"] :is(h2, h3):is(.u-mt06id, .u-1ogz3vk, .u-uwg2t3, .u-bm3qam, .u-1g71wgu, .u-1imfwk6) {
  margin-top: 16px;
}
[id^="wf-"] :is(h2, h3):is(.u-1prkq02, .u-uwhm9l, .u-1klp9ti, .u-1qlr8rm, .u-1y1hxes) {
  margin-top: 18px;
}
[id^="wf-"] :is(h2, h3).u-1qql7x5 {
  margin-top: 26px;
}
[id^="wf-"] :is(h2, h3).u-woexx3 {
  margin-top: 28px;
}
[id^="wf-"] :is(h2, h3).u-1inuqoo {
  margin-top: 36px;
}
[id^="wf-"] :is(h2, h3, h4)::after {
  content: none !important;
  display: none !important;
}
