@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* Tochigi M&A: sidebar disabled */
#sidebar.l-sidebar {
  display: none !important;
}

#main_content.l-mainContent {
  width: 100% !important;
}

/* 栃木M&A総合センター：運営会社フッター */
.tma-operator-foot {
  position: relative;
  z-index: 2;
  background: #0f2f35;
  color: #dce8e5;
  border-top: 4px solid #b66b43;
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
}

.tma-operator-foot * {
  box-sizing: border-box;
}

.tma-operator-foot__inner {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.6fr) auto;
  gap: 26px;
  align-items: center;
}

.tma-operator-foot p {
  margin: 0;
  color: #dce8e5;
  font-size: 13px;
  line-height: 1.8;
}

.tma-operator-foot__company span {
  display: block;
  margin-bottom: 3px;
  color: #9db9b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tma-operator-foot__company strong {
  color: #fff;
  font-size: 18px;
}

.tma-operator-foot__links {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.tma-operator-foot a {
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tma-operator-foot a:hover {
  text-decoration: underline;
}

@media (max-width: 820px) {
  .tma-operator-foot__inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tma-operator-foot__links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}



/* 栃木M&A総合センター：アクセシビリティ */
.tma-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 18px;
  border: 3px solid #0b5d4b;
  border-radius: 8px;
  background: #fff;
  color: #0f3f35 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .15s ease;
}

.tma-skip-link:focus,
.tma-skip-link:focus-visible {
  transform: translateY(0);
}

.tma-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #0b5d4b !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}

#main_content {
  scroll-margin-top: 96px;
}

.tma-form__hp {
  display: none !important;
}

/* 閉じたdetailsの内容を確実に隠し、見た目とTab順を一致させる。 */
details.tma-form__optional:not([open]) > .tma-form__optionalbody {
  display: none !important;
}

details.tma-form__optional[open] > .tma-form__optionalbody {
  display: grid !important;
}

/* 独自目次がある記事では、テーマの自動目次を重複表示しない。 */
.single-post:has(.tma-column__toc, .article-toc) .p-toc.-double {
  display: none !important;
}

/* 小さな注記も本文として読める大きさ・コントラストにする。 */
.tma-industries-note {
  color: #4f665f !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline-color: Highlight !important;
    box-shadow: none !important;
  }
}


/* 固定ページは独自のモバイルナビを使うため、閉じたSWELLメニューをTab順から除外する。 */
#body_wrap.page #sp_menu,
#body_wrap.page .l-header__menuBtn {
  display: none !important;
}


/* 通常サイズの文字・CTAを4.5:1以上の配色にする。 */
:root {
  --tma-copper: #984923 !important;
}

.tma-contact-brand small,
.tma-form small,
.tma-form__counter,
.tma-form__consentnote {
  color: #52666c !important;
}

.tma-subsite a[href^="tel:"],
.tma-subsite a[href^="mailto:"],
.tma-subsite a[href*="ma-mado.com"] {
  color: #075b9f !important;
}


/* 写真上の注記は画像の明暗に左右されない背景を持たせる。 */
.tma-site figcaption {
  background: #061a2d !important;
  color: #fff !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

.tma-intel__stats .tma-stat em {
  color: #52666c !important;
  font-size: 11px !important;
}


/* 法務・プライバシー詳細表示 */
.tma-legal,
.tma-legal-brief {
  box-sizing: border-box;
  color: #132a27;
  font-feature-settings: "palt";
}

.tma-legal {
  width: min(1160px, calc(100% - 32px));
  margin: clamp(40px, 7vw, 88px) auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #d7e3df;
  border-top: 6px solid #0b5d4b;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 55, 48, .08);
}

.tma-legal__eyebrow {
  margin: 0 0 8px !important;
  color: #984923;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.tma-legal > h2,
.tma-legal-brief h2 {
  margin: 0 !important;
  color: #123a32;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.3;
  letter-spacing: .01em;
}

.tma-legal__lead {
  max-width: 880px;
  margin: 18px 0 0 !important;
  color: #415b55;
  font-size: 16px;
  line-height: 1.9;
}

.tma-legal__toc {
  margin: 30px 0 8px;
  padding: 22px 24px;
  border: 1px solid #cfe0da;
  border-radius: 14px;
  background: #f2f8f5;
}

.tma-legal__toc > p {
  margin: 0 0 12px !important;
  color: #123a32;
  font-weight: 800;
}

.tma-legal__toc ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0 !important;
  padding-left: 1.25em !important;
}

.tma-legal__toc a,
.tma-legal__links a,
.tma-legal-brief__links a {
  color: #075b9f;
  font-weight: 700;
  text-underline-offset: 3px;
}

.tma-legal__section {
  scroll-margin-top: 110px;
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid #dce7e3;
}

.tma-legal__section h3,
.tma-legal__grid h3 {
  margin: 0 0 15px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #123a32 !important;
  font-size: clamp(21px, 3vw, 28px) !important;
  line-height: 1.45;
}

.tma-legal__section h4 {
  margin: 26px 0 8px !important;
  color: #244d45;
  font-size: 18px;
  line-height: 1.5;
}

.tma-legal :where(p, li) {
  color: #314b45;
  font-size: 15px;
  line-height: 1.9;
}

.tma-legal :where(ul, ol) {
  margin: 14px 0 0 !important;
  padding-left: 1.45em !important;
}

.tma-legal li + li {
  margin-top: 8px;
}

.tma-legal__alert {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 5px solid #984923;
  border-radius: 4px 12px 12px 4px;
  background: #fff7f1;
}

.tma-legal__alert > strong {
  display: block;
  margin-bottom: 5px;
  color: #713514;
  font-size: 17px;
}

.tma-legal__alert p {
  margin: 0 !important;
}

.tma-legal__note,
.tma-legal__revision {
  padding: 14px 18px;
  border-radius: 10px;
  background: #f2f8f5;
}

.tma-legal__contact {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #cfe0da;
  border-radius: 12px;
  background: #f8fbfa;
  color: #314b45;
  font-size: 15px;
  font-style: normal;
  line-height: 1.9;
}

.tma-legal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tma-legal__grid article {
  padding: 24px;
  border: 1px solid #d7e3df;
  border-radius: 14px;
  background: #f8fbfa;
}

.tma-legal__grid article p {
  margin: 0 !important;
}

.tma-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px !important;
}

.tma-legal-brief {
  margin-top: clamp(42px, 7vw, 84px);
  padding: clamp(44px, 7vw, 80px) 16px;
  background: linear-gradient(145deg, #082f28, #0b4d40);
}

.tma-legal-brief__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.tma-legal-brief .tma-legal__eyebrow {
  color: #f2b586;
}

.tma-legal-brief h2 {
  color: #fff;
}

.tma-legal-brief__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.tma-legal-brief__grid article {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.tma-legal-brief__grid h3 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.5;
}

.tma-legal-brief__grid p,
.tma-legal-brief__comparison {
  margin: 0 !important;
  color: #e8f2ef;
  font-size: 14px;
  line-height: 1.8;
}

.tma-legal-brief__grid strong {
  color: #fff2c7;
}

.tma-legal-brief__comparison {
  margin-top: 20px !important;
  padding: 16px 18px;
  border-left: 4px solid #f2b586;
  background: rgba(0,0,0,.14);
}

.tma-legal-brief__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 22px 0 0 !important;
}

.tma-legal-brief__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.tma-form__fee-note {
  margin: 14px 0 22px !important;
  padding: 16px 18px;
  border: 1px solid #e5cbb9;
  border-left: 5px solid #984923;
  border-radius: 10px;
  background: #fff8f3;
  color: #4f3c31;
  font-size: 13px;
  line-height: 1.75;
}

.tma-form__fee-note strong {
  color: #713514;
}

@media (max-width: 767px) {
  .tma-legal {
    width: calc(100% - 20px);
    margin: 34px auto 52px;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .tma-legal__toc {
    padding: 18px;
  }

  .tma-legal__toc ul,
  .tma-legal__grid,
  .tma-legal-brief__grid {
    grid-template-columns: 1fr;
  }

  .tma-legal__section {
    margin-top: 30px;
    padding-top: 28px;
  }

  .tma-legal__grid article,
  .tma-legal-brief__grid article {
    padding: 20px 18px;
  }

  .tma-legal-brief {
    padding: 42px 12px;
  }

  .tma-legal-brief__links {
    display: grid;
  }

  .tma-legal-brief__links a {
    justify-content: center;
  }
}

@media (forced-colors: active) {
  .tma-legal,
  .tma-legal__toc,
  .tma-legal__grid article,
  .tma-legal__alert,
  .tma-legal-brief__grid article {
    border: 1px solid CanvasText;
  }
}


.tma-fee-disclosure {
  display: block;
  margin-top: 10px;
  color: #425c56;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
}


.tma-legal > h2,
.tma-legal-brief h2 {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.tma-legal > h2 {
  color: #123a32 !important;
}

.tma-legal-brief h2 {
  color: #fff !important;
}


/* 全ページ共通ヘッダー：信頼情報・売り手／買い手導線を統一 */
:root {
  --tma-head-navy: #061a2d;
  --tma-head-ink: #0b2742;
  --tma-head-green: #17655b;
  --tma-head-copper: #a54420;
  --tma-head-paper: #f7f3eb;
  --tma-head-line: #d7dfdc;
}

#body_wrap > #header,
#body_wrap > #fix_header,
#sp_menu,
.tma-globalhead {
  display: none !important;
}

.tma-proofbar {
  display: none !important;
}

.tma-trustbar,
.tma-sitehead {
  width: 100%;
  box-sizing: border-box;
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", sans-serif;
}

.tma-trustbar {
  position: relative;
  z-index: 1190;
  min-height: 36px;
  background: var(--tma-head-navy);
  color: #fff;
  border-bottom: 2px solid #258273;
}

.tma-trustbar__inner,
.tma-sitehead__inner,
.tma-sitehead__panel-inner {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.tma-trustbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.tma-trustbar__assurance,
.tma-trustbar__operator {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tma-trustbar__tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #236c60;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.tma-trustbar__assurance strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
}

.tma-trustbar__privacy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8ece7;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tma-trustbar__privacy::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #83d1bc;
  box-shadow: 0 0 0 4px rgba(131,209,188,.13);
}

.tma-trustbar__operator {
  justify-content: flex-end;
  color: #d8e4e7;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tma-trustbar a {
  color: #fff !important;
  text-decoration: none;
}

.tma-trustbar__phone {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  border-inline: 1px solid rgba(255,255,255,.18);
}

.tma-trustbar__phone small {
  color: #bcd2d8;
  font-size: 9px;
  font-weight: 700;
}

.tma-trustbar__phone strong {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
}

.tma-trustbar__policy {
  border-bottom: 1px solid rgba(255,255,255,.5);
  font-size: 10.5px;
}

.tma-sitehead {
  position: sticky;
  top: 0;
  z-index: 1200;
  min-height: 88px;
  border-bottom: 1px solid var(--tma-head-line);
  background: rgba(255,255,255,.985);
  box-shadow: 0 8px 28px rgba(6,26,45,.08);
}

.admin-bar .tma-sitehead,
#wpadminbar ~ .tma-sitehead {
  top: 32px;
}

.tma-sitehead__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tma-sitehead__logo {
  width: 340px;
  max-width: 29%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  color: var(--tma-head-ink) !important;
}

.tma-sitehead__logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 3;
  object-fit: contain;
  object-position: left center;
}

