/* 企業ロゴエリア */
.company-logos {
  background: #fff;
  padding: 0px 0  80px;
  margin: -40px 0 0;
}

.company-logos__inner {
  /* max-width: 1200px; */
  margin: 0 auto;
  /* padding: 0 20px; */
}

.company-logos h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.company-logos__slider {
  overflow: hidden;
  position: relative;
  height: auto;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.company-logos__wrapper {
  display: flex;
  animation: slideLogos 30s linear infinite;
  width: calc(200px * 12); /* 6個のロゴ × 2巡 = 12個 */
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  width: 100%;
}

.company-logos__slide {
  flex-shrink: 0;
  width: auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  flex: 0 0 auto;
}

.company-logos__slide img {
  max-width: none;
  height: 60px;
  width: auto;
  object-fit: contain;
  /* filter: grayscale(100%); */
  /* opacity: 0.7; */
  transition: all 0.3s ease;
}

.company-logos__slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* スライドアニメーション */
@keyframes slideLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .company-logos {
    padding: 40px 0 80px;
  }
  
  .company-logos h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .company-logos__slider {
    height: auto;
    min-height: 60px;
  }
  
  .company-logos__wrapper {
    width: calc(150px * 12);
    animation-duration: 20s;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  
  .company-logos__slide {
    width: auto;
    height: 60px;
    padding: 0 15px;
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  .company-logos {
    padding: 40px 0 40px;
    margin: -10px 0 0;
  }
  
  .company-logos h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .company-logos__wrapper {
    width: calc(120px * 12);
    animation-duration: 15s;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
  }
  
  .company-logos__slide {
    width: auto;
    height: 30px;
    padding: 0 10px;
    flex: 0 0 auto;
    min-width: 120px;
  }
  
  .company-logos__slide img {
    height: 30px;
    max-width: 100%;
  }
  
  .company-logos__slider {
    height: auto;
    min-height: 30px;
    padding: 0 10px;
  }
} 