/* Top page: promote Genba Log as the primary service. */

/* Show Genba Log first in the rotating hero. */
.hero-slider .slide-1 { animation-delay: 7s; }
.hero-slider .slide-2 { animation-delay: 0s; }
.hero-slider .slide-3 { animation-delay: 14s; }
.hero-slider .slide-4 { animation-delay: 21s; }

#services .cards-business {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#services .genba-primary-card {
  order: -1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(30, 101, 155, .20);
  border-radius: 30px;
  background: linear-gradient(135deg, #f4faff 0%, #fff 62%);
  box-shadow: 0 22px 54px rgba(15, 79, 125, .13);
}

#services .genba-primary-visual {
  height: auto;
  min-height: 520px;
  border: 0;
  border-right: 1px solid rgba(199, 217, 229, .9);
}
#services .genba-primary-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #eef5f8;
}

#services .genba-primary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 54px;
}

#services .genba-primary-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 0 14px;
  align-self: flex-start;
}

#services .genba-primary-copy h3 {
  margin: 0 0 14px;
  color: #12375c;
  font-size: clamp(1.95rem, 2.5vw, 2.55rem);
  line-height: 1.28;
  letter-spacing: -.02em;
}

#services .genba-primary-copy p {
  margin: 0;
  color: #465f76;
  font-size: 17px;
  line-height: 1.9;
}

#services .genba-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
#services .genba-feature-grid span {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 13px 10px;
  border: 1px solid rgba(55, 137, 197, .18);
  border-radius: 16px;
  background: rgba(239, 248, 253, .92);
  text-align: center;
}

#services .genba-feature-grid strong {
  color: #155486;
  font-size: 14px;
  line-height: 1.4;
}

#services .genba-feature-grid small {
  color: #657b8f;
  font-size: 11px;
  line-height: 1.45;
}

#services .genba-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

#services .genba-primary-actions .link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  margin: 0;
  padding: 13px 20px;
  border-radius: 999px;
  background: #1768a6;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23, 104, 166, .18);
}
#services .genba-primary-actions .link:hover {
  transform: translateY(-1px);
}

#services .genba-primary-actions .link::after {
  content: none;
}

#services .genba-primary-actions .link-secondary {
  border: 1px solid #1768a6;
  background: #fff;
  color: #1768a6;
  box-shadow: none;
}

/* Put the Genba Log document first in the home-page materials section. */
#materials .material-clean-card:nth-child(2) {
  order: -1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide.slide-1 {
    opacity: 0;
    visibility: hidden;
  }

  .hero-slider .hero-slide.slide-2 {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 1100px) {
  #services .genba-primary-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  #services .genba-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  #services .cards-business {
    grid-template-columns: 1fr;
  }

  #services .genba-primary-card {
    grid-template-columns: 1fr;
  }

  #services .genba-primary-visual {
    min-height: 0;
    aspect-ratio: 930 / 887;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 217, 229, .9);
  }

  #services .genba-primary-copy {
    padding: 30px;
  }
}

@media (max-width: 560px) {
  #services .genba-primary-card {
    border-radius: 24px;
  }

  #services .genba-primary-copy {
    padding: 24px 22px 26px;
  }

  #services .genba-primary-logo {
    width: min(100%, 300px);
    margin-bottom: 18px;
  }

  #services .genba-primary-copy h3 {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  #services .genba-primary-copy p {
    font-size: 16px;
    line-height: 1.8;
  }

  #services .genba-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
  }

  #services .genba-primary-actions {
    flex-direction: column;
    margin-top: 22px;
  }

  #services .genba-primary-actions .link {
    width: 100%;
  }
}
/* Genba Log lead card: only the CTA buttons are interactive. */
#services .genba-primary-card {
  cursor: default;
}
#services .genba-primary-actions .link {
  cursor: pointer;
}
