

#main_visual,.p-postSlider{display:none!important}.c-headLogo__img{max-height:58px;width:auto}.l-mainContent{width:100%}.l-content.l-container{max-width:none;padding-left:0;padding-right:0}.page-id-12 .post_content{margin-top:0}.page-id-12 .l-content{margin:0 auto}.page-id-12 .c-pageTitle{display:none}.c-gnav li:has(> a[href*="/sample-page/"]),.p-spMenu li:has(> a[href*="/sample-page/"]){display:none!important}
/* Kyoto M&A header logo sizing - added by Codex */
@media (min-width:960px){:root{--logo_size_pc:64px;--logo_size_pcfix:54px}#header .c-headLogo__img,.l-fixHeader .c-headLogo__img{height:64px!important;width:auto!important;max-height:64px!important;object-fit:contain}.l-fixHeader .c-headLogo__img{height:54px!important;max-height:54px!important}}
@media (max-width:959px){:root{--logo_size_sp:60px}#header.l-header,#header .l-header__inner{height:60px!important;min-height:60px!important}#header .l-header__logo,#header .c-headLogo,#header .c-headLogo__link{height:60px!important;min-height:60px!important}#header .c-headLogo__img{height:40px!important;width:auto!important;max-height:40px!important;max-width:min(158px,48vw)!important;object-fit:contain}.l-header__customBtn,.l-header__menuBtn{height:60px!important;width:60px!important}}
@media (max-width:420px){#header .c-headLogo__img{height:39px!important;max-height:39px!important;max-width:46vw!important}.l-header__customBtn,.l-header__menuBtn{height:60px!important;width:56px!important}}
/* End Kyoto M&A header logo sizing */

/* Kyoto M&A sidebar cleanup - added by Codex */
#sidebar,
.l-sidebar {
  display: none !important;
}

.single-post #content.l-content,
.archive #content.l-content,
.category #content.l-content,
.search #content.l-content {
  display: block !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.single-post #main_content.l-mainContent,
.archive #main_content.l-mainContent,
.category #main_content.l-mainContent,
.search #main_content.l-mainContent {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 599px) {
  .single-post #content.l-content,
  .archive #content.l-content,
  .category #content.l-content,
  .search #content.l-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* End Kyoto M&A sidebar cleanup */

/* Kyoto M&A contrast guard - added by Codex */
.kmc-wrap,
.kmc-contact,
.kmc-form-wrap,
.kmc-subpage {
  color: #1f2a27 !important;
}

.kmc-wrap .kmc-card,
.kmc-wrap .kmc-fee-card:not(.kmc-fee-card--primary),
.kmc-wrap .kmc-proof,
.kmc-wrap .kmc-doc-card,
.kmc-contact-card,
.kmc-form-panel,
.kmc-reply-box,
.kmc-form-note,
.kmc-contact-note,
.kmc-subpage__body section,
.kmc-subpage__cta {
  color: #1f2a27 !important;
}

.kmc-wrap .kmc-card p,
.kmc-wrap .kmc-card span,
.kmc-wrap .kmc-card li,
.kmc-wrap .kmc-proof span,
.kmc-wrap .kmc-doc-card span,
.kmc-contact-card p,
.kmc-contact-card li,
.kmc-form-panel,
.kmc-form-note,
.kmc-reply-box,
.kmc-subpage p,
.kmc-subpage li {
  color: #33423c !important;
}

.kmc-wrap .kmc-fee-card small,
.kmc-contact-card small {
  color: #6f4d12 !important;
}

.kmc-wrap .kmc-local,
.kmc-wrap .kmc-final,
.kmc-wrap .kmc-consult-strip,
.kmc-wrap .kmc-step,
.kmc-wrap .kmc-fee-card--primary,
.kmc-wrap .kmc-dual .kmc-card:first-child {
  color: #f8fbf7 !important;
}

.kmc-wrap .kmc-local h2,
.kmc-wrap .kmc-local p,
.kmc-wrap .kmc-local span,
.kmc-wrap .kmc-final h2,
.kmc-wrap .kmc-final p,
.kmc-wrap .kmc-consult-strip h2,
.kmc-wrap .kmc-consult-strip p,
.kmc-wrap .kmc-step h3,
.kmc-wrap .kmc-step p,
.kmc-wrap .kmc-fee-card--primary b,
.kmc-wrap .kmc-fee-card--primary p,
.kmc-wrap .kmc-dual .kmc-card:first-child h2,
.kmc-wrap .kmc-dual .kmc-card:first-child p {
  color: #f8fbf7 !important;
}

.kmc-wrap .kmc-fee-card--primary small,
.kmc-wrap .kmc-fee-card--primary strong,
.kmc-wrap .kmc-step:before,
.kmc-wrap .kmc-local-card .kmc-mark,
.kmc-wrap .kmc-dual .kmc-card:first-child .kmc-mark {
  color: #f6d990 !important;
}

.kmc-wrap .kmc-photo-card__text,
.kmc-wrap .kmc-fee-visual figcaption {
  color: #ffffff !important;
  background: rgba(8, 20, 17, .72) !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .55) !important;
}

.kmc-wrap .kmc-btn--gold,
.kmc-wrap .kmc-mini-cta a:first-child,
.kmc-wrap .kmc-mobile-cta a:first-child,
.kmc-wrap .kmc-zero-banner {
  color: #111111 !important;
}

.kmc-wrap .kmc-btn--ghost,
.kmc-contact-card a,
.kmc-form-submit,
.kmc-form-panel .wpcf7-submit {
  color: #ffffff !important;
}

.kmc-wrap .kmc-mini-cta a:nth-child(2) {
  color: #10231e !important;
}
/* End Kyoto M&A contrast guard */

/* Kyoto M&A accessibility guard - added by Codex */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f6d990 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #10231e !important;
}

.kmc-skip-menu {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  z-index: 10000 !important;
}

.kmc-skip-menu > a {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  border-radius: 4px !important;
  background: #10231e !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  transform: translateY(-140%) !important;
  transition: transform .15s ease !important;
}

.kmc-skip-menu > a:focus,
.kmc-skip-menu > a:focus-visible {
  transform: translateY(0) !important;
}

.l-footer .kmc-skip-menu {
  display: none !important;
}

.kmc-wrap a,
.kmc-contact a,
.kmc-company a,
.kmc-form-wrap a,
.kmc-subpage a {
  text-underline-offset: .18em;
}

.kmc-wrap summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.kmc-wrap .kmc-mobile-cta a,
.kmc-wrap .kmc-btn,
.kmc-contact-card a,
.kmc-form-submit,
.kmc-form-panel .wpcf7-submit {
  min-height: 44px !important;
}

.kmc-form-accept label,
.kmc-form-accept input[type="checkbox"] {
  cursor: pointer;
}

.kmc-form-accept input[type="checkbox"] {
  min-width: 22px !important;
  width: 22px !important;
  height: 22px !important;
}

#flow,
#main_content {
  scroll-margin-top: 92px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .kmc-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .kmc-photo-card:hover img,
  .kmc-hero__img img {
    transform: none !important;
  }
}
/* End Kyoto M&A accessibility guard */

/* Kyoto M&A premium header - added by Codex */
:root {
  --kmc-header-green: #10231e;
  --kmc-header-green-2: #173d34;
  --kmc-header-gold: #c6a15b;
  --kmc-header-ink: #162721;
  --kmc-header-line: #e5dfd2;
}

.l-header {
  background: rgba(255,255,255,.98) !important;
  border-bottom: 1px solid var(--kmc-header-line) !important;
  box-shadow: 0 14px 34px rgba(16,35,30,.09) !important;
  z-index: 1000 !important;
}

.l-fixHeader {
  display: none !important;
}

.l-header__bar {
  background: var(--kmc-header-green) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(198,161,91,.36) !important;
}

.l-header__barInner {
  min-height: 34px !important;
  gap: 14px !important;
}

.l-header__bar .c-catchphrase {
  order: 1 !important;
  width: auto !important;
  max-width: none !important;
  color: #f6f3ea !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  padding: 6px 0 !important;
}

.l-header__barInner::after {
  content: "譲渡企業側の仲介手数料0円 / 秘密保持 / 初回相談無料";
  order: 2;
  margin-left: auto;
  color: #f6d990;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  white-space: nowrap;
}

.l-header__bar .c-iconList {
  order: 3 !important;
  margin-left: 8px !important;
}

.l-header__bar .c-iconList__item.-rss {
  display: none !important;
}

.l-header__bar .c-iconList__link {
  color: #fff !important;
  opacity: .86 !important;
}

.l-header__bar .c-iconList__link:hover,
.l-header__bar .c-iconList__link:focus-visible {
  opacity: 1 !important;
}

.l-header__inner {
  min-height: 88px !important;
  align-items: center !important;
  gap: 22px !important;
}

.l-header__logo {
  flex: 0 0 auto !important;
  margin-right: 8px !important;
  padding: 12px 0 !important;
}

.c-headLogo {
  line-height: 1 !important;
}

.c-headLogo__link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 62px !important;
}

.c-headLogo__img {
  width: 268px !important;
  max-width: 268px !important;
  height: auto !important;
  display: block !important;
}

.c-gnavWrap {
  min-width: 0 !important;
  margin-left: auto !important;
}

.c-gnav {
  align-items: center !important;
  gap: 3px !important;
}

.c-gnav > .menu-item > a {
  min-height: 64px !important;
  padding: 0 10px !important;
  color: var(--kmc-header-ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  border-radius: 4px !important;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

.c-gnav > .menu-item > a .ttl {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
}

.c-gnav > .menu-item > a::after {
  height: 3px !important;
  background: var(--kmc-header-gold) !important;
  border-radius: 999px !important;
  bottom: 9px !important;
}

.c-gnav > .menu-item:hover > a,
.c-gnav > .current-menu-item > a {
  background: #f7f5ef !important;
  color: var(--kmc-header-green) !important;
}

.c-gnav > .kmc-nav-seller > a {
  border: 1px solid rgba(198,161,91,.52) !important;
  background: #fbf8ef !important;
  color: var(--kmc-header-green) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65) !important;
}

.c-gnav > .kmc-nav-contact > a {
  min-height: 46px !important;
  padding: 0 18px !important;
  background: var(--kmc-header-green) !important;
  color: #fff !important;
  border: 1px solid var(--kmc-header-green) !important;
  box-shadow: 0 10px 22px rgba(16,35,30,.18) !important;
}

.c-gnav > .kmc-nav-contact > a::after {
  content: none !important;
}

.c-gnav > .kmc-nav-contact:hover > a,
.c-gnav > .kmc-nav-contact > a:focus-visible {
  background: var(--kmc-header-green-2) !important;
  color: #fff !important;
}

.c-gnav > .kmc-nav-contact > a .ttl::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--kmc-header-gold);
  box-shadow: 0 0 0 4px rgba(198,161,91,.22);
}

.l-fixHeader {
  background: rgba(255,255,255,.98) !important;
  border-bottom: 1px solid var(--kmc-header-line) !important;
  box-shadow: 0 12px 28px rgba(16,35,30,.11) !important;
}

.l-fixHeader__inner {
  min-height: 72px !important;
  align-items: center !important;
}

.l-fixHeader__logo {
  padding: 8px 0 !important;
}

.l-fixHeader .c-headLogo__img {
  width: 230px !important;
  max-width: 230px !important;
}

.l-fixHeader .c-gnav > .menu-item > a {
  min-height: 56px !important;
}

@media (max-width: 1180px) and (min-width: 960px) {
  .c-headLogo__img {
    width: 238px !important;
    max-width: 238px !important;
  }

  .c-gnav > .menu-item > a {
    padding: 0 7px !important;
    font-size: 13px !important;
  }

  .c-gnav > .kmc-nav-contact > a {
    padding: 0 13px !important;
  }
}

@media (max-width: 959px) {
  .l-header {
    box-shadow: 0 10px 26px rgba(16,35,30,.1) !important;
  }

  .l-header__bar {
    display: none !important;
  }

  .l-header__inner {
    min-height: 72px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: 8px !important;
  }

  .l-header__logo {
    order: 2 !important;
    flex: 1 1 auto !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 8px 0 !important;
  }

  .c-headLogo__link {
    min-height: 52px !important;
    justify-content: center !important;
  }

  .c-headLogo__img {
    width: 220px !important;
    max-width: min(220px, 58vw) !important;
  }

  .l-header__menuBtn,
  .l-header__customBtn {
    width: 46px !important;
    height: 46px !important;
    display: grid !important;
    place-items: center !important;
  }

  .l-header__menuBtn .c-iconBtn,
  .l-header__customBtn .c-iconBtn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 4px !important;
    border: 1px solid #d9d2c4 !important;
    background: #fbfaf6 !important;
    color: var(--kmc-header-green) !important;
  }

  .p-spMenu__inner {
    background: #fbfaf6 !important;
  }

  .p-spMenu__inner::before {
    background: #fbfaf6 !important;
  }

  .p-spMenu__body {
    padding-top: 12px !important;
  }

  .p-spMenu .menu-item > a {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    color: var(--kmc-header-ink) !important;
    font-weight: 800 !important;
    border-bottom: 1px solid #e5dfd2 !important;
  }

  .p-spMenu .kmc-nav-contact > a {
    margin: 14px 16px !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 4px !important;
    background: var(--kmc-header-green) !important;
    color: #fff !important;
    border: 0 !important;
  }

  .p-spMenu .kmc-nav-seller > a {
    color: var(--kmc-header-green) !important;
    background: #f7f1e4 !important;
  }
}

@media (max-width: 420px) {
  .c-headLogo__img {
    width: 196px !important;
    max-width: 54vw !important;
  }

  .l-header__inner {
    min-height: 68px !important;
  }
}
/* End Kyoto M&A premium header */

/* Kyoto M&A mobile text polish - added by Codex */
.kmc-wrap,
.kmc-wrap *,
.kmc-wrap *::before,
.kmc-wrap *::after {
  box-sizing: border-box;
}

.post_content,
.post_content p,
.post_content li,
.post_content h1,
.post_content h2,
.post_content h3,
.post_content h4,
.c-pageTitle,
.c-postTitle,
.p-postList__title,
.kmc-wrap,
.kmc-contact,
.kmc-form-wrap,
.kmc-company,
.kmc-subpage {
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}

.post_content p,
.post_content li,
.post_content h1,
.post_content h2,
.post_content h3,
.post_content h4,
.c-pageTitle,
.c-postTitle,
.p-postList__title,
.kmc-title,
.kmc-lead {
  text-wrap: pretty;
}

.kmc-title,
.kmc-lead,
.kmc-zero-banner b,
.kmc-zero-banner span,
.kmc-fee-card b,
.kmc-fee-card p,
.kmc-card h2,
.kmc-card h3 {
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

@media (max-width: 959px) {
  .p-fixBtnWrap {
    display: none !important;
  }

  .kmc-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow-x: clip;
  }

  .kmc-full {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .kmc-hero__inner,
  .kmc-section {
    width: 100% !important;
    max-width: 100% !important;
  }

  .kmc-eyebrow,
  .kmc-title,
  .kmc-lead,
  .kmc-zero-banner,
  .kmc-actions,
  .kmc-hero-contact {
    width: 100% !important;
    max-width: calc(100vw - 44px) !important;
  }

  .kmc-hero {
    min-height: auto !important;
  }

  .kmc-hero__inner {
    padding: 102px 22px 72px !important;
  }

  .kmc-title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
  }

  .kmc-lead {
    font-size: 1rem !important;
    line-height: 1.85 !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
  }

  .kmc-eyebrow {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
  }

  .kmc-zero-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    gap: 12px !important;
  }

  .kmc-zero-banner b {
    font-size: 1.28rem !important;
    line-height: 1.42 !important;
    white-space: normal !important;
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
  }

  .kmc-zero-banner span {
    display: block !important;
    font-size: .94rem !important;
    line-height: 1.7 !important;
    white-space: normal !important;
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
  }

  .kmc-zero-banner > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  .kmc-hero-contact a,
  .kmc-hero-contact span,
  .kmc-actions,
  .kmc-actions .kmc-btn {
    max-width: 100% !important;
  }
}
/* End Kyoto M&A mobile text polish */

/* Kyoto M&A premium footer - added by Codex */
:root {
  --kmc-footer-green: #10231e;
  --kmc-footer-green-2: #173d34;
  --kmc-footer-gold: #c6a15b;
  --kmc-footer-cream: #f7f3e8;
  --kmc-footer-line: rgba(255,255,255,.14);
}