.tma-sitehead__nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.35vw, 22px);
}

.tma-sitehead__nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--tma-head-ink) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.tma-sitehead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--tma-head-green);
  transition: right .18s ease;
}

.tma-sitehead__nav a:hover::after,
.tma-sitehead__nav a[aria-current="page"]::after {
  right: 0;
}

.tma-sitehead__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.tma-sitehead__buyer,
.tma-sitehead__seller,
.tma-sitehead__quick {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
}

.tma-sitehead__buyer {
  padding: 10px 14px;
  border: 1px solid #8ea5ac;
  background: #fff;
  color: var(--tma-head-ink) !important;
  font-size: 12px;
}

.tma-sitehead__seller {
  min-width: 142px;
  flex-direction: column;
  padding: 8px 15px;
  border: 1px solid #8e3417;
  background: var(--tma-head-copper);
  color: #fff !important;
  box-shadow: 0 9px 22px rgba(165,68,32,.2);
}

.tma-sitehead__seller small {
  color: #ffe1d2;
  font-size: 9px;
  font-weight: 700;
}

.tma-sitehead__seller strong {
  color: #fff;
  font-size: 13px;
}

.tma-sitehead__buyer:hover,
.tma-sitehead__seller:hover,
.tma-sitehead__quick:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.tma-sitehead__quick,
.tma-sitehead__toggle {
  display: none;
}

.tma-sitehead__toggle {
  width: 54px;
  height: 52px;
  flex: 0 0 54px;
  padding: 5px;
  border: 1px solid #c9d5d2;
  border-radius: 9px;
  background: #fff;
  color: var(--tma-head-ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.tma-sitehead__hamburger {
  width: 22px;
  height: 16px;
  position: relative;
  display: block;
}

.tma-sitehead__hamburger i {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}

.tma-sitehead__hamburger i:nth-child(1) { top: 0; }
.tma-sitehead__hamburger i:nth-child(2) { top: 7px; }
.tma-sitehead__hamburger i:nth-child(3) { top: 14px; }

.tma-sitehead.is-menu-open .tma-sitehead__hamburger i:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.tma-sitehead.is-menu-open .tma-sitehead__hamburger i:nth-child(2) {
  opacity: 0;
}

.tma-sitehead.is-menu-open .tma-sitehead__hamburger i:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.tma-sitehead__panel[hidden] {
  display: none !important;
}

.tma-sitehead__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  max-height: calc(100vh - 78px);
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--tma-head-line);
  border-bottom: 4px solid var(--tma-head-green);
  background: #fff;
  box-shadow: 0 22px 45px rgba(6,26,45,.2);
}

.tma-sitehead__panel-inner {
  padding-block: 24px calc(26px + env(safe-area-inset-bottom));
}

.tma-sitehead__panel-title {
  margin: 0 0 16px !important;
  color: #546a71;
  font-size: 13px;
  font-weight: 700;
}

.tma-sitehead__panel-title span {
  margin-right: 12px;
  color: var(--tma-head-green);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: .14em;
}

.tma-sitehead__panel-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid var(--tma-head-line);
  border-left: 1px solid var(--tma-head-line);
}

.tma-sitehead__panel-links a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-right: 1px solid var(--tma-head-line);
  border-bottom: 1px solid var(--tma-head-line);
  color: var(--tma-head-ink) !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.tma-sitehead__panel-links a::after {
  content: "›";
  color: var(--tma-head-green);
  font-size: 20px;
}

.tma-sitehead__panel-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}

.tma-sitehead__panel-actions a {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 3px 10px;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
}

.tma-sitehead__panel-actions small,
.tma-sitehead__panel-actions span {
  font-size: 10px;
  font-weight: 700;
}

.tma-sitehead__panel-actions strong {
  grid-column: 1;
  font-size: 18px;
}

.tma-sitehead__panel-actions span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.tma-sitehead__panel-seller {
  border: 1px solid #8e3417;
  background: var(--tma-head-copper);
  color: #fff !important;
}

.tma-sitehead__panel-seller :where(small, strong, span) {
  color: #fff;
}

.tma-sitehead__panel-buyer {
  border: 1px solid #789196;
  background: #f5f8f7;
  color: var(--tma-head-ink) !important;
}

.tma-sitehead__panel-phone {
  min-height: 60px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid #cbd9d5;
  border-radius: 10px;
  background: var(--tma-head-paper);
  color: var(--tma-head-ink) !important;
  text-decoration: none;
}

.tma-sitehead__panel-phone span {
  font-size: 12px;
  font-weight: 800;
}

.tma-sitehead__panel-phone span small {
  color: #596f75;
  font-size: 10px;
}

.tma-sitehead__panel-phone strong {
  font-family: Arial, sans-serif;
  font-size: 21px;
  letter-spacing: .04em;
}

.tma-sitehead__panel-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #5b7076;
  font-size: 11px;
  font-weight: 700;
}

.tma-sitehead__panel-meta a {
  color: #075b9f !important;
  text-underline-offset: 3px;
}

body.tma-header-menu-open {
  overflow: hidden;
}

@media (max-width: 1310px) and (min-width: 1180px) {
  .tma-sitehead__inner {
    gap: 14px;
  }

  .tma-sitehead__logo {
    width: 320px;
  }

  .tma-sitehead__nav {
    gap: 12px;
  }

  .tma-sitehead__nav a {
    font-size: 12px;
  }

  .tma-sitehead__buyer {
    padding-inline: 11px;
  }

  .tma-sitehead__seller {
    min-width: 132px;
    padding-inline: 11px;
  }
}

@media (max-width: 1179px) {
  .tma-feebar {
    display: none !important;
  }

  .tma-trustbar__operator {
    display: none;
  }

  .tma-sitehead {
    min-height: 78px;
  }

  .tma-sitehead__inner {
    min-height: 78px;
    justify-content: space-between;
  }

  .tma-sitehead__logo {
    width: 280px;
    max-width: calc(100% - 260px);
    min-height: 64px;
  }

  .tma-sitehead__nav,
  .tma-sitehead__actions {
    display: none;
  }

  .tma-sitehead__quick {
    min-width: 132px;
    min-height: 50px;
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    border: 1px solid #8e3417;
    background: var(--tma-head-copper);
    color: #fff !important;
  }

  .tma-sitehead__quick small {
    color: #ffe1d2;
    font-size: 9px;
  }

  .tma-sitehead__quick strong {
    color: #fff;
    font-size: 13px;
  }

  .tma-sitehead__toggle {
    display: inline-flex;
  }
}

