
/* Codex Gaichu responsive polish 2026-07-05 */
html body #body_wrap .gmcx-site .gmcx-hero {
  max-width: 100% !important;
  overflow: hidden !important;
}

html body #body_wrap .gmcx-site .gmcx-hero__media {
  inset: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html body #body_wrap .gmcx-site .gmcx-hero__media img {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}

@media (max-width: 599px) {
  html body #body_wrap #breadcrumb.p-breadcrumb {
    overflow: hidden !important;
  }

  html body #body_wrap .p-breadcrumb__list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: .25em .45em !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body #body_wrap .p-breadcrumb__item {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body #body_wrap .p-breadcrumb__item:last-child {
    flex: 1 1 100% !important;
  }

  html body #body_wrap .p-breadcrumb__text {
    display: inline !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

html body #body_wrap .wpcf7 .gmc-cf7-form :where(h2, .gmc-cf7-lead, .gmc-form-step, .gmc-cf7-field--full, .gmc-cf7-privacy, .wpcf7-submit) {
  grid-column: 1 / -1 !important;
  max-width: 100% !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-form-step {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 1.4rem 0 .75rem !important;
  padding: 0 !important;
  font-size: 1.1rem !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-form-step::before,
html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-form-step::after {
  content: none !important;
  display: none !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-field {
  min-width: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-label {
  display: block !important;
  margin-bottom: .45rem !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form :where(input, select, textarea, .wpcf7-form-control-wrap) {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* GAICHU-CLEAN-FORM-UI-20260920-START */
html body #body_wrap .gmc-shell.gmc-two > .gmc-reveal:has(.gmc-cf7-wrap) {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

html body #body_wrap .gmc-shell.gmc-two > .gmc-reveal:has(.gmc-cf7-wrap) > .gmc-cf7-wrap {
  order: -1 !important;
}

html body #body_wrap .gmc-form-panel.gmc-cf7-wrap {
  width: 100% !important;
  padding: 32px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #d9e2e1 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #12313f !important;
  background: #ffffff !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form > h2,
html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-cf7-lead,
html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-form-step,
html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-cf7-field,
html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-cf7-privacy,
html body #body_wrap .wpcf7 .gmc-cf7-form > p {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form > h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #12313f !important;
  font-size: 28px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-cf7-lead {
  margin: 0 !important;
  padding: 14px 16px !important;
  color: #334d59 !important;
  background: #f5f7f8 !important;
  border: 1px solid #d9e2e1 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-form-step {
  margin: 8px 0 0 !important;
  padding: 16px 0 0 !important;
  color: #12313f !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #d9e2e1 !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form br {
  display: none !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-field,
html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-field > p {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-field > p {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-label {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #12313f !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-form-badge {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 2px 8px !important;
  border: 1px solid #aab9bf !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-form-badge--required {
  color: #ffffff !important;
  background: #12313f !important;
  border-color: #12313f !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-form-badge--optional {
  color: #415a64 !important;
  background: #f5f7f8 !important;
  border-color: #cbd6da !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
html body #body_wrap .wpcf7 .gmc-cf7-form select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  color: #12313f !important;
  background: #ffffff !important;
  border: 1px solid #aab9bf !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 160px !important;
  min-height: 160px !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  color: #12313f !important;
  background: #ffffff !important;
  border: 1px solid #aab9bf !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  resize: vertical !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form :is(input, select, textarea):focus {
  border-color: #12313f !important;
  outline: 3px solid rgba(18, 49, 63, .18) !important;
  outline-offset: 1px !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form ::placeholder {
  color: #61737b !important;
  opacity: 1 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .wpcf7-list-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .wpcf7-list-item label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  color: #223d49 !important;
  background: #ffffff !important;
  border: 1px solid #d9e2e1 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  cursor: pointer !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form input[type="checkbox"],
html body #body_wrap .wpcf7 .gmc-cf7-form input[type="radio"] {
  flex: 0 0 auto !important;
  width: 22px !important;
  height: 22px !important;
  margin: 1px 0 0 !important;
  accent-color: #12313f !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-privacy {
  margin: 0 !important;
  padding: 16px !important;
  color: #334d59 !important;
  background: #f5f7f8 !important;
  border: 1px solid #d9e2e1 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-privacy .wpcf7-list-item label {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-privacy a {
  color: #12313f !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form > p:has(> input.wpcf7-submit) {
  margin: 0 !important;
  padding: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form input.wpcf7-submit {
  display: block !important;
  width: 100% !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  color: #ffffff !important;
  background: #12313f !important;
  border: 1px solid #12313f !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

html body #body_wrap .wpcf7 .gmc-cf7-form input.wpcf7-submit:disabled {
  color: #ffffff !important;
  background: #87959b !important;
  border-color: #87959b !important;
  cursor: not-allowed !important;
}

@media (max-width: 760px) {
  html body #body_wrap .gmc-shell.gmc-two > .gmc-reveal:has(.gmc-cf7-wrap) {
    gap: 18px !important;
  }

  html body #body_wrap .gmc-form-panel.gmc-cf7-wrap {
    padding: 18px 12px !important;
    border-radius: 8px !important;
  }

  html body #body_wrap .wpcf7 .gmc-cf7-form {
    gap: 16px !important;
  }

  html body #body_wrap .wpcf7 .gmc-cf7-form > h2 {
    font-size: 22px !important;
    line-height: 1.45 !important;
  }

  html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-cf7-lead {
    padding: 12px !important;
    font-size: 14px !important;
  }

  html body #body_wrap .wpcf7 .gmc-cf7-form > .gmc-form-step {
    padding-top: 14px !important;
    font-size: 17px !important;
  }

  html body #body_wrap .wpcf7 .gmc-cf7-form .gmc-cf7-label {
    font-size: 16px !important;
  }
}
/* GAICHU-CLEAN-FORM-UI-20260920-END */
/* GAICHU-FORM-LAYOUT-FINAL-20260920-START */
html body #body_wrap .gmc-shell.gmc-two:has(.gmc-cf7-wrap) {
  grid-template-columns: minmax(0, 820px) !important;
  justify-content: center !important;
}

html body #body_wrap .gmc-form-panel.gmc-cf7-wrap {
  max-width: 820px !important;
  margin-inline: auto !important;
}

@media (max-width: 760px) {
  html body:has(#body_wrap .gmc-form-panel.gmc-cf7-wrap) .gmc-mobile-trust-strip {
    display: none !important;
  }
}
/* GAICHU-FORM-LAYOUT-FINAL-20260920-END */
/* GAICHU-FORM-PC-ONE-COLUMN-20260920-START */
@media (min-width: 981px) {
  html body #body_wrap#body_wrap .gmc-shell.gmc-two:has(.gmc-cf7-wrap) {
    grid-template-columns: minmax(0, 820px) !important;
    justify-content: center !important;
    gap: 24px !important;
    align-items: start !important;
  }

  html body #body_wrap#body_wrap .gmc-shell.gmc-two > .gmc-reveal:first-child:has(> .gmc-cf7-wrap) > .gmc-form-panel.gmc-cf7-wrap {
    grid-column: 1 !important;
    width: min(820px, 100%) !important;
    justify-self: center !important;
    margin-top: 0 !important;
    order: -1 !important;
  }

  html body #body_wrap#body_wrap .gmc-shell.gmc-two:has(.gmc-cf7-wrap) > aside {
    grid-area: auto !important;
    grid-column: 1 !important;
    width: 100% !important;
  }
}
/* GAICHU-FORM-PC-ONE-COLUMN-20260920-END */
/* Keep the complete footer brand image visible. */
html body #body_wrap #footer.gmc-trust-footer .gmc-footer-logo > img{object-fit:contain!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;
}