.l-footer {
  margin-top: 0 !important;
  background: var(--kmc-footer-green) !important;
  color: var(--kmc-footer-cream) !important;
  border-top: 5px solid var(--kmc-footer-gold) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.l-footer__inner {
  background:
    linear-gradient(135deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 82% 18%, rgba(198,161,91,.16), rgba(198,161,91,0) 28%),
    var(--kmc-footer-green) !important;
}

.l-footer__foot {
  color: inherit !important;
  padding: 0 !important;
}

.l-footer__foot .l-container {
  max-width: 1160px !important;
  display: grid !important;
  grid-template-columns: minmax(280px, .95fr) minmax(0, 1.55fr) !important;
  gap: 34px 48px !important;
  align-items: start !important;
  padding: 58px 22px 28px !important;
}

.l-footer__foot .l-container::before {
  content: "京都M&A総合センター\A 京都の中小企業・老舗企業の会社売却、M&A、事業承継を秘密保持で支援します。\A\A 譲渡企業側の仲介手数料0円 / 初回相談無料 / 社名非開示で相談可能";
  white-space: pre-line;
  display: block;
  min-height: 210px;
  padding: 28px;
  border: 1px solid rgba(198,161,91,.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  color: #fff;
  font-weight: 800;
  line-height: 1.9;
  box-shadow: 0 20px 46px rgba(0,0,0,.16);
}

.l-footer__foot .l-container::after {
  content: "";
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--kmc-footer-line);
  color: rgba(247,243,232,.78);
  font-size: 12px;
  line-height: 1.7;
  order: 20;
}

.l-footer__nav {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: stretch !important;
}

.l-footer__nav li {
  margin: 0 !important;
  padding: 0 !important;
}

.l-footer__nav a {
  min-height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.055) !important;
  color: #f7f3e8 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  text-align: center !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

.l-footer__nav a:hover,
.l-footer__nav a:focus-visible {
  background: rgba(255,255,255,.11) !important;
  border-color: rgba(198,161,91,.52) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.l-footer__nav .kmc-footer-brand {
  grid-column: 1 / -1 !important;
}

.l-footer__nav .kmc-footer-brand > a {
  justify-content: flex-start !important;
  min-height: 64px !important;
  padding: 16px 18px !important;
  background: rgba(255,255,255,.085) !important;
  border-color: rgba(198,161,91,.4) !important;
  color: #fff !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
}

.l-footer__nav .kmc-footer-brand > a::before {
  content: "";
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-right: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(198,161,91,.95) 0 28%, transparent 30%),
    rgba(255,255,255,.12);
  border: 1px solid rgba(198,161,91,.45);
}

.l-footer__nav .kmc-footer-cta > a,
.l-footer__nav .kmc-footer-seller > a {
  background: var(--kmc-footer-gold) !important;
  border-color: var(--kmc-footer-gold) !important;
  color: #111 !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.18) !important;
}

.l-footer__nav .kmc-footer-cta > a::before,
.l-footer__nav .kmc-footer-seller > a::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--kmc-footer-green);
}

.l-footer__nav .kmc-footer-legal > a {
  min-height: 38px !important;
  padding: 8px 10px !important;
  background: transparent !important;
  border-color: rgba(255,255,255,.1) !important;
  color: rgba(247,243,232,.8) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.l-footer__nav .kmc-footer-legal > a:hover,
.l-footer__nav .kmc-footer-legal > a:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.06) !important;
}

.l-footer .copyright {
  grid-column: 1 / -1 !important;
  order: 30;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(247,243,232,.7) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

@media (max-width: 900px) {
  .l-footer__foot .l-container {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 42px 18px 84px !important;
  }

  .l-footer__foot .l-container::before {
    min-height: auto;
    padding: 22px;
    font-size: 14px;
  }

  .l-footer__nav {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }

  .l-footer__nav .kmc-footer-brand,
  .l-footer__nav .kmc-footer-cta,
  .l-footer__nav .kmc-footer-seller {
    grid-column: 1 / -1 !important;
  }

  .l-footer__nav .kmc-footer-brand > a {
    justify-content: center !important;
    font-size: 18px !important;
  }
}

@media (max-width: 520px) {
  .l-footer__nav {
    grid-template-columns: 1fr !important;
  }

  .l-footer__nav a {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .l-footer__nav .kmc-footer-brand > a,
  .l-footer__nav .kmc-footer-cta > a,
  .l-footer__nav .kmc-footer-seller > a {
    justify-content: center !important;
    text-align: center !important;
  }
}
/* End Kyoto M&A premium footer */

/* Kyoto M&A final contrast guard - added by Codex */
body {
  color: #1f2a27 !important;
  background: #ffffff !important;
}

.post_content,
.l-mainContent,
.kmc-wrap,
.kmc-contact,
.kmc-form-wrap,
.kmc-company,
.kmc-subpage {
  color: #1f2a27 !important;
}

.kmc-wrap p,
.kmc-wrap li,
.kmc-contact p,
.kmc-contact li,
.kmc-form-wrap p,
.kmc-form-wrap li,
.kmc-company td,
.kmc-subpage p,
.kmc-subpage li {
  color: #33423c !important;
}

.kmc-wrap small,
.kmc-wrap .kmc-fee-note,
.kmc-form-field small,
.kmc-form-actions small {
  color: #4d5b55 !important;
  opacity: 1 !important;
}

.kmc-form-accept a,
.kmc-form-back,
.kmc-contact-mail a,
.kmc-company a,
.kmc-subpage a,
.post_content a:not(.kmc-btn):not(.wp-block-button__link) {
  color: #075f52 !important;
  font-weight: 800 !important;
  text-decoration-thickness: 1px !important;
}

.kmc-form-accept a:hover,
.kmc-form-accept a:focus-visible,
.kmc-form-back:hover,
.kmc-form-back:focus-visible,
.kmc-contact-mail a:hover,
.kmc-contact-mail a:focus-visible,
.kmc-company a:hover,
.kmc-company a:focus-visible,
.kmc-subpage a:hover,
.kmc-subpage a:focus-visible,
.post_content a:not(.kmc-btn):not(.wp-block-button__link):hover,
.post_content a:not(.kmc-btn):not(.wp-block-button__link):focus-visible {
  color: #063d36 !important;
}

.kmc-wrap .kmc-btn--gold,
.kmc-wrap .kmc-mini-cta a:first-child,
.kmc-wrap .kmc-mobile-cta a:first-child,
.l-footer__nav .kmc-footer-cta > a,
.l-footer__nav .kmc-footer-seller > a,
.c-gnav > .kmc-nav-seller > a {
  background: #c6a15b !important;
  border-color: #a87e31 !important;
  color: #0d1713 !important;
  text-shadow: none !important;
}

.kmc-wrap .kmc-btn--gold:hover,
.kmc-wrap .kmc-btn--gold:focus-visible,
.kmc-wrap .kmc-mini-cta a:first-child:hover,
.kmc-wrap .kmc-mini-cta a:first-child:focus-visible,
.kmc-wrap .kmc-mobile-cta a:first-child:hover,
.kmc-wrap .kmc-mobile-cta a:first-child:focus-visible,
.l-footer__nav .kmc-footer-cta > a:hover,
.l-footer__nav .kmc-footer-cta > a:focus-visible,
.l-footer__nav .kmc-footer-seller > a:hover,
.l-footer__nav .kmc-footer-seller > a:focus-visible,
.c-gnav > .kmc-nav-seller > a:hover,
.c-gnav > .kmc-nav-seller > a:focus-visible {
  background: #b98b3d !important;
  border-color: #8f6724 !important;
  color: #07110e !important;
}

.kmc-wrap .kmc-btn--ghost,
.kmc-wrap .kmc-mini-cta a:nth-child(2),
.kmc-wrap .kmc-hero-contact a,
.kmc-wrap .kmc-hero-contact span {
  background: rgba(8, 20, 17, .52) !important;
  border-color: rgba(255,255,255,.72) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.45) !important;
}

.kmc-wrap .kmc-mini-cta a:nth-child(2) {
  background: #ffffff !important;
  border-color: #c9c1af !important;
  color: #10231e !important;
  text-shadow: none !important;
}

.kmc-contact-card a,
.kmc-form-submit,
.kmc-form-panel .wpcf7-submit,
.wp-block-button__link,
button,
input[type="submit"] {
  background: #0f3b32 !important;
  border-color: #0f3b32 !important;
  color: #ffffff !important;
  text-shadow: none !important;
}

.kmc-contact-card a:hover,
.kmc-contact-card a:focus-visible,
.kmc-form-submit:hover,
.kmc-form-submit:focus-visible,
.kmc-form-panel .wpcf7-submit:hover,
.kmc-form-panel .wpcf7-submit:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  background: #08231e !important;
  border-color: #08231e !important;
  color: #ffffff !important;
}

.kmc-form-field input,
.kmc-form-field select,
.kmc-form-field textarea {
  background: #ffffff !important;
  color: #1f2a27 !important;
  border-color: #9b907c !important;
}

.kmc-form-field input::placeholder,
.kmc-form-field textarea::placeholder {
  color: #5a665f !important;
  opacity: 1 !important;
}

.kmc-required {
  background: #0f3b32 !important;
  color: #ffffff !important;
}

.kmc-optional {
  background: #e8e2d6 !important;
  color: #2f3b36 !important;
}

.kmc-skip-menu > a,
.c-gnav > .kmc-skip-menu > a,
.p-spMenu .kmc-skip-menu > a {
  background: #10231e !important;
  color: #ffffff !important;
}

.kmc-skip-menu > a .ttl,
.c-gnav > .kmc-skip-menu > a .ttl,
.p-spMenu .kmc-skip-menu > a .ttl {
  color: #ffffff !important;
}

.l-footer a,
.l-footer a .ttl,
.l-footer .copyright {
  text-shadow: none !important;
}

.kmc-wrap .kmc-hero .kmc-lead,
.post_content .kmc-wrap .kmc-hero .kmc-lead {
  color: #ffffff !important;
  text-shadow: 0 1px 5px rgba(0,0,0,.45) !important;
}

.post_content .kmc-wrap .kmc-hero .kmc-hero-contact a,
.post_content .kmc-wrap .kmc-hero .kmc-hero-contact span {
  background: rgba(8, 20, 17, .58) !important;
  border-color: rgba(255,255,255,.72) !important;
  color: #ffffff !important;
}

.post_content .kmc-contact .kmc-contact-card a {
  background: #0f3b32 !important;
  border-color: #0f3b32 !important;
  color: #ffffff !important;
}

.post_content .kmc-contact .kmc-contact-card a:hover,
.post_content .kmc-contact .kmc-contact-card a:focus-visible {
  background: #08231e !important;
  border-color: #08231e !important;
  color: #ffffff !important;
}

.post_content .kmc-wrap .kmc-mobile-cta a {
  background: rgba(16,35,30,.96) !important;
  color: #ffffff !important;
}

.post_content .kmc-wrap .kmc-mobile-cta a:first-child {
  background: #c6a15b !important;
  color: #0d1713 !important;
}
/* End Kyoto M&A final contrast guard */

/* Kyoto M&A top visual refresh - added by Codex */
:root {
  --kmc-soft-ivory: #f4efe3;
  --kmc-soft-ivory-2: #ebe2d1;
  --kmc-trust-green: #12372f;
  --kmc-trust-green-2: #1d4b40;
  --kmc-trust-gold: #c9a45f;
  --kmc-trust-ink: #172721;
}

body {
  background: var(--kmc-soft-ivory) !important;
}

