/*
  Repair offer forms redesign / menu fix
  Scope targets:
    /post_repair_offer2/          Low-price postal repair
    /post_repair_offer/           Standard postal repair
    /recovery_offer/              Board repair / data recovery
    /houjin-repair/contact/       Corporate repair contact

  Required recommended body class:
    body.sdp-offer-form-modern

  Compatibility fallback:
    also scopes to current legacy page-template body classes seen on production.

  Load order:
    after base.css, rwd.css, import.css, and any form validation CSS.
*/

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) {
  --sdp-offer-ink: #302829;
  --sdp-offer-ink-soft: #514847;
  --sdp-offer-muted: #786e6a;
  --sdp-offer-red: #a34f4d;
  --sdp-offer-red-dark: #803d3c;
  --sdp-offer-line: #e3d7d2;
  --sdp-offer-line-soft: #eee5e1;
  --sdp-offer-paper: #fffdfb;
  --sdp-offer-soft: #f8f4f2;
  --sdp-offer-soft-2: #f2ebe7;
  --sdp-offer-shadow: 0 18px 44px rgb(64 47 44 / 9%);
  color: var(--sdp-offer-ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) .estimate-dock,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #fixed_footer {
  display: none !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) *,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) *::before,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

/*
  Header horizontal menu repair.
  The form CSS must never turn the global nav into tall broken columns.
*/
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav {
  position: relative;
  z-index: 20;
  clear: both;
  overflow: visible;
  border-top: 1px solid var(--sdp-offer-line);
  border-bottom: 1px solid var(--sdp-offer-line);
  background: #fff;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav > .container {
  width: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav ul.sp_gnav_main {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav ul.sp_gnav_main > li {
  display: flex !important;
  float: none !important;
  width: auto !important;
  min-width: 0;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-right: 1px solid var(--sdp-offer-line);
  background: #fff;
  list-style: none !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav ul.sp_gnav_main > li:first-child {
  border-left: 1px solid var(--sdp-offer-line);
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav ul.sp_gnav_main > li > a {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 64px !important;
  padding: 10px 8px !important;
  color: var(--sdp-offer-ink) !important;
  background: #fff !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
  white-space: normal !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav ul.sp_gnav_main > li > a:hover,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav ul.sp_gnav_main > li > a:focus {
  color: var(--sdp-offer-red-dark) !important;
  background: #fbf8f6 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) #sp_gnav .gnav_sub {
  display: none !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) .layout_shop.page_shop > .container {
  width: auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents {
  width: auto !important;
  max-width: 100%;
  margin: 0 auto;
  padding: 34px 0 56px;
  color: var(--sdp-offer-ink);
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .title_01,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents h1.title_01 {
  position: relative;
  margin: 0 0 28px !important;
  padding: 30px 32px 34px !important;
  overflow: hidden;
  border: 1px solid var(--sdp-offer-line) !important;
  border-radius: 8px;
  color: var(--sdp-offer-ink) !important;
  background:
    radial-gradient(circle at 84% 20%, rgb(163 79 77 / 10%) 0, transparent 32%),
    linear-gradient(135deg, #fff 0%, #fbf8f6 58%, #f2ebe7 100%) !important;
  box-shadow: var(--sdp-offer-shadow);
  font-size: 40px !important;
  line-height: 1.38 !important;
  font-weight: 900 !important;
  text-align: left !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .title_01::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--sdp-offer-red), var(--sdp-offer-red-dark));
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .title_01 .label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 13px !important;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--sdp-offer-red) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents [style*="#FF4D85"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents [style*="#ff4d85"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents [style*="#E85E6A"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents [style*="#e85e6a"] {
  color: var(--sdp-offer-red) !important;
  border-color: var(--sdp-offer-red) !important;
  background-color: #fff7f4 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_02,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_03,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_07 {
  margin: 34px 0 16px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sdp-offer-line) !important;
  color: var(--sdp-offer-ink) !important;
  background: transparent !important;
  font-size: 30px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_02 span,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_07 span {
  color: var(--sdp-offer-red-dark) !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .lead {
  margin: 0 0 22px !important;
  color: var(--sdp-offer-ink-soft) !important;
  font-size: 15px !important;
  line-height: 1.95 !important;
  font-weight: 700;
}

.sdp-offer-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}

.sdp-offer-choice__card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 246px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 8px;
  color: var(--sdp-offer-ink) !important;
  background: #fff;
  box-shadow: 0 14px 34px rgb(64 47 44 / 7%);
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sdp-offer-choice__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--sdp-offer-red);
}

.sdp-offer-choice__card:hover,
.sdp-offer-choice__card:focus {
  transform: translateY(-3px);
  border-color: var(--sdp-offer-red);
  box-shadow: 0 22px 46px rgb(128 61 60 / 16%);
}

.sdp-offer-choice__label,
.sdp-offer-choice__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.sdp-offer-choice__label {
  padding: 5px 9px;
  color: #fff;
  background: var(--sdp-offer-red);
  font-size: 12px;
}

.sdp-offer-choice__badge {
  padding: 4px 8px;
  border: 1px solid var(--sdp-offer-line);
  color: var(--sdp-offer-red-dark);
  background: #fff8f5;
  font-size: 11px;
}

.sdp-offer-choice__card h2,
.sdp-offer-choice__card h3 {
  margin: 0 !important;
  color: var(--sdp-offer-ink) !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
}

.sdp-offer-choice__card p {
  margin: 0;
  color: var(--sdp-offer-ink-soft);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.sdp-offer-choice__card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sdp-offer-choice__card li {
  position: relative;
  padding-left: 16px;
  color: var(--sdp-offer-ink-soft);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.sdp-offer-choice__card li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sdp-offer-red);
}

.sdp-offer-choice__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid var(--sdp-offer-red);
  border-radius: 6px;
  color: #fff;
  background: var(--sdp-offer-red);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
}

.sdp-offer-choice__card--quiet .sdp-offer-choice__cta {
  color: var(--sdp-offer-red-dark);
  background: #fff;
}

.sdp-offer-notice,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .note_caution,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .offer2_attention {
  margin: 20px 0 26px !important;
  padding: 20px !important;
  border: 1px solid var(--sdp-offer-line) !important;
  border-radius: 8px;
  color: var(--sdp-offer-ink-soft) !important;
  background: var(--sdp-offer-paper) !important;
  box-shadow: 0 12px 28px rgb(64 47 44 / 6%);
  font-size: 14px !important;
  line-height: 1.8 !important;
  font-weight: 800;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .note_caution h3,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .note_caution h4 {
  margin: 0 0 12px !important;
  color: var(--sdp-offer-ink) !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .telbox {
  position: relative;
  margin: 18px 0 30px !important;
  padding: 24px !important;
  border: 1px solid var(--sdp-offer-line) !important;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fbf8f6 100%) !important;
  box-shadow: 0 14px 34px rgb(64 47 44 / 7%);
  text-align: center;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .telbox_shopname {
  color: var(--sdp-offer-red-dark) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .telbox_telnum {
  margin: 7px 0;
  color: var(--sdp-offer-ink) !important;
  font-size: 40px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .telbox_date {
  color: var(--sdp-offer-muted) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  font-weight: 700 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area {
  max-width: 940px;
  margin: 22px auto 34px !important;
  padding: 30px !important;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--sdp-offer-shadow);
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area form#contactform {
  width: 100%;
  margin: 0;
  padding: 0;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dl.formset {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  margin: 0 0 14px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 8px;
  background: #fff;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dl.formset > dt,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dl.formset > dd {
  min-width: 0;
  min-height: 74px;
  margin: 0 !important;
  padding: 18px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--sdp-offer-line-soft) !important;
  background: transparent !important;
  color: var(--sdp-offer-ink-soft);
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dl.formset > dt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--sdp-offer-ink) !important;
  background: var(--sdp-offer-soft) !important;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 900;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dl.formset > dt:nth-last-child(2),
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dl.formset > dd:last-child {
  border-bottom: 0 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .inp_must::after,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dt.inp_must::after {
  content: "必須";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--sdp-offer-red);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .inp_free::after,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area dt.inp_free::after {
  content: "任意";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 999px;
  color: var(--sdp-offer-red-dark);
  background: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="text"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="email"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="tel"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area select,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 50px;
  padding: 12px 14px !important;
  border: 1px solid var(--sdp-offer-line) !important;
  border-radius: 6px;
  color: var(--sdp-offer-ink) !important;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgb(48 40 41 / 3%);
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 700;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area textarea {
  min-height: 170px;
  resize: vertical;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input:focus,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area select:focus,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area textarea:focus {
  border-color: var(--sdp-offer-red) !important;
  outline: 3px solid rgb(163 79 77 / 18%);
  outline-offset: 1px;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input::placeholder,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area textarea::placeholder {
  color: #9c918d;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="radio"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  accent-color: var(--sdp-offer-red);
  vertical-align: -4px;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 999px;
  color: var(--sdp-offer-ink) !important;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area ul,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area li {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .form_policy {
  margin: 22px 0 !important;
  padding: 0 !important;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sdp-offer-paper);
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .form_policy h3 {
  margin: 0 !important;
  padding: 16px 18px !important;
  color: var(--sdp-offer-ink) !important;
  background: var(--sdp-offer-soft);
  font-size: 16px !important;
  line-height: 1.55 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .form_policy_body {
  max-height: 320px;
  overflow: auto;
  padding: 18px !important;
  color: var(--sdp-offer-ink-soft) !important;
  background: #fff;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .form_agree {
  margin: 20px 0 !important;
  padding: 18px !important;
  border: 1px solid var(--sdp-offer-line);
  border-radius: 8px;
  background: #fff8f5;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area .form_btn {
  margin: 28px 0 0 !important;
  text-align: center !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="submit"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="button"],
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area button[type="submit"] {
  display: inline-flex;
  min-width: 240px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 30px !important;
  border: 1px solid var(--sdp-offer-red) !important;
  border-radius: 6px;
  color: #fff !important;
  background: var(--sdp-offer-red) !important;
  box-shadow: 0 14px 28px rgb(163 79 77 / 18%);
  font-family: inherit;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="submit"]:hover,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area input[type="button"]:hover,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_area button[type="submit"]:hover {
  background: var(--sdp-offer-red-dark) !important;
  box-shadow: 0 18px 34px rgb(128 61 60 / 22%);
  transform: translateY(-1px);
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .sdp-flow-who {
  color: #5d5350 !important;
  font-weight: 900 !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_step .sdp-form-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  counter-reset: sdp-offer-step;
  list-style: none !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_step .sdp-form-steps li {
  display: flex !important;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px !important;
  border: 1px solid var(--sdp-offer-line) !important;
  border-radius: 8px !important;
  background: #f2ebe7 !important;
  color: #5d5350 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-align: center;
  counter-increment: sdp-offer-step;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_step .sdp-form-steps li::before {
  content: counter(sdp-offer-step);
  position: static !important;
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff !important;
  color: var(--sdp-offer-red-dark) !important;
  font-size: 13px;
  font-weight: 900;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_step .sdp-form-steps li.is-active {
  border-color: var(--sdp-offer-red) !important;
  background: var(--sdp-offer-red) !important;
  color: #fff !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_step .sdp-form-steps li.is-active::before {
  background: #fff !important;
  color: var(--sdp-offer-red-dark) !important;
}

:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .form_step .sdp-form-steps li span {
  color: inherit !important;
}

@media (max-width: 1024px) {
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) #sp_gnav {
    overflow-x: auto;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) #sp_gnav ul.sp_gnav_main {
    display: flex !important;
    min-width: 900px;
  }

  .sdp-offer-choice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 736px) {
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) {
    padding-bottom: 76px;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) .layout_shop.page_shop > .container {
    padding: 0 16px;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents {
    padding-top: 22px;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .title_01,
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents h1.title_01 {
    padding: 24px 20px 28px !important;
    font-size: 25px !important;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .heading_07 {
    font-size: 24px !important;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .telbox_telnum {
    font-size: 30px !important;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area {
    padding: 18px !important;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area dl.formset {
    grid-template-columns: 1fr;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area dl.formset > dt,
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area dl.formset > dd {
    min-height: 0;
    padding: 15px 14px !important;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area label {
    display: flex;
    width: 100%;
    border-radius: 6px;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_step .sdp-form-steps {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0 24px !important;
  }

  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area input[type="submit"],
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area input[type="button"],
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) article#main_contents .form_area button[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) *,
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) *::before,
  :where(
    body.sdp-offer-form-modern,
    body.page-template-page-post_repair_offer,
    body.page-template-page-post_repair_offer2,
    body.page-template-page-recovery_offer,
    body.page-template-page-houjin-repair
  ) *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-06-27 見出し重なり修正:
   旧 contact.css の `body.sdp-contact-page .heading_02::before` 縦バー(absolute left:0)が、
   当CSSの見出し(border-bottom・padding:0)と重なり1文字目に被る。
   offerフォーム見出しはborder-bottomデザインに統一するため縦バーを無効化。 */
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_02::before,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_03::before,
:where(
  body.sdp-offer-form-modern,
  body.page-template-page-post_repair_offer,
  body.page-template-page-post_repair_offer2,
  body.page-template-page-recovery_offer,
  body.page-template-page-houjin-repair
) article#main_contents .heading_07::before {
  content: none !important;
  display: none !important;
}

/* 2026-06-27 復元: 「ご依頼の流れ」flowリスト(.sdp-flow-steps)のスタイル。
   更新版で欠落しolの既定番号が二重表示(「1. 1」)になったため再追加。 */
.sdp-flow-steps{list-style:none !important;margin:18px 0 32px;padding:0;display:grid;gap:12px;counter-reset:none}
@media (min-width:680px){.sdp-flow-steps{grid-template-columns:1fr 1fr}}
.sdp-flow-steps>li{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;border:1px solid #e6ddd9;border-radius:12px;background:#fff;box-shadow:0 6px 16px rgba(80,54,50,.05);list-style:none !important}
.sdp-flow-steps>li::before,.sdp-flow-steps>li::marker{content:none !important}
.sdp-flow-steps .sdp-flow-no{flex:0 0 auto;display:inline-flex;width:34px;height:34px;border-radius:50%;background:#a34f4d;color:#fff;font-weight:900;align-items:center;justify-content:center;font-size:16px}
.sdp-flow-steps li.us .sdp-flow-no{background:#803d3c}
.sdp-flow-steps .sdp-flow-who{display:inline-block;margin:0 0 3px;font-size:11px;font-weight:800;color:#8a7f7c;letter-spacing:.02em}
.sdp-flow-steps li p{margin:0;font-size:14px;line-height:1.6;color:#2b2c2e;font-weight:700}
.sdp-flow-steps li p small{display:block;margin-top:3px;font-size:12px;font-weight:400;color:#5c5654}
/* 2026-06-27 復元: 注入されるヒーローリード文(.sdp-offer-lead)のスタイル(更新版で欠落) */
body.sdp-offer-form-modern .sdp-offer-lead{max-width:860px;margin:14px 0 26px;color:#504747;font-size:15.5px;line-height:1.95}


/* ===== 確認画面ボタンの間隔(密着回避・SPで押しやすく) 2026-06-29 =====
   offerフォーム(郵送/基板/法人/採用)の確認画面。前画面に戻る/送信する が密着→間隔付与。 */
article#main_contents .form_area input[type="submit"],
article#main_contents .form_area input[type="button"],
article#main_contents .form_area button[type="submit"]{
  margin:8px 6px!important;
}
@media (max-width:768px){
  article#main_contents .form_area input[type="submit"],
  article#main_contents .form_area input[type="button"],
  article#main_contents .form_area button[type="submit"]{
    display:block!important;
    width:100%!important;
    margin:0 0 14px!important;
  }
  article#main_contents .form_area p[align="center"]{ margin-bottom:6px; }
}
