/* Homepage content refresh: preserve the existing Dgency sections and grids. */
.mazai-home :is(.counter-section, .service-section, .about-section, .protfolio-section, .touch-project, .process-section, .touch-section, .footer-section) :is(h2, h3, h4, h5, p, a, span) {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.mazai-home .section-header h2 { font-size: 44px; line-height: 1.45; }
.mazai-home .section-header p { line-height: 1.8; }
.mazai-home .section-bg-two { background: #f8f6ff; }
.mazai-home .counter-wrapper { padding: 48px 70px; }
.mazai-home .counter-items .counter-content h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.4; }
.mazai-home .counter-items p { font-size: 16px; line-height: 1.75; }

.mazai-home :is(.service-section, .protfolio-section, .process-section, .touch-section) .row > div { display: flex; }
.mazai-home :is(.service-items, .protfolio-items, .process-items) { width: 100%; }
.mazai-home .service-items { height: 100%; }
.mazai-home .service-items .home-service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: #f5f4ff;
  color: #7455d8;
}
.mazai-home .home-service-icon i { font-size: 48px; }
.mazai-home .home-service-icon img { object-fit: contain; }
.mazai-home .service-items h5 { font-size: 24px; line-height: 1.45; }
.mazai-home .service-items p { font-size: 17px; line-height: 1.8; }
.mazai-home .about-thumb-left { max-width: none; margin-left: 0; }
.mazai-home .about-thumb-left img { width: 100%; height: auto; }
.mazai-home .about-content-right .section-header p { margin-top: 20px; }
.mazai-home .about-cmn { gap: 10px; }
.mazai-home .about-content-right .about-cmn a { margin-right: 0; }

.mazai-home .protfolio-items { display: flex; flex-direction: column; }
.mazai-home .protfolio-section .protfolio-thumb { aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; background: #f5f4ff; }
.mazai-home .protfolio-thumb a { display: block; height: 100%; }
.mazai-home .protfolio-section .protfolio-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mazai-home .protfolio-items .protfolio-content { flex: 1; display: flex; flex-direction: column; }
.mazai-home .protfolio-items .protfolio-content h5 { font-size: 24px; line-height: 1.5; }
.mazai-home .protfolio-items .protfolio-content p { margin: 0 0 20px; font-size: 17px; line-height: 1.8; }
.mazai-home .protfolio-items .cmn--link { margin-top: auto; font-size: 16px; }
.mazai-home .protfolio-items:hover .protfolio-thumb { transform: none; }
.mazai-home .touch-left-content .section-header p { max-width: 570px; }
.mazai-home .touch-thumb img { height: auto; }
.mazai-home .process-items { height: 100%; }
.mazai-home .process-items .process-content h4 { font-size: 26px; line-height: 1.5; }
.mazai-home .process-items p { font-size: 17px; line-height: 1.8; }
.mazai-home .touch-section .protfolio-thumb { aspect-ratio: 7 / 4; overflow: hidden; border-radius: 20px; background: #f5f4ff; }
.mazai-home .touch-section .protfolio-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mazai-home .touch-section .protfolio-content h5 { font-size: 16px; line-height: 1.75; color: #6c6296; }
.mazai-home .touch-section .protfolio-content h4 { margin: 0 0 12px; font-size: 28px; line-height: 1.5; }
.mazai-home .touch-section .protfolio-content p { margin-bottom: 0; }

.mazai-home .footer-section .mazai-brand-name { color: white; }
.mazai-home .footer-section .mazai-brand-mark img { display: block; width: 156px; max-width: none; height: 33px; }
.mazai-home .footer-top .content-area p { line-height: 1.8; }
.mazai-home .footer-top .content-area .home-company-name { margin-top: 16px; font-size: 14px; color: #d0cce9; }
.mazai-home .footer-bottom p { font-size: 15px; }
.mazai-home .footer-top .contact .email-part { overflow-wrap: anywhere; }
.mazai-home a:focus-visible { outline: 3px solid var(--theme-color); outline-offset: 4px; }
.mazai-home :is(.footer-section, .touch-project) a:focus-visible { outline-color: #fa8fc1; }

@media (max-width: 1199px) {
  .mazai-home .section-header h2 { font-size: 38px; }
  .mazai-home .service-items { padding: 30px 24px; }
  .mazai-home .protfolio-items .protfolio-content h5 { font-size: 22px; }
  .mazai-home .process-items .process-content h4 { font-size: 24px; }
}

@media (max-width: 991px) {
  .mazai-home .section-header h2 { font-size: 34px; }
  .mazai-home .counter-wrapper { padding: 40px 30px; }
  .mazai-home .about-thumb-left { width: min(100%, 720px); margin: 40px auto 0; }
  .mazai-home .protfolio-header-wrapper { gap: 20px; align-items: flex-start; }
  .mazai-home .touch-thumb { max-width: 620px; margin: 40px auto 0; }
}

@media (max-width: 575px) {
  .mazai-home .section-header h2 { font-size: 28px; line-height: 1.5; }
  .mazai-home .section-header p { font-size: 16px; }
  .mazai-home .counter-wrapper { padding: 28px 22px; }
  .mazai-home .counter-items { padding: 24px 14px; }
  .mazai-home .counter-items .counter-content h2 { font-size: 24px; }
  .mazai-home .counter-items p { font-size: 15px; }
  .mazai-home .service-items .home-service-icon { margin-left: auto; margin-right: auto; }
  .mazai-home .protfolio-header-wrapper { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .mazai-home .protfolio-header-wrapper .section-header { margin-bottom: 0; }
  .mazai-home .touch-section .protfolio-content h4 { font-size: 24px; }
  .mazai-home .footer-top .widget-items .footer-head { margin-bottom: 24px; }
  .mazai-home .footer-bottom { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mazai-home .touch-thumb,
  .mazai-home .wow { animation: none !important; visibility: visible !important; }
}

/* Empty editorial feed: articles are supplied by CMS publishing. */
.mazai-home .home-articles-empty { padding: 34px 0; color: #625380; font-size: 18px; border-top: 1px solid #ded5ef; text-align: center; }