.l-header {
  background: linear-gradient(180deg, #fbf8ef 0%, #f3ecdd 100%) !important;
  border-bottom: 1px solid #d8c9ab !important;
  box-shadow: 0 10px 28px rgba(24, 38, 33, .08) !important;
}

.l-header__bar {
  background: linear-gradient(90deg, #0e2c25 0%, #143d34 58%, #204d42 100%) !important;
  background-color: #143d34 !important;
  border-bottom: 1px solid rgba(201,164,95,.32) !important;
}

.l-header__bar .c-catchphrase,
.l-header__barInner::after {
  color: #f8ecd1 !important;
}

.l-header__inner {
  min-height: 88px !important;
}

.l-header__logo img,
.c-headLogo__img {
  filter: drop-shadow(0 6px 12px rgba(18,55,47,.12)) !important;
}

.c-gnav > li > a {
  color: var(--kmc-trust-ink) !important;
  border-radius: 6px !important;
}

.c-gnav > li:hover > a,
.c-gnav > li > a:focus-visible,
.c-gnav > .current-menu-item > a {
  background: #efe4cf !important;
  color: #0f2e27 !important;
}

.c-gnav > .kmc-nav-seller > a {
  background: linear-gradient(180deg, #d3ad66, #c39a51) !important;
  background-color: #c9a45f !important;
  border-color: #9e7631 !important;
  color: #0e1a16 !important;
  box-shadow: 0 8px 18px rgba(123,88,34,.18) !important;
}

.c-gnav > .kmc-nav-contact > a {
  background: linear-gradient(180deg, #12372f, #0d2923) !important;
  background-color: #12372f !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(18,55,47,.2) !important;
}

.home .kmc-wrap {
  background: var(--kmc-soft-ivory) !important;
}

.home .kmc-hero {
  min-height: 720px !important;
  background: #16392f !important;
}

.home .kmc-hero__img {
  opacity: 1 !important;
  filter: brightness(1.1) saturate(.98) contrast(.96) !important;
}

.home .kmc-hero:after {
  background:
    linear-gradient(90deg, rgba(9,27,23,.82) 0%, rgba(15,48,40,.66) 39%, rgba(238,226,204,.16) 72%, rgba(238,226,204,.2) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 42%, rgba(15,48,40,.16) 100%) !important;
}

.home .kmc-hero__inner {
  max-width: 1180px !important;
  padding-top: 112px !important;
  padding-bottom: 72px !important;
}

.home .kmc-eyebrow {
  background: rgba(244,239,227,.14) !important;
  border-color: rgba(248,236,209,.58) !important;
  color: #fff8ea !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.1) !important;
}

.home .kmc-title {
  max-width: 820px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.34) !important;
}

.home .kmc-lead {
  max-width: 660px !important;
  color: #fff7e8 !important;
  text-shadow: 0 1px 7px rgba(0,0,0,.42) !important;
}

.home .kmc-zero-banner {
  max-width: 790px !important;
  background: linear-gradient(135deg, rgba(216,183,110,.98), rgba(196,151,76,.98)) !important;
  background-color: #d1aa62 !important;
  border: 1px solid rgba(255,245,221,.42) !important;
  box-shadow: 0 20px 46px rgba(25,35,30,.2) !important;
}

.home .kmc-zero-banner em {
  background: #102f28 !important;
  color: #ffe8a8 !important;
}

.home .kmc-actions .kmc-btn,
.home .kmc-hero-contact a,
.home .kmc-hero-contact span {
  box-shadow: 0 12px 24px rgba(0,0,0,.14) !important;
}

.home .kmc-hero-contact a,
.home .kmc-hero-contact span,
.post_content .home .kmc-hero-contact a,
.post_content .home .kmc-hero-contact span {
  background: rgba(15,48,40,.58) !important;
  border-color: rgba(255,248,234,.72) !important;
  color: #ffffff !important;
}

.home .kmc-metric {
  background: rgba(244,239,227,.16) !important;
  border-color: rgba(248,236,209,.28) !important;
  box-shadow: 0 18px 36px rgba(0,0,0,.13) !important;
}

.home .kmc-fee-focus {
  background: linear-gradient(180deg, #e8dfcd 0%, #f4efe3 100%) !important;
}

.home .kmc-fee-card {
  background: #fffaf0 !important;
  border-color: #d8c9ab !important;
}

.home .kmc-fee-card--primary {
  background: linear-gradient(180deg, #12372f, #0f2f28) !important;
  background-color: #12372f !important;
  border-color: #12372f !important;
}

.home .kmc-section {
  background: transparent !important;
}

.home .kmc-band {
  background: #ebe2d1 !important;
}

.home .kmc-card,
.home .kmc-proof,
.home .kmc-doc-card,
.home .kmc-faq details {
  background: #fffaf0 !important;
  border-color: #d8c9ab !important;
  box-shadow: 0 14px 34px rgba(34, 45, 39, .08) !important;
}

.home .kmc-dual .kmc-card:first-child,
.home .kmc-local,
.home .kmc-final,
.home .kmc-consult-strip {
  background: linear-gradient(180deg, #12372f, #0d2923) !important;
  background-color: #12372f !important;
}

.l-footer {
  background: #102f28 !important;
  border-top-color: var(--kmc-trust-gold) !important;
}

.l-footer__inner {
  background:
    linear-gradient(135deg, rgba(255,248,234,.085) 0%, rgba(255,248,234,0) 42%),
    radial-gradient(circle at 80% 12%, rgba(201,164,95,.24), rgba(201,164,95,0) 30%),
    linear-gradient(180deg, #143d34 0%, #0e2c25 100%) !important;
  background-color: #12372f !important;
}

.l-footer__foot .l-container::before {
  background: linear-gradient(180deg, rgba(255,248,234,.12), rgba(255,248,234,.055)) !important;
  border-color: rgba(201,164,95,.46) !important;
}

.l-footer__nav a {
  background: rgba(255,248,234,.075) !important;
  border-color: rgba(255,248,234,.16) !important;
  color: #fff8ea !important;
}

.l-footer__nav a:hover,
.l-footer__nav a:focus-visible {
  background: rgba(255,248,234,.14) !important;
  border-color: rgba(201,164,95,.58) !important;
}

@media (max-width: 900px) {
  .home .kmc-hero {
    min-height: 650px !important;
  }

  .home .kmc-hero:after {
    background: linear-gradient(180deg, rgba(10,28,24,.82) 0%, rgba(13,41,35,.7) 54%, rgba(13,41,35,.52) 100%) !important;
  }

  .home .kmc-hero__inner {
    padding: 96px 16px 58px !important;
  }

  .home .kmc-title {
    font-size: clamp(2rem, 8.2vw, 2.7rem) !important;
    line-height: 1.28 !important;
    max-width: 100% !important;
  }

  .home .kmc-zero-banner {
    border-radius: 7px !important;
  }
}

@media (max-width: 520px) {
  .l-header__inner {
    min-height: 58px !important;
  }

  .home .kmc-hero {
    min-height: auto !important;
  }

  .home .kmc-hero__img img {
    object-position: 58% center !important;
  }

  .home .kmc-title,
  .home .kmc-lead,
  .home .kmc-zero-banner b,
  .home .kmc-zero-banner span,
  .home .kmc-metric,
  .home .kmc-metric b {
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
  }

  .home .kmc-title {
    font-size: 1.78rem !important;
    line-height: 1.34 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    letter-spacing: 0 !important;
  }

  .home .kmc-title__line {
    display: block !important;
  }

  .home .kmc-zero-banner {
    gap: 10px !important;
    padding: 18px 14px !important;
  }

  .home .kmc-zero-banner b {
    font-size: 1.12rem !important;
    line-height: 1.5 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .home .kmc-zero-banner span {
    font-size: .88rem !important;
    line-height: 1.72 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .home .kmc-metrics {
    gap: 12px !important;
  }

  .home .kmc-mobile-cta {
    background: rgba(14,44,37,.97) !important;
  }
}
/* End Kyoto M&A top visual refresh */

/* Kyoto M&A spacing cleanup - added by Codex */
.kmc-wrap.kmc-motion-ready .kmc-reveal,
.kmc-wrap.kmc-motion-ready .kmc-reveal.is-visible,
.kmc-reveal {
  opacity: 1 !important;
  transform: none !important;
}

.home .kmc-section {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.home .kmc-fee-focus {
  padding-bottom: 50px !important;
}

.home .kmc-section__head {
  margin-bottom: 26px !important;
}

.home .kmc-section__head h2,
.home .kmc-section h2 {
  margin-top: 0 !important;
}

.home .kmc-grid,
.home .kmc-proof-grid,
.home .kmc-doc-list {
  margin-top: 0 !important;
}

.home .kmc-wide-photo {
  margin-bottom: 22px !important;
}

.home .kmc-final .kmc-section {
  padding-top: 58px !important;
  padding-bottom: 64px !important;
}

#content.l-content:has(.kmc-subpage, .kmc-company, .kmc-contact, .kmc-form-wrap) {
  margin-bottom: 28px !important;
  display: block !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

#content.l-content:has(.kmc-subpage, .kmc-company, .kmc-contact, .kmc-form-wrap) #main_content.l-mainContent,
#content.l-content:has(.kmc-subpage, .kmc-company, .kmc-contact, .kmc-form-wrap) .l-mainContent__inner {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#content.l-content:has(.kmc-subpage, .kmc-company, .kmc-contact, .kmc-form-wrap) .post_content {
  margin-top: 44px !important;
}

.kmc-subpage,
.kmc-company,
.kmc-contact,
.kmc-form-wrap {
  padding-bottom: 22px !important;
}

.kmc-subpage__lead,
.kmc-company__lead,
.kmc-contact__lead,
.kmc-form-lead {
  margin: 0 0 24px !important;
}

.kmc-subpage__body {
  display: grid !important;
  gap: 24px !important;
}

.kmc-subpage__body section,
.kmc-legal .kmc-subpage__body section {
  margin: 0 !important;
}

.kmc-subpage__body h2,
.kmc-legal h2,
.kmc-contact-note h2,
.kmc-contact-mail h2,
.kmc-reply-box h2,
.kmc-company-card h2 {
  margin: 0 0 14px !important;
}

.kmc-subpage__body p,
.kmc-contact-note p,
.kmc-contact-mail p,
.kmc-reply-box p,
.kmc-company-card p {
  margin-top: 0 !important;
}

.kmc-subpage__cta {
  margin-top: 28px !important;
}

.kmc-contact-choice {
  margin: 28px 0 22px !important;
}

.kmc-contact-note {
  margin-top: 0 !important;
}

.kmc-contact-mail {
  margin-top: 18px !important;
  padding: 20px !important;
}

.kmc-form-note {
  margin: 18px 0 20px !important;
}

.kmc-form-panel,
.kmc-reply-box,
.kmc-contact-card,
.kmc-company-card {
  margin-bottom: 0 !important;
}

.kmc-reply-box {
  margin-top: 20px !important;
}

.kmc-form-back {
  margin-top: 14px !important;
}

.kmc-company__note {
  margin: 18px 0 22px !important;
}

.kmc-company-table {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

.kmc-company-card {
  margin-top: 20px !important;
}

@media (max-width: 900px) {
  .home .kmc-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .home .kmc-fee-focus {
    padding-bottom: 36px !important;
  }
}

@media (max-width: 520px) {
  .home .kmc-section {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  .home .kmc-section__head {
    margin-bottom: 20px !important;
  }

  .kmc-subpage,
  .kmc-company,
  .kmc-contact,
  .kmc-form-wrap {
    padding-bottom: 18px !important;
  }

  #content.l-content:has(.kmc-subpage, .kmc-company, .kmc-contact, .kmc-form-wrap) {
    margin-bottom: 28px !important;
  }

  #content.l-content:has(.kmc-subpage, .kmc-company, .kmc-contact, .kmc-form-wrap) .post_content {
    margin-top: 38px !important;
  }

  .kmc-subpage__lead,
  .kmc-company__lead,
  .kmc-contact__lead,
  .kmc-form-lead {
    margin-bottom: 20px !important;
  }

  .kmc-subpage__body {
    gap: 20px !important;
  }

  .kmc-contact-choice {
    margin: 22px 0 18px !important;
  }

  .kmc-contact-mail {
    margin-top: 16px !important;
  }
}
/* End Kyoto M&A spacing cleanup */

/* Kyoto M&A section organization - added by Codex */
.home .kmc-section,
.home .kmc-hero__inner,
.home .kmc-fee-panel {
  width: min(1160px, calc(100vw - 48px)) !important;
}

.home .kmc-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home .kmc-full > .kmc-section {
  width: min(1160px, calc(100vw - 48px)) !important;
}

.home .kmc-section__head {
  display: grid !important;
  gap: 12px !important;
  max-width: 840px !important;
}

.home .kmc-section__head h2,
.home .kmc-split h2,
.home .kmc-docs h2,
.home .kmc-consult-strip h2,
.home .kmc-faq > h2,
.home .kmc-final h2 {
  width: fit-content !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
}

.home .kmc-section__head p,
.home .kmc-split p,
.home .kmc-docs p,
.home .kmc-consult-strip p,
.home .kmc-final p {
  max-width: 760px !important;
  margin-top: 0 !important;
}

.home .kmc-grid,
.home .kmc-proof-grid,
.home .kmc-doc-list,
.home .kmc-local-grid,
.home .kmc-flow,
.home .kmc-dual {
  align-items: stretch !important;
}

.home .kmc-card,
.home .kmc-proof,
.home .kmc-doc-card,
.home .kmc-step,
.home .kmc-local-card,
.home .kmc-fee-card {
  height: 100% !important;
}

.home .kmc-card,
.home .kmc-proof,
.home .kmc-doc-card,
.home .kmc-step,
.home .kmc-fee-card {
  display: flex !important;
  flex-direction: column !important;
}

.home .kmc-card p,
.home .kmc-proof span,
.home .kmc-doc-card span,
.home .kmc-step p,
.home .kmc-fee-card p {
  margin-bottom: 0 !important;
}

.home .kmc-card .kmc-btn,
.home .kmc-mini-cta,
.home .kmc-actions {
  margin-top: auto !important;
}

.home .kmc-grid {
  gap: 20px !important;
}

.home .kmc-photo-grid,
.home .kmc-split,
.home .kmc-docs,
.home .kmc-consult-strip {
  gap: clamp(22px, 3vw, 42px) !important;
}

.home .kmc-photo-card,
.home .kmc-photo,
.home .kmc-wide-photo {
  border: 1px solid rgba(216,201,171,.76) !important;
}

.home .kmc-photo-card img {
  filter: brightness(1.05) saturate(1.02) !important;
}

.home .kmc-photo-card:after {
  background: linear-gradient(180deg, rgba(8,20,17,0) 48%, rgba(8,20,17,.62) 100%) !important;
}

.home .kmc-photo-card__text {
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  padding: 12px 14px !important;
  border-radius: 6px !important;
  background: rgba(8,20,17,.62) !important;
}

.home .kmc-proof-grid {
  gap: 16px !important;
}

.home .kmc-flow {
  gap: 14px !important;
}

.home .kmc-step {
  min-height: 168px !important;
}

.home .kmc-dual .kmc-card,
.home .kmc-consult-strip {
  padding: clamp(22px, 3vw, 32px) !important;
}

.home .kmc-faq details {
  margin: 10px 0 !important;
}

@media (max-width: 1180px) and (min-width: 960px) {
  .home .kmc-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home .kmc-step {
    min-height: 156px !important;
  }
}

@media (max-width: 959px) {
  .home .kmc-section,
  .home .kmc-hero__inner,
  .home .kmc-fee-panel,
  .home .kmc-full > .kmc-section {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .home .kmc-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home .kmc-section__head {
    max-width: 100% !important;
  }

  .home .kmc-photo-card__text {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }
}

@media (min-width: 700px) and (max-width: 959px) {
  .home .kmc-grid,
  .home .kmc-proof-grid,
  .home .kmc-doc-list,
  .home .kmc-local-grid,
  .home .kmc-dual,
  .home .kmc-fee-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home .kmc-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .home .kmc-fee-visual,
  .home .kmc-consult-strip {
    grid-column: 1 / -1 !important;
  }

  .home .kmc-split,
  .home .kmc-docs {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
  }

  .home .kmc-step {
    min-height: 150px !important;
  }
}

@media (max-width: 699px) {
  .home .kmc-grid,
  .home .kmc-proof-grid,
  .home .kmc-doc-list,
  .home .kmc-local-grid,
  .home .kmc-flow,
  .home .kmc-dual,
  .home .kmc-fee-panel {
    grid-template-columns: 1fr !important;
  }

  .home .kmc-split,
  .home .kmc-docs,
  .home .kmc-consult-strip,
  .home .kmc-photo-grid {
    grid-template-columns: 1fr !important;
  }

  .home .kmc-section__head h2,
  .home .kmc-split h2,
  .home .kmc-docs h2,
  .home .kmc-consult-strip h2,
  .home .kmc-faq > h2,
  .home .kmc-final h2 {
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  .home .kmc-section,
  .home .kmc-hero__inner,
  .home .kmc-fee-panel,
  .home .kmc-full > .kmc-section {
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .home .kmc-card,
  .home .kmc-proof,
  .home .kmc-doc-card,
  .home .kmc-step,
  .home .kmc-fee-card,
  .home .kmc-local-card {
    padding: 18px !important;
  }

  .home .kmc-photo-card,
  .home .kmc-photo-side .kmc-photo-card {
    min-height: 220px !important;
  }

  .home .kmc-mobile-cta {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
    display: grid !important;
    width: min(100%, calc(100vw - 28px)) !important;
    margin: 24px auto 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(198,161,91,.52) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 26px rgba(16,35,30,.16) !important;
  }

  .home .kmc-mobile-cta a {
    min-height: 54px !important;
    padding: 10px 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    line-break: strict !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: pretty !important;
    text-align: center !important;
  }

  .home .kmc-wrap {
    padding-bottom: 0 !important;
  }
}
/* End Kyoto M&A section organization */

/* Kyoto M&A typography balance - added by Codex */
body,
.post_content,
.kmc-wrap,
.kmc-contact,
.kmc-company,
.kmc-form-wrap,
.kmc-subpage {
  letter-spacing: 0 !important;
  text-rendering: optimizeLegibility !important;
}

.post_content p,
.post_content li,
.kmc-wrap p,
.kmc-wrap li,
.kmc-contact p,
.kmc-contact li,
.kmc-company p,
.kmc-company li,
.kmc-form-wrap p,
.kmc-form-wrap li,
.kmc-subpage p,
.kmc-subpage li {
  font-size: 16px !important;
  line-height: 1.82 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.c-pageTitle,
.c-postTitle,
.post_content h1 {
  font-size: 30px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.post_content h2,
.kmc-subpage__body h2,
.kmc-contact-card h2,
.kmc-contact-note h2,
.kmc-contact-mail h2,
.kmc-reply-box h2,
.kmc-company-card h2 {
  font-size: 24px !important;
  line-height: 1.48 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.post_content h3,
.kmc-card h3,
.kmc-doc-card b,
.kmc-proof b,
.kmc-local-card b {
  font-size: 18px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.home .kmc-title,
.post_content .home .kmc-title {
  font-size: 38px !important;
  line-height: 1.34 !important;
  font-weight: 800 !important;
}

.home .kmc-title__line,
.post_content .home .kmc-title__line {
  display: inline-block !important;
}

.home .kmc-title__line + .kmc-title__line,
.post_content .home .kmc-title__line + .kmc-title__line {
  margin-left: .16em !important;
}

.home .kmc-lead,
.post_content .home .kmc-lead {
  font-size: 17px !important;
  line-height: 1.78 !important;
  font-weight: 600 !important;
}

.home .kmc-section h2,
.post_content .home .kmc-section h2,
.home .kmc-docs h2,
.home .kmc-consult-strip h2,
.home .kmc-faq > h2,
.home .kmc-final h2 {
  font-size: 30px !important;
  line-height: 1.46 !important;
  font-weight: 700 !important;
}

.home .kmc-section__head p,
.home .kmc-card p,
.home .kmc-proof span,
.home .kmc-doc-card span,
.home .kmc-step p,
.home .kmc-local-card span,
.home .kmc-consult-strip p,
.home .kmc-final p {
  font-size: 15.5px !important;
  line-height: 1.82 !important;
  font-weight: 500 !important;
}

.home .kmc-card h3,
.home .kmc-proof b,
.home .kmc-doc-card b,
.home .kmc-local-card b {
  font-size: 17px !important;
  line-height: 1.48 !important;
  font-weight: 700 !important;
}

.home .kmc-zero-banner b,
.post_content .home .kmc-zero-banner b {
  font-size: 25px !important;
  line-height: 1.44 !important;
  font-weight: 700 !important;
}

.home .kmc-zero-banner span,
.post_content .home .kmc-zero-banner span {
  font-size: 15px !important;
  line-height: 1.72 !important;
  font-weight: 700 !important;
}

.home .kmc-zero-banner b .kmc-fee-line,
.post_content .home .kmc-zero-banner b .kmc-fee-line {
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  white-space: nowrap !important;
}

.kmc-wrap .kmc-btn,
.kmc-mini-cta a,
.kmc-mobile-cta a,
.kmc-contact-card a,
.kmc-form-submit,
.kmc-form-panel .wpcf7-submit,
.l-footer__nav a,
.c-gnav > .menu-item > a {
  line-height: 1.45 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.kmc-form-lead,
.kmc-contact__lead,
.kmc-company__lead,
.kmc-subpage__lead {
  font-size: 16px !important;
  line-height: 1.86 !important;
  font-weight: 500 !important;
}

.kmc-form-note,
.kmc-contact-note,
.kmc-contact-mail,
.kmc-reply-box,
.kmc-company__note {
  font-size: 15.5px !important;
  line-height: 1.84 !important;
  font-weight: 500 !important;
}

.kmc-field-head,
.kmc-form-field {
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

.kmc-form-field input,
.kmc-form-field select,
.kmc-form-field textarea {
  font-size: 16px !important;
  line-height: 1.58 !important;
  font-weight: 500 !important;
}

.kmc-form-field input::placeholder,
.kmc-form-field textarea::placeholder {
  color: #607069 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.kmc-required,
.kmc-optional,
.kmc-form-ease span {
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.kmc-form-accept {
  font-size: 14.2px !important;
  line-height: 1.78 !important;
  font-weight: 600 !important;
}

.kmc-form-accept .kmc-accept-line {
  display: block !important;
}

.kmc-form-accept .kmc-accept-mobile-line {
  display: inline !important;
}

.l-footer__foot .l-container::before {
  font-size: 15px !important;
  line-height: 1.78 !important;
  font-weight: 700 !important;
}

.l-footer__foot .l-container::after,
.l-footer .copyright {
  font-size: 12px !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}

@media (max-width: 959px) {
  .c-pageTitle,
  .c-postTitle,
  .post_content h1 {
    font-size: 22px !important;
    line-height: 1.45 !important;
  }

  .post_content h2,
  .kmc-subpage__body h2,
  .kmc-contact-card h2,
  .kmc-contact-note h2,
  .kmc-contact-mail h2,
  .kmc-reply-box h2,
  .kmc-company-card h2 {
    font-size: 20px !important;
    line-height: 1.48 !important;
  }

  .post_content h3,
  .kmc-card h3,
  .kmc-doc-card b,
  .kmc-proof b,
  .kmc-local-card b {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .post_content p,
  .post_content li,
  .kmc-wrap p,
  .kmc-wrap li,
  .kmc-contact p,
  .kmc-contact li,
  .kmc-company p,
  .kmc-company li,
  .kmc-form-wrap p,
  .kmc-form-wrap li,
  .kmc-subpage p,
  .kmc-subpage li {
    font-size: 15.5px !important;
    line-height: 1.84 !important;
  }

  .home .kmc-title,
  .post_content .home .kmc-title {
    font-size: 32px !important;
    line-height: 1.34 !important;
  }

  .home .kmc-section h2,
  .post_content .home .kmc-section h2,
  .home .kmc-docs h2,
  .home .kmc-consult-strip h2,
  .home .kmc-faq > h2,
  .home .kmc-final h2 {
    font-size: 24px !important;
    line-height: 1.48 !important;
  }
}

@media (max-width: 520px) {
  .c-pageTitle,
  .c-postTitle,
  .post_content h1 {
    font-size: 18.5px !important;
    line-height: 1.48 !important;
  }

  .post_content h2,
  .kmc-subpage__body h2,
  .kmc-contact-card h2,
  .kmc-contact-note h2,
  .kmc-contact-mail h2,
  .kmc-reply-box h2,
  .kmc-company-card h2 {
    font-size: 18.5px !important;
    line-height: 1.5 !important;
  }

  .post_content p,
  .post_content li,
  .kmc-wrap p,
  .kmc-wrap li,
  .kmc-contact p,
  .kmc-contact li,
  .kmc-company p,
  .kmc-company li,
  .kmc-form-wrap p,
  .kmc-form-wrap li,
  .kmc-subpage p,
  .kmc-subpage li {
    font-size: 15.2px !important;
    line-height: 1.86 !important;
  }

  .home .kmc-title,
  .post_content .home .kmc-title {
    font-size: 25.5px !important;
    line-height: 1.36 !important;
  }

  .home .kmc-title__line,
  .post_content .home .kmc-title__line {
    display: block !important;
    margin-left: 0 !important;
  }

  .home .kmc-lead,
  .post_content .home .kmc-lead {
    font-size: 14.6px !important;
    line-height: 1.82 !important;
    font-weight: 600 !important;
  }

  .home .kmc-section h2,
  .post_content .home .kmc-section h2,
  .home .kmc-docs h2,
  .home .kmc-consult-strip h2,
  .home .kmc-faq > h2,
  .home .kmc-final h2 {
    font-size: 21.5px !important;
    line-height: 1.5 !important;
  }

  .home .kmc-zero-banner b,
  .post_content .home .kmc-zero-banner b {
    font-size: 16px !important;
    line-height: 1.52 !important;
  }

  .home .kmc-zero-banner span,
  .post_content .home .kmc-zero-banner span {
    font-size: 13.2px !important;
    line-height: 1.75 !important;
    font-weight: 700 !important;
  }

  .home .kmc-zero-banner b .kmc-fee-line,
  .post_content .home .kmc-zero-banner b .kmc-fee-line {
    display: block !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
  }

  .kmc-form-lead,
  .kmc-contact__lead,
  .kmc-company__lead,
  .kmc-subpage__lead,
  .kmc-form-note,
  .kmc-contact-note,
  .kmc-contact-mail,
  .kmc-reply-box,
  .kmc-company__note {
    font-size: 14.7px !important;
    line-height: 1.86 !important;
  }

  .kmc-field-head,
  .kmc-form-field {
    font-size: 14.6px !important;
  }

  .kmc-form-field input,
  .kmc-form-field select,
  .kmc-form-field textarea {
    font-size: 15.5px !important;
    line-height: 1.58 !important;
  }

  .kmc-form-accept {
    font-size: 13.5px !important;
    line-height: 1.78 !important;
  }

  .kmc-form-accept .kmc-accept-mobile-line {
    display: block !important;
  }

  .kmc-wrap .kmc-btn,
  .kmc-mini-cta a,
  .kmc-mobile-cta a,
  .kmc-contact-card a,
  .kmc-form-submit,
  .kmc-form-panel .wpcf7-submit {
    font-size: 14.6px !important;
    line-height: 1.45 !important;
  }

  .l-footer__nav a {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }

  .l-footer__foot .l-container::before {
    font-size: 13.5px !important;
    line-height: 1.78 !important;
  }
}
/* End Kyoto M&A typography balance */

/* Codex Kyoto full-width alignment 2026-07-04. */
@media (min-width: 961px) {
  #body_wrap .post_content > :where(.kmc-kyo26, .kmc-sub26, .kmc-buy26) {
    margin-left: -16px !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 960px) {
  #body_wrap .post_content .kmc-kyo26__mobile a:nth-child(2) {
    background: #2b5360 !important;
    color: #fff !important;
  }

  #body_wrap .post_content :where(.kmc-sub26__mobile, .kmc-buy26__mobile) a {
    color: #fff !important;
  }
}


/* Codex Kyoto readability guard 2026-08-13 */
#body_wrap .post_content .kmc-kyo27__process-summary h2,
#body_wrap .post_content #flow .kmc-kyo27__process-copy > h2,
#body_wrap .post_content .kmc-reply-box > h2,
#body_wrap .post_content .kmc-contact-note > h2,
#body_wrap .post_content .kmc-contact-mail > h2 {
  color: #fffaf2 !important;
}

#body_wrap .post_content .kmc-sub26__btn--gold,
#body_wrap .post_content .kmc-buy26__btn--gold,
#body_wrap .post_content .kmc-sub26__mobile > a:last-child,
#body_wrap .post_content .kmc-buy26__mobile > a:last-child {
  background: #82591a !important;
  background-image: none !important;
  color: #ffffff !important;
}

#body_wrap .kmc-footer-trust__button--gold {
  background: #765016 !important;
  background-image: none !important;
  color: #ffffff !important;
}

#body_wrap .post_content .kmc-section-title small,
#body_wrap .post_content .kmc-form-optional summary small {
  color: #46564e !important;
}

#body_wrap .post_content .kmc-sub26__mini-card > span {
  color: #795015 !important;
}

#body_wrap .post_content .kmc-kyo27__actions > br {
  display: none !important;
}

@media (min-width: 961px) and (max-width: 1120px) {
  #body_wrap .l-header__bar .c-catchphrase {
    display: none !important;
  }

  #body_wrap .l-header__bar .l-header__barInner {
    justify-content: flex-end !important;
  }
}

@media (max-width: 520px) {
  body.page .c-pageTitle,
  body.page-id-12 #body_wrap .post_content .kmc-kyo27__hero h1 {
    font-size: clamp(21px, 6.2vw, 24px) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }

  body.page #body_wrap .post_content h2 {
    font-size: 20px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }

  #body_wrap .post_content .kmc-form-wrap .kmc-form-field > small,
  #body_wrap .post_content .kmc-form-wrap .kmc-form-actions small,
  #body_wrap .post_content .kmc-form-wrap .kmc-section-title small,
  #body_wrap .post_content .kmc-form-wrap .kmc-form-optional summary small {
    font-size: 12px !important;
    line-height: 1.65 !important;
  }
}
/* End Codex Kyoto readability guard */


/* Narrow-screen text containment and mobile safe area */
#body_wrap .post_content .kmc-kyo27__visual-card,
#body_wrap .post_content .kmc-kyo27__value-photo {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

#body_wrap .post_content .kmc-kyo27__visual-card figcaption,
#body_wrap .post_content .kmc-kyo27__value-photo figcaption {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

#body_wrap .p-spMenu__nav .kmc-nav-seller > a,
#body_wrap footer .kmc-footer-seller > a,
#body_wrap footer .kmc-footer-cta > a {
  background: #765016 !important;
  background-image: none !important;
  color: #ffffff !important;
}

@media (max-width: 520px) {
  #body_wrap .post_content .kmc-kyo27__layers span,
  #body_wrap .post_content .kmc-buy26__chip > span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  #body_wrap .post_content :where(.kmc-sub26__mobile, .kmc-buy26__mobile) {
    box-sizing: border-box !important;
    min-height: calc(55px + env(safe-area-inset-bottom)) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}
/* End narrow-screen text containment */


/* Correct SWELL wrapper-scoped page selectors */
@media (max-width: 520px) {
  #body_wrap.page .c-pageTitle,
  #body_wrap.page-id-12 .post_content .kmc-kyo27__hero h1 {
    font-size: clamp(21px, 6.2vw, 24px) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }

  #body_wrap.page .post_content h2 {
    font-size: 20px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }
}
/* End corrected SWELL wrapper-scoped page selectors */


@media (max-width: 520px) {
  #body_wrap.page .post_content h1 {
    font-size: clamp(21px, 6.2vw, 24px) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }
}


/* Keep primary hero copy visible on short desktop screens */
@media (min-width: 961px) {
  #body_wrap .post_content .kmc-kyo27__hero-body {
    align-self: start !important;
  }
}
/* End short-desktop hero alignment */


/* Standard content H2 contrast */
#body_wrap .post_content > h2,
#body_wrap .post_content .kmc-subpage__body h2 {
  color: #fffaf2 !important;
}
/* End standard content H2 contrast */


/* Remaining dark heading contrast */
#body_wrap .post_content .kmc-company-card h2,
#body_wrap .post_content .kmc-seo-links h2 {
  color: #fffaf2 !important;
}
/* End remaining dark heading contrast */

/* Buyer form 320px action containment */
.page-id-150 .kmc-form-actions{min-width:0!important;max-width:100%!important}
.page-id-150 .kmc-form-actions>p{width:100%!important;min-width:0!important;max-width:100%!important}
.page-id-150 .kmc-form-actions .kmc-form-submit{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
/* End buyer form 320px action containment */

/* Buyer form 320px action containment v2 */
#body_wrap.page-id-150 .kmc-form-actions{min-width:0!important;max-width:100%!important}
#body_wrap.page-id-150 .kmc-form-actions>p{width:100%!important;min-width:0!important;max-width:100%!important}
#body_wrap.page-id-150 .kmc-form-actions .kmc-form-submit{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
/* End buyer form 320px action containment v2 */

/* Public comment form mobile touch sizing */
@media(max-width:640px){
#commentform input:not([type=checkbox]):not([type=radio]),#commentform textarea,#commentform select{font-size:16px!important}
#commentform #submit{min-height:44px!important;font-size:16px!important;padding:10px 18px!important}
}
/* End public comment form mobile touch sizing */

/* Japanese phrase-aware wrapping */
#body_wrap {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
#body_wrap :where(h1,h2,h3,h4,h5,h6) {
  word-break: auto-phrase !important;
  line-break: strict !important;
  text-wrap: balance;
}
#body_wrap :where(p,li,dt,dd,summary,figcaption,label,button,.button,a[class*="btn"],a[class*="button"],input[type="submit"]) {
  word-break: auto-phrase !important;
  line-break: strict !important;
}
#body_wrap :where(p,li,dt,dd,summary,figcaption,label) {
  text-wrap: pretty;
}
/* End Japanese phrase-aware wrapping */