@media (max-width: 782px) {
  .admin-bar .tma-sitehead,
  #wpadminbar ~ .tma-sitehead {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .tma-trustbar {
    min-height: 42px;
  }

  .tma-trustbar__inner {
    min-height: 42px;
    justify-content: center;
  }

  .tma-trustbar__assurance {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .tma-trustbar__tag {
    display: none;
  }

  .tma-trustbar__assurance strong {
    font-size: 12.5px;
    letter-spacing: .01em;
  }

  .tma-trustbar__privacy {
    font-size: 10.5px;
  }

  .tma-sitehead {
    min-height: 72px;
  }

  .tma-sitehead__inner {
    width: calc(100% - 24px);
    min-height: 72px;
    gap: 10px;
  }

  .tma-sitehead__logo {
    width: clamp(178px, 58vw, 220px);
    max-width: calc(100% - 64px);
    min-height: 54px;
  }

  .tma-sitehead__quick {
    display: none;
  }

  .tma-sitehead__toggle {
    width: 52px;
    height: 50px;
    flex-basis: 52px;
  }

  .tma-sitehead__panel {
    max-height: calc(100vh - 72px - env(safe-area-inset-bottom));
  }

  .tma-sitehead__panel-inner {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .tma-sitehead__panel-title {
    margin-bottom: 12px !important;
    font-size: 12px;
  }

  .tma-sitehead__panel-links {
    grid-template-columns: 1fr;
  }

  .tma-sitehead__panel-links a {
    min-height: 49px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .tma-sitehead__panel-actions {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 14px;
  }

  .tma-sitehead__panel-actions a {
    min-height: 72px;
    padding: 12px 15px;
  }

  .tma-sitehead__panel-actions strong {
    font-size: 17px;
  }

  .tma-sitehead__panel-phone {
    min-height: 58px;
  }

  .tma-sitehead__panel-phone strong {
    font-size: 19px;
  }
}

@media (max-width: 359px) {
  .tma-trustbar__privacy {
    display: none;
  }

  .tma-sitehead__inner,
  .tma-sitehead__panel-inner {
    width: calc(100% - 20px);
  }

  .tma-sitehead__logo {
    width: clamp(176px, 58vw, 190px);
    max-width: calc(100% - 60px);
  }

  .tma-sitehead__toggle {
    width: 50px;
    flex-basis: 50px;
  }

  .tma-sitehead__panel-phone {
    gap: 9px;
  }

  .tma-sitehead__panel-phone strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tma-sitehead__nav a::after,
  .tma-sitehead__hamburger i,
  .tma-sitehead__buyer,
  .tma-sitehead__seller,
  .tma-sitehead__quick {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .tma-trustbar,
  .tma-sitehead,
  .tma-sitehead__buyer,
  .tma-sitehead__seller,
  .tma-sitehead__quick,
  .tma-sitehead__toggle,
  .tma-sitehead__panel-actions a {
    border: 1px solid CanvasText;
  }
}


:where(.tma-site, .tma-subsite, .post_content) [id] {
  scroll-margin-top: 128px;
}


/* =========================================================
   栃木M&A総合センター：全ページ共通フッター 2026-07-22
   ========================================================= */
.tma-footlinks,
.tma-contact-footer,
#body_wrap > .l-footer,
.l-footer {
  display: none !important;
}

.tma-sitefoot {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  background: #061a2d;
  color: #e7efec;
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow: hidden;
}

.tma-sitefoot *,
.tma-sitefoot *::before,
.tma-sitefoot *::after {
  box-sizing: border-box;
}

.tma-sitefoot :where(h2, p, ul, address, dl, dt, dd) {
  margin: 0;
}

.tma-sitefoot :where(ul) {
  padding: 0;
  list-style: none;
}

.tma-sitefoot a {
  text-decoration-thickness: .08em;
  text-underline-offset: .22em;
}

.tma-sitefoot a:focus-visible {
  outline: 3px solid #ffd166 !important;
  outline-offset: 3px;
  border-radius: 4px;
}

.tma-sitefoot__cta {
  position: relative;
  border-top: 4px solid #a54420;
  background:
    radial-gradient(circle at 92% 16%, rgba(23,101,91,.12) 0 120px, transparent 121px),
    linear-gradient(135deg, #faf8f3 0%, #f4efe6 100%);
  color: #0b2742;
}

.tma-sitefoot__cta::after {
  position: absolute;
  right: -64px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(11,39,66,.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.tma-sitefoot__cta-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 64px;
  align-items: center;
}

.tma-sitefoot__eyebrow {
  margin-bottom: 12px !important;
  color: #17655b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.tma-sitefoot__cta-copy h2 {
  color: #0b2742;
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
}

.tma-sitefoot__cta-copy > p:not(.tma-sitefoot__eyebrow) {
  max-width: 620px;
  margin-top: 16px !important;
  color: #385065;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.tma-sitefoot__cta-trust {
  margin-top: 20px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tma-sitefoot__cta-trust li {
  padding: 7px 12px;
  border: 1px solid #c8d5d0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #17443e;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.tma-sitefoot__cta-actions {
  display: grid;
  gap: 10px;
}

.tma-sitefoot__button {
  min-height: 72px;
  padding: 12px 18px 12px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  column-gap: 14px;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(6,26,45,.12);
  text-decoration: none !important;
}

.tma-sitefoot__button small {
  grid-column: 1;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.tma-sitefoot__button strong {
  grid-column: 1;
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.45;
}

.tma-sitefoot__button > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 23px;
  line-height: 1;
}

.tma-sitefoot__button--seller {
  background: #a54420;
  color: #fff !important;
}

.tma-sitefoot__button--seller:hover {
  background: #843417;
}

.tma-sitefoot__button--buyer {
  border-color: #0b2742;
  background: #fff;
  color: #0b2742 !important;
  box-shadow: none;
}

.tma-sitefoot__button--buyer:hover {
  background: #eef3f2;
}

.tma-sitefoot__phone-compact {
  min-height: 52px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 12px;
  border: 1px solid #b9c8c4;
  border-radius: 8px;
  background: rgba(255,255,255,.58);
  color: #0b2742 !important;
  text-decoration: none !important;
}

.tma-sitefoot__phone-compact span {
  grid-row: 1 / span 2;
  font-size: 12px;
  font-weight: 800;
}

.tma-sitefoot__phone-compact strong {
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: .02em;
}

.tma-sitefoot__phone-compact small {
  color: #536a77;
  font-size: 11px;
  line-height: 1.3;
}

.tma-sitefoot__main {
  background: #061a2d;
}

.tma-sitefoot__inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 46px;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}

.tma-sitefoot__brand {
  min-width: 0;
}

.tma-sitefoot__logo {
  width: min(300px, 100%);
  min-height: 72px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.tma-sitefoot__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.tma-sitefoot__lead {
  max-width: 320px;
  margin-top: 19px !important;
  color: #dce8e5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.tma-sitefoot__phone {
  width: min(300px, 100%);
  min-height: 65px;
  margin-top: 18px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 11px;
  border: 1px solid rgba(242,181,134,.48);
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  color: #fff !important;
  text-decoration: none !important;
}

.tma-sitefoot__phone span {
  grid-row: 1 / span 2;
  color: #f2b586;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.tma-sitefoot__phone strong {
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: .02em;
}

.tma-sitefoot__phone small {
  color: #b8c8c4;
  font-size: 11px;
  line-height: 1.35;
}

.tma-sitefoot__company {
  margin-top: 20px;
  color: #b8c8c4;
  font-size: 12px;
  line-height: 1.75;
}

.tma-sitefoot__company > p:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tma-sitefoot__company > p:first-child span {
  color: #8eaaa4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.tma-sitefoot__company > p:first-child strong {
  color: #fff;
  font-size: 16px;
}

.tma-sitefoot__company address {
  margin-top: 7px;
  color: #b8c8c4;
  font-style: normal;
}

.tma-sitefoot__company-meta {
  margin-top: 5px !important;
}

.tma-sitefoot__company-meta span {
  white-space: nowrap;
}

.tma-sitefoot__navs {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .8fr) minmax(0, 1.18fr);
  gap: 30px;
}

.tma-sitefoot__nav {
  min-width: 0;
}

.tma-sitefoot__nav h2 {
  min-height: 34px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .02em;
}

.tma-sitefoot__nav a {
  position: relative;
  min-height: 44px;
  padding: 10px 0 9px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.075);
  color: #cbd9d6 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}

.tma-sitefoot__nav a::before {
  position: absolute;
  left: 1px;
  top: 50%;
  color: #f2b586;
  content: "›";
  font-size: 17px;
  line-height: 1;
  transform: translateY(-52%);
}

.tma-sitefoot__nav a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.tma-sitefoot__notice {
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #0b2439;
}

.tma-sitefoot__notice-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.tma-sitefoot__notice p {
  color: #b8c8c4;
  font-size: 12px;
  line-height: 1.75;
}

.tma-sitefoot__notice strong {
  color: #f2b586;
  font-size: 13px;
}

.tma-sitefoot__notice a {
  color: #fff !important;
  font-weight: 800;
  text-decoration: underline;
}

.tma-sitefoot__bottom {
  background: #04111d;
}

.tma-sitefoot__bottom-inner {
  width: min(1160px, calc(100% - 48px));
  min-height: 62px;
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tma-sitefoot__bottom p {
  color: #9fb1ad;
  font-size: 11.5px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .tma-sitefoot__cta-inner {
    padding: 50px 0;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
    gap: 38px;
  }

  .tma-sitefoot__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .tma-sitefoot__brand {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
    gap: 0 34px;
    align-items: start;
  }

  .tma-sitefoot__brand .tma-sitefoot__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .tma-sitefoot__brand .tma-sitefoot__lead {
    grid-column: 1;
    grid-row: 2;
  }

  .tma-sitefoot__brand .tma-sitefoot__phone {
    grid-column: 2;
    grid-row: 1;
    margin-top: 3px;
  }

  .tma-sitefoot__brand .tma-sitefoot__company {
    grid-column: 2;
    grid-row: 2;
    margin-top: 12px;
  }

  .tma-sitefoot__navs {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .tma-sitefoot {
    font-size: 16px;
  }

  .tma-sitefoot__cta-inner,
  .tma-sitefoot__inner,
  .tma-sitefoot__notice-inner,
  .tma-sitefoot__bottom-inner {
    width: calc(100% - 32px);
  }

  .tma-sitefoot__cta-inner {
    padding: 44px 0 46px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tma-sitefoot__cta-copy h2 {
    font-size: clamp(27px, 8.2vw, 32px);
    line-height: 1.4;
  }

  .tma-sitefoot__cta-copy > p:not(.tma-sitefoot__eyebrow) {
    font-size: 15px;
  }

  .tma-sitefoot__cta-trust {
    gap: 7px;
  }

  .tma-sitefoot__cta-trust li {
    font-size: 12px;
  }

  .tma-sitefoot__button {
    min-height: 70px;
  }

  .tma-sitefoot__phone-compact {
    min-height: 58px;
  }

  .tma-sitefoot__inner {
    padding: 44px 0 38px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tma-sitefoot__brand {
    display: block;
  }

  .tma-sitefoot__logo {
    width: min(240px, 100%);
    min-height: 65px;
    padding: 10px 13px;
  }

  .tma-sitefoot__lead {
    max-width: 100%;
    font-size: 15px;
  }

  .tma-sitefoot__phone {
    width: 100%;
    max-width: 330px;
    min-height: 66px;
  }

  .tma-sitefoot__company {
    font-size: 13px;
  }

  .tma-sitefoot__navs {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tma-sitefoot__nav h2 {
    min-height: 38px;
    font-size: 16px;
  }

  .tma-sitefoot__nav a {
    min-height: 46px;
    font-size: 15px;
  }

  .tma-sitefoot__notice-inner {
    padding: 22px 0 24px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tma-sitefoot__notice p {
    font-size: 13px;
    line-height: 1.8;
  }

  .tma-sitefoot__bottom-inner {
    min-height: 0;
    padding: 18px 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tma-sitefoot__bottom p {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .tma-sitefoot__cta-inner,
  .tma-sitefoot__inner,
  .tma-sitefoot__notice-inner,
  .tma-sitefoot__bottom-inner {
    width: calc(100% - 28px);
  }

  .tma-sitefoot__cta-copy h2 {
    font-size: 26px;
  }

  .tma-sitefoot__cta-trust li {
    padding-inline: 10px;
  }

  .tma-sitefoot__button {
    padding-inline: 15px;
  }

  .tma-sitefoot__button strong {
    font-size: 15px;
  }

  .tma-sitefoot__phone-compact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .tma-sitefoot__phone-compact span {
    grid-row: auto;
  }

  .tma-sitefoot__phone strong {
    font-size: 22px;
  }

  .tma-sitefoot__company > p:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}


/* フッター：タブレットの改行と小画面の補助文字可読性 */
@media (min-width: 768px) and (max-width: 980px) {
  .tma-sitefoot__cta-copy h2 {
    font-size: 28px;
    letter-spacing: 0;
  }
}

@media (max-width: 767px) {
  .tma-sitefoot__cta-copy h2 {
    font-size: 26px;
    letter-spacing: 0;
  }

  .tma-sitefoot__button small,
  .tma-sitefoot__phone-compact span,
  .tma-sitefoot__phone-compact small,
  .tma-sitefoot__phone span,
  .tma-sitefoot__phone small {
    font-size: 12px;
  }

  .tma-sitefoot__company > p:first-child span {
    font-size: 12px;
  }
}


/* =========================================================
   栃木M&A総合センター：配色コントラスト強化 2026-07-22
   明背景・暗背景・売り手・買い手を色だけに頼らず明確に分離
   ========================================================= */
:root {
  --tma-cx-navy: #061a2d;
  --tma-cx-ink: #132c3d;
  --tma-cx-muted: #52656f;
  --tma-cx-green: #17655b;
  --tma-cx-green-hover: #0f4f48;
  --tma-cx-copper: #a54420;
  --tma-cx-copper-hover: #833416;
  --tma-cx-paper: #f7f3eb;
  --tma-cx-surface: #ffffff;
  --tma-cx-surface-green: #e7f2ef;
  --tma-cx-on-dark: #f4f7f6;
  --tma-cx-muted-dark: #c3d0cd;
  --tma-cx-border: #657d79;
  --tma-cx-border-dark: #75a49c;
  --tma-cx-focus-light: #005fcc;
  --tma-cx-focus-dark: #ffd166;
}

/* 明るい面では濃い文字、暗い面では白系文字を固定する */
body .tma-site,
body .tma-contactpage,
body .tma-subsite {
  color: var(--tma-cx-ink);
}

body .tma-process-intro h2,
body .tma-readiness :is(h3, h4),
body .tma-legal-brief :is(h2, h3),
body .tma-cta :is(h2, h3) {
  color: #fff !important;
}

body .tma-process-intro > p:not(.tma-eyebrow),
body .tma-readiness__head > p,
body .tma-checkset li,
body .tma-legal-brief article > p,
body .tma-cta__copy > p {
  color: var(--tma-cx-muted-dark) !important;
  opacity: 1 !important;
}

body .tma-checkset li {
  font-size: max(12px, .75rem) !important;
}

body .tma-checkset > strong {
  color: #a8ded6 !important;
  font-size: max(11.5px, .71875rem) !important;
}

body .tma-legal-brief article > p {
  color: #e7efec !important;
}

body .tma-legal-brief article strong {
  color: #ffd1ad !important;
}

/* 白カードを紙色背景から輪郭でも区別する */
body :is(
  .tma-industry,
  .tma-guide,
  .tma-step,
  .tma-fee-card,
  .tma-consult-card,
  .tma-contact-card,
  .tma-form
) {
  border-color: var(--tma-cx-border) !important;
  border-style: solid !important;
  border-width: 1px !important;
}

body :is(.tma-checkset, .tma-legal-brief article) {
  border-color: var(--tma-cx-border-dark) !important;
}

body .tma-intel__source {
  color: #4c5f66 !important;
  font-size: max(12px, .75rem) !important;
  line-height: 1.75 !important;
}

/* 売り手CTA：銅色＋白、hoverでも白文字を維持 */
body :is(
  .tma-btn--primary,
  .tma-sitehead__seller,
  .tma-sitehead__quick,
  .tma-sitehead__panel-seller,
  .tma-sitefoot__button--seller
) {
  border-color: var(--tma-cx-copper-hover) !important;
  background: var(--tma-cx-copper) !important;
  color: #fff !important;
}

body :is(
  .tma-btn--primary,
  .tma-sitehead__seller,
  .tma-sitehead__quick,
  .tma-sitehead__panel-seller,
  .tma-sitefoot__button--seller
):hover {
  background: var(--tma-cx-copper-hover) !important;
  color: #fff !important;
}

/* 買い手CTA：売り手の銅色と混同しない緑系の明るい面 */
body :is(
  .tma-sitehead__buyer,
  .tma-sitehead__panel-buyer,
  .tma-sitefoot__button--buyer
) {
  border: 2px solid var(--tma-cx-green) !important;
  background: var(--tma-cx-surface-green) !important;
  color: var(--tma-cx-green-hover) !important;
}

body :is(
  .tma-sitehead__buyer,
  .tma-sitehead__panel-buyer,
  .tma-sitefoot__button--buyer
):hover {
  border-color: var(--tma-cx-green-hover) !important;
  background: #d8eae5 !important;
  color: #0a403a !important;
}

body a.tma-btn--secondary[href*="buyer-contact"] {
  border: 2px solid var(--tma-cx-green-hover) !important;
  background: var(--tma-cx-green) !important;
  color: #fff !important;
}

body a.tma-btn--secondary[href*="buyer-contact"]:hover {
  background: var(--tma-cx-green-hover) !important;
  color: #fff !important;
}

body .tma-btn--secondary:not([href*="buyer-contact"]) {
  border: 2px solid #0b2742 !important;
  background: #fff !important;
  color: #0b2742 !important;
}

/* 暗いCTA上は輪郭または明るい面を付けて背景と分離する */
body .tma-cta .tma-btn--primary {
  border: 2px solid var(--tma-cx-paper) !important;
}

body .tma-cta a.tma-btn--secondary[href*="buyer-contact"] {
  border-color: #fff !important;
  background: #d8f0ec !important;
  color: var(--tma-cx-green) !important;
}

body .tma-consult-card__cta {
  border: 2px solid #0b2742 !important;
  background: #0b2742 !important;
  color: #fff !important;
}

body .tma-contact-hero__formbtn {
  border: 2px solid #fff !important;
  background: #fff !important;
  color: var(--tma-cx-green-hover) !important;
}

body .tma-contact-hero__formbtn:hover {
  background: var(--tma-cx-surface-green) !important;
  color: #0a403a !important;
}

body .tma-legal-brief__links a {
  border: 2px solid #fff !important;
  background: #fff !important;
  color: #0b2742 !important;
}

body .tma-legal-brief__links a:hover {
  border-color: #a8ded6 !important;
  background: #d8f0ec !important;
  color: #0a403a !important;
}

/* フォーム：文字、プレースホルダー、枠を白背景から明確に分離 */
body .tma-form :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
) {
  border: 1px solid var(--tma-cx-border) !important;
  background: #fff !important;
  color: var(--tma-cx-ink) !important;
}

body .tma-form :is(input, textarea)::placeholder {
  color: #5a6b73 !important;
  opacity: 1 !important;
}

body .tma-form :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
):hover {
  border-color: var(--tma-cx-green) !important;
}

body .tma-form :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  textarea,
  select
):focus {
  border-color: var(--tma-cx-focus-light) !important;
  outline: 3px solid rgba(0,95,204,.22) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}

body .tma-form :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--tma-cx-green);
}

body .tma-form :is(label, legend),
body .tma-form__consentgroup > p {
  color: var(--tma-cx-ink) !important;
}

body :is(.tma-form__micro, .tma-form__hint, .tma-form__stephead small) {
  color: var(--tma-cx-muted) !important;
  opacity: 1 !important;
}

body .tma-form__check,
body .tma-form__consent {
  border-color: var(--tma-cx-border) !important;
  background: #fff !important;
  color: var(--tma-cx-ink) !important;
}

body .tma-form__consent,
body .tma-form__consentgroup {
  background: #fff4d6 !important;
  color: #5c3b00 !important;
}

body .tma-form__check:has(input:checked) {
  border-color: var(--tma-cx-green) !important;
  background: var(--tma-cx-surface-green) !important;
  box-shadow: inset 0 0 0 1px var(--tma-cx-green) !important;
}

body .tma-form__submit {
  border: 2px solid var(--tma-cx-copper-hover) !important;
  background: var(--tma-cx-copper) !important;
  color: #fff !important;
  opacity: 1 !important;
}

body .tma-form__submit:hover {
  background: var(--tma-cx-copper-hover) !important;
  color: #fff !important;
  filter: none !important;
}

body .tma-form:has(input[name="form_context"][value="buyer"]) .tma-form__submit {
  border-color: var(--tma-cx-green-hover) !important;
  background: var(--tma-cx-green) !important;
  color: #fff !important;
}

body .tma-form:has(input[name="form_context"][value="buyer"]) .tma-form__submit:hover {
  background: var(--tma-cx-green-hover) !important;
}

body .tma-form__submit:disabled,
body .tma-form :is(input, textarea, select):disabled {
  border-color: #7c918e !important;
  background: #d6dddb !important;
  color: #55615e !important;
  opacity: 1 !important;
}

body .tma-form__notice {
  background: #e7f3f0 !important;
  color: #0e6259 !important;
}

body .tma-form__error {
  border: 1px solid #b3261e !important;
  background: #fce8e6 !important;
  color: #8c1d18 !important;
}

/* 明背景と暗背景でフォーカスリング色を切り替える */
body :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--tma-cx-focus-light) !important;
  outline-offset: 3px !important;
}

body :is(
  .tma-trustbar,
  .tma-process-intro,
  .tma-readiness,
  .tma-cta,
  .tma-legal-brief,
  .tma-sitefoot
) :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--tma-cx-focus-dark) !important;
}

/* 小画面でも補助文字を薄くしすぎない */
@media (max-width: 767px) {
  body :is(
    .tma-intel__source,
    .tma-form__micro,
    .tma-form__hint,
    .tma-checkset li
  ) {
    font-size: 12px !important;
  }
}


/* 配色監査の最終調整：補助文、MENU境界、記事リンク */
body .tma-hero__note {
  color: #52666e !important;
  opacity: 1 !important;
}

body .tma-sitehead__toggle {
  border: 2px solid #71868a !important;
  background: #fff !important;
  color: #0b2742 !important;
}

body .tma-sitehead__toggle:hover {
  border-color: #17655b !important;
  background: #e7f2ef !important;
  color: #0a403a !important;
}

body :is(.case-article, .column-article) a:not([class]) {
  color: #075eaa !important;
  text-decoration: underline !important;
  text-decoration-thickness: .08em !important;
  text-underline-offset: .2em !important;
}

body :is(.case-article, .column-article) a:not([class]):hover {
  color: #043f75 !important;
  text-decoration-thickness: .14em !important;
}

body .tma-form :is(.tma-form__check, .tma-form__consent) input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px !important;
}

@media (max-width: 767px) {
  body .tma-form :is(label, legend) {
    font-size: 14px !important;
  }

  body .tma-form :is(small, .tma-form__micro, .tma-form__hint, .tma-form__stephead small) {
    font-size: 12px !important;
    color: #52656f !important;
    opacity: 1 !important;
  }
}


/* =========================================================
   栃木M&A総合センター：トップページ統一デザイン 2026-07-22
   純白を連続させず、紙色・淡緑・濃紺・銅色で明るさと信頼感を両立
   ========================================================= */
body:has(#body_wrap.home) {
  background: #f7f3eb;
}

/* ヘッダー：温かい紙色と明確な境界 */
body:has(#body_wrap.home) .tma-trustbar {
  border-bottom: 2px solid #17655b !important;
  background: #061a2d !important;
}

body:has(#body_wrap.home) .tma-sitehead {
  border-bottom: 1px solid #9eb3ad !important;
  background: linear-gradient(90deg, #fffdf9 0%, #f8f4ec 58%, #eef5f2 100%) !important;
  box-shadow: 0 8px 24px rgba(6,26,45,.08) !important;
}

body:has(#body_wrap.home) .tma-sitehead__nav a {
  border-radius: 7px;
  color: #0b2742 !important;
}

body:has(#body_wrap.home) .tma-sitehead__nav a:hover,
body:has(#body_wrap.home) .tma-sitehead__nav a:focus-visible {
  background: #e7f2ef !important;
  color: #0f4f48 !important;
}

body:has(#body_wrap.home) .tma-sitehead__logo {
  filter: drop-shadow(0 3px 8px rgba(6,26,45,.06));
}

/* 重複していた独立料金帯は、信頼バー・ヒーロー内カード・料金セクションへ統合 */
#body_wrap.home .tma-site > .tma-feebar {
  display: none !important;
}

/* ヒーロー：淡緑と砂色の面、人物写真を主役に */
#body_wrap.home .tma-hero {
  border-bottom: 1px solid #b8cac4;
  background:
    radial-gradient(circle at 6% 88%, rgba(165,68,32,.09) 0 150px, transparent 151px),
    radial-gradient(circle at 88% 12%, rgba(23,101,91,.1) 0 210px, transparent 211px),
    linear-gradient(135deg, #eaf3f1 0%, #f7f3eb 58%, #f2e8dc 100%) !important;
}

#body_wrap.home .tma-hero__grid {
  gap: clamp(34px, 4vw, 56px) !important;
}

#body_wrap.home .tma-hero__kicker {
  color: #0f4f48 !important;
}

#body_wrap.home .tma-hero__copy {
  color: #3f5862 !important;
}

#body_wrap.home .tma-hero-fee {
  border: 1px solid #a54420 !important;
  border-left: 5px solid #a54420 !important;
  background: #fff0e8 !important;
  box-shadow: 0 8px 22px rgba(131,52,22,.09) !important;
}

