/* Approved contact layout, scoped to preserve the existing theme pages. */
.mazai-contact, .mazai-contact :is(h1,h2,h3,h4,h5,p,a,span,label,input,select,textarea,button,small,strong) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
.mazai-contact .mazai-brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mazai-contact .mazai-brand-mark { display: block; flex: 0 0 50px; width: 50px; height: 33px; overflow: hidden; }
.mazai-contact .mazai-brand-mark img { display: block; width: 156px; max-width: none; height: 33px; }
.mazai-contact .mazai-brand-name { color: var(--theme-color); font-size: 24px; font-weight: 700; line-height: 33px; }
.mazai-contact .hero-section.hero-breadcumnd { background: #f7f4ff; }
.mazai-contact .contact-hero-art { position: absolute; right: max(30px,calc((100vw - 1320px) / 2)); bottom: 0; width: 42%; height: 82%; object-fit: contain; pointer-events: none; }
.mazai-contact .section-header h2 { font-size: 44px; line-height: 1.45; }
.mazai-contact .contact-section { padding: 52px 0 40px; }
.mazai-contact .contact-section .section-header { max-width: 1100px; }
.mazai-contact .contact-section .section-header h2 { font-size: 64px; line-height: 1.2; }
.mazai-contact .contact-section .section-header p { max-width: 1100px; margin: 16px auto 0; font-size: 22px; line-height: 1.5; }
.mazai-contact .contact-layout { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.mazai-contact .form-area-left { padding: 32px; background: #fff; border: 1px solid #eceaf0; border-radius: 22px; box-shadow: 0 5px 20px #21175c1c; }
.mazai-contact #contact-inquiry { scroll-margin-top: 112px; }
.mazai-contact .inquiry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 26px; }
.mazai-contact .inquiry-wide { grid-column: 1 / -1; }
.mazai-contact .inquiry-field { min-width: 0; }
.mazai-contact .inquiry-field label { display: block; margin: 0 0 10px; color: #21175c; font-size: 20px; font-weight: 700; line-height: 1.5; }
.mazai-contact .inquiry-field label span, .mazai-contact .field-hint span { color: #ba1730; }
.mazai-contact .inquiry-field label em { font-style: normal; font-size: inherit; }
.mazai-contact .inquiry-field :is(input,textarea,select) { display: block; width: 100%; min-width: 0; min-height: 54px; padding: 12px 17px; border: 1px solid #9562ff; border-radius: 10px; outline: none; color: #21175c; background: #f6f3fd; font-size: 18px; line-height: 1.5; box-shadow: none; }
.mazai-contact .inquiry-field select { appearance: auto; padding-right: 14px; }
.mazai-contact .inquiry-field textarea { height: 128px; min-height: 128px; resize: vertical; }
.mazai-contact .inquiry-field :is(input,textarea)::placeholder { color: #777283; opacity: 1; }
.mazai-contact .inquiry-field :is(input,textarea,select):focus-visible { outline: 3px solid #d7c5ff; outline-offset: 2px; border-color: #6330c7; }
.mazai-contact .inquiry-field [aria-invalid="true"] { border-color: #ba1730; }
.mazai-contact .field-error { display: none; margin-top: 6px; font-size: 14px; color: #a21b32; line-height: 1.6; }
.mazai-contact .field-error:not(:empty) { display: block; }
.mazai-contact .field-hint { display: block; margin-top: 7px; color: #6d667e; font-size: 14px; line-height: 1.6; }
.mazai-contact [hidden] { display: none !important; }
.mazai-contact .inquiry-required { margin: 18px 0 0; }
.mazai-contact .inquiry-actions { display: flex; gap: 24px; align-items: center; margin-top: 22px; }
.mazai-contact .inquiry-actions p { margin: 0; color: #6d667e; font-size: 16px; line-height: 1.7; }
.mazai-contact .inquiry-submit { flex: 0 0 auto; min-width: 230px; min-height: 66px; font-size: 20px; font-weight: 700; border: 0; }
.mazai-contact button:disabled { cursor: wait; opacity: .65; }
.mazai-contact .inquiry-status { margin-top: 20px; padding: 14px 16px; border-radius: 10px; background: #f6f3fd; color: #37315c; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.mazai-contact .inquiry-status[data-state="success"] { background: #edf8f0; color: #235535; border: 1px solid #b0d7bd; }
.mazai-contact .inquiry-status[data-state="error"] { background: #fff2f3; color: #8b2230; border: 1px solid #eac1c8; }
.mazai-contact .inquiry-noscript { margin-top: 18px; font-size: 15px; line-height: 1.8; }
.mazai-contact .contact-details { margin-top: 14px; padding: 28px; border: 1px solid #9562ff; border-radius: 20px; }
.mazai-contact .contact-details h3 { margin: 0 0 12px; font-size: 44px; line-height: 1.4; }
.mazai-contact .contact-company { margin: 0; color: #5b5088; font-size: 22px; line-height: 1.8; }
.mazai-contact .contact-methods { display: grid; gap: 22px; margin: 36px 0; padding: 0; list-style: none; }
.mazai-contact .contact-methods a { display: flex; align-items: center; gap: 20px; padding: 15px; border-radius: 12px; background: #f5f2ff; color: #21175c; }
.mazai-contact .contact-method-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 12px; background: #0053ca; color: #fff; font-size: 29px; }
.mazai-contact .contact-methods a > span:last-child { min-width: 0; }
.mazai-contact .contact-method-label { display: block; font-size: 22px; line-height: 1.5; }
.mazai-contact .contact-methods strong { display: block; margin-top: 4px; font-size: 24px; line-height: 1.5; overflow-wrap: anywhere; }
.mazai-contact .contact-topics { padding-top: 30px; border-top: 1px solid #bda2f7; }
.mazai-contact .contact-topics h4 { margin-bottom: 18px; font-size: 32px; line-height: 1.5; }
.mazai-contact .contact-topics p { font-size: 24px; line-height: 1.8; }
.mazai-contact .contact-topics .contact-direct-note { margin: 30px 0 0; color: #5b5088; font-size: 20px; }
.mazai-contact .faq-section { background: #f8f6ff; }
.mazai-contact .faq-section .section-header p { line-height: 1.8; }
.mazai-contact .accordion-button { font-size: 20px; line-height: 1.6; }
.mazai-contact .accordion-body p { line-height: 1.9; }
.mazai-contact .footer-section .mazai-brand-name { color: white; }
.mazai-contact .footer-top .content-area p { line-height: 1.8; }
.mazai-contact .footer-top .content-area .home-company-name { margin-top: 16px; font-size: 14px; color: #d0cce9; }
.mazai-contact .footer-bottom p { font-size: 15px; }
.mazai-contact .footer-top .contact .email-part { overflow-wrap: anywhere; }
.mazai-contact :is(a,button):focus-visible { outline: 3px solid #9562ff; outline-offset: 5px; }
.mazai-contact .footer-section a:focus-visible { outline-color: #fa8fc1; }
@media (max-width: 1199px) {
  .mazai-contact .contact-layout { gap: 28px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .mazai-contact .form-area-left { padding: 24px; }
  .mazai-contact .contact-details { padding: 24px; }
  .mazai-contact .contact-details h3 { font-size: 30px; }
  .mazai-contact .contact-methods a { gap: 12px; padding: 12px; }
  .mazai-contact .contact-methods strong { font-size: 17px; }
  .mazai-contact .contact-method-label { font-size: 16px; }
  .mazai-contact .contact-method-icon { flex-basis: 46px; width: 46px; height: 46px; font-size: 25px; }
  .mazai-contact .inquiry-actions { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 991px) {
  .mazai-contact .contact-section { padding: 60px 0; }
  .mazai-contact .contact-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .mazai-contact .contact-details { margin: 0; padding: 28px; }
  .mazai-contact .section-header h2 { font-size: 36px; }
  .mazai-contact .contact-section .section-header h2 { font-size: 36px; }
  .mazai-contact .contact-methods { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px) {
  .mazai-contact .section-header h2 { font-size: 28px; }
  .mazai-contact .contact-section .section-header h2 { font-size: 28px; }
  .mazai-contact .contact-section .section-header p { font-size: 16px; }
  .mazai-contact .form-area-left { padding: 22px 18px; border-radius: 18px; }
  .mazai-contact .inquiry-fields { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .mazai-contact .inquiry-field label { font-size: 16px; }
  .mazai-contact .inquiry-field :is(input,textarea,select) { font-size: 16px; }
  .mazai-contact .inquiry-actions { align-items: flex-start; gap: 12px; }
  .mazai-contact .inquiry-submit { width: 100%; min-width: 0; }
  .mazai-contact .contact-details { padding: 24px 20px; }
  .mazai-contact .contact-details h3 { font-size: 28px; }
  .mazai-contact .contact-company { font-size: 16px; }
  .mazai-contact .contact-methods { grid-template-columns: minmax(0,1fr); gap: 16px; margin: 26px 0; }
  .mazai-contact .contact-methods strong { font-size: 19px; }
  .mazai-contact .contact-topics h4 { font-size: 23px; }
  .mazai-contact .contact-topics p { font-size: 18px; }
  .mazai-contact .contact-topics .contact-direct-note { font-size: 16px; }
  .mazai-contact .accordion-button { font-size: 17px; }
  .mazai-contact .footer-top .widget-items .footer-head { margin-bottom: 24px; }
  .mazai-contact .footer-bottom { gap: 14px; }
}
@media (max-width: 767px) { .mazai-contact .contact-hero-art { display: none; } }
@media (max-width: 359px) {
  .mazai-contact .contact-methods strong { font-size: 16px; }
  .mazai-contact .contact-methods a { gap: 10px; padding: 10px; }
  .mazai-contact .contact-method-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .mazai-contact *, .mazai-contact *::before, .mazai-contact *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