/* Meaning-unit no-wrap */
.kmc-nowrap { white-space: nowrap !important; }
/* End meaning-unit no-wrap */

/* Kyoto typography balance v1 */
#body_wrap .post_content {
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
#body_wrap .post_content :where(h1,h2,h3) {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 800 !important;
  letter-spacing: .005em;
}
#body_wrap .c-pageTitle {
  font-size: 32px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  letter-spacing: .005em !important;
}

/* Standard company, policy, contact and form pages */
#body_wrap .kmc-subpage,
#body_wrap .kmc-company {
  width: min(100%, 920px);
  margin-inline: auto;
}
#body_wrap .kmc-subpage__lead,
#body_wrap .kmc-company__lead,
#body_wrap .kmc-contact__lead,
#body_wrap .kmc-form-lead {
  max-width: 52rem;
  font-size: 17px !important;
  line-height: 1.85 !important;
  font-weight: 500 !important;
}
#body_wrap :where(.kmc-subpage,.kmc-company,.kmc-contact,.kmc-form-wrap) h2 {
  font-size: 26px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}
#body_wrap :where(.kmc-subpage,.kmc-company,.kmc-contact,.kmc-form-wrap) h3 {
  font-size: 19px !important;
  line-height: 1.55 !important;
  font-weight: 800 !important;
}
#body_wrap .kmc-form-wrap .kmc-section-title b,
#body_wrap .kmc-form-wrap .kmc-field-head {
  font-size: 15.5px !important;
  line-height: 1.55 !important;
}
#body_wrap .kmc-form-wrap :where(.kmc-section-title small,.kmc-form-field small,.kmc-form-actions small,.kmc-form-optional summary small) {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}
#body_wrap .kmc-form-wrap :where(.kmc-form-example,.kmc-consent-hint) {
  font-size: 14px !important;
  line-height: 1.7 !important;
}
#body_wrap .kmc-form-wrap :where(.kmc-form-accept,.wpcf7-list-item-label) {
  font-size: 15px !important;
  line-height: 1.7 !important;
}
#body_wrap .kmc-form-wrap :where(.kmc-form-submit,.wpcf7-submit) {
  font-size: 16px !important;
  line-height: 1.45 !important;
  min-height: 56px !important;
}

/* Long-form articles */
#body_wrap.single-post .c-postTitle__ttl {
  font-size: clamp(32px, 2.7vw, 38px) !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  letter-spacing: .002em !important;
}
#body_wrap.single-post .post_content > h2 {
  font-size: 27px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}
#body_wrap.single-post .post_content > h3 {
  max-width: 50rem;
  margin-inline: auto;
  font-size: 20px !important;
  line-height: 1.58 !important;
  font-weight: 800 !important;
}
#body_wrap.single-post .post_content > :where(p,ul,ol,blockquote) {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 16.5px !important;
  line-height: 1.92 !important;
}
#body_wrap.single-post .post_content .p-postList__title {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  font-weight: 750 !important;
}

/* Home page hierarchy */
#body_wrap.page-id-12 .kmc-kyo27__hero h1 {
  font-size: 42px !important;
  line-height: 1.32 !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}
#body_wrap.page-id-12 .kmc-kyo27__lead {
  font-size: 17px !important;
  line-height: 1.82 !important;
  font-weight: 600 !important;
}
#body_wrap.page-id-12 .kmc-kyo27__hero-card-kicker {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
}
#body_wrap.page-id-12 .kmc-kyo27__hero-card-title {
  margin-top: 5px !important;
  font-size: 21px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
}
#body_wrap.page-id-12 .kmc-kyo27__proof b {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
#body_wrap.page-id-12 .kmc-kyo27__proof span {
  font-size: 13px !important;
  line-height: 1.72 !important;
}
#body_wrap.page-id-12 :where(.kmc-kyo27__section-head h2,.kmc-kyo27__process-summary h2,.kmc-kyo27__final h2) {
  font-size: 30px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
}
#body_wrap.page-id-12 .kmc-kyo27 h3 {
  font-size: 19px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}
#body_wrap.page-id-12 :where(.kmc-kyo27__solve-card p,.kmc-kyo27__step p,.kmc-kyo27__area-card p) {
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
}
#body_wrap.page-id-12 .kmc-kyo27__field p,
#body_wrap.page-id-12 .kmc-kyo27__knowledge-body p {
  font-size: 14px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
}
#body_wrap.page-id-12 .kmc-kyo27__btn {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

/* Seller and buyer landing pages */
#body_wrap.page-id-31 .kmc-sub26__hero h1,
#body_wrap.page-id-32 .kmc-buy26__hero h1 {
  font-size: 36px !important;
  line-height: 1.38 !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
}
#body_wrap.page-id-31 .kmc-sub26__lead,
#body_wrap.page-id-32 .kmc-buy26__lead {
  font-size: 17px !important;
  line-height: 1.82 !important;
  font-weight: 600 !important;
}
#body_wrap.page-id-31 .kmc-sub26 h2,
#body_wrap.page-id-32 .kmc-buy26 h2 {
  font-size: 28px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}