#body_wrap.home .tma-hero .tma-btn--secondary {
  border: 2px solid #17655b !important;
  background: #e7f2ef !important;
  color: #0f4f48 !important;
}

#body_wrap.home .tma-hero .tma-btn--secondary:hover {
  background: #d8eae5 !important;
  color: #0a403a !important;
}

#body_wrap.home .tma-photo {
  border-color: #fffdf9 !important;
  outline: 1px solid #7c918e;
  outline-offset: 0;
  box-shadow: 0 16px 36px rgba(6,26,45,.12) !important;
}

#body_wrap.home .tma-consult-card {
  border: 1px solid #17655b !important;
  border-top: 4px solid #17655b !important;
  background: #fffdf9 !important;
  box-shadow: 0 14px 32px rgba(6,26,45,.13) !important;
}

/* 長いトップを迷わず読めるページ内ナビ */
#body_wrap.home .tma-localnav {
  border-top: 1px solid #c5d3cf !important;
  border-bottom: 1px solid #9eb3ad !important;
  background: rgba(255,253,249,.97) !important;
  box-shadow: 0 6px 18px rgba(6,26,45,.06) !important;
}

#body_wrap.home .tma-localnav a {
  color: #0b2742 !important;
}

#body_wrap.home .tma-localnav a:hover,
#body_wrap.home .tma-localnav a:focus-visible {
  background: #e7f2ef !important;
  color: #0f4f48 !important;
}

/* 4つの支援方針：短い濃紺帯でページの軸を示す */
#body_wrap.home .tma-trust {
  border-top: 3px solid #a54420;
  border-bottom: 1px solid #527970;
  background: linear-gradient(120deg, #061a2d 0%, #0f2f35 68%, #123f3d 100%) !important;
  color: #fff !important;
}

#body_wrap.home .tma-trust__item {
  border-color: rgba(255,255,255,.22) !important;
  background: transparent !important;
}

#body_wrap.home .tma-trust__item .tma-trust__num {
  color: #ffd1ad !important;
}

#body_wrap.home .tma-trust__item strong {
  color: #fff !important;
}

#body_wrap.home .tma-trust__item p {
  color: #c3d0cd !important;
  opacity: 1 !important;
}

/* 料金：売り手0円と他社例を面色でも区別 */
#body_wrap.home #fees {
  background:
    radial-gradient(circle at 90% 16%, rgba(23,101,91,.08) 0 170px, transparent 171px),
    linear-gradient(135deg, #f7f3eb 0%, #fbf8f1 52%, #eaf3f1 100%) !important;
}

#body_wrap.home #fees .tma-fee-card--ours {
  border-color: #a54420 !important;
  background: #fff0e8 !important;
  box-shadow: 0 12px 28px rgba(131,52,22,.1) !important;
}

#body_wrap.home #fees .tma-fee-card--other {
  border-color: #71868a !important;
  background: #eef3f4 !important;
  box-shadow: 0 12px 28px rgba(6,26,45,.07) !important;
}

#body_wrap.home #fees .tma-fees__notice {
  border-color: #17655b !important;
  background: #e7f2ef !important;
  color: #132c3d !important;
}

/* 経営者の悩み：純白全幅をやめ、温かい相談空間に */
#body_wrap.home #concerns {
  background:
    radial-gradient(circle at 8% 16%, rgba(23,101,91,.08) 0 120px, transparent 121px),
    linear-gradient(155deg, #fbf8f1 0%, #f3eee4 54%, #eaf3f1 100%) !important;
}

#body_wrap.home #concerns .tma-owner-portrait {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 14px 32px rgba(6,26,45,.1) !important;
}

#body_wrap.home #concerns .tma-concern {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 7px 18px rgba(6,26,45,.055) !important;
}

#body_wrap.home #concerns .tma-concern__icon {
  border: 1px solid #17655b;
  background: #e7f2ef !important;
  color: #0f4f48 !important;
}

#body_wrap.home #concerns .tma-concern:nth-child(odd) .tma-concern__icon {
  border-color: #a54420;
  background: #fff0e8 !important;
  color: #833416 !important;
}

/* 守りたい価値：淡緑の面＋明確な白カード */
#body_wrap.home #values {
  background: linear-gradient(145deg, #e2efeb 0%, #edf5f2 58%, #f5eee5 100%) !important;
}

#body_wrap.home #values .tma-values__media,
#body_wrap.home #values .tma-value {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 8px 22px rgba(6,26,45,.07) !important;
}

#body_wrap.home #values .tma-quote {
  border: 1px solid #75a49c !important;
  border-left: 5px solid #a54420 !important;
  background: #0f2f35 !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(6,26,45,.1);
}

/* 地域・対応業種：温かい紙色で、淡緑セクションとの連続を避ける */
#body_wrap.home #industries {
  background:
    radial-gradient(circle at 96% 8%, rgba(165,68,32,.07) 0 160px, transparent 161px),
    #f7f3eb !important;
}

#body_wrap.home #industries .tma-intel,
#body_wrap.home #industries .tma-industry {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 8px 22px rgba(6,26,45,.06) !important;
}

/* 進め方：淡い緑灰色の面＋濃紺の実務パネル */
#body_wrap.home #process {
  background: linear-gradient(145deg, #eef4f1 0%, #f6f3ec 100%) !important;
}

#body_wrap.home #process .tma-process-intro {
  border: 1px solid #75a49c;
  border-top: 4px solid #a54420;
  box-shadow: 0 16px 34px rgba(6,26,45,.13);
}

#body_wrap.home #process .tma-step {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 7px 18px rgba(6,26,45,.055) !important;
}

/* 売却準備：紙色＋暗色レビュー面＋明るい記事カード */
#body_wrap.home #knowledge {
  background: #f7f3eb !important;
}

#body_wrap.home #knowledge .tma-readiness {
  border: 1px solid #75a49c;
  border-top: 4px solid #17655b;
  box-shadow: 0 16px 34px rgba(6,26,45,.12);
}

#body_wrap.home #knowledge .tma-guide {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 8px 22px rgba(6,26,45,.07) !important;
}

/* FAQ：淡緑の面、開閉項目は紙色カード */
#body_wrap.home #faq {
  background: linear-gradient(145deg, #e7f2ef 0%, #eef5f2 62%, #f7f3eb 100%) !important;
}

#body_wrap.home #faq .tma-faq details {
  border-color: #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 5px 15px rgba(6,26,45,.045);
}

#body_wrap.home #faq .tma-faq details[open] {
  border-color: #17655b !important;
  background: #fff !important;
}

#body_wrap.home #faq .tma-faq details[open] summary {
  background: #e7f2ef !important;
}

/* 最終CTAは濃紺を残し、銅線で前後を明確化 */
#body_wrap.home #consultation-cta {
  border-top: 4px solid #a54420;
  border-bottom: 1px solid #527970;
  background:
    radial-gradient(circle at 82% 22%, rgba(23,101,91,.4) 0 180px, transparent 181px),
    linear-gradient(135deg, #061a2d 0%, #0c2938 62%, #0f3537 100%) !important;
}

/* 重要事項：トップでは明るい淡緑へ。暗色が3セクション連続する状態を解消 */
#body_wrap.home .tma-legal-brief {
  border-top: 1px solid #9eb3ad;
  background:
    radial-gradient(circle at 94% 10%, rgba(165,68,32,.08) 0 150px, transparent 151px),
    linear-gradient(145deg, #e2efeb 0%, #f7f3eb 100%) !important;
  color: #132c3d !important;
}

#body_wrap.home .tma-legal-brief .tma-legal__eyebrow {
  color: #17655b !important;
}

#body_wrap.home .tma-legal-brief :is(h2, h3) {
  color: #0b2742 !important;
}

#body_wrap.home .tma-legal-brief article {
  border: 1px solid #7c918e !important;
  background: #fffdf9 !important;
  box-shadow: 0 7px 18px rgba(6,26,45,.055);
}

#body_wrap.home .tma-legal-brief article > p {
  color: #52656f !important;
}

#body_wrap.home .tma-legal-brief article strong {
  color: #833416 !important;
}

#body_wrap.home .tma-legal-brief__comparison {
  border-left: 4px solid #a54420 !important;
  background: #fff4d6 !important;
  color: #5c3b00 !important;
}

#body_wrap.home .tma-legal-brief__links a:first-child {
  border-color: #833416 !important;
  background: #a54420 !important;
  color: #fff !important;
}

#body_wrap.home .tma-legal-brief__links a:last-child {
  border-color: #17655b !important;
  background: #e7f2ef !important;
  color: #0f4f48 !important;
}

/* トップのフッター：濃紺一色ではなく深緑から濃紺へ */
body:has(#body_wrap.home) #tma-sitefoot {
  border-top: 4px solid #a54420;
  background: #0f2f35 !important;
}

body:has(#body_wrap.home) #tma-sitefoot .tma-sitefoot__main {
  background:
    radial-gradient(circle at 8% 8%, rgba(23,101,91,.28) 0 180px, transparent 181px),
    linear-gradient(135deg, #0f3537 0%, #082433 58%, #061a2d 100%) !important;
}

body:has(#body_wrap.home) #tma-sitefoot .tma-sitefoot__notice {
  background: #0b2439 !important;
}

body:has(#body_wrap.home) #tma-sitefoot .tma-sitefoot__bottom {
  background: #04111d !important;
}

/* 規則的な角丸と軽い影。動画・追加JSなし */
#body_wrap.home :is(
  .tma-fee-card,
  .tma-concern,
  .tma-value,
  .tma-intel,
  .tma-industry,
  .tma-step,
  .tma-guide,
  .tma-legal-brief article
) {
  border-radius: 12px !important;
}

#body_wrap.home :is(
  .tma-fee-card,
  .tma-concern,
  .tma-value,
  .tma-industry,
  .tma-step,
  .tma-guide,
  .tma-faq details
):hover {
  border-color: #17655b !important;
  box-shadow: 0 12px 26px rgba(6,26,45,.09) !important;
}

#body_wrap.home :is(section[id], .tma-legal-brief) {
  scroll-margin-top: 124px;
}

@media (max-width: 980px) {
  #body_wrap.home .tma-hero__grid {
    gap: 32px !important;
  }

  #body_wrap.home .tma-trust__item {
    padding-block: 22px !important;
  }
}

@media (max-width: 767px) {
  #body_wrap.home .tma-hero {
    background:
      radial-gradient(circle at 100% 8%, rgba(23,101,91,.09) 0 120px, transparent 121px),
      linear-gradient(155deg, #eaf3f1 0%, #f7f3eb 68%, #f3e9de 100%) !important;
  }

  #body_wrap.home .tma-localnav {
    background: #fffdf9 !important;
  }

  #body_wrap.home .tma-trust__item {
    padding-block: 20px !important;
  }

  #body_wrap.home .tma-legal-brief {
    padding-block: 52px !important;
  }

  #body_wrap.home .tma-legal-brief article {
    padding: 22px !important;
  }

  #body_wrap.home .tma-legal-brief__links a {
    width: 100%;
    min-height: 54px;
    justify-content: center;
  }

  #body_wrap.home :is(section[id], .tma-legal-brief) {
    scroll-margin-top: 116px;
  }
}

@media (max-width: 359px) {
  #body_wrap.home .tma-legal-brief article {
    padding: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #body_wrap.home :is(
    .tma-fee-card,
    .tma-concern,
    .tma-value,
    .tma-industry,
    .tma-step,
    .tma-guide,
    .tma-faq details
  ) {
    transition: none !important;
  }
}


/* Home design polish: trust metric contrast */
#body_wrap.home .tma-trust__grid {
  background: rgba(255,255,255,.065) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-top: 3px solid #74a99f !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.18) !important;
}
#body_wrap.home .tma-trust__item p {
  color: #e3ece9 !important;
}


/* Home design polish: section handoff and narrow-screen readability */
#body_wrap.home .tma-site {
  margin-bottom: 0 !important;
}
#body_wrap.home .tma-legal-brief {
  margin-top: 24px !important;
}

@media (min-width: 768px) and (max-width: 900px) {
  #body_wrap.home .tma-hero h1 {
    font-size: 42px !important;
    line-height: 1.18 !important;
    letter-spacing: -.035em !important;
  }
}

