/* Company Logos Section - 取引先企業一覧 */
.company-logos-section {
  background-color: #ffffff;
  padding: 5vh 0 10px 0;
  overflow: hidden;
}

.company-logos-section .section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-logos-section .section-header {
  text-align: center;
  margin-bottom: 10px;
}

.company-logos-section .title-container {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.company-logos-section .section-title {
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  font-size: 38px;
  color: #192f60;
  margin: 0;
  letter-spacing: 1px;
  text-align: center;
  vertical-align: baseline;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-logos-section .section-subtitle {
  font-family: "Inter-Regular", Helvetica;
  font-weight: 600;
  font-size: 18px;
  color: #192f60;
  margin: 0;
  vertical-align: baseline;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logos-scroll-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
}

.logos-scroll-track {
  display: flex;
  animation: scroll-left 20s linear infinite;
  gap: 40px;
}

.company-logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 180px;
}

.company-logos-image {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.logos-scroll-container:hover .logos-scroll-track {
  animation-play-state: paused;
}

.logos-scroll-container:hover .company-logos-image {
  filter: grayscale(0%);
}

.company-logos-image:hover {
  filter: grayscale(0%) !important;
  transform: scale(1.05);
}

/* Keyframe Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc((200px + 40px) * -15));
  }
}

/* Responsive design for Company Logos Section */
@media (max-width: 768px) {
  .company-logos-section {
    padding: 40px 0;
  }

  .company-logos-section .section-title {
    font-size: 24px;
  }

  .company-logos-section .section-subtitle {
    font-size: 14px;
  }

  .company-logo-item {
    min-width: 150px;
    height: 120px;
  }

  .company-logos-image {
    max-width: 150px;
  }

  .logos-scroll-track {
    animation-duration: 12s;
    gap: 30px;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc((150px + 30px) * -15));
    }
  }
}

@media (max-width: 480px) {
  .company-logos-section {
    padding: 30px 0;
  }

  .company-logos-section .section-title {
    font-size: 18px;
  }

  .company-logos-section .section-subtitle {
    font-size: 12px;
  }

  .company-logo-item {
    min-width: 120px;
    height: 100px;
  }

  .company-logos-image {
    max-width: 120px;
  }

  .logos-scroll-track {
    gap: 20px;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc((120px + 20px) * -15));
    }
  }
}

@media (max-width: 360px) {
  .company-logos-section .section-title {
    font-size: 16px;
  }

  .company-logos-section .section-subtitle {
    font-size: 11px;
  }

  .company-logo-item {
    min-width: 100px;
    height: 80px;
  }

  .company-logos-image {
    max-width: 100px;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc((100px + 15px) * -15));
    }
  }
}

@media (max-width: 320px) {
  .company-logos-section .section-title {
    font-size: 12px;
  }

  .company-logos-section .section-subtitle {
    font-size: 9px;
  }

  .company-logo-item {
    min-width: 90px;
    height: 70px;
  }

  .company-logos-image {
    max-width: 90px;
  }

  .logos-scroll-track {
    gap: 15px;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc((90px + 15px) * -15));
    }
  }
}

@media (max-width: 280px) {
  .company-logos-section .section-title {
    font-size: 10px;
  }

  .company-logos-section .section-subtitle {
    font-size: 8px;
  }

  .company-logo-item {
    min-width: 80px;
    height: 60px;
  }

  .company-logos-image {
    max-width: 80px;
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc((80px + 15px) * -15));
    }
  }
}