#body_wrap.page-id-31 .kmc-sub26 h3,
#body_wrap.page-id-32 .kmc-buy26 h3 {
  font-size: 19px !important;
  line-height: 1.5 !important;
  font-weight: 800 !important;
}
#body_wrap.page-id-31 :where(.kmc-sub26__card p,.kmc-sub26__step p,.kmc-sub26__mini-card p),
#body_wrap.page-id-32 :where(.kmc-buy26__card p,.kmc-buy26__step p) {
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  font-weight: 500 !important;
}
#body_wrap.page-id-31 .kmc-sub26__mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
#body_wrap :where(.kmc-sub26__btn,.kmc-buy26__btn,.kmc-sub26__mobile a,.kmc-buy26__mobile a) {
  font-size: 15px !important;
  line-height: 1.45 !important;
}
#body_wrap :where(.kmc-sub26__visual figcaption,.kmc-buy26__visual figcaption) {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

/* Footer density and legibility */
@media (min-width: 1100px) {
  #body_wrap .kmc-footer-trust {
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) minmax(235px, 250px) !important;
  }
  #body_wrap .kmc-footer-trust__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #body_wrap .kmc-footer-trust__logo {
    width: min(100%, 260px) !important;
  }
}
#body_wrap .kmc-footer-trust__lead {
  font-size: 15.5px !important;
  line-height: 1.75 !important;
}
#body_wrap .kmc-footer-trust__meta {
  font-size: 13px !important;
  line-height: 1.7 !important;
}
#body_wrap .kmc-footer-trust__fact b {
  font-size: 16.5px !important;
  line-height: 1.48 !important;
}
#body_wrap .kmc-footer-trust__fact span {
  font-size: 13px !important;
  line-height: 1.72 !important;
}
#body_wrap .kmc-footer-trust__actions p,
#body_wrap .kmc-footer-trust__button,
#body_wrap footer .l-footer__nav a {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}
#body_wrap footer .kmc-footer-legal a {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

/* Tablet layout and hierarchy */
@media (min-width: 601px) and (max-width: 820px) {
  #body_wrap.page-id-12 .kmc-kyo27__solve-layout,
  #body_wrap.page-id-12 .kmc-kyo27__value-layout,
  #body_wrap.page-id-12 .kmc-kyo27__process-grid {
    grid-template-columns: 1fr !important;
  }
  #body_wrap.page-id-12 .kmc-kyo27__solve-grid,
  #body_wrap.page-id-12 .kmc-kyo27__field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 960px) {
  #body_wrap .c-pageTitle {
    font-size: 28px !important;
  }
  #body_wrap.single-post .c-postTitle__ttl {
    font-size: 29px !important;
    line-height: 1.48 !important;
  }
  #body_wrap.single-post .post_content > h2 {
    font-size: 24px !important;
  }
  #body_wrap.page-id-12 .kmc-kyo27__hero h1 {
    font-size: 32px !important;
    line-height: 1.4 !important;
  }
  #body_wrap.page-id-12 :where(.kmc-kyo27__section-head h2,.kmc-kyo27__process-summary h2,.kmc-kyo27__final h2) {
    font-size: 25px !important;
  }
  #body_wrap.page-id-31 .kmc-sub26__hero h1,
  #body_wrap.page-id-32 .kmc-buy26__hero h1 {
    font-size: 30px !important;
  }
  #body_wrap.page-id-31 .kmc-sub26 h2,
  #body_wrap.page-id-32 .kmc-buy26 h2 {
    font-size: 24px !important;
  }
}

/* Mobile reading scale */
@media (max-width: 600px) {
  #body_wrap .c-pageTitle {
    font-size: 24px !important;
    line-height: 1.5 !important;
  }
  #body_wrap.page-id-149 .c-pageTitle__inner::after {
    font-size: 24px !important;
    line-height: 1.5 !important;
  }
  #body_wrap :where(.kmc-subpage,.kmc-company,.kmc-contact,.kmc-form-wrap) h2 {
    font-size: 21px !important;
    line-height: 1.55 !important;
  }
  #body_wrap :where(.kmc-subpage,.kmc-company,.kmc-contact,.kmc-form-wrap) h3 {
    font-size: 18px !important;
    line-height: 1.58 !important;
  }
  #body_wrap .kmc-subpage__lead,
  #body_wrap .kmc-company__lead,
  #body_wrap .kmc-contact__lead,
  #body_wrap .kmc-form-lead {
    font-size: 16px !important;
    line-height: 1.85 !important;
  }
  #body_wrap.single-post .c-postTitle__ttl {
    font-size: 24px !important;
    line-height: 1.5 !important;
  }
  #body_wrap.single-post .post_content > h2 {
    font-size: 21px !important;
    line-height: 1.55 !important;
  }
  #body_wrap.single-post .post_content > h3 {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }
  #body_wrap.single-post .post_content > :where(p,ul,ol,blockquote) {
    font-size: 16px !important;
    line-height: 1.85 !important;
  }
  #body_wrap.single-post .post_content .p-postList__title {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
  #body_wrap.page-id-12 .kmc-kyo27__hero h1 {
    font-size: 28px !important;
    line-height: 1.42 !important;
  }
  #body_wrap.page-id-12 .kmc-kyo27__lead {
    font-size: 16px !important;
    line-height: 1.85 !important;
  }
  #body_wrap.page-id-12 :where(.kmc-kyo27__section-head h2,.kmc-kyo27__process-summary h2,.kmc-kyo27__final h2) {
    font-size: 23px !important;
    line-height: 1.52 !important;
  }
  #body_wrap.page-id-12 .kmc-kyo27 h3 {
    font-size: 18px !important;
  }
  #body_wrap.page-id-12 :where(.kmc-kyo27__solve-card p,.kmc-kyo27__step p,.kmc-kyo27__area-card p) {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
  #body_wrap.page-id-12 .kmc-kyo27__field p,
  #body_wrap.page-id-12 .kmc-kyo27__knowledge-body p {
    font-size: 13.5px !important;
    line-height: 1.72 !important;
  }
  #body_wrap.page-id-31 .kmc-sub26__hero h1,
  #body_wrap.page-id-32 .kmc-buy26__hero h1 {
    font-size: 28px !important;
    line-height: 1.42 !important;
  }
  #body_wrap.page-id-31 .kmc-sub26__lead,
  #body_wrap.page-id-32 .kmc-buy26__lead {
    font-size: 16px !important;
    line-height: 1.85 !important;
  }
  #body_wrap.page-id-31 .kmc-sub26 h2,
  #body_wrap.page-id-32 .kmc-buy26 h2 {
    font-size: 23px !important;
    line-height: 1.55 !important;
  }
  #body_wrap.page-id-31 .kmc-sub26 h3,
  #body_wrap.page-id-32 .kmc-buy26 h3 {
    font-size: 18px !important;
  }
  #body_wrap.page-id-31 :where(.kmc-sub26__card p,.kmc-sub26__step p,.kmc-sub26__mini-card p),
  #body_wrap.page-id-32 :where(.kmc-buy26__card p,.kmc-buy26__step p) {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }
  #body_wrap.page-id-31 .kmc-sub26__mini-grid {
    grid-template-columns: 1fr !important;
  }
  #body_wrap :where(.kmc-sub26__btn,.kmc-buy26__btn,.kmc-sub26__mobile a,.kmc-buy26__mobile a) {
    font-size: 15px !important;
  }
  #body_wrap :where(.kmc-sub26__visual figcaption,.kmc-buy26__visual figcaption) {
    font-size: 13px !important;
    line-height: 1.65 !important;
  }
  #body_wrap .kmc-company-table :where(th,td) {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    word-break: auto-phrase !important;
    overflow-wrap: break-word !important;
  }
}
/* End Kyoto typography balance v1 */

/* Typography specificity guard */
@media (min-width: 961px) {
  #body_wrap.page-id-12 .post_content .kmc-kyo27 .kmc-kyo27__hero h1 { font-size: 42px !important; line-height: 1.32 !important; }
  #body_wrap.page-id-31 .post_content .kmc-sub26 .kmc-sub26__hero h1,
  #body_wrap.page-id-32 .post_content .kmc-buy26 .kmc-buy26__hero h1 { font-size: 36px !important; line-height: 1.38 !important; }
}
@media (min-width: 601px) and (max-width: 960px) {
  #body_wrap.page-id-12 .post_content .kmc-kyo27 .kmc-kyo27__hero h1 { font-size: 32px !important; line-height: 1.4 !important; }
  #body_wrap.page-id-31 .post_content .kmc-sub26 .kmc-sub26__hero h1,
  #body_wrap.page-id-32 .post_content .kmc-buy26 .kmc-buy26__hero h1 { font-size: 30px !important; line-height: 1.42 !important; }
}
@media (max-width: 600px) {
  #body_wrap .post_content h1.c-postTitle__ttl,
  #body_wrap.single-post .c-postTitle__ttl { font-size: 24px !important; line-height: 1.5 !important; }
  #body_wrap .post_content .c-pageTitle,
  #body_wrap .c-pageTitle { font-size: 24px !important; line-height: 1.5 !important; }
  #body_wrap.page-id-12 .post_content .kmc-kyo27 .kmc-kyo27__hero h1 { font-size: 28px !important; line-height: 1.42 !important; }
  #body_wrap.page-id-31 .post_content .kmc-sub26 .kmc-sub26__hero h1,
  #body_wrap.page-id-32 .post_content .kmc-buy26 .kmc-buy26__hero h1 { font-size: 28px !important; line-height: 1.42 !important; }
}
/* End typography specificity guard */

/* Heading scale guard */
@media (min-width: 961px) {
 #body_wrap.page-id-12 .post_content .kmc-kyo27 :where(.kmc-kyo27__section-head h2,.kmc-kyo27__process-summary h2,.kmc-kyo27__final h2) { font-size: 30px !important; line-height: 1.45 !important; }
 #body_wrap.page-id-31 .post_content .kmc-sub26 h2,#body_wrap.page-id-32 .post_content .kmc-buy26 h2 { font-size: 28px !important; line-height: 1.5 !important; }
}
@media (min-width: 601px) and (max-width: 960px) {
 #body_wrap.page-id-12 .post_content .kmc-kyo27 :where(.kmc-kyo27__section-head h2,.kmc-kyo27__process-summary h2,.kmc-kyo27__final h2) { font-size: 25px !important; line-height: 1.5 !important; }
 #body_wrap.page-id-31 .post_content .kmc-sub26 h2,#body_wrap.page-id-32 .post_content .kmc-buy26 h2 { font-size: 24px !important; line-height: 1.52 !important; }
}
@media (max-width: 600px) {
 #body_wrap.page-id-12 .post_content .kmc-kyo27 :where(.kmc-kyo27__section-head h2,.kmc-kyo27__process-summary h2,.kmc-kyo27__final h2) { font-size: 23px !important; line-height: 1.52 !important; }
 #body_wrap.page-id-31 .post_content .kmc-sub26 h2,#body_wrap.page-id-32 .post_content .kmc-buy26 h2 { font-size: 23px !important; line-height: 1.55 !important; }
 #body_wrap.single-post .post_content > h2 { font-size: 21px !important; line-height: 1.55 !important; }
 #body_wrap.single-post .post_content > h3 { font-size: 18px !important; line-height: 1.6 !important; }
}
/* End heading scale guard */

/* Mobile typography density refinements */
#body_wrap.single-post .post_content .p-postList__title {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
}
@media (max-width: 430px) {
  #body_wrap.single-post .post_content .p-postList__title {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
  #body_wrap .kmc-company h2 {
    word-break: auto-phrase !important;
    overflow-wrap: normal !important;
    text-wrap: balance !important;
  }
  #body_wrap .kmc-company-table :where(th,td) {
    font-size: 14px !important;
    line-height: 1.7 !important;
    word-break: auto-phrase !important;
    overflow-wrap: break-word !important;
  }
  #body_wrap:is(.page-id-149,.page-id-150) .kmc-section-title > p {
    display: grid !important;
    grid-template-columns: 30px minmax(0,1fr) !important;
    column-gap: 10px !important;
    row-gap: 4px !important;
    align-items: center !important;
    margin: 0 !important;
  }
  #body_wrap:is(.page-id-149,.page-id-150) .kmc-section-title > p > span { grid-column: 1; grid-row: 1; }
  #body_wrap:is(.page-id-149,.page-id-150) .kmc-section-title > p > b { grid-column: 2; grid-row: 1; }
  #body_wrap:is(.page-id-149,.page-id-150) .kmc-section-title > p > small {
    grid-column: 2; grid-row: 2; margin: 0 !important;
  }
}
@media (max-width: 340px) {
  #body_wrap.page-id-12 .kmc-kyo27__field-grid {
    grid-template-columns: 1fr !important;
  }
  #body_wrap.page-id-31 :where(.kmc-sub26__btn,.kmc-sub26__mobile a),
  #body_wrap.page-id-32 :where(.kmc-buy26__btn,.kmc-buy26__mobile a) {
    padding-inline: 12px !important;
  }
}
/* End mobile typography density refinements */

/* Article bottom readability */
#body_wrap.single-post .p-postList__title {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  font-weight: 750 !important;
}
@media (max-width: 430px) {
  #body_wrap.single-post .l-articleBottom__title {
    font-size: 18.5px !important;
    line-height: 1.55 !important;
  }
  #body_wrap.single-post .p-relatedPosts {
    display: block !important;
  }
  #body_wrap.single-post .p-relatedPosts .p-postList__item {
    width: 100% !important;
    margin-bottom: 12px !important;
  }
  #body_wrap.single-post .p-relatedPosts .p-postList__link {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
  }
  #body_wrap.single-post .p-relatedPosts .p-postList__title {
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }
}
/* End article bottom readability */

/* Final narrow-screen typography fixes */
@media (min-width: 341px) and (max-width: 410px) {
  #body_wrap.page-id-149 .c-pageTitle,
  #body_wrap.page-id-149 .c-pageTitle__inner,
  #body_wrap.page-id-149 .c-pageTitle__inner::after {
    font-size: 21px !important;
    line-height: 1.5 !important;
    word-break: auto-phrase !important;
  }
}
@media (max-width: 374px) {
  #body_wrap.page-id-12 .kmc-kyo27__field-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 360px) {
  #body_wrap.single-post .p-articleHead {
    display: block !important;
  }
  #body_wrap.single-post .c-postTitle__ttl {
    width: 100% !important;
  }
  #body_wrap.single-post .c-postTitle__date {
    display: block !important;
    margin-top: 8px !important;
  }
}
/* End final narrow-screen typography fixes */

/* Consistent mobile footer columns */
@media (max-width: 760px) {
  #body_wrap footer .l-footer__nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }
  #body_wrap footer .l-footer__nav > li,
  #body_wrap footer .l-footer__nav a {
    min-width: 0 !important;
  }
}
/* End consistent mobile footer columns */

/* Kyoto M&A sitewide typography: Noto Serif JP */
:root {
  --kmc-font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "HGS明朝E", serif;
  --kmc-font-sans: var(--kmc-font-serif);
  --swl-font_family: var(--kmc-font-serif);
}

html,
body,
body button,
body input,
body select,
body textarea,
body .l-header,
body .l-footer,
body .p-spMenu,
body .p-breadcrumb,
body .c-pageTitle,
body .c-postTitle,
body .post_content,
body .post_content h1,
body .post_content h2,
body .post_content h3,
body .post_content h4,
body .post_content h5,
body .post_content h6,
body .c-gnav,
body .c-gnav .ttl,
body .c-gnav .desc,
body .c-catchphrase,
body .p-postList,
body .p-postList__title,
body .p-postList__excerpt,
body .p-postTimes,
body .p-postTimes time,
body .p-articleHead,
body .p-articleFoot,
body .l-articleBottom,
body .l-articleBottom h2,
body .l-articleBottom h3,
body [class^="kmc-"],
body [class*=" kmc-"],
body [class^="kmc-"] h1,
body [class^="kmc-"] h2,
body [class^="kmc-"] h3,
body [class^="kmc-"] h4,
body [class*=" kmc-"] h1,
body [class*=" kmc-"] h2,
body [class*=" kmc-"] h3,
body [class*=" kmc-"] h4,
body #body_wrap :where(strong, b, summary, label, th),
body #body_wrap [class^="kmc-"] :where(strong, b, summary, label, th),
body #body_wrap [class*=" kmc-"] :where(strong, b, summary, label, th) {
  font-family: var(--kmc-font-serif) !important;
}

/* End Kyoto M&A sitewide typography */

/* Kyoto M&A sitewide trust palette */
:root {
  --kmc-trust-primary: #143747;
  --kmc-trust-deep: #0d2834;
  --kmc-trust-ink: #2a383e;
  --kmc-trust-muted: #55666b;
  --kmc-trust-accent: #8c4335;
  --kmc-trust-accent-hover: #74342a;
  --kmc-trust-soft: #f5f7f6;
  --kmc-trust-paper: #fafbfa;
  --kmc-trust-line: #d8e1e2;
  --kmc-trust-on-dark: #f7fafb;
  --kmc-trust-on-dark-muted: #e7eef0;
}

html,
body,
#body_wrap {
  color: var(--kmc-trust-ink) !important;
  background-color: #fff !important;
}
#body_wrap :where(#content, .l-content, .l-mainContent, .l-mainContent__inner, .l-article, .article, .article-body) {
  background-color: transparent !important;
}

