/* Approved homepage refinement; the shared Dgency theme stays intact. */
.mazai-home .hero-content,
.mazai-home .hero-content h1,
.mazai-home .hero-content h5,
.mazai-home .hero-content p,
.mazai-home .hero-content a,
.mazai-home .mazai-brand {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.mazai-home .mazai-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mazai-home .mazai-brand-mark {
  display: block;
  flex: 0 0 50px;
  width: 50px;
  height: 33px;
  overflow: hidden;
}

.mazai-home .header-wrapper .mazai-brand-mark img {
  display: block;
  width: 156px;
  max-width: none;
  height: 33px;
}

.mazai-home .mazai-brand-name {
  color: var(--theme-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 33px;
}

.mazai-home .hero-content h5 {
  font-size: 22px;
  line-height: 1.4;
}

.mazai-home .hero-content h1 {
  font-size: 70px;
  font-weight: 700;
  line-height: 1.28;
  white-space: pre-line;
}

.mazai-home .hero-content p {
  font-size: 22px;
  line-height: 1.6;
  white-space: pre-line;
}

.mazai-home .hero-content .banner-cmn a {
  font-size: 16px;
  line-height: 23.4px;
  text-align: center;
}

.mazai-home .hero-content .cmn--border {
  padding-top: 14px;
  padding-bottom: 15px;
}

@media (min-width: 576px) {
  .mazai-home .hero-content .cmn--btn { min-width: 156px; }
  .mazai-home .hero-content .cmn--border { min-width: 205px; }
}

.mazai-home .hero-thumb {
  right: max(30px, calc((100vw - 1440px) / 2 + 50px));
  bottom: 110px;
  width: min(50vw, 740px);
  height: auto;
  pointer-events: none;
}

.mazai-home .hero-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.mazai-home .hero-content a:focus-visible,
.mazai-home .mazai-brand:focus-visible {
  outline: 3px solid var(--theme-color);
  outline-offset: 5px;
}

@media (min-width: 992px) and (max-width: 1399px) {
  .mazai-home .hero-content h1 { font-size: 54px; line-height: 1.4; }
  .mazai-home .hero-content p { font-size: 20px; }
  .mazai-home .hero-thumb { right: 14px; bottom: 145px; width: 48vw; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .mazai-home .hero-content h1 { font-size: 48px; }
  .mazai-home .hero-content h5 { font-size: 18px; }
  .mazai-home .hero-content p { max-width: 470px; font-size: 18px; }
  .mazai-home .hero-thumb { right: 0; bottom: 145px; width: 46vw; }
}

@media (max-width: 991px) {
  .mazai-home .hero-section { padding: 155px 0 145px; }
  .mazai-home .hero-content h1 { font-size: 52px; line-height: 1.4; }
  .mazai-home .hero-content p { font-size: 20px; }
  .mazai-home .hero-thumb {
    display: block;
    position: relative;
    right: auto;
    bottom: auto;
    width: min(620px, calc(100% - 32px));
    margin: 30px auto 0;
  }
}

@media (max-width: 575px) {
  .mazai-home .hero-section { padding: 130px 0 130px; }
  .mazai-home .hero-content h5 { font-size: 17px; margin-bottom: 20px; }
  .mazai-home .hero-content h1 { font-size: clamp(30px, 9vw, 44px); line-height: 1.45; }
  .mazai-home .hero-content p { font-size: 17px; line-height: 1.7; }
  .mazai-home .hero-content .banner-cmn { gap: 12px; }
  .mazai-home .hero-content .banner-cmn a {
    margin: 10px 0 0;
    padding: 12px 22px;
    font-size: 16px;
  }
  .mazai-home .hero-thumb { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .mazai-home .hero-section [class^="banner-shape"],
  .mazai-home .hero-content,
  .mazai-home .hero-section .wow {
    animation: none !important;
    visibility: visible !important;
  }
}