#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084'] { background:#FFFFFF !important; color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; border-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084']:hover { background:#F3F6F8 !important; color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; border-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084']:focus-visible { background:#F3F6F8 !important; color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; border-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084'] > span { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084']:hover > span { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084']:focus-visible > span { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084'] > strong { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084']:hover > strong { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-phone[href='tel:0345600084']:focus-visible > strong { color:#102A43 !important; -webkit-text-fill-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-cta:is([href='https://gaichu-ma-center.jp/contact/'],[href^='https://gaichu-ma-center.jp/contact/?']) { background:#102A43 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-cta:is([href='https://gaichu-ma-center.jp/contact/'],[href^='https://gaichu-ma-center.jp/contact/?']):hover { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }
#header#header#header#header div.l-header__inner.l-container a.gmc-header-cta:is([href='https://gaichu-ma-center.jp/contact/'],[href^='https://gaichu-ma-center.jp/contact/?']):focus-visible { background:#0A1F33 !important; color:#FFFFFF !important; -webkit-text-fill-color:#FFFFFF !important; border-color:#102A43 !important; }


/* Logo background harmony | 2026-10-09 */
html body #footer .gmc-footer-brand{background:#fff!important;color:#18384b!important;padding:clamp(20px,2.4vw,28px)!important;border:1px solid #e1e9ed!important;border-radius:12px!important;box-shadow:none!important;box-sizing:border-box;min-width:0}
html body #footer .gmc-footer-brand :is(p,a,small,strong,span,dt,dd,li,h2,h3){color:#18384b!important}
html body #footer .gmc-footer-brand :is(dl,dt,dd){border-color:#dce5ea!important}
html body #footer .gmc-footer-logo{background-color:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:100%}

/* Logo brand readability refinement | 2026-10-09 */


/* Logo background harmony | 2026-10-09 */
html body #body_wrap#body_wrap#body_wrap #footer .gmc-footer-brand{background:#fff!important;color:#18384b!important;padding:clamp(20px,2.4vw,28px)!important;border:1px solid #e1e9ed!important;border-radius:12px!important;box-shadow:none!important;box-sizing:border-box;min-width:0}
html body #body_wrap#body_wrap#body_wrap #footer .gmc-footer-brand :is(p,a,small,strong,span,dt,dd,li,h2,h3){color:#18384b!important}
html body #body_wrap#body_wrap#body_wrap #footer .gmc-footer-brand :is(dl,dt,dd){border-color:#dce5ea!important}
html body #body_wrap#body_wrap#body_wrap #footer .gmc-footer-logo{background-color:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;max-width:100%}
html body #body_wrap#body_wrap#body_wrap #footer .gmc-footer-brand :is(p,a,small,strong,span,dt,dd,li,h2,h3){background-color:transparent!important;color:#18384b!important;opacity:1!important}
html body #body_wrap#body_wrap#body_wrap #footer .gmc-footer-logo img{background-color:transparent!important;box-shadow:none!important;border:0!important}