/* Header: white space first, navy typography, one clear conversion color. */
#body_wrap .l-header {
  color: var(--kmc-trust-primary) !important;
  background: rgba(255, 255, 255, .985) !important;
  border-bottom-color: var(--kmc-trust-line) !important;
  box-shadow: 0 8px 24px rgba(13, 40, 52, .055) !important;
}
#body_wrap #header.l-header {
  color: var(--kmc-trust-primary) !important;
  background: rgba(255, 255, 255, .985) !important;
  border-color: var(--kmc-trust-line) !important;
}
#body_wrap .l-header__bar {
  color: var(--kmc-trust-on-dark) !important;
  background: var(--kmc-trust-primary) !important;
  border-bottom-color: rgba(255, 255, 255, .1) !important;
}
#body_wrap .l-header__bar :where(.c-catchphrase, a),
#body_wrap .l-header__barInner::after {
  color: var(--kmc-trust-on-dark) !important;
}
#body_wrap .c-gnav > li > a,
#body_wrap .c-gnav .ttl,
#body_wrap .p-spMenu a {
  color: var(--kmc-trust-primary) !important;
}
#body_wrap .c-gnav > li > a::after {
  background: var(--kmc-trust-accent) !important;
}
#body_wrap .c-gnav .kmc-nav-contact > a,
#body_wrap .p-spMenu .kmc-nav-contact > a {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
}
#body_wrap .c-gnav .kmc-nav-contact > a .ttl,
#body_wrap .p-spMenu .kmc-nav-contact > a :where(.ttl, span) {
  color: #fff !important;
}
#body_wrap :where(.c-gnav, .p-spMenu) .kmc-nav-contact > a::before {
  display: none !important;
  content: none !important;
}
#body_wrap .c-gnav .kmc-nav-contact > a:hover,
#body_wrap .p-spMenu .kmc-nav-contact > a:hover {
  background: var(--kmc-trust-accent-hover) !important;
  border-color: var(--kmc-trust-accent-hover) !important;
}
html body #body_wrap#body_wrap .c-gnav > li:not(.kmc-nav-contact):not(.kmc-skip-menu) > a {
  color: var(--kmc-trust-primary) !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body #body_wrap#body_wrap .c-gnav > li:is(.current-menu-item, .current_page_item, .-current):not(.kmc-nav-contact) > a {
  color: var(--kmc-trust-primary) !important;
  background-color: var(--kmc-trust-soft) !important;
  background-image: none !important;
  box-shadow: inset 0 -2px 0 var(--kmc-trust-accent) !important;
}
html body #body_wrap#body_wrap .c-gnav .kmc-nav-contact > a {
  color: #fff !important;
  background-color: var(--kmc-trust-accent) !important;
  background-image: none !important;
  border-color: var(--kmc-trust-accent) !important;
  box-shadow: 0 8px 18px rgba(140, 67, 53, .16) !important;
}
html body #body_wrap#body_wrap .c-gnav .kmc-nav-contact::before,
html body #body_wrap#body_wrap .c-gnav .kmc-nav-contact::after,
html body #body_wrap#body_wrap .c-gnav .kmc-nav-contact > a::before,
html body #body_wrap#body_wrap .c-gnav .kmc-nav-contact > a::after {
  display: none !important;
  content: none !important;
}

/* Shared typography and surfaces. */
#body_wrap :where(.c-pageTitle, .c-postTitle, .post_content h1, .post_content h3, .kmc-company h2) {
  color: var(--kmc-trust-primary) !important;
}
#body_wrap :where(.post_content p, .post_content li, .post_content td, .post_content dd) {
  color: var(--kmc-trust-ink);
}
#body_wrap :where(.p-breadcrumb, .c-postTimes, .p-postList__excerpt) {
  color: var(--kmc-trust-muted) !important;
}
#body_wrap :where(.post_content h2, .kmc-company-card > h2, .kmc-seo-links > h2) {
  color: var(--kmc-trust-on-dark) !important;
  background: var(--kmc-trust-primary) !important;
  border-color: var(--kmc-trust-primary) !important;
}
#body_wrap .post_content :where(.kmc-kyo27, .kmc-sub26, .kmc-buy26, .kmc-contact, .kmc-form-wrap) h2 {
  color: var(--kmc-trust-primary) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 4px solid var(--kmc-trust-accent) !important;
  padding: 4px 0 4px 14px !important;
  box-shadow: none !important;
}
#body_wrap .post_content :where(.kmc-kyo27, .kmc-sub26, .kmc-buy26, .kmc-contact, .kmc-form-wrap) h2::before,
#body_wrap .post_content :where(.kmc-kyo27, .kmc-sub26, .kmc-buy26, .kmc-contact, .kmc-form-wrap) h2::after {
  display: none !important;
  content: none !important;
}
#body_wrap .post_content :where(.kmc-kyo27__process-summary, .kmc-kyo27__final-grid, .kmc-buy26__section--deep) h2 {
  color: var(--kmc-trust-on-dark) !important;
  border-left-color: var(--kmc-trust-on-dark-muted) !important;
}
#body_wrap :where(.post_content a:not([class]), .c-postTitle a, .p-breadcrumb a) {
  color: var(--kmc-trust-primary);
}

/* Top page: navy structure, restrained oxblood action, no competing gold CTA. */
#body_wrap .kmc-kyo27 {
  --deep: var(--kmc-trust-primary);
  --ink: var(--kmc-trust-ink);
  --green: var(--kmc-trust-primary);
  --muted: var(--kmc-trust-muted);
  --rust: var(--kmc-trust-accent);
  --gold: var(--kmc-trust-primary);
  --ivory: var(--kmc-trust-paper);
  --paper: #fff;
  --soft: var(--kmc-trust-soft);
  --line: var(--kmc-trust-line);
  color: var(--kmc-trust-ink) !important;
  background: #fff !important;
}
#body_wrap .kmc-kyo27__hero {
  background: #fff !important;
  border-color: var(--kmc-trust-line) !important;
}
#body_wrap .kmc-kyo27__btn--primary {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
  box-shadow: 0 8px 18px rgba(140, 67, 53, .16) !important;
}
#body_wrap .kmc-kyo27__btn--primary:hover {
  background: var(--kmc-trust-accent-hover) !important;
  border-color: var(--kmc-trust-accent-hover) !important;
}
#body_wrap .kmc-kyo27__btn--light {
  color: var(--kmc-trust-primary) !important;
  background: #fff !important;
  border-color: #aebdc1 !important;
}
#body_wrap .kmc-kyo27__btn--gold {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
}
#body_wrap .kmc-kyo27__trust,
#body_wrap .kmc-kyo27__section--soft {
  background: var(--kmc-trust-soft) !important;
  border-color: var(--kmc-trust-line) !important;
}
#body_wrap .kmc-kyo27__trust-item,
#body_wrap .kmc-kyo27__solve-card,
#body_wrap .kmc-kyo27__field,
#body_wrap .kmc-kyo27__knowledge-card,
#body_wrap .kmc-kyo27__faq details,
#body_wrap .kmc-kyo27__hero-card {
  background: #fff !important;
  border-color: var(--kmc-trust-line) !important;
  box-shadow: 0 8px 24px rgba(13, 40, 52, .055) !important;
}
#body_wrap .kmc-kyo27__process-summary,
#body_wrap .kmc-kyo27__final-grid {
  color: var(--kmc-trust-on-dark) !important;
  background-color: var(--kmc-trust-deep) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
#body_wrap .kmc-kyo27__final-grid {
  background-image: none !important;
}
#body_wrap .kmc-kyo27__process-summary :where(h2, p),
#body_wrap .kmc-kyo27__final-grid :where(h2, p) {
  color: var(--kmc-trust-on-dark) !important;
}
#body_wrap .kmc-kyo27__label,
#body_wrap .kmc-kyo27__eyebrow,
#body_wrap .kmc-kyo27__number {
  color: var(--kmc-trust-accent) !important;
}
#body_wrap .kmc-kyo27__label::before,
#body_wrap .kmc-kyo27__eyebrow::before {
  background: var(--kmc-trust-accent) !important;
}
#body_wrap :where(.kmc-kyo27__process-summary, .kmc-kyo27__final-grid) :where(.kmc-kyo27__label, .kmc-kyo27__eyebrow) {
  color: var(--kmc-trust-on-dark) !important;
}
#body_wrap .post_content .kmc-kyo27 :where(.kmc-kyo27__process-summary, .kmc-kyo27__final-grid) :where(.kmc-kyo27__label, .kmc-kyo27__eyebrow) {
  color: var(--kmc-trust-on-dark) !important;
}
#body_wrap :where(.kmc-kyo27__process-summary, .kmc-kyo27__final-grid) :where(.kmc-kyo27__label, .kmc-kyo27__eyebrow)::before {
  background-color: var(--kmc-trust-on-dark) !important;
}
#body_wrap .post_content .kmc-kyo27 :where(.kmc-kyo27__process-summary, .kmc-kyo27__final-grid) :where(.kmc-kyo27__label, .kmc-kyo27__eyebrow)::before {
  background-color: var(--kmc-trust-on-dark) !important;
}

/* Seller and buyer LPs share one sober palette. */
#body_wrap :where(.kmc-sub26, .kmc-buy26) {
  --ink: var(--kmc-trust-ink);
  --muted: var(--kmc-trust-muted);
  --green: var(--kmc-trust-primary);
  --blue: var(--kmc-trust-primary);
  --gold: var(--kmc-trust-accent);
  --red: var(--kmc-trust-accent);
  --paper: var(--kmc-trust-soft);
  --surface: #fff;
  --line: var(--kmc-trust-line);
  color: var(--kmc-trust-ink) !important;
  background: var(--kmc-trust-soft) !important;
}
#body_wrap :where(.kmc-sub26__hero, .kmc-buy26__hero, .kmc-buy26__section--deep) {
  color: var(--kmc-trust-on-dark) !important;
  background-color: var(--kmc-trust-deep) !important;
}
#body_wrap :where(.kmc-sub26__hero, .kmc-buy26__hero)::after {
  background: linear-gradient(90deg, rgba(13, 40, 52, .96), rgba(13, 40, 52, .84) 50%, rgba(13, 40, 52, .28)) !important;
}
#body_wrap :where(.kmc-sub26__btn--gold, .kmc-buy26__btn--gold) {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
}
#body_wrap .post_content .kmc-sub26 a.kmc-sub26__btn--gold,
#body_wrap .post_content .kmc-buy26 a.kmc-buy26__btn--gold {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
}
#body_wrap :where(.kmc-sub26__btn:not(.kmc-sub26__btn--gold), .kmc-buy26__btn:not(.kmc-buy26__btn--gold)) {
  color: var(--kmc-trust-primary) !important;
  background: #fff !important;
  border-color: #aebdc1 !important;
}
#body_wrap :where(.kmc-sub26__card, .kmc-sub26__mini-card, .kmc-sub26__step, .kmc-sub26__note,
  .kmc-buy26__card, .kmc-buy26__chip, .kmc-buy26__step, .kmc-buy26__need) {
  background: #fff !important;
  border-color: var(--kmc-trust-line) !important;
  box-shadow: 0 8px 24px rgba(13, 40, 52, .05) !important;
}
#body_wrap :where(.kmc-sub26__label, .kmc-buy26__label, .kmc-sub26__mini-card span, .kmc-buy26__chip b) {
  color: var(--kmc-trust-accent) !important;
}
#body_wrap :where(.kmc-sub26__mobile a:last-child, .kmc-buy26__mobile a:last-child) {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
}
#body_wrap .post_content :where(.kmc-sub26__mobile, .kmc-buy26__mobile) > a:last-child {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  background-image: none !important;
}
#body_wrap :where(.kmc-sub26__mobile a:first-child, .kmc-buy26__mobile a:first-child) {
  color: #fff !important;
  background: var(--kmc-trust-primary) !important;
}
#body_wrap .post_content :where(.kmc-sub26__mobile, .kmc-buy26__mobile) > a:first-child {
  color: #fff !important;
  background: var(--kmc-trust-primary) !important;
  background-image: none !important;
}
body #body_wrap nav.kmc-sub26__mobile > a:first-child,
body #body_wrap nav.kmc-buy26__mobile > a:first-child {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  background-image: none !important;
}
body #body_wrap nav.kmc-sub26__mobile > a:last-child,
body #body_wrap nav.kmc-buy26__mobile > a:last-child {
  color: var(--kmc-trust-primary) !important;
  background: #fff !important;
  background-image: none !important;
  border-color: var(--kmc-trust-line) !important;
}
html body #body_wrap#body_wrap nav.kmc-sub26__mobile > a:last-child,
html body #body_wrap#body_wrap nav.kmc-buy26__mobile > a:last-child {
  color: var(--kmc-trust-primary) !important;
  background-color: #fff !important;
  background-image: none !important;
  border-color: var(--kmc-trust-line) !important;
}

/* Keep LP hero titles legible against the deep trust-color surface. */
#body_wrap :where(.kmc-sub26__hero, .kmc-buy26__hero) h1,
#body_wrap :where(.kmc-sub26__hero, .kmc-buy26__hero) .c-pageTitle,
#body_wrap :where(.kmc-sub26__hero, .kmc-buy26__hero) .c-pageTitle__inner {
  color: var(--kmc-trust-on-dark) !important;
}
#body_wrap .kmc-buy26__section--deep :where(p, li) {
  color: var(--kmc-trust-on-dark-muted) !important;
}
#body_wrap .kmc-buy26__section--deep .kmc-buy26__need {
  color: var(--kmc-trust-ink) !important;
  background: #fff !important;
}
#body_wrap .kmc-buy26__section--deep .kmc-buy26__need b {
  color: var(--kmc-trust-primary) !important;
}
#body_wrap .kmc-buy26__section--deep .kmc-buy26__need span {
  color: var(--kmc-trust-muted) !important;
}

/* Contact selection and forms. */
#body_wrap :where(.kmc-contact, .kmc-form-wrap, .kmc-company, .kmc-subpage) {
  color: var(--kmc-trust-ink) !important;
}
#body_wrap :where(.kmc-contact-card, .kmc-form-panel, .kmc-reply-box, .kmc-seo-links, .kmc-company-card) {
  background: #fff !important;
  border-color: var(--kmc-trust-line) !important;
  box-shadow: 0 10px 28px rgba(13, 40, 52, .055) !important;
}
#body_wrap .post_content :where(.kmc-contact-card, .kmc-contact-note, .kmc-contact-mail, .kmc-reply-box) > h2 {
  color: var(--kmc-trust-primary) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 4px solid var(--kmc-trust-accent) !important;
  padding: 4px 0 4px 14px !important;
  box-shadow: none !important;
}
#body_wrap .post_content :where(.kmc-contact-card, .kmc-contact-note, .kmc-contact-mail, .kmc-reply-box) > h2::before,
#body_wrap .post_content :where(.kmc-contact-card, .kmc-contact-note, .kmc-contact-mail, .kmc-reply-box) > h2::after {
  display: none !important;
  content: none !important;
}
html body #body_wrap#body_wrap .post_content :where(.kmc-contact-note, .kmc-contact-mail, .kmc-reply-box) > h2 {
  color: var(--kmc-trust-primary) !important;
  background: transparent !important;
}
html body #body_wrap#body_wrap .post_content .kmc-sub26 .kmc-sub26__note > h2 {
  color: var(--kmc-trust-primary) !important;
  background: transparent !important;
}
#body_wrap :where(.kmc-contact-note, .kmc-contact-mail, .kmc-form-note, .kmc-form-example, .kmc-form-ease) {
  color: var(--kmc-trust-ink) !important;
  background: var(--kmc-trust-soft) !important;
  border-color: var(--kmc-trust-line) !important;
  border-left-color: var(--kmc-trust-accent) !important;
}
#body_wrap :where(.kmc-contact-card a, .kmc-form-submit:not(:disabled), .wpcf7-submit:not(:disabled)) {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
}
#body_wrap :where(.kmc-form-submit:disabled, .wpcf7-submit:disabled) {
  color: #53635d !important;
  background: #dbe2df !important;
  border-color: #c7d1cd !important;
}
#body_wrap :where(input:not([type="submit"]), select, textarea) {
  color: var(--kmc-trust-ink) !important;
  background-color: #fff !important;
  border-color: #b9c6c8 !important;
}
#body_wrap :where(input:not([type="submit"]), select, textarea):focus {
  border-color: var(--kmc-trust-primary) !important;
  box-shadow: 0 0 0 3px rgba(20, 55, 71, .12) !important;
}