@media (max-width: 359px) {
  #body_wrap.home :is(
    .tma-concern,
    .tma-value,
    .tma-region,
    .tma-industry,
    .tma-step,
    .tma-guide__body,
    .tma-consult-card,
    .tma-readiness__head
  ) p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  #body_wrap.home .tma-step__terms span {
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  #body_wrap.home .tma-localnav a {
    font-size: 12px !important;
  }

  #body_wrap.home .tma-btn {
    font-size: 14px !important;
  }
}


/* Home spacing rhythm: remove accidental-looking pale gaps */
@media (min-width: 981px) {
  #body_wrap.home .tma-site > .tma-section {
    padding-top: 64px !important;
    padding-bottom: 48px !important;
  }

  #body_wrap.home #concerns .tma-concern {
    align-content: center !important;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  #body_wrap.home .tma-site > .tma-section {
    padding-top: 56px !important;
    padding-bottom: 44px !important;
  }
}

@media (max-width: 767px) {
  #body_wrap.home .tma-site > .tma-section {
    padding-top: 44px !important;
    padding-bottom: 36px !important;
  }
}

#body_wrap.home .tma-legal-brief {
  padding-top: 64px !important;
  padding-bottom: 56px !important;
}

@media (max-width: 980px) {
  #body_wrap.home .tma-legal-brief {
    padding-top: 52px !important;
    padding-bottom: 44px !important;
  }
}

@media (max-width: 767px) {
  #body_wrap.home .tma-legal-brief {
    padding-top: 44px !important;
    padding-bottom: 40px !important;
  }
}


/* Home spacing polish: remove empty strip and balance trust band */
#body_wrap.home .tma-legal-brief {
  margin-top: 0 !important;
}

@media (min-width: 768px) {
  #body_wrap.home .tma-trust {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* Responsive QA 2026-07-22: tablet/mobile finishing */
/* The site-wide header is the single navigation source on the dedicated forms. */
.tma-contact-head {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 980px) {
  #body_wrap.home #faq .tma-section-head {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  #body_wrap.home #faq .tma-section-head > .tma-lead {
    max-width: 620px;
  }
}

@media (max-width: 340px) {
  #body_wrap.home #faq .tma-section-head h2 {
    font-size: 24px !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
  }
}

/* Responsive QA follow-up: contact hero typography */
@media (max-width: 767px) {
  .tma-contact-hero h1 {
    font-size: clamp(22px, 6.8vw, 27px) !important;
    line-height: 1.45 !important;
    letter-spacing: -0.02em !important;
  }
}

/* Section organization polish 2026-07-22 */
/* Keep every major chapter visually distinct without changing the content order. */
#body_wrap.home #fees,
#body_wrap.home #concerns,
#body_wrap.home #values,
#body_wrap.home #industries,
#body_wrap.home #process,
#body_wrap.home #knowledge,
#body_wrap.home #faq {
  border-top: 1px solid rgba(11, 49, 59, 0.14);
  scroll-margin-top: 132px;
}

/* Clarify where the long regional section changes into industry-specific cards. */
#body_wrap.home #industries .tma-industries,
#body_wrap.home #knowledge .tma-guides {
  position: relative;
  padding-top: 58px !important;
  border-top: 1px solid rgba(11, 49, 59, 0.18);
}

#body_wrap.home #industries .tma-industries::before,
#body_wrap.home #knowledge .tma-guides::before {
  position: absolute;
  top: 13px;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 100%;
  padding: 6px 14px 6px 13px;
  border-left: 3px solid #a54420;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 0 0 1px rgba(11, 49, 59, 0.1);
  color: #123f3b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

#body_wrap.home #industries .tma-industries::before {
  content: "主な対応業種と承継論点";
}

#body_wrap.home #knowledge .tma-guides::before {
  content: "実務ガイド｜相談前に知っておきたい3つ";
}

/* Separate the fee-source heading from its explanatory copy and keep the fine print readable. */
#body_wrap.home #fees .tma-fees__notice p {
  font-size: 12.5px !important;
  line-height: 1.7 !important;
}

#body_wrap.home #fees .tma-fees__notice p > strong {
  display: block;
  margin-bottom: 5px;
  color: #0b3140;
  font-size: 14px;
  line-height: 1.45;
}

/* The primary hero action already reaches the same consultation form on mobile. */
@media (max-width: 767px) {
  #body_wrap.home #fees,
  #body_wrap.home #concerns,
  #body_wrap.home #values,
  #body_wrap.home #industries,
  #body_wrap.home #process,
  #body_wrap.home #knowledge,
  #body_wrap.home #faq {
    scroll-margin-top: 105px;
  }

  #body_wrap.home .tma-consult-card {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  #body_wrap.home .tma-consult-card__cta {
    display: none !important;
  }

  #body_wrap.home #industries .tma-industries,
  #body_wrap.home #knowledge .tma-guides {
    padding-top: 56px !important;
  }

  #body_wrap.home #industries .tma-industries::before,
  #body_wrap.home #knowledge .tma-guides::before {
    top: 12px;
    min-height: 32px;
    padding: 6px 11px 6px 10px;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  #body_wrap.home #fees .tma-fees__notice p {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
}

/* Text overlap and fee-note readability safeguards — 2026-07-22. */
#body_wrap.home #fees .tma-fee-card__formula {
  color: #405860 !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}

/*
 * SWELL's floating page-top control can cover FAQ toggles, card copy,
 * CTA labels and legal notes on narrow screens.
 */
@media (max-width: 1024px) {
  .p-fixBtnWrap {
    display: none !important;
  }
}

/* Japanese phrase-aware wrapping and narrow-screen trust bar — 2026-07-22 */
html:lang(ja) body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
}

@supports (word-break: auto-phrase) {
  html:lang(ja) body {
    word-break: auto-phrase;
  }
}

html:lang(ja) :where(
  h1, h2, h3, h4, h5, h6,
  button,
  .tma-btn,
  .tma-subbtn,
  .tma-form__submit,
  .tma-contact-hero__formbtn,
  .tma-sitefoot__button,
  .p-postList__title,
  .c-pageTitle__subTitle
) {
  text-wrap: balance;
}

html:lang(ja) :where(
  p, li, dt, dd, label, legend, summary,
  .tma-lead,
  .tma-form__consent,
  .tma-form__fee-note,
  .tma-form__micro,
  .p-postList__excerpt
) {
  text-wrap: pretty;
}

.tma-nobr {
  display: inline-block;
  white-space: nowrap;
}

.tma-sitefoot__notice a {
  white-space: nowrap;
}

@media (max-width: 430px) {
  .tma-trustbar,
  .tma-trustbar__inner {
    min-height: 56px;
  }

  .tma-trustbar__inner {
    width: calc(100% - 20px);
  }

  .tma-trustbar__assurance {
    flex-wrap: wrap;
    align-content: center;
    row-gap: 2px;
    column-gap: 0;
  }

  .tma-trustbar__assurance strong,
  .tma-trustbar__privacy {
    flex: 0 0 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .tma-trustbar__privacy {
    display: inline-flex;
  }
}

/* Phrase-safe overflow fallbacks and tablet card widths — 2026-07-22 */
html:lang(ja) :where(
  .tma-intel__source,
  .tma-column__sources,
  .tma-form__micro,
  .tma-legal__contact,
  .tma-company__note,
  code,
  pre
) {
  overflow-wrap: anywhere;
}

@media (min-width: 768px) and (max-width: 900px) {
  #body_wrap.home .tma-concerns-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #body_wrap.home .tma-concerns {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #body_wrap.home .tma-concern {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  #body_wrap.home .tma-guides,
  .tma-subsite .tma-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tma-subsite .tma-legal__grid,
  .tma-contactpage .tma-contact-menu {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Typography balance and readability pass - 2026-07-22 */
html:lang(ja) body {
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.tma-trustbar,
.tma-trustbar__inner {
  min-height: 40px;
}

.tma-trustbar__tag {
  font-size: 11.5px;
  line-height: 1.55;
}

.tma-trustbar__assurance strong {
  font-size: 13px;
  line-height: 1.55;
}

.tma-trustbar__privacy,
.tma-trustbar__operator,
.tma-trustbar__policy,
.tma-trustbar__phone small {
  font-size: 12px;
  line-height: 1.6;
}

.tma-trustbar__phone strong {
  font-size: 14.5px;
}

.tma-sitehead__nav a {
  font-size: 13px;
  line-height: 1.5;
}

#body_wrap.home .tma-hero-fee__detail {
  font-size: 13px;
  line-height: 1.65;
}

#body_wrap.home .tma-consult-card p {
  font-size: 14px;
  line-height: 1.75;
}

#body_wrap.home .tma-consult-card li,
#body_wrap.home .tma-consult-card__cta {
  font-size: 13px;
  line-height: 1.6;
}

#body_wrap.home .tma-localnav a {
  font-size: 13.5px;
  line-height: 1.55;
}

#body_wrap.home .tma-trust__item p {
  font-size: 13.5px;
  line-height: 1.72;
}

#body_wrap.home .tma-lead {
  font-size: 16px;
  line-height: 1.85;
}

#body_wrap.home :is(
  .tma-concern,
  .tma-region,
  .tma-industry,
  .tma-step,
  .tma-guide
) p {
  font-size: 14px;
  line-height: 1.75;
}

#body_wrap.home .tma-region__focus,
#body_wrap.home .tma-industry__checks {
  font-size: 12.5px;
  line-height: 1.65;
}

#body_wrap.home .tma-step__terms span {
  font-size: 11.5px;
  line-height: 1.6;
}

#body_wrap.home .tma-checkset li {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

#body_wrap.home #fees .tma-fees__notice p,
#body_wrap.home #fees .tma-fee-card__formula {
  font-size: 13.5px !important;
  line-height: 1.8 !important;
}

#body_wrap.home :is(
  .tma-intel__source,
  .tma-industries-note,
  .tma-process-note,
  .tma-guideline-note
) {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

#body_wrap.home .tma-faq summary {
  font-size: 16px;
  line-height: 1.7;
}

body .tma-contact-feature p {
  font-size: 14px;
  line-height: 1.8;
}

