
/* Codex Shoubousetsubi responsive media fix 2026-07-05 */
html body #body_wrap .sma-site .sma-subhero[style*="99158e70961c3cba"]::before {
  background-image:
    linear-gradient(120deg, rgba(7, 29, 52, .88), rgba(119, 23, 37, .76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px) !important;
  background-size: cover, auto, auto !important;
}

html body #body_wrap .sma-site img.sma-photo[src*="99158e70961c3cba"] {
  display: none !important;
}

html body #body_wrap .sma-site .sma-media:has(img.sma-photo[src*="99158e70961c3cba"])::before {
  content: "消防設備業のM&A";
  display: grid;
  place-items: center;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(7, 29, 52, .16);
  color: rgba(255, 255, 255, .92);
  font-size: clamp(16px, 2.1vw, 24px);
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(7, 29, 52, .96), rgba(119, 23, 37, .88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 18px);
  box-sizing: border-box;
}

@media (max-width: 599px) {
  html body #body_wrap .sma-site .sma-media:has(img.sma-photo[src*="99158e70961c3cba"])::before {
    min-height: 190px;
    letter-spacing: .04em;
  }
}

/* Codex Shoubousetsubi narrow viewport guard 2026-07-05 */
@media (max-width: 480px) {
  html body:not(.wp-admin) #body_wrap .sma-site,
  html body:not(.wp-admin) #body_wrap .sma-site * {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site .sma-inner {
    width: calc(100% - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site :where(
    .policy-grid,
    .policy-list,
    .sma-grid,
    .sma-grid.two,
    .sma-flow,
    .sma-point-list,
    .sma-topic-grid,
    .sma-media,
    .sma-actions
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site :where(
    .policy-card,
    .policy-card.full,
    .sma-card,
    .sma-point,
    .sma-topic,
    .sma-media > div,
    .sma-actions,
    .sma-btn
  ) {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site :where(.policy-card, .policy-card.full) {
    grid-column: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site :where(.policy-card, .sma-card, .sma-point, .sma-topic, .sma-btn, h1, h2, h3, p, li) {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site .sma-actions {
    display: grid !important;
    gap: 10px !important;
  }

  html body:not(.wp-admin) #body_wrap .sma-site .sma-actions .sma-btn {
    white-space: normal !important;
  }
}

/* Codex Shoubousetsubi contrast and responsive navigation fix 2026-08-24 */

/*
 * Safety boundary: exclude every published/draft page that contains
 * the protected Nagashima creative. All rules below are additionally
 * scoped to non-AJ components such as .sma-site, .sma-seo, or posts.
 */

/* Dark panels: restore light headings and copy overridden by global rules. */
html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site :where(.sma-depth-docs, .sma-depth-related) > h3,
html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site .sma-legal-refresh-20260623 > .sma-inner > h2:first-child,
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-table-wrap thead th {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-article-summary,
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-article .sma-fee-sub {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-article-summary :where(p, li, b, strong, span, a),
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-article .sma-fee-sub :where(p, li, b, strong, span, a) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Legacy case-study articles use pale H2 panels. */
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .ma-article.sma-article h2 {
  color: #061d34 !important;
  -webkit-text-fill-color: #061d34 !important;
}

/* CTA contrast, including Japanese line-breaking helper spans. */
html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-seo .sma-seo__nav .btn,
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) a.btn.btn-primary,
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) a.wp-block-button__link:not(.has-background),
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) a.wp-block-button__link.has-white-color {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-seo .sma-seo__cta a,
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) a.btn.btn-secondary {
  color: #061d34 !important;
  -webkit-text-fill-color: #061d34 !important;
}

html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) :where(.sma-site, .sma-seo, .sma-article, .ma-article) :where(a, button, .sma-btn, .btn, .wp-block-button__link) :where(.sma-jp-natural-text, .sma-jp-natural-chunk) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Controls: keep tap targets usable on phones and tablets. */
html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-seo .btn,
html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site :where(.sma-btn, .sma-menu a, .sma-top-tel),
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .p-toc__expandBtn,
html body:not(.wp-admin) #body_wrap.single-post:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) #main_content .c-shareBtns.-bottom .c-shareBtns__btn {
  box-sizing: border-box !important;
  min-height: 44px !important;
  min-width: 44px !important;
}

/* The shared trust footer sits after #body_wrap, so guard it through :has(). */
html body:not(.wp-admin):has(#body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041)) .sma-trust-footer__col a {
  box-sizing: border-box !important;
  min-height: 44px !important;
  min-width: 44px !important;
}

/* Archive pagination ellipsis. */
html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .c-pagination__dot {
  color: #5f6b76 !important;
  -webkit-text-fill-color: #5f6b76 !important;
}

html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .c-postThumb__cat.icon-folder {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .c-pagination a.page-numbers {
  align-items: center !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  justify-content: center !important;
  min-height: 44px !important;
  min-width: 44px !important;
}

/* Mobile custom navigation: expose all six primary destinations. */
@media (max-width: 599px) {
  html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site .sma-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site .sma-menu a[href="/case/"],
  html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site .sma-menu a[href="/column/"],
  html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site .sma-menu a[href="/company/"],
  html body:not(.wp-admin) #body_wrap:not(.id_2):not(.id_12):not(.id_14):not(.id_16):not(.id_578):not(.id_1033):not(.id_1035):not(.id_1037):not(.id_1039):not(.id_1041) .sma-site .sma-menu a[href="/ma-guideline/"] {
    display: inline-flex !important;
  }
}


/* Codex inquiry form UI: one field per row, calm palette, responsive */
html body:not(.wp-admin) #body_wrap .aj-form-wrap {
  width: min(760px, calc(100% - 48px)) !important;
  padding: 44px !important;
  border: 1px solid #d7e1e8 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 32px rgba(16, 44, 76, .08) !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .wpcf7-form {
  margin: 0 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-cf7-easy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  min-width: 0 !important;
  background: #ffffff !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-cf7-easy > * {
  grid-column: 1 / -1 !important;
  min-width: 0 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-form-section-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 8px 0 0 !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-left: 4px solid #102c4c !important;
  border-radius: 8px !important;
  background: #f4f7fa !important;
  color: #102c4c !important;
  -webkit-text-fill-color: #102c4c !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-form-section-title:first-child {
  margin-top: 0 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-form-section-title > span {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #102c4c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field > p,
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-consent > p,
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-cf7-easy > p:last-of-type {
  margin: 0 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field > p > br {
  display: none !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field__label {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  color: #102c4c !important;
  -webkit-text-fill-color: #102c4c !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field input[type="text"],
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field input[type="email"],
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field input[type="tel"],
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field select,
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field textarea {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 13px 15px !important;
  border: 1px solid #c7d1da !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #16283b !important;
  -webkit-text-fill-color: #16283b !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  transition: border-color .15s ease, outline-color .15s ease !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field textarea {
  min-height: 180px !important;
  resize: vertical !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field input::placeholder,
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field textarea::placeholder {
  color: #718096 !important;
  -webkit-text-fill-color: #718096 !important;
  opacity: 1 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field input:focus-visible,
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field select:focus-visible,
html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field textarea:focus-visible {
  border-color: #102c4c !important;
  outline: 3px solid #2d5b86 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 22px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-badge.req {
  background: #b4232d !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-badge.opt {
  background: #edf1f4 !important;
  color: #526579 !important;
  -webkit-text-fill-color: #526579 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list {
  padding: 18px !important;
  border: 1px solid #dfe6ec !important;
  border-radius: 10px !important;
  background: #f7f9fb !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list .wpcf7-form-control {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list .wpcf7-list-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border: 1px solid #d7e1e8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #18334c !important;
  -webkit-text-fill-color: #18334c !important;
  line-height: 1.55 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list .wpcf7-list-item label:focus-within {
  border-color: #102c4c !important;
  outline: 3px solid #2d5b86 !important;
  outline-offset: 2px !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap input[type="checkbox"] {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  accent-color: #102c4c !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-consent {
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #dfe6ec !important;
  border-radius: 10px !important;
  background: #f7f9fb !important;
  color: #34495e !important;
  -webkit-text-fill-color: #34495e !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-consent label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-height: 44px !important;
  color: #18334c !important;
  -webkit-text-fill-color: #18334c !important;
  line-height: 1.7 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-consent label:focus-within {
  outline: 3px solid #2d5b86 !important;
  outline-offset: 2px !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-policy-links {
  display: block !important;
  margin-top: 8px !important;
  color: #526579 !important;
  -webkit-text-fill-color: #526579 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-policy-links a {
  color: #102c4c !important;
  -webkit-text-fill-color: #102c4c !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap input[type="submit"] {
  display: block !important;
  width: 100% !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #102c4c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: .02em !important;
  cursor: pointer !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap input[type="submit"]:hover:not(:disabled) {
  background: #173f68 !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap input[type="submit"]:focus-visible {
  outline: 3px solid #2d5b86 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap input[type="submit"]:disabled {
  opacity: .5 !important;
  cursor: not-allowed !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  background: #f7f9fb !important;
  color: #34495e !important;
  -webkit-text-fill-color: #34495e !important;
  line-height: 1.7 !important;
}

@media (max-width: 640px) {
  html body:not(.wp-admin) #body_wrap .aj-form-wrap {
    width: calc(100% - 24px) !important;
    margin-bottom: 48px !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(16, 44, 76, .07) !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-cf7-easy {
    gap: 18px !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-form-section-title {
    gap: 10px !important;
    margin-top: 6px !important;
    padding: 12px 13px !important;
    font-size: 17px !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-form-section-title > span {
    flex-basis: 30px !important;
    width: 30px !important;
    height: 30px !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list,
  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-consent {
    padding: 12px !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-choice-list .wpcf7-list-item label {
    min-height: 50px !important;
    padding: 12px 10px !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-field textarea {
    min-height: 160px !important;
  }

  html body:not(.wp-admin) #body_wrap .aj-form-wrap .sma-policy-links {
    font-size: 12.5px !important;
  }
}


/* Consent requirement and disabled state clarity */
html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .wpcf7-form-control-wrap[data-name="privacy-consent"] .wpcf7-list-item-label {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .wpcf7-form-control-wrap[data-name="privacy-consent"] .wpcf7-list-item-label::after {
  content: "必須";
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #b4232d;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .sma-consent:has(.wpcf7-form-control-wrap[data-name="privacy-consent"])::after {
  content: "チェックを入れると送信ボタンが有効になります。";
  display: block;
  margin-top: 8px;
  color: #526579;
  -webkit-text-fill-color: #526579;
  font-size: 13px;
  line-height: 1.7;
}

html body:not(.wp-admin) #body_wrap .aj-form-wrap input[type="submit"]:disabled {
  background: #667586 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}


/* Keep checkbox and consent text readable on narrow phones */
html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .sma-choice-list .wpcf7-list-item label,
html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .sma-choice-list .wpcf7-list-item label *,
html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .sma-consent label,
html body:not(.wp-admin) #body_wrap .aj-form-wrap
  .sma-consent label * {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Append after the existing common voices stylesheet. Color roles only. */
html body #ma-owner-voices#ma-owner-voices {
  --voice-ink: #132c46;
  --voice-muted: #526171;
  --voice-line: #d6dde5;
  --voice-paper: #f3f5f7;
  color: #223247 !important;
  -webkit-text-fill-color: #223247 !important;
  background-color: #f3f5f7 !important;
}

html body #ma-owner-voices#ma-owner-voices h2,
html body #ma-owner-voices#ma-owner-voices h3 {
  color: #132c46 !important;
  -webkit-text-fill-color: #132c46 !important;
}

html body #ma-owner-voices#ma-owner-voices .ma-voices-kicker,
html body #ma-owner-voices#ma-owner-voices .ma-voices-intro,
html body #ma-owner-voices#ma-owner-voices .ma-voice-topic,
html body #ma-owner-voices#ma-owner-voices .ma-voices-note {
  color: #526171 !important;
  -webkit-text-fill-color: #526171 !important;
}

html body #ma-owner-voices#ma-owner-voices .ma-voice-card {
  color: #223247 !important;
  -webkit-text-fill-color: #223247 !important;
  background-color: #ffffff !important;
  border-color: #d6dde5 !important;
}

html body #ma-owner-voices#ma-owner-voices blockquote,
html body #ma-owner-voices#ma-owner-voices blockquote p {
  color: #223247 !important;
  -webkit-text-fill-color: #223247 !important;
}

html body #ma-owner-voices#ma-owner-voices .ma-voices-consult {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #132c46 !important;
  border-color: #132c46 !important;
}

html body #ma-owner-voices#ma-owner-voices .ma-voices-consult:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-color: #1e4264 !important;
  border-color: #1e4264 !important;
}

html body #ma-owner-voices#ma-owner-voices .ma-voices-consult:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  outline-color: #8a631f;
}

/* Logo background integration 2026-10-09: fire safety company panel */
html:lang(ja) body footer#sma-site-footer.sma-trust-footer .sma-trust-footer__brand{background:#fff!important;border-color:#dce5e7!important;color:#294652!important}
html:lang(ja) body footer#sma-site-footer.sma-trust-footer .sma-trust-footer__brand :is(p,a,span,small,strong){color:#294652!important;-webkit-text-fill-color:#294652!important}
html:lang(ja) body footer#sma-site-footer.sma-trust-footer .sma-trust-footer__brand .sma-trust-footer__badges span{background:#f3f7f8!important;border-color:#dce5e7!important}
html:lang(ja) body footer#sma-site-footer.sma-trust-footer .sma-trust-footer__brand :is(a,.sma-trust-footer__logo-img){background:#fff!important;border-color:transparent!important;box-shadow:none!important;filter:none!important}