/* Footer: one solid anchor color; gold becomes a line-level accent only. */
#body_wrap .l-footer {
  color: var(--kmc-trust-on-dark) !important;
  background: var(--kmc-trust-deep) !important;
  border-top-color: var(--kmc-trust-accent) !important;
  box-shadow: none !important;
}
#body_wrap .l-footer :where(p, li, small, span) {
  color: var(--kmc-trust-on-dark-muted) !important;
}
#body_wrap .l-footer a {
  color: var(--kmc-trust-on-dark) !important;
}
#body_wrap :where(.kmc-footer-trust__button--gold, .kmc-footer-cta a) {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  border-color: var(--kmc-trust-accent) !important;
}
#body_wrap .l-footer a.kmc-footer-trust__button--gold,
#body_wrap .l-footer .kmc-footer-cta > a,
#body_wrap .l-footer .kmc-footer-cta a {
  color: #fff !important;
  background: var(--kmc-trust-accent) !important;
  background-image: none !important;
  border-color: var(--kmc-trust-accent) !important;
  box-shadow: none !important;
}
#body_wrap .kmc-footer-trust__button--green {
  color: var(--kmc-trust-on-dark) !important;
  background: transparent !important;
  border-color: rgba(231, 238, 240, .38) !important;
}
#body_wrap .kmc-footer-trust__card,
#body_wrap .kmc-footer-trust__fact {
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}
/* End Kyoto M&A sitewide trust palette */










/* Kyoto M&A responsive navigation integrity - 2026-08-14 */
@media (min-width: 701px) and (max-width: 959.98px) {
  html body #body_wrap #header .l-header__inner {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    min-height: 68px !important;
    height: 68px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-inline: 14px !important;
  }
  html body #body_wrap #header .l-header__logo {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 8px 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html body #body_wrap #header .c-headLogo,
  html body #body_wrap #header .c-headLogo__link {
    width: 196px !important;
    max-width: 196px !important;
    min-width: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  html body #body_wrap #header .c-headLogo__img {
    width: 196px !important;
    max-width: 196px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }
  html body #body_wrap #header .l-header__gnav { display: none !important; }
  html body #body_wrap #header .l-header__menuBtn {
    display: grid !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  html body #body_wrap #header .l-header__customBtn {
    display: grid !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  html body #body_wrap .p-spMenu__inner {
    width: min(88vw, 520px) !important;
  }
}
@media (max-width: 959.98px) {
  html body #body_wrap .p-spMenu__nav a {
    min-height: 48px !important;
    font-size: clamp(14px, 3.6vw, 16px) !important;
  }
  html body #body_wrap .p-spMenu__nav .kmc-nav-contact > a {
    min-height: 52px !important;
  }
}
@media (max-width: 359px) {
  html body #body_wrap #header .c-headLogo,
  html body #body_wrap #header .c-headLogo__link {
    width: 160px !important;
    max-width: 160px !important;
    min-width: 0 !important;
  }
  html body #body_wrap #header .c-headLogo__img {
    width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
    max-height: 46px !important;
    object-fit: contain !important;
  }
}
/* End Kyoto M&A responsive navigation integrity */

/* Kyoto M&A mobile navigation final safeguards - 2026-08-14 */
@media (min-width: 701px) and (max-width: 959.98px) {
  html body #body_wrap #header .l-header__inner .l-header__logo h1.c-headLogo,
  html body #body_wrap #header .l-header__inner .l-header__logo h1.c-headLogo > a.c-headLogo__link {
    width: 196px !important;
    max-width: 196px !important;
    min-width: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  html body #body_wrap #header .l-header__inner .l-header__logo h1.c-headLogo > a.c-headLogo__link > img.c-headLogo__img {
    display: block !important;
    width: 196px !important;
    max-width: 196px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }
  html body #body_wrap .p-searchModal .c-searchForm__s {
    min-height: 48px !important;
    font-size: 16px !important;
  }
  html body #body_wrap .p-searchModal .c-searchForm__submit {
    width: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }
}
html body #body_wrap.admin-bar .p-spMenu {
  top: 32px !important;
  height: calc(100% - 32px) !important;
}
@media (max-width: 782px) {
  html body #body_wrap.admin-bar .p-spMenu {
    top: 46px !important;
    height: calc(100% - 46px) !important;
  }
}
/* End Kyoto M&A mobile navigation final safeguards */

/* Kyoto M&A subpage 959px logo containment - 2026-08-14 */
@media (min-width: 701px) and (max-width: 959.98px) {
  html body #body_wrap #header .l-header__inner .l-header__logo > .c-headLogo,
  html body #body_wrap #header .l-header__inner .l-header__logo > .c-headLogo > .c-headLogo__link {
    width: 196px !important;
    max-width: 196px !important;
    min-width: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  html body #body_wrap #header .l-header__inner .l-header__logo > .c-headLogo > .c-headLogo__link > .c-headLogo__img {
    display: block !important;
    width: 196px !important;
    max-width: 196px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }
}
/* End Kyoto M&A subpage 959px logo containment */

/* Kyoto M&A contrast hardening - 2026-08-14 */
html body #body_wrap .p-spMenu .kmc-skip-menu > a,
html body #body_wrap .p-spMenu .kmc-skip-menu > a:focus,
html body #body_wrap .p-spMenu .kmc-skip-menu > a:focus-visible {
  color: #fff !important;
  background: #10231e !important;
}
html body #body_wrap .kmc-home29__resource-body > small {
  color: #8c4335 !important;
  opacity: 1 !important;
}
/* End Kyoto M&A contrast hardening */


/* Kyoto M&A white-base unification — 2026-08-23 */
:root {
  --kmc-white: #ffffff;
  --kmc-white-ink: #2a383e;
  --kmc-white-primary: #143747;
  --kmc-white-muted: #52636a;
  --kmc-white-accent: #8c4335;
  --kmc-white-line: #d8e1e3;
  --kmc-white-soft-line: #edf1f2;
}

html,
body,
#body_wrap,
#body_wrap .l-content,
#body_wrap .l-mainContent,
#body_wrap .l-mainContent__inner,
#body_wrap .post_content {
  background-color: var(--kmc-white) !important;
}

/* Header: let the white-backed logo sit in one continuous white surface. */
#body_wrap .l-header,
#body_wrap .l-header__inner,
#body_wrap .l-header__bar {
  background: var(--kmc-white) !important;
}

#body_wrap .l-header {
  border-bottom: 1px solid var(--kmc-white-line) !important;
  box-shadow: 0 8px 24px rgba(20, 55, 71, .07) !important;
}

#body_wrap .l-header__bar {
  color: var(--kmc-white-muted) !important;
  border-bottom: 1px solid var(--kmc-white-soft-line) !important;
}

#body_wrap .l-header__bar :is(.c-catchphrase, .c-iconList__link, .c-iconList__icon),
#body_wrap .l-header__barInner::after {
  color: var(--kmc-white-muted) !important;
}

#body_wrap .l-header__bar .c-iconList__link,
#body_wrap #header .c-iconBtn {
  background: var(--kmc-white) !important;
  color: var(--kmc-white-primary) !important;
  border-color: var(--kmc-white-line) !important;
}

#body_wrap #header .c-iconBtn__icon {
  color: var(--kmc-white-primary) !important;
}

#body_wrap #header .c-headLogo__link,
#body_wrap #header .c-headLogo,
#body_wrap #header .l-header__logo {
  background: var(--kmc-white) !important;
}

/* Home page: white sections with lines, typography and compact accents. */
#body_wrap .post_content .kmc-home29,
#body_wrap .post_content .kmc-home29__hero,
#body_wrap .post_content .kmc-home29__section,
#body_wrap .post_content .kmc-home29__section--soft,
#body_wrap .post_content .kmc-home29__process,
#body_wrap .post_content .kmc-home29__proof,
#body_wrap .post_content .kmc-home29__final {
  background: var(--kmc-white) !important;
}

#body_wrap .post_content .kmc-home29__section--soft,
#body_wrap .post_content .kmc-home29__proof,
#body_wrap .post_content .kmc-home29__final {
  border-top: 1px solid var(--kmc-white-soft-line) !important;
  border-bottom: 1px solid var(--kmc-white-soft-line) !important;
}

#body_wrap .post_content .kmc-home29__proof-item {
  color: var(--kmc-white-primary) !important;
  background: var(--kmc-white) !important;
  border-color: var(--kmc-white-line) !important;
}

#body_wrap .post_content .kmc-home29__proof-item strong,
#body_wrap .post_content .kmc-home29__proof-item span {
  color: var(--kmc-white-primary) !important;
}

#body_wrap .post_content .kmc-home29__proof-item span {
  color: var(--kmc-white-muted) !important;
}

#body_wrap .post_content .kmc-home29__final,
#body_wrap .post_content .kmc-home29__final h2,
#body_wrap .post_content .kmc-home29__final p {
  color: var(--kmc-white-primary) !important;
}

#body_wrap .post_content .kmc-home29__final p {
  color: var(--kmc-white-muted) !important;
}

#body_wrap .post_content .kmc-home29__final .kmc-home29__button--secondary,
#body_wrap .post_content .kmc-home29__final a.kmc-home29__button--secondary {
  color: var(--kmc-white-primary) !important;
  background: var(--kmc-white) !important;
  border-color: #61767d !important;
}

#body_wrap .post_content .kmc-home29__hero-badge {
  color: var(--kmc-white-primary) !important;
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(216, 225, 227, .95) !important;
  box-shadow: 0 8px 22px rgba(20, 55, 71, .12) !important;
}

/* Seller and buyer pages: convert the full-bleed dark heroes to light heroes. */
#body_wrap .post_content .kmc-sub26,
#body_wrap .post_content .kmc-buy26,
#body_wrap .post_content .kmc-sub26__section,
#body_wrap .post_content .kmc-buy26__section,
#body_wrap .post_content .kmc-sub26__section--white,
#body_wrap .post_content .kmc-buy26__section--white,
#body_wrap .post_content .kmc-buy26__section--deep,
#body_wrap .post_content .kmc-sub26__hero,
#body_wrap .post_content .kmc-buy26__hero {
  background: var(--kmc-white) !important;
}

#body_wrap .post_content :is(.kmc-sub26, .kmc-buy26) {
  color: var(--kmc-white-ink) !important;
}

#body_wrap .post_content :is(.kmc-sub26__hero, .kmc-buy26__hero) {
  color: var(--kmc-white-primary) !important;
  border-bottom: 1px solid var(--kmc-white-line) !important;
}

#body_wrap .post_content :is(.kmc-sub26__hero-img, .kmc-buy26__hero-img) {
  opacity: .16 !important;
  filter: saturate(.55) contrast(.9) !important;
}

#body_wrap .post_content .kmc-sub26__hero::after,
#body_wrap .post_content .kmc-buy26__hero::after {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .97) 50%, rgba(255, 255, 255, .66) 100%) !important;
}

#body_wrap .post_content :is(.kmc-sub26__hero, .kmc-buy26__hero) :is(h1, h2, h3, p, .kmc-sub26__lead, .kmc-buy26__lead) {
  color: var(--kmc-white-primary) !important;
}

#body_wrap .post_content :is(.kmc-sub26__badge, .kmc-buy26__badge) {
  color: var(--kmc-white-accent) !important;
  background: rgba(255, 255, 255, .92) !important;
  border-color: var(--kmc-white-line) !important;
}

#body_wrap .post_content .kmc-buy26__section--deep,
#body_wrap .post_content .kmc-buy26__section--deep :is(h2, h3, p, li, b, strong, span) {
  color: var(--kmc-white-primary) !important;
}

#body_wrap .post_content .kmc-buy26__section--deep {
  border-top: 1px solid var(--kmc-white-soft-line) !important;
  border-bottom: 1px solid var(--kmc-white-soft-line) !important;
}

#body_wrap .post_content :is(.kmc-sub26__note, .kmc-buy26__note) {
  color: var(--kmc-white-ink) !important;
  background: var(--kmc-white) !important;
  border: 1px solid var(--kmc-white-line) !important;
}

#body_wrap .post_content :is(.kmc-sub26__note, .kmc-buy26__note) :is(h2, h3, p, span, strong) {
  color: var(--kmc-white-primary) !important;
}

/* Forms, company and policy pages: white cards and quiet borders. */
#body_wrap .post_content :is(.kmc-contact, .kmc-form-wrap, .kmc-company, .kmc-subpage),
#body_wrap .post_content :is(.kmc-contact-card, .kmc-contact-note, .kmc-form-panel, .kmc-form-note, .kmc-form-help, .kmc-form-accept, .kmc-reply-box, .kmc-company-card, .kmc-company__note, .kmc-subpage__body section, .kmc-subpage__cta, .kmc-seo-links) {
  background: var(--kmc-white) !important;
  color: var(--kmc-white-ink) !important;
}

#body_wrap .post_content :is(.kmc-contact-note, .kmc-form-note, .kmc-form-help, .kmc-form-accept, .kmc-company__note, .kmc-subpage__body section, .kmc-subpage__cta) {
  border-color: var(--kmc-white-line) !important;
}

#body_wrap .post_content > h2,
#body_wrap .post_content .kmc-subpage__body h2,
#body_wrap .post_content .kmc-company-card h2,
#body_wrap .post_content .kmc-seo-links h2 {
  color: var(--kmc-white-primary) !important;
  background: var(--kmc-white) !important;
  border: 0 !important;
  border-left: 4px solid var(--kmc-white-accent) !important;
  border-bottom: 1px solid var(--kmc-white-line) !important;
  box-shadow: none !important;
  padding: 14px 18px !important;
}

#body_wrap .post_content .kmc-company-table th {
  color: var(--kmc-white-primary) !important;
  background: #f7f9f9 !important;
  border-color: var(--kmc-white-line) !important;
}

#body_wrap .post_content .kmc-company-table td {
  color: var(--kmc-white-ink) !important;
  background: var(--kmc-white) !important;
  border-color: var(--kmc-white-line) !important;
}

/* Footer: white base, logo-integrated brand block and readable legal links. */
#body_wrap .l-footer,
#body_wrap .l-footer__inner,
#body_wrap .l-footer__foot,
#body_wrap .l-footer__nav,
#body_wrap .kmc-footer-trust,
#body_wrap .kmc-footer-trust__logo,
#body_wrap .kmc-footer-trust__fact {
  background: var(--kmc-white) !important;
}

#body_wrap .l-footer {
  color: var(--kmc-white-ink) !important;
  border-top: 1px solid var(--kmc-white-line) !important;
}

#body_wrap .l-footer__nav {
  border-top: 1px solid var(--kmc-white-soft-line) !important;
  border-bottom: 1px solid var(--kmc-white-soft-line) !important;
}

#body_wrap .l-footer :is(p, span, strong, b, li, .copyright),
#body_wrap .l-footer a,
#body_wrap .l-footer__nav::before {
  color: var(--kmc-white-muted) !important;
}

#body_wrap .l-footer :is(.kmc-footer-trust__brand, .kmc-footer-trust__facts) :is(strong, b),
#body_wrap .l-footer .kmc-footer-trust__fact {
  color: var(--kmc-white-primary) !important;
}

#body_wrap .kmc-footer-trust__logo {
  border: 0 !important;
  box-shadow: none !important;
}

#body_wrap .kmc-footer-trust__fact {
  border: 1px solid var(--kmc-white-line) !important;
}

#body_wrap .l-footer .kmc-footer-trust__button--gold,
#body_wrap .l-footer__nav :is(.kmc-footer-seller, .kmc-footer-cta) > a {
  color: #ffffff !important;
}

#body_wrap .l-footer .kmc-footer-trust__button--green {
  color: var(--kmc-white-primary) !important;
  background: var(--kmc-white) !important;
  border-color: var(--kmc-white-primary) !important;
}

@media (max-width: 959px) {
  #body_wrap .post_content .kmc-sub26__hero::after,
  #body_wrap .post_content .kmc-buy26__hero::after {
    background: rgba(255, 255, 255, .9) !important;
  }
}




/* White-base finishing details */
#body_wrap .post_content .kmc-home29 a.kmc-home29__proof-item {
  color: var(--kmc-white-primary) !important;
}
#body_wrap .kmc-footer-trust__logo {
  padding: 0 !important;
}


/* White-base high-specificity contrast fix */
#body_wrap.home .post_content .kmc-home29 a.kmc-home29__proof-item {
  color: var(--kmc-white-primary) !important;
}
#body_wrap.home .post_content .kmc-home29 .kmc-home29__final h2 {
  color: var(--kmc-white-primary) !important;
}
#body_wrap.home .post_content .kmc-home29 .kmc-home29__final .kmc-home29__button--secondary,
#body_wrap.home .post_content .kmc-home29 .kmc-home29__final a.kmc-home29__button--secondary {
  color: var(--kmc-white-primary) !important;
  background: var(--kmc-white) !important;
  border-color: #61767d !important;
}


/* Kyoto M&A post-audit contrast and control corrections — 2026-08-25 */

/* Final CTA label: the white-base layer made this light text disappear. */
#body_wrap.home .post_content .kmc-home29 .kmc-home29__final .kmc-home29__label {
  color: #8c4335 !important;
}

/* Home footer copy and copyright now sit on white after the white-base layer. */
#body_wrap.home .l-footer .kmc-footer-trust__lead,
#body_wrap.home .l-footer .kmc-footer-trust__meta,
#body_wrap.home .l-footer .copyright {
  color: #52636a !important;
}