body .tma-form__stephead small,
body .tma-form__hint,
body .tma-form small {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

body .tma-form__fee-note {
  font-size: 14px;
  line-height: 1.75;
}

body .tma-form__micro {
  font-size: 13px !important;
  line-height: 1.75 !important;
}

body .tma-form :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
) {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

body .tma-form :is(input, textarea)::placeholder {
  color: #667982;
  font-weight: 500;
  opacity: 1;
}

body .tma-legal__lead,
body .tma-legal__section p,
body .tma-legal__section li,
body .tma-legal__note,
body .tma-legal__revision,
body .tma-legal__contact {
  font-size: 16px;
}

body .tma-legal__lead,
body .tma-legal__section p,
body .tma-legal__note,
body .tma-legal__revision,
body .tma-legal__contact {
  line-height: 1.9;
}

body .tma-legal__section li {
  line-height: 1.8;
}

body .tma-legal__lead,
body .tma-legal__section > :is(h3, h4, p, ul, ol, .tma-legal__alert, .tma-legal__note),
body .tma-subsection--white .tma-subwrap > p {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

body .tma-subsection--white .tma-subwrap > p {
  font-size: 16px;
  line-height: 1.85;
}

body .tma-subhero h1 {
  font-size: clamp(44px, 4.5vw, 56px);
  line-height: 1.28;
}

.tma-sitefoot__lead {
  font-size: 14.5px;
  line-height: 1.85;
}

.tma-sitefoot__nav a {
  font-size: 14px;
  line-height: 1.65;
}

.tma-sitefoot__phone small {
  font-size: 12.5px;
  line-height: 1.55;
}

.tma-sitefoot__notice p {
  font-size: 13px;
  line-height: 1.8;
}

.tma-sitefoot__bottom {
  font-size: 12px;
  line-height: 1.7;
}

.archive .c-pageTitle {
  font-size: clamp(30px, 2.6vw, 36px);
  line-height: 1.35;
}

.archive .p-termHead__desc {
  font-size: 17px;
  line-height: 1.75;
}

.archive .p-postList__title {
  font-size: 18px;
  line-height: 1.55;
}

.archive .p-postList__excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.archive :is(.p-postList__times, .c-postThumb__cat, .c-postTimes__posted) {
  font-size: 12px;
  line-height: 1.5;
}

.single-post .c-postTitle__ttl {
  font-size: clamp(32px, 2.8vw, 38px);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.single-post .p-articleMetas {
  font-size: 13px;
  line-height: 1.7;
}

.single-post .tma-column p,
.single-post .tma-column li {
  font-size: 16.5px;
}

.single-post .tma-column p {
  line-height: 1.95;
}

.single-post .tma-column li {
  line-height: 1.8;
}

.single-post .tma-column h2 {
  font-size: 28px;
  line-height: 1.45;
}

.single-post .tma-column h3 {
  font-size: 22px;
  line-height: 1.5;
}

.single-post .tma-column h4 {
  font-size: 18px;
  line-height: 1.6;
}

.single-post .tma-column__lead {
  font-size: 17px;
  line-height: 1.95;
}

.single-post .tma-column__toc li {
  font-size: 15px;
  line-height: 1.7;
}

.single-post .tma-article-image figcaption {
  font-size: 13px;
  line-height: 1.6;
}

.single-post .tma-column > :is(
  h2, h3, h4, p, ul, ol,
  .tma-column__lead,
  .tma-column__updated,
  .tma-column__toc,
  .tma-column__notice,
  .tma-column__sources,
  .tma-column__disclaimer,
  .tma-column__faq,
  .tma-column__related
),
.single-post .tma-column > section > :is(h2, h3, h4, p, ul, ol) {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

.single-post .p-relatedPosts .p-postList__title {
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1179px) {
  .tma-sitehead__quick small,
  .tma-sitehead__toggle span {
    font-size: 11px;
    line-height: 1.4;
  }

  .tma-sitehead__quick strong {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  #body_wrap.home .tma-section-head,
  #body_wrap.home .tma-cta__inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #body_wrap.home .tma-section-head {
    gap: 20px !important;
  }

  #body_wrap.home .tma-section-head > .tma-lead {
    max-width: 680px;
  }

  #body_wrap.home :is(.tma-section-head h2, .tma-process-intro h2, .tma-cta h2) {
    font-size: 36px !important;
    line-height: 1.34 !important;
  }

  #body_wrap.home .tma-intel__regions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #body_wrap.home .tma-intel__regions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .tma-trustbar,
  .tma-trustbar__inner {
    min-height: 44px;
  }

  body .tma-subhero h1 {
    font-size: clamp(30px, 8.6vw, 34px) !important;
    line-height: 1.35 !important;
  }

  body .tma-form__intro {
    font-size: 15px;
    line-height: 1.8;
  }

  body .tma-form :is(label, legend) {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }

  .archive .c-pageTitle {
    font-size: 28px;
  }

  .single-post .c-postTitle__ttl {
    font-size: 24px;
    line-height: 1.42;
  }

  .single-post .tma-column p,
  .single-post .tma-column li {
    font-size: 16px;
  }

  .single-post .tma-column p {
    line-height: 1.85;
  }

  .single-post .tma-column li {
    line-height: 1.75;
  }

  .single-post .tma-column h2 {
    font-size: 22px;
    line-height: 1.45;
  }

  .single-post .tma-column h3 {
    font-size: 18px;
    line-height: 1.5;
  }

  .single-post .tma-column h4 {
    font-size: 16px;
    line-height: 1.55;
  }

  .single-post .tma-column__toc li {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .single-post .tma-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .single-post .tma-table-wrap table {
    min-width: 680px;
  }

  .single-post .tma-table-wrap :is(th, td) {
    font-size: 14px;
    line-height: 1.6;
    word-break: normal;
    word-break: auto-phrase;
    overflow-wrap: normal;
  }
}

@media (max-width: 430px) {
  .tma-trustbar,
  .tma-trustbar__inner {
    min-height: 60px;
  }
}

/* Small-label and call-to-action alignment */
#body_wrap.home .tma-btn {
  font-size: 16px;
  line-height: 1.75;
}

#body_wrap.home .tma-step__terms span {
  font-size: 12px;
  line-height: 1.55;
}

#body_wrap.home .tma-stat span {
  font-size: 12px;
  line-height: 1.5;
}

#body_wrap.home .tma-stat small {
  font-size: 11px;
  line-height: 1.4;
  opacity: 1;
}

#body_wrap.home .tma-readiness__head p {
  font-size: 14px !important;
  line-height: 1.75 !important;
}

#body_wrap.home .tma-cta__micro {
  font-size: 13px;
  line-height: 1.7;
}

body .tma-form__counter {
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1179px) {
  .tma-sitehead__quick,
  .tma-sitehead__toggle {
    min-height: 56px;
  }
}

@media (max-width: 767px) {
  #body_wrap.home .tma-region__focus,
  #body_wrap.home .tma-industry__checks {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Mobile title flow and fine-print readability */
@media (max-width: 767px) {
  .single-post .p-articleHead.c-postTitle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .single-post .c-postTitle__ttl {
    order: 1;
    width: 100%;
  }

  .single-post .c-postTitle__date {
    order: 2;
  }

  #body_wrap.home .tma-hero__note,
  #body_wrap.home .tma-guideline-note {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }

  .tma-sitefoot__notice p {
    font-size: 14px;
    line-height: 1.75;
  }
}

/* Supporting-text hierarchy and shared font consistency */
.l-mainContent,
.p-breadcrumb {
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", sans-serif;
}

.tma-sitehead__buyer {
  font-size: 13px;
}

.tma-sitehead__seller small {
  font-size: 10.5px;
  line-height: 1.4;
}

#body_wrap.home .tma-hero-fee__detail {
  font-weight: 700;
}

#body_wrap.home .tma-hero__note {
  font-size: 13.5px;
  line-height: 1.75;
}

#body_wrap.home .tma-value p {
  font-size: 13.5px;
  line-height: 1.7;
}

#body_wrap.home #fees .tma-fees__notice p {
  max-width: 48rem;
  margin-inline: auto;
}

#body_wrap.home :is(.tma-intel__source, .tma-industries-note) {
  max-width: 58rem;
  margin-inline: auto;
}

#body_wrap.home .tma-guideline-note {
  font-size: 13.5px !important;
}

#body_wrap.home .tma-process-note {
  font-size: 12.5px !important;
}

.archive .p-postList__excerpt {
  -webkit-line-clamp: 3;
}

body .tma-form__progress small,
body .tma-form__counter {
  font-size: 12.5px;
  line-height: 1.6;
}

body .tma-form__required {
  font-size: 12px;
  line-height: 1.5;
}

body .tma-form__optional summary > small,
body .tma-form__micro {
  font-size: 13.5px !important;
  line-height: 1.7 !important;
}

body .tma-form__stephead small,
body .tma-form__intro span {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

body .tma-sitehead__panel-actions small,
body .tma-sitehead__panel-actions span,
body .tma-sitehead__panel-phone small {
  font-size: 12px;
  line-height: 1.5;
}

body .tma-sitehead__panel-meta {
  font-size: 12.5px;
  line-height: 1.6;
}
/* Mobile form fine-print readability */
@media (max-width: 767px) {
  body form.tma-form .tma-form__micro {
    font-size: 13px !important;
    line-height: 1.7 !important;
    overflow-wrap: break-word !important;
    word-break: auto-phrase;
  }
}
/* Narrow tablet form viewport guard */
@media (min-width: 768px) and (max-width: 800px) {
  body .tma-contactpage :is(.tma-subwrap, .tma-contact-wrap) {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    margin-inline: auto !important;
  }

  body .tma-contactpage form.tma-form {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* Mid-tablet heading line balance */
@media (min-width: 901px) and (max-width: 1100px) {
  #body_wrap.home #faq .tma-section-head,
  #body_wrap.home .tma-cta__inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #body_wrap.home #faq .tma-section-head {
    gap: 20px !important;
  }

  #body_wrap.home #faq .tma-section-head > .tma-lead {
    max-width: 680px;
  }

  #body_wrap.home .tma-cta__action {
    width: 100%;
    max-width: 560px;
  }
}

/* =========================================================
   栃木M&A総合センター：白ベース統一・表示安定化 2026-08-24
   ========================================================= */
:root {
  --tma-white-base: #ffffff;
  --tma-white-soft: #f7faf9;
  --tma-white-line: #d9e4e1;
}

html,
body,
#body_wrap,
.l-container,
body:has(#body_wrap.home) {
  background-color: var(--tma-white-base) !important;
}

/* 白背景のロゴ画像とヘッダーを一体化 */
body .tma-sitehead,
body:has(#body_wrap.home) .tma-sitehead {
  background: var(--tma-white-base) !important;
  border-bottom: 1px solid var(--tma-white-line) !important;
  box-shadow: 0 6px 20px rgba(6, 26, 45, .07) !important;
}

body .tma-sitehead__logo,
body:has(#body_wrap.home) .tma-sitehead__logo,
body .tma-sitehead__logo img {
  background: var(--tma-white-base) !important;
  filter: none !important;
}

/* トップページの主面を白へ統一 */
#body_wrap.home .tma-hero,
#body_wrap.home #fees,
#body_wrap.home #concerns,
#body_wrap.home #values,
#body_wrap.home #industries,
#body_wrap.home #process,
#body_wrap.home #knowledge,
#body_wrap.home #faq,
#body_wrap.home .tma-legal-brief {
  background: var(--tma-white-base) !important;
  background-image: none !important;
}

#body_wrap.home .tma-hero {
  border-bottom-color: var(--tma-white-line) !important;
}

#body_wrap.home .tma-localnav {
  background: rgba(255, 255, 255, .98) !important;
  border-color: var(--tma-white-line) !important;
}

#body_wrap.home #fees :is(.tma-fee-card--ours, .tma-fee-card--other),
#body_wrap.home #concerns :is(.tma-owner-portrait, .tma-concern),
#body_wrap.home #values :is(.tma-values__media, .tma-value),
#body_wrap.home #industries :is(.tma-intel, .tma-industry),
#body_wrap.home #process .tma-step,
#body_wrap.home #knowledge .tma-guide,
#body_wrap.home #faq .tma-faq details,
#body_wrap.home .tma-legal-brief article {
  background: var(--tma-white-base) !important;
}

#body_wrap.home :is(#concerns, #values, #industries, #process, #knowledge, #faq, .tma-legal-brief) {
  border-top: 1px solid #edf2f0;
}

