/* ALFas hotfix.css v107 (2026-02-06 17:04 JST)
   - Mobile header: prevent logo text overlapping hamburger
   - Mobile hero: show S images fully (no vertical crop)
   - Footer badge: keep subtle (10% width)
*/

/* --- Mobile Header: stop overlap --- */
@media (max-width: 768px){
  .header-inner{
    gap: 10px !important;
  }
  .brand{
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .brand-text{
    min-width: 0 !important;
  }
  .brand-sub{
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  /* Description is the main culprit; hide on mobile to keep header clean */
  .brand-desc{
    display: none !important;
  }
  .nav-toggle{
    flex: 0 0 auto !important;
  }
}

/* --- Mobile Hero: full visibility for 2:3 S images --- */
@media (max-width: 768px){
  .hero .hero-frame,
  .hero-frame{
    height: calc(100vw * 3 / 2) !important;   /* 2:3 */
    min-height: calc(100vw * 3 / 2) !important;
    max-height: none !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
  }

  .hero .hero-slide,
  .hero-slide{
    height: 100% !important;
    min-height: 100% !important;
  }

  .hero .hero-slide picture,
  .hero .hero-slide img,
  .hero-slide picture,
  .hero-slide img{
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
  }

  .hero .hero-slide img,
  .hero-slide img{
    object-fit: contain !important; /* show all */
    object-position: center center !important;
    background: transparent !important;
    transform: none !important;
  }

  .hero .hero-dots{ bottom: 12px !important; }
}

/* --- Footer badge size --- */
.site-footer img,
footer.site-footer img,
.site-footer .badge img,
.site-footer .cert img,
.footer-badge img,
.badge-footer img,
.cert-badge img{
  width: 10% !important;
  max-width: 10% !important;
  height: auto !important;
  display: block !important;
  margin: 16px auto 0 !important;
}

.hero, .hero *{ -webkit-tap-highlight-color: transparent; }