/* Keep ordinary footer navigation legible in every interaction state. */
#body_wrap.home .l-footer__nav > li:is(.kmc-footer-main, .kmc-footer-legal) > a {
  color: #52636a !important;
}

#body_wrap.home .l-footer__nav > li:is(.kmc-footer-main, .kmc-footer-legal) > a:is(:hover, :focus-visible, :active) {
  color: #143747 !important;
  background: #f2f6f5 !important;
  border-color: #647983 !important;
}

/* Pagination links previously rendered white on very light gray. */
#body_wrap.category-column #post_list_tab_1 .c-pagination a.page-numbers:not(.current) {
  color: #ffffff !important;
  background: #52636a !important;
  border-color: #52636a !important;
}

#body_wrap.category-column #post_list_tab_1 .c-pagination a.page-numbers:not(.current):is(:hover, :focus-visible, :active) {
  color: #ffffff !important;
  background: #0f3b32 !important;
  border-color: #0f3b32 !important;
}

/* Text-entry controls need a boundary with at least 3:1 contrast on white. */
#body_wrap.page-id-149 #wpcf7-f167-p149-o1 :is(input.wpcf7-text, select.wpcf7-select, textarea.wpcf7-textarea),
#body_wrap.page-id-150 #wpcf7-f168-p150-o1 :is(input.wpcf7-text, select.wpcf7-select, textarea.wpcf7-textarea),
#body_wrap #search_modal .c-searchForm input.c-searchForm__s {
  border-color: #647983 !important;
}

#body_wrap.page-id-149 #wpcf7-f167-p149-o1 :is(input.wpcf7-text, select.wpcf7-select, textarea.wpcf7-textarea):hover,
#body_wrap.page-id-150 #wpcf7-f168-p150-o1 :is(input.wpcf7-text, select.wpcf7-select, textarea.wpcf7-textarea):hover,
#body_wrap #search_modal .c-searchForm input.c-searchForm__s:hover {
  border-color: #8e826c !important;
}

/* Restore a high-contrast keyboard focus ring on white surfaces. */
#body_wrap.page-id-149 #wpcf7-f167-p149-o1 :is(input.wpcf7-text, select.wpcf7-select, textarea.wpcf7-textarea):focus-visible,
#body_wrap.page-id-150 #wpcf7-f168-p150-o1 :is(input.wpcf7-text, select.wpcf7-select, textarea.wpcf7-textarea):focus-visible,
#body_wrap #search_modal .c-searchForm input.c-searchForm__s:focus-visible,
#body_wrap.category-column #post_list_tab_1 .c-pagination a.page-numbers:focus-visible,
#body_wrap .l-footer a:focus-visible {
  border-color: #143747 !important;
  outline: 3px solid #143747 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}



/* Codex post navigation contrast fix — 2026-08-25 */
html body #body_wrap.single-post .kmc-skip-menu > a > .ttl {
  color: #ffffff !important;
}


/* Kyoto header logos: keep the original artwork flat on the existing white surface. */
#body_wrap #header .c-headLogo__img,
#body_wrap #fix_header .c-headLogo__img {
  filter: none !important;
  box-shadow: none !important;
}



	:root {
		--kmc-head-ink: #14211e;
		--kmc-head-green: #07382f;
		--kmc-head-green-2: #0d5145;
		--kmc-head-gold: #b7862b;
		--kmc-head-gold-2: #d7ba78;
		--kmc-head-ivory: #fffaf0;
		--kmc-head-ivory-2: #f7f0e3;
		--kmc-head-line: rgba(20, 33, 30, .14);
		--kmc-head-shadow: 0 12px 30px rgba(12, 30, 25, .11);
	}

	#header.l-header,
	.l-header {
		background: linear-gradient(180deg, #fffdf8 0%, #fbf7ee 100%) !important;
		border-bottom: 1px solid var(--kmc-head-line) !important;
		box-shadow: var(--kmc-head-shadow) !important;
		color: var(--kmc-head-ink) !important;
		position: relative !important;
		z-index: 50 !important;
	}

	#header.l-header::after,
	.l-header::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -1px;
		height: 2px;
		background: linear-gradient(90deg, transparent, rgba(183, 134, 43, .62), transparent);
		pointer-events: none;
	}

	.l-header__bar {
		background: var(--kmc-head-green) !important;
		color: #fff !important;
		border-bottom: 1px solid rgba(255,255,255,.08) !important;
	}

	.l-header__barInner {
		min-height: 31px !important;
		max-width: 1200px !important;
		margin: 0 auto !important;
		padding: 0 18px !important;
		gap: 16px !important;
	}

	.l-header__bar .c-catchphrase {
		width: auto !important;
		max-width: none !important;
		color: #f7f3e8 !important;
		font-size: 12px !important;
		font-weight: 700 !important;
		line-height: 1.45 !important;
		letter-spacing: 0 !important;
		opacity: .96 !important;
	}

	.l-header__barInner::after {
		content: "● 売り手様は相談料・着手金・成功報酬まで0円 / 秘密保持で段階開示";
		display: inline-flex;
		align-items: center;
		margin-left: auto;
		color: #fff8df;
		font-size: 12px;
		font-weight: 800;
		line-height: 1.45;
		letter-spacing: 0;
		white-space: nowrap;
	}

	.l-header__barInner::before {
		content: none !important;
	}

	.l-header__bar .c-iconList__item.-rss {
		display: none !important;
	}

	.l-header__bar .c-iconList__link {
		color: #fff !important;
		min-width: 32px !important;
		min-height: 30px !important;
		opacity: .88 !important;
	}

	.l-header__inner {
		max-width: 1200px !important;
		min-height: 88px !important;
		margin: 0 auto !important;
		padding: 0 18px !important;
		align-items: center !important;
		gap: 18px !important;
	}

	.l-header__logo {
		display: flex !important;
		align-items: center !important;
		flex: 0 0 auto !important;
		margin-right: 16px !important;
		min-width: 0 !important;
	}

	.c-headLogo__link {
		display: inline-flex !important;
		align-items: center !important;
		min-height: 74px !important;
		padding: 0 !important;
		border-radius: 6px !important;
		outline-offset: 4px !important;
	}

	#header .c-headLogo__img,
	.l-header .c-headLogo__img {
		width: 292px !important;
		max-width: 292px !important;
		height: auto !important;
		max-height: 80px !important;
		object-fit: contain !important;
		filter: drop-shadow(0 10px 18px rgba(11, 31, 26, .10)) !important;
	}

	@media (min-width: 1240px) {
		.l-header__logo::after {
			content: "京都府の会社売却・事業承継M&A相談";
			display: inline-flex;
			align-items: center;
			min-height: 34px;
			margin-left: 16px;
			padding: 0 12px;
			border: 1px solid rgba(183, 134, 43, .36);
			border-radius: 6px;
			background: rgba(255, 250, 240, .72);
			color: var(--kmc-head-green);
			font-size: 12px;
			font-weight: 800;
			line-height: 1.35;
			letter-spacing: 0;
			white-space: nowrap;
		}
	}

	.c-gnavWrap {
		min-width: 0 !important;
		margin-left: auto !important;
	}

	.c-gnav {
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 4px !important;
	}

	.c-gnav > .menu-item > a {
		min-height: 48px !important;
		padding: 0 11px !important;
		border-radius: 6px !important;
		color: var(--kmc-head-ink) !important;
		font-size: 14px !important;
		font-weight: 800 !important;
		line-height: 1.2 !important;
		letter-spacing: 0 !important;
		transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
	}

	.c-gnav > .menu-item > a .ttl {
		color: inherit !important;
		line-height: 1.2 !important;
		white-space: nowrap !important;
	}

	.c-gnav > .menu-item > a::after {
		height: 2px !important;
		background: var(--kmc-head-gold) !important;
		border-radius: 999px !important;
	}

	.c-gnav > .menu-item:hover > a,
	.c-gnav > .current-menu-item > a,
	.c-gnav > .current_page_item > a {
		background: rgba(183, 134, 43, .14) !important;
		color: var(--kmc-head-green) !important;
		box-shadow: inset 0 0 0 1px rgba(183, 134, 43, .20) !important;
	}

	.c-gnav > .menu-item > a:focus-visible,
	.l-header button:focus-visible,
	.l-header a:focus-visible {
		outline: 3px solid #d8ba73 !important;
		outline-offset: 3px !important;
	}

	.c-gnav > .kmc-nav-seller > a {
		min-height: 50px !important;
		padding: 0 16px !important;
		background: linear-gradient(180deg, #b98a31 0%, #9a6818 100%) !important;
		border: 1px solid rgba(128, 82, 15, .42) !important;
		color: #fff !important;
		box-shadow: 0 10px 20px rgba(143, 96, 20, .18) !important;
	}

	.c-gnav > .kmc-nav-seller > a:hover,
	.c-gnav > .kmc-nav-seller > a:focus-visible {
		background: linear-gradient(180deg, #c49438 0%, #8d5e12 100%) !important;
		color: #fff !important;
		transform: translateY(-1px);
	}

	.c-gnav > .kmc-nav-contact > a {
		min-height: 50px !important;
		padding: 0 18px !important;
		background: linear-gradient(180deg, #0b463b 0%, #062d26 100%) !important;
		border: 1px solid rgba(9, 55, 47, .44) !important;
		color: #fff !important;
		box-shadow: 0 12px 24px rgba(7, 56, 47, .22) !important;
	}

	.c-gnav > .kmc-nav-contact > a::after {
		content: none !important;
	}

	.c-gnav > .kmc-nav-contact > a .ttl {
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
	}

	.c-gnav > .kmc-nav-contact > a .ttl::before {
		content: "";
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: var(--kmc-head-gold-2);
		box-shadow: 0 0 0 4px rgba(215, 186, 120, .14);
	}

	.c-gnav > .kmc-nav-contact > a:hover,
	.c-gnav > .kmc-nav-contact > a:focus-visible {
		background: linear-gradient(180deg, #10564a 0%, #06342c 100%) !important;
		color: #fff !important;
		transform: translateY(-1px);
	}

	.l-fixHeader {
		background: rgba(255,253,248,.98) !important;
		border-bottom: 1px solid var(--kmc-head-line) !important;
		box-shadow: 0 10px 24px rgba(12, 30, 25, .12) !important;
		backdrop-filter: blur(10px);
	}

	.l-fixHeader .l-fixHeader__inner {
		max-width: 1200px !important;
	}

	.l-fixHeader .c-headLogo__img {
		width: 236px !important;
		max-width: 236px !important;
		max-height: 64px !important;
	}

	.l-fixHeader .c-gnav > .menu-item > a {
		min-height: 50px !important;
	}

	@media (max-width: 1239px) and (min-width: 960px) {
		.l-header__inner {
			padding-left: 20px !important;
			padding-right: 20px !important;
			gap: 12px !important;
		}

		#header .c-headLogo__img,
		.l-header .c-headLogo__img {
			width: 252px !important;
			max-width: 252px !important;
		}

		.c-gnav {
			gap: 2px !important;
		}

		.c-gnav > .menu-item > a {
			padding: 0 8px !important;
			font-size: 13px !important;
		}

		.c-gnav > .kmc-nav-seller > a,
		.c-gnav > .kmc-nav-contact > a {
			padding: 0 13px !important;
		}
	}

	@media (max-width: 959px) {
		#header.l-header,
		.l-header {
			box-shadow: 0 10px 24px rgba(12, 30, 25, .12) !important;
		}

		.l-header__bar {
			display: none !important;
		}

		#header .l-header__inner,
		.l-header__inner {
			min-height: 68px !important;
			height: 68px !important;
			padding: 0 14px !important;
			display: grid !important;
			grid-template-columns: 52px minmax(0, 1fr) 52px !important;
			align-items: center !important;
			gap: 8px !important;
		}

		.l-header__menuBtn {
			order: 1 !important;
			grid-column: 1 !important;
			justify-self: start !important;
			width: 48px !important;
			height: 48px !important;
		}

		.l-header__logo {
			order: 2 !important;
			grid-column: 2 !important;
			justify-content: center !important;
			margin: 0 !important;
			min-width: 0 !important;
		}

		.l-header__customBtn {
			order: 3 !important;
			grid-column: 3 !important;
			justify-self: end !important;
			width: 48px !important;
			height: 48px !important;
		}

		.l-header__menuBtn .c-iconBtn,
		.l-header__customBtn .c-iconBtn {
			width: 46px !important;
			height: 46px !important;
			border: 1px solid rgba(20, 33, 30, .24) !important;
			border-radius: 6px !important;
			background: rgba(255, 253, 248, .88) !important;
			color: var(--kmc-head-ink) !important;
			box-shadow: 0 5px 12px rgba(12, 30, 25, .08) !important;
		}

		.c-headLogo__link {
			min-height: 60px !important;
			justify-content: center !important;
		}

		#header .c-headLogo__img,
		.l-header .c-headLogo__img {
			width: 196px !important;
			max-width: min(196px, 56vw) !important;
			max-height: 54px !important;
			filter: drop-shadow(0 7px 12px rgba(11, 31, 26, .10)) !important;
		}

		.p-spMenu__inner,
		.p-spMenu__inner::before {
			background: #fbf8f0 !important;
		}

		.c-widget__title.-spmenu {
			margin: 0 16px 10px !important;
			padding: 12px 14px !important;
			border-radius: 6px !important;
			background: var(--kmc-head-green) !important;
			color: #fff !important;
			font-size: 16px !important;
			font-weight: 800 !important;
			letter-spacing: 0 !important;
		}

		.p-spMenu__body {
			padding-top: 12px !important;
		}

		.p-spMenu .menu-item > a {
			min-height: 52px !important;
			display: flex !important;
			align-items: center !important;
			margin: 0 16px !important;
			padding: 0 10px !important;
			border-bottom: 1px solid rgba(183, 134, 43, .24) !important;
			color: var(--kmc-head-ink) !important;
			font-weight: 800 !important;
			letter-spacing: 0 !important;
		}

		.p-spMenu .menu-item.current-menu-item > a,
		.p-spMenu .menu-item.current_page_item > a {
			background: rgba(183, 134, 43, .16) !important;
			border-radius: 6px !important;
			border-bottom-color: transparent !important;
			color: var(--kmc-head-green) !important;
		}

		.p-spMenu .kmc-nav-seller > a,
		.p-spMenu .kmc-nav-contact > a {
			justify-content: center !important;
			min-height: 54px !important;
			margin: 14px 16px 0 !important;
			border: 0 !important;
			border-radius: 6px !important;
			color: #fff !important;
			box-shadow: 0 12px 24px rgba(12, 30, 25, .14) !important;
		}

		.p-spMenu .kmc-nav-seller > a {
			background: linear-gradient(180deg, #b98a31 0%, #966519 100%) !important;
		}

		.p-spMenu .kmc-nav-contact > a {
			background: linear-gradient(180deg, #0b463b 0%, #062d26 100%) !important;
		}
	}

	@media (max-width: 420px) {
		#header .l-header__inner,
		.l-header__inner {
			grid-template-columns: 48px minmax(0, 1fr) 48px !important;
			padding-left: 12px !important;
			padding-right: 12px !important;
			gap: 6px !important;
		}

		.l-header__menuBtn,
		.l-header__customBtn,
		.l-header__menuBtn .c-iconBtn,
		.l-header__customBtn .c-iconBtn {
			width: 44px !important;
			height: 44px !important;
		}

		#header .c-headLogo__img,
		.l-header .c-headLogo__img {
			width: 186px !important;
			max-width: 55vw !important;
			max-height: 52px !important;
		}
	}

	html body #body_wrap #header .c-headLogo__img {
		width: 292px !important;
		max-width: 292px !important;
		height: auto !important;
		max-height: 80px !important;
		object-fit: contain !important;
	}

	@media (max-width: 1239px) and (min-width: 960px) {
		html body #body_wrap #header .c-headLogo__img {
			width: 252px !important;
			max-width: 252px !important;
			max-height: 72px !important;
		}
	}

	@media (max-width: 959px) {
		html body #body_wrap #header.l-header,
		html body #body_wrap #header .l-header__inner {
			min-height: 68px !important;
			height: 68px !important;
		}

		html body #body_wrap #header .c-headLogo__link {
			min-height: 60px !important;
		}

		html body #body_wrap #header .c-headLogo__img {
			width: 196px !important;
			max-width: min(196px, 56vw) !important;
			height: auto !important;
			max-height: 54px !important;
		}
	}

	@media (max-width: 420px) {
		html body #body_wrap #header .c-headLogo__img {
			width: 186px !important;
			max-width: 55vw !important;
			max-height: 52px !important;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.c-gnav > .menu-item > a,
		.c-gnav > .kmc-nav-seller > a,
		.c-gnav > .kmc-nav-contact > a {
			transition: none !important;
			transform: none !important;
		}
	}
	