/* 下層ページ・フォームも白を基調に統一 */
body :is(.tma-subsite, .tma-contactpage),
body :is(.tma-subhero, .tma-contact-hero),
body :is(.tma-subsection--white, .tma-contact-section--white),
body :is(.tma-subnav, .tma-contact-localnav),
body .tma-sitefoot__cta {
  background: var(--tma-white-base) !important;
  background-image: none !important;
}

body :is(.tma-subsection--sand, .tma-form-section) {
  background: var(--tma-white-soft) !important;
  background-image: none !important;
}

/* 暗いヒーロー用だった文字色を白背景で読みやすく補正 */
body .tma-subhero,
body .tma-contact-hero {
  color: #132c3d !important;
}

body :is(.tma-subhero, .tma-contact-hero) h1 {
  color: #0b2742 !important;
}

body .tma-subhero > :is(.tma-subwrap, .tma-subhero__inner) > p:not(.tma-subeyebrow),
body .tma-contact-hero .tma-contact-hero__lead {
  color: #425a62 !important;
}

body :is(.tma-subeyebrow, .tma-contact-eyebrow) {
  color: #17655b !important;
}

@media (max-width: 767px) {
  body .tma-sitehead__logo,
  body .tma-sitehead__logo img,
  #body_wrap.home .tma-hero {
    background: #fff !important;
    filter: none !important;
  }
}

/* 320px前後で下部CTAが右側へ切れる問題を修正 */
@media (max-width: 760px) {
  body .tma-subcta__inner {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .tma-subcta__inner > * {
    min-width: 0;
  }

  body .tma-subbtn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body .tma-subcta h2 {
    overflow-wrap: anywhere;
  }
}


/* Responsive QA 2026-08-25: 下層ナビとログイン管理バーの重なり修正 */
@media (max-width: 760px) {
  body .tma-subnav {
    overflow-x: visible !important;
  }

  body .tma-subnav__inner {
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
    padding: 8px 0 !important;
    flex-wrap: wrap !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
  }

  body .tma-subnav a:last-child {
    margin-left: 0 !important;
  }
}

@media (min-width: 1180px) and (max-width: 1219px) {
  body.admin-bar #wpadminbar #wp-admin-bar-rank-math {
    display: none !important;
  }
}


/* 管理バー表示時にbodyへadmin-barクラスが付かない構成にも適用 */
@media (min-width: 1180px) and (max-width: 1219px) {
  #wpadminbar #wp-admin-bar-rank-math {
    display: none !important;
  }
}


/* ログイン中の管理バーをタブレット幅でも1段に保つ */
@media (min-width: 783px) and (max-width: 1179px) {
  #wpadminbar #wp-admin-bar-rank-math,
  #wpadminbar #wp-admin-bar-swell_settings {
    display: none !important;
  }
}

@media (min-width: 783px) and (max-width: 999px) {
  #wpadminbar #wp-admin-bar-customize {
    display: none !important;
  }
}

@media (min-width: 783px) and (max-width: 899px) {
  #wpadminbar #wp-admin-bar-edit {
    display: none !important;
  }
}


/* 小数ピクセルのビューポート境界でも管理バーを折り返さない */
@media (min-width: 782px) and (max-width: 1180px) {
  #wpadminbar #wp-admin-bar-rank-math,
  #wpadminbar #wp-admin-bar-swell_settings {
    display: none !important;
  }
}

@media (min-width: 782px) and (max-width: 1000px) {
  #wpadminbar #wp-admin-bar-customize {
    display: none !important;
  }
}

@media (min-width: 782px) and (max-width: 900px) {
  #wpadminbar #wp-admin-bar-edit {
    display: none !important;
  }
}

@media (min-width: 1179px) and (max-width: 1220px) {
  #wpadminbar #wp-admin-bar-rank-math {
    display: none !important;
  }
}


/* 320px narrow heading wrap fix 2026-08-25 */
@media (max-width: 359px) {
  .tma-contact-section--sand .tma-contact-wrap > h2 .tma-nobr,
  .tma-process-intro > h2 .tma-nobr {
    display: inline !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}


/* desktop sticky PROCESS card stays below the fixed header 2026-08-25 */
@media (min-width: 981px) {
  #body_wrap.home .tma-process-intro {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 112.8px) !important;
  }
}

/* =========================================================
   TMA Form UI refresh 2026-08-26
   One field per row / clean navy UI / seller + buyer
   ========================================================= */

body .tma-subsite--form .tma-form-section {
  background: #f5f7f9 !important;
  background-image: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] {
  --tma-form-accent: #153a5b;
  --tma-form-accent-dark: #0e2c46;
  --tma-form-text: #243746;
  --tma-form-muted: #5d6d7a;
  --tma-form-line: #d5dde4;
  --tma-form-surface: #f4f6f8;
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 40px !important;
  gap: 24px !important;
  border: 1px solid var(--tma-form-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--tma-form-text) !important;
  box-shadow: 0 12px 32px rgba(21, 58, 91, .08) !important;
}

/* PC・スマホとも、通常入力とチェック項目を1行1項目に統一 */
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__row,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__checks {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] label,
body .tma-subsite--form form.tma-form[data-tma-form] legend,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__consentgroup > p {
  color: var(--tma-form-text) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] :is(
  small,
  .tma-form__hint,
  .tma-form__micro,
  .tma-form__counter,
  .tma-form__stephead small
) {
  color: var(--tma-form-muted) !important;
  opacity: 1 !important;
}

/* 入力欄 */
body .tma-subsite--form form.tma-form[data-tma-form] :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select
) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  border: 1px solid #aeb9c3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #182d3e !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 160px !important;
  padding: 15px 16px !important;
  border: 1px solid #aeb9c3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #182d3e !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  resize: vertical !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] :is(input, textarea)::placeholder {
  color: #73818c !important;
  opacity: 1 !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
):hover {
  border-color: #60778b !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
):focus,
body .tma-subsite--form form.tma-form[data-tma-form] :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
):focus-visible {
  border-color: var(--tma-form-accent) !important;
  outline: 3px solid rgba(21, 58, 91, .24) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* 進捗・案内・ステップを白／グレー／濃紺へ統一 */
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__progress {
  position: static !important;
  border-color: var(--tma-form-line) !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__progress b,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__progress strong {
  color: var(--tma-form-accent) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__progressbar {
  background: #e4e9ed !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__progressbar i {
  background: var(--tma-form-accent) !important;
  background-image: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__intro,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__fee-note {
  border: 1px solid var(--tma-form-line) !important;
  border-left: 4px solid var(--tma-form-accent) !important;
  background: var(--tma-form-surface) !important;
  color: #344b5d !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__intro strong,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__fee-note strong {
  color: var(--tma-form-accent) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__intro span {
  color: var(--tma-form-muted) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__stephead {
  border-color: #d8e0e6 !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__stephead > span {
  background: var(--tma-form-accent) !important;
  color: #fff !important;
}

/* 任意項目 */
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__optional {
  border-color: var(--tma-form-line) !important;
  background: var(--tma-form-surface) !important;
  box-shadow: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__optional summary {
  min-height: 56px !important;
  color: var(--tma-form-accent) !important;
  background: var(--tma-form-surface) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__optionalbody {
  gap: 18px !important;
  padding: 18px !important;
  border-color: var(--tma-form-line) !important;
  background: #fff !important;
}

/* チェック項目と同意欄 */
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__check,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__consent {
  display: flex !important;
  width: 100% !important;
  min-height: 52px !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 13px 15px !important;
  border: 1px solid #cbd4dc !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--tma-form-text) !important;
  box-shadow: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__consentgroup {
  border: 1px solid var(--tma-form-line) !important;
  background: var(--tma-form-surface) !important;
  color: var(--tma-form-text) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] :is(
  .tma-form__check,
  .tma-form__consent
) input[type="checkbox"] {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  flex: 0 0 22px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--tma-form-accent) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__check:has(input:checked) {
  border-color: var(--tma-form-accent) !important;
  background: #edf2f6 !important;
  box-shadow: inset 0 0 0 1px var(--tma-form-accent) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__consent a {
  color: var(--tma-form-accent) !important;
  text-decoration: underline !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__required {
  background: var(--tma-form-accent) !important;
  color: #fff !important;
}

/* seller / buyer共通の送信ボタン */
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__submit,
body .tma-subsite--form form.tma-form[data-tma-form]:has(
  input[name="form_context"][value="buyer"]
) .tma-form__submit {
  width: 100% !important;
  min-height: 58px !important;
  border: 2px solid var(--tma-form-accent) !important;
  border-radius: 9px !important;
  background: var(--tma-form-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__submit:hover,
body .tma-subsite--form form.tma-form[data-tma-form]:has(
  input[name="form_context"][value="buyer"]
) .tma-form__submit:hover {
  border-color: var(--tma-form-accent-dark) !important;
  background: var(--tma-form-accent-dark) !important;
  color: #fff !important;
  filter: none !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__submit:focus-visible {
  outline: 3px solid rgba(21, 58, 91, .28) !important;
  outline-offset: 3px !important;
}

/* 成功は濃紺、エラーだけ赤を使用 */
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__notice {
  border: 1px solid #afbdc9 !important;
  background: #eef3f7 !important;
  color: var(--tma-form-accent) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__validation,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__error {
  border: 1px solid #b42318 !important;
  background: #fff1f0 !important;
  color: #8f1d16 !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__group-error {
  color: #a1261d !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__field--error :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
),
body .tma-subsite--form form.tma-form[data-tma-form] :is(
  input,
  select,
  textarea
)[aria-invalid="true"] {
  border-color: #b42318 !important;
  outline-color: rgba(180, 35, 24, .24) !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__fieldset.tma-form__field--error,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__consent.tma-form__field--error,
body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__field--error > .tma-form__check {
  border-color: #b42318 !important;
  background: #fff7f6 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .10) !important;
}

body .tma-subsite--form form.tma-form[data-tma-form] :is(
  input,
  select,
  textarea,
  .tma-form__submit
):disabled {
  border-color: #b8c1c8 !important;
  background: #e5e9ec !important;
  color: #68757f !important;
  opacity: 1 !important;
}

@media (max-width: 760px) {
  body .tma-subsite--form form.tma-form[data-tma-form] {
    max-width: 100% !important;
    padding: 22px 16px !important;
    gap: 20px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__optionalbody {
    padding: 12px !important;
  }

  body .tma-subsite--form form.tma-form[data-tma-form] :is(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select
  ) {
    height: 54px !important;
    min-height: 54px !important;
    padding-inline: 13px !important;
  }

  body .tma-subsite--form form.tma-form[data-tma-form] textarea {
    min-height: 150px !important;
    padding: 13px !important;
  }
}

@media (max-width: 359px) {
  body .tma-subsite--form form.tma-form[data-tma-form] {
    padding: 18px 12px !important;
  }

  body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__optionalbody {
    padding: 10px !important;
  }
}

body .tma-subsite--form form.tma-form[data-tma-form] .tma-form__optional summary:focus-visible { outline: 3px solid rgba(21, 58, 91, .28) !important; outline-offset: -3px !important; box-shadow: none !important; }
body .tma-subsite--form form.tma-form[data-tma-form] :is(.tma-form__check, .tma-form__consent) input[type="checkbox"]:focus-visible { outline: 3px solid rgba(21, 58, 91, .28) !important; outline-offset: 3px !important; }
