
/* Accessibility and responsive fixes, deduplicated 2026-08-25 */
#bmx-home.bmx {
  --copper: #a64f2b !important;
  --jade: #0d6f65 !important;
}
#bmx-home .bmx-hero-card__body a[href^="tel:"],
#bmx-home .bmx-policy-seal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.bmc-site .wpcf7-form input.wpcf7-text,
.bmc-site .wpcf7-form select.wpcf7-select {
  min-height: 44px !important;
}
.bmc-site .wpcf7-form .wpcf7-list-item,
.bmc-site .wpcf7-form .wpcf7-list-item > label {
  display: inline-flex;
  align-items: center;
  min-width: 44px !important;
  min-height: 44px;
}
#header button.c-iconBtn,
#fix_header button.c-iconBtn,
.c-searchForm__s,
.c-searchForm__submit,
.c-modal__close {
  min-height: 44px !important;
}
#header button.c-iconBtn,
#fix_header button.c-iconBtn,
.c-searchForm__submit {
  min-width: 44px !important;
}
.c-headLogo__link,
.p-breadcrumb__text,
.c-categoryList__link,
.p-authorBox__name,
.bmc-site a[href="https://ma-mado.com/"] {
  min-height: 44px !important;
}
.c-pagination a.page-numbers {
  min-width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  color: #04384c !important;
}
.c-pagination__dot {
  color: #5d6468 !important;
}
a.c-shareBtns__btn[href*="getpocket.com"] {
  display: none !important;
}
.c-shareBtns__btn,
button.c-iconList__link,
.bmc-site .wpcf7-form .wpcf7-submit,
button.c-urlcopy.c-shareBtns__btn {
  min-width: 44px !important;
  min-height: 44px !important;
}
#sp_menu a {
  min-height: 44px !important;
}
.bmc-site .wpcf7-form input.wpcf7-text,
.bmc-site .wpcf7-form input.wpcf7-email,
.bmc-site .wpcf7-form input.wpcf7-tel,
.bmc-site .wpcf7-form select.wpcf7-select,
.bmc-site .wpcf7-form textarea.wpcf7-textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.bmc-site .wpcf7-form .bmc-form-grid,
.bmc-site .wpcf7-form .bmc-field {
  min-width: 0 !important;
  max-width: 100% !important;
}
.bmc-skip-link:not(:focus):not(:focus-visible) {
  pointer-events: none !important;
}
.bmc-skip-link:focus,
.bmc-skip-link:focus-visible {
  pointer-events: auto !important;
}

/* Contact form UI cleanup 2026-08-25 */
.bmc-site:has(.bmc-form-panel){
  --bmc-form-accent:#173d34;
  --bmc-form-ink:#18231f;
  --bmc-form-muted:#52625c;
  --bmc-form-line:#d6dfdb;
  --bmc-form-soft:#f6f8f7;
  --copper:var(--bmc-form-accent)!important;
  --green:var(--bmc-form-accent)!important;
  --green2:var(--bmc-form-accent)!important;
}
.bmc-site:has(.bmc-form-panel) .bmc-page-hero{
  padding:72px 0 60px!important;
  background:var(--bmc-form-soft)!important;
  border-bottom:1px solid var(--bmc-form-line);
  color:var(--bmc-form-ink)!important;
}
.bmc-site:has(.bmc-form-panel) .bmc-page-hero .bmc-pill{
  margin-bottom:16px;
  padding:6px 12px;
  border:1px solid var(--bmc-form-line);
  background:#fff;
  color:var(--bmc-form-accent)!important;
}
.bmc-site:has(.bmc-form-panel) .bmc-page-hero h1{
  color:var(--bmc-form-ink)!important;
  font-size:clamp(2rem,4.5vw,3.25rem);
}
.bmc-site:has(.bmc-form-panel) .bmc-page-hero p{
  color:var(--bmc-form-muted)!important;
}
.bmc-site:has(.bmc-form-panel) .bmc-section{
  background:#fff!important;
  padding:64px 0;
}
.bmc-site:has(.bmc-form-panel) .bmc-kicker,
.bmc-site:has(.bmc-form-panel) .bmc-title{
  color:var(--bmc-form-accent)!important;
}
.bmc-site:has(.bmc-form-panel) .bmc-lead{
  color:var(--bmc-form-muted)!important;
}
.bmc-site .bmc-form-panel{
  width:100%;
  max-width:760px;
  margin:32px auto 0!important;
  padding:36px;
  border:1px solid var(--bmc-form-line,#d6dfdb);
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 30px rgba(23,61,52,.06);
}
.bmc-site .bmc-form-panel .wpcf7-form,
.bmc-site .bmc-form-panel .bmc-form-grid{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
}
.bmc-site .bmc-form-panel .bmc-field{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 24px!important;
  padding:0;
  border:0;
}
.bmc-site .bmc-form-panel .bmc-field p,
.bmc-site .bmc-form-panel .bmc-privacy p,
.bmc-site .bmc-form-panel .bmc-submit p{
  margin:0!important;
}
.bmc-site .bmc-form-panel .bmc-field label{
  display:block;
  color:var(--bmc-form-ink,#18231f);
  font-size:15px;
  font-weight:700;
  line-height:1.6;
}
.bmc-site .bmc-form-panel .bmc-field label>br{
  display:none;
}
.bmc-site .bmc-form-panel .wpcf7-form-control-wrap{
  display:block;
  width:100%;
  margin-top:8px;
}
.bmc-site .bmc-form-panel input.wpcf7-text,
.bmc-site .bmc-form-panel input.wpcf7-email,
.bmc-site .bmc-form-panel input.wpcf7-tel,
.bmc-site .bmc-form-panel select.wpcf7-select,
.bmc-site .bmc-form-panel textarea.wpcf7-textarea{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border:1px solid var(--bmc-form-line,#d6dfdb)!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:var(--bmc-form-ink,#18231f)!important;
  font-size:16px!important;
  line-height:1.5!important;
  padding:12px 14px!important;
}
.bmc-site .bmc-form-panel input.wpcf7-text,
.bmc-site .bmc-form-panel input.wpcf7-email,
.bmc-site .bmc-form-panel input.wpcf7-tel,
.bmc-site .bmc-form-panel select.wpcf7-select{
  min-height:52px!important;
}
.bmc-site .bmc-form-panel textarea.wpcf7-textarea{
  min-height:160px;
  resize:vertical;
}
.bmc-site .bmc-form-panel input::placeholder,
.bmc-site .bmc-form-panel textarea::placeholder{
  color:#78857f;
  opacity:1;
}
.bmc-site .bmc-form-panel :is(input.wpcf7-text,input.wpcf7-email,input.wpcf7-tel,select.wpcf7-select,textarea.wpcf7-textarea):focus{
  outline:0!important;
  border-color:var(--bmc-form-accent,#173d34)!important;
  box-shadow:0 0 0 3px rgba(23,61,52,.12)!important;
}
.bmc-site .bmc-form-panel fieldset.bmc-field{
  margin-bottom:24px!important;
  padding:18px 20px;
  border:1px solid var(--bmc-form-line,#d6dfdb);
  border-radius:10px;
  background:var(--bmc-form-soft,#f6f8f7);
}
.bmc-site .bmc-form-panel fieldset.bmc-field legend{
  padding:0 6px;
  color:var(--bmc-form-ink,#18231f);
  font-size:15px;
  font-weight:700;
}
.bmc-site .bmc-form-panel fieldset.bmc-field .wpcf7-form-control-wrap{
  margin-top:4px;
}
.bmc-site .bmc-form-panel .wpcf7-checkbox{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px;
}
.bmc-site .bmc-form-panel .wpcf7-checkbox .wpcf7-list-item{
  display:block!important;
  margin:0!important;
  min-width:0!important;
  min-height:0!important;
}
.bmc-site .bmc-form-panel .wpcf7-checkbox .wpcf7-list-item>label{
  display:flex!important;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 0;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
}
.bmc-site .bmc-form-panel input[type="checkbox"]{
  flex:0 0 20px;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  accent-color:var(--bmc-form-accent,#173d34);
}
.bmc-site .bmc-form-panel .bmc-privacy{
  margin:4px 0 0;
  padding:16px 18px;
  border:1px solid var(--bmc-form-line,#d6dfdb);
  border-radius:10px;
  background:var(--bmc-form-soft,#f6f8f7);
}
.bmc-site .bmc-form-panel .bmc-privacy .wpcf7-form-control-wrap{
  margin:0;
}
.bmc-site .bmc-form-panel .bmc-privacy .wpcf7-list-item{
  display:block!important;
  margin:0!important;
}
.bmc-site .bmc-form-panel .bmc-privacy label{
  display:flex!important;
  align-items:flex-start;
  gap:10px;
  min-height:44px;
  color:var(--bmc-form-ink,#18231f);
  font-size:15px;
  line-height:1.7;
  cursor:pointer;
}
.bmc-site .bmc-form-panel .bmc-privacy input[type="checkbox"]{
  margin-top:3px!important;
}
.bmc-site .bmc-form-panel .bmc-privacy a{
  color:var(--bmc-form-accent,#173d34)!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
}
.bmc-site .bmc-form-panel .bmc-submit{
  margin:28px 0 0!important;
  text-align:center;
}
.bmc-site .bmc-form-panel input.wpcf7-submit{
  width:min(100%,420px)!important;
  min-height:56px!important;
  padding:12px 20px!important;
  border:0!important;
  border-radius:8px!important;
  background:var(--bmc-form-accent,#173d34)!important;
  box-shadow:none!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.4;
  cursor:pointer;
}
.bmc-site .bmc-form-panel input.wpcf7-submit:hover{
  filter:brightness(.92);
}
.bmc-site .bmc-form-panel input.wpcf7-submit:disabled{
  background:#8f9d97!important;
  cursor:not-allowed;
  filter:none;
}
.bmc-site .bmc-form-panel .wpcf7-not-valid{
  border-color:#b3261e!important;
}
.bmc-site .bmc-form-panel .wpcf7-not-valid-tip{
  margin-top:6px;
  color:#b3261e!important;
  font-size:14px;
}
.bmc-site .bmc-form-panel .wpcf7-response-output{
  margin:20px 0 0!important;
  padding:14px 16px!important;
  border-radius:8px;
}
.bmc-site:has(.bmc-form-panel) .bmc-mobile-bar a,
.bmc-site:has(.bmc-form-panel) .bmc-mobile-bar a:last-child{
  background:var(--bmc-form-accent)!important;
}
@media(max-width:760px){
  .bmc-site:has(.bmc-form-panel) .bmc-page-hero{
    padding:48px 0 40px!important;
  }
  .bmc-site:has(.bmc-form-panel) .bmc-page-hero h1{
    font-size:clamp(1.75rem,8vw,2.25rem);
  }
  .bmc-site:has(.bmc-form-panel) .bmc-section{
    padding:42px 0;
  }
  .bmc-site .bmc-form-panel{
    max-width:none;
    margin-top:24px!important;
    padding:20px 16px;
    border-radius:12px;
    box-shadow:none;
  }
  .bmc-site .bmc-form-panel .bmc-field{
    margin-bottom:20px!important;
  }
  .bmc-site .bmc-form-panel fieldset.bmc-field{
    padding:16px;
  }
  .bmc-site .bmc-form-panel textarea.wpcf7-textarea{
    min-height:144px;
  }
  .bmc-site .bmc-form-panel input.wpcf7-submit{
    width:100%!important;
  }
}

/* Final spacing and single-accent polish for contact pages */
body:has(.bmc-form-panel) .c-gnav > li:last-child > a,
body:has(.bmc-form-panel) .bmc-header-cta,
body:has(.bmc-form-panel) .bmc-mobile-bar a,
body:has(.bmc-form-panel) .bmc-mobile-bar a:last-child {
  background: #173d34 !important;
  color: #fff !important;
}
body:has(.bmc-form-panel) .c-gnav > li:last-child > a:hover,
body:has(.bmc-form-panel) .bmc-header-cta:hover {
  background: #102f28 !important;
}
body:has(.bmc-form-panel) .c-gnav > li > a::after {
  background: #173d34 !important;
}
body:has(.bmc-form-panel) .bmc-footer,
body:has(.bmc-form-panel) .l-footer {
  border-top-color: #173d34 !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-page-hero {
  padding: clamp(44px,5vw,56px) 0 !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-page-hero .bmc-wrap {
  width: min(760px,calc(100% - 40px)) !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) {
  padding: 48px 0 72px !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) > .bmc-wrap > .bmc-kicker,
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) > .bmc-wrap > .bmc-title,
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) > .bmc-wrap > .bmc-lead {
  width: 100% !important;
  max-width: 760px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) > .bmc-wrap > .bmc-kicker {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) > .bmc-wrap > .bmc-title {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) > .bmc-wrap > .bmc-lead {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}
.bmc-site:has(.bmc-form-panel) .bmc-form-panel {
  margin-top: 26px !important;
}
.bmc-site:has(.bmc-form-panel) .bmc-form-panel .wpcf7-checkbox .wpcf7-list-item:not(:last-child) {
  border-bottom: 1px solid #edf1ef;
}
@media (max-width:760px) {
  .bmc-site:has(.bmc-form-panel) > .bmc-page-hero {
    padding: 36px 0 32px !important;
  }
  .bmc-site:has(.bmc-form-panel) > .bmc-page-hero .bmc-wrap {
    width: calc(100% - 32px) !important;
  }
  .bmc-site:has(.bmc-form-panel) > .bmc-section:has(.bmc-form-panel) {
    padding: 40px 0 52px !important;
  }
}

/* High-specificity guards against legacy mobile rules */
body:not(.wp-admin) .bmc-site:has(.bmc-form-panel) > .bmc-page-hero {
  padding: clamp(44px,5vw,56px) 0 !important;
}
body:not(.wp-admin) .bmc-site:has(.bmc-form-panel) .bmc-form-panel input.wpcf7-submit {
  min-height: 56px !important;
}
@media (max-width:760px) {
  body:not(.wp-admin) .bmc-site:has(.bmc-form-panel) > .bmc-page-hero {
    padding: 36px 0 32px !important;
  }
}

/* Small-screen readability */
.bmc-site:has(.bmc-form-panel) {
  font-size: 16px !important;
}
.bmc-site:has(.bmc-form-panel) .bmc-form-panel .wpcf7-form {
  font-size: 15px !important;
}
.bmc-site:has(.bmc-form-panel) .bmc-form-panel textarea.wpcf7-textarea {
  height: 168px !important;
  min-height: 168px !important;
}
@media (max-width:760px) {
  .bmc-site:has(.bmc-form-panel) .bmc-form-panel textarea.wpcf7-textarea {
    height: 150px !important;
    min-height: 150px !important;
  }
}

/* Tablet menu label wrap fix 2026-08-26 */
@media (min-width:601px) and (max-width:1099px) {
  #bmx-home .bmx-menu-toggle {
    width:58px !important;
    min-width:58px !important;
    flex:0 0 58px !important;
  }
  #bmx-home .bmx-menu-toggle::after {
    white-space:nowrap !important;
  }
}

/* Editorial and narrow-screen refinements 2026-08-31 */
.single-post .bmc-daily-article > h1 {
  display:none!important;
}
@media (max-width:380px) {
  #bmx-home .bmx-case-grid {
    grid-template-columns:1fr!important;
  }
  #bmx-home .bmx-case:last-child {
    grid-column:auto!important;
  }
}
@media (max-width:340px) {
  #bmx-home .bmx-footer a {
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
}

/* Seller readability and inquiry guidance 2026-09-13 */

#bmx-home .bmx-hero .bmx-hero-card h2.bmx-consult-title{color:#142b39!important}
body .bmc-site .bmc-cta{background:#f3f7f5!important;border:1px solid #ccdad6}
body .bmc-site .bmc-cta .bmc-title{color:#142b39!important}
body .bmc-site .bmc-cta .bmc-lead{color:#41535d!important}
body .bmc-site .bmc-cta .bmc-kicker{color:#205a4a!important}
body .bmc-about-hero h1,body .bmc-legal-hero h1{font-size:clamp(2rem,3.3vw,3rem)!important;line-height:1.45!important;word-break:normal!important;overflow-wrap:anywhere;text-wrap:pretty}
body .bmc-daily-cta{margin:2.5rem 0;padding:clamp(20px,4vw,36px);border:1px solid #ccdad6;border-radius:14px;background:#f3f7f5;color:#142b39}
body .bmc-daily-cta h2{color:#142b39!important;font-size:clamp(22px,3vw,30px)!important;line-height:1.6}
body .bmc-daily-cta a[href*="contact-sell"]{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:13px 22px;border-radius:7px;background:#205a4a;color:#fff!important;text-decoration:none;font-weight:700;line-height:1.6}
body .bmc-daily-cta a[href*="contact-sell"]:hover{background:#163f34}
body .bmc-daily-cta a:focus-visible{outline:3px solid #bb854b;outline-offset:4px}
@media(max-width:600px){body .bmc-about-hero h1,body .bmc-legal-hero h1{font-size:30px!important;line-height:1.5!important}body .bmc-daily-cta a[href*="contact-sell"]{width:100%;box-sizing:border-box}}

@media(max-width:600px){#bmx-home #bmx-hero-title{font-size:clamp(26px,7.7vw,32px)!important;word-break:normal!important;letter-spacing:0!important}}

@media(min-width:601px) and (max-width:1000px){#bmx-home #bmx-hero-title{font-size:clamp(30px,4.1vw,40px)!important;word-break:normal!important;letter-spacing:0!important}}

/* Text presentation for public-case related links; original media retained. */
.p-relatedPosts .p-postList__link[href*="/boseki-ma-case-"] .p-postList__thumb{display:none!important}
.p-relatedPosts .p-postList__link[href*="/boseki-ma-case-"]{display:block;background:#f4f7f5;border:1px solid #d6e2dc;border-radius:8px;height:100%;overflow:hidden}
.p-relatedPosts .p-postList__link[href*="/boseki-ma-case-"] .p-postList__body{padding:16px;width:100%;box-sizing:border-box}
.p-relatedPosts .p-postList__link[href*="/boseki-ma-case-"] .p-postList__title{color:#142b39;font-size:16px;line-height:1.7}

/* Keep article navigation compact while retaining the numbered outline. */
.bmc-article .p-toc li{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:5px 0!important;margin:0!important}
	
nav#gnav#gnav#gnav#gnav.l-header__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']) { background:#102A43 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
nav#gnav#gnav#gnav#gnav.l-header__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):hover { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
nav#gnav#gnav#gnav#gnav.l-header__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):focus-visible { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
nav#gnav#gnav#gnav#gnav.l-header__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']) > span { color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; }
nav#gnav#gnav#gnav#gnav.l-header__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):hover > span { color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; }
nav#gnav#gnav#gnav#gnav.l-header__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):focus-visible > span { color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; }
#fix_header#fix_header#fix_header#fix_header div.l-fixHeader__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']) { background:#102A43 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#fix_header#fix_header#fix_header#fix_header div.l-fixHeader__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):hover { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#fix_header#fix_header#fix_header#fix_header div.l-fixHeader__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):focus-visible { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#fix_header#fix_header#fix_header#fix_header div.l-fixHeader__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']) > span { color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; }
#fix_header#fix_header#fix_header#fix_header div.l-fixHeader__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):hover > span { color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; }
#fix_header#fix_header#fix_header#fix_header div.l-fixHeader__gnav.c-gnavWrap a:not([class]):is([href='https://boseki-ma-center.jp/contact/'],[href^='https://boseki-ma-center.jp/contact/?']):focus-visible > span { color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084'] { background:#FFFFFF !important; color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084']:hover { background:#F3F6F8 !important; color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084']:focus-visible { background:#F3F6F8 !important; color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084'] > small { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084']:hover > small { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084']:focus-visible > small { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084'] > strong { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084']:hover > strong { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-phone[href='tel:0345600084']:focus-visible > strong { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-btn.bmx-btn--accent:is([href='/contact-sell/'],[href='https://boseki-ma-center.jp/contact-sell/'],[href^='https://boseki-ma-center.jp/contact-sell/?']) { background:#102A43 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-btn.bmx-btn--accent:is([href='/contact-sell/'],[href='https://boseki-ma-center.jp/contact-sell/'],[href^='https://boseki-ma-center.jp/contact-sell/?']):hover { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home header.bmx-header a.bmx-btn.bmx-btn--accent:is([href='/contact-sell/'],[href='https://boseki-ma-center.jp/contact-sell/'],[href^='https://boseki-ma-center.jp/contact-sell/?']):focus-visible { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home div.bmx-mobile-bar a:not([class]):is([href='/contact-sell/'],[href='https://boseki-ma-center.jp/contact-sell/'],[href^='https://boseki-ma-center.jp/contact-sell/?']) { background:#102A43 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home div.bmx-mobile-bar a:not([class]):is([href='/contact-sell/'],[href='https://boseki-ma-center.jp/contact-sell/'],[href^='https://boseki-ma-center.jp/contact-sell/?']):hover { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#bmx-home#bmx-home#bmx-home#bmx-home div.bmx-mobile-bar a:not([class]):is([href='/contact-sell/'],[href='https://boseki-ma-center.jp/contact-sell/'],[href^='https://boseki-ma-center.jp/contact-sell/?']):focus-visible { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }

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

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

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

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

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

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

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

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

/* 墓石M&A総合センターの本文・余白の白背景 */
html:has(#body_wrap),
html body:has(#body_wrap),
html body #body_wrap:has(#main_content),
#body_wrap :is(#content, #main_content, #header, #fix_header, #breadcrumb),
html body:has(#body_wrap) .bmc-pretheme-footer,
#body_wrap #main_content :is(#bmx-home, .bmx-hero, #seller-fee-reasons, #ma-owner-voices, .bmx-note-card, .bmx-disclosure__intro, .bmx-policy-seal, .bmx-fee-note),
#body_wrap #content #main_content #bmx-home #bmx-whitepaper-home .bmx-whitepaper,
#body_wrap #main_content :is(#aj-boseki-hero-figure, #aj-boseki-cv-figure, #aj-boseki-contact-figure),
#body_wrap #main_content :is(.bmc-legal-site, .bmc-about-site, .bmc-about-section, .bmc-about-step, .bmc-about-note, .bmc-page-hero, .bmc-section, #bose-general-form),
#body_wrap #main_content :is(.bmc-note, .bmc-privacy, .bmc-cta, .bmc-footer__trust, #ma-do-representative-profile, .bmc-daily-cta, .bmc-daily-faq),
#body_wrap #main_content #mawp-2 :is(.mawp-hero, .mawp-section, .mawp-consult, #download) {
  background-color: #fff !important;
  background-image: none !important;
}
/* 白地に合わせたお問い合わせ・資料ページの案内文字 */
#body_wrap #content #main_content .bmc-page-hero--nagashima .bmc-page-hero__copy :is(h1, p, .boseki-accel-small a),
#body_wrap #content #main_content #mawp-2 .mawp-hero :is(h1, .mawp-kicker, .mawp-lead, .mawp-small, .mawp-pills span),
#body_wrap #content #main_content #mawp-2 .mawp-consult :is(h2, p) {
  color: #173d34 !important;
  -webkit-text-fill-color: #173d34 !important;
}
#body_wrap #main_content :is(.boseki-general-button, .mawp-pills span) {
  border: 1px solid #a6bcb5 !important;
}
