html, body { margin: 0; width: 100%; overflow: hidden; }
.logo-wrapper *{
  box-sizing:border-box;
}

/* ===== PC ===== */
.logo-marquee{
  width:100%;
  overflow:hidden;
  padding:20px 0;
}
.logo-track img:nth-child(5) {
  height: 50px; /* Adjust this number to whatever size you want */
  width: auto;  /* Keeps the aspect ratio intact */
}
.logo-track img:nth-child(3) {
  height: 50px;
  width: auto;
}
.logo-track img:nth-child(7) {
  height: 40px;
  width: auto;
}
  .logo-track img:nth-child(8) {
  height: 40px;
  width: auto;
}
.logo-track{
  display:flex;
  align-items:center;
  gap:40px;
  width:max-content;
  animation:scroll 15s linear infinite;
}

.logo-track img{
  height:30px;
  width:auto;
  object-fit:contain;
  opacity:0.8;
}

@keyframes scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

/* ===== モバイル ===== */
.logo-slider{
  width:100%;
  overflow:hidden;
}

.slides{
  display:flex;
  width:100%;
  animation:slide 8s infinite;
}

.slides img{
  width:100%;
  flex-shrink:0; /* ← これが超重要（切れ防止） */
  height:auto;
  object-fit:contain;
}

@keyframes slide{
  0%, 45%{
    transform:translateX(0);
  }
  50%, 95%{
    transform:translateX(-100%);
  }
  100%{
    transform:translateX(0);
  }
}

/* ===== 切り替え ===== */
.pc-only{ display:block; }
.sp-only{ display:none; }

@media (max-width: 768px){
  .pc-only{ display:none; }
  .sp-only{ display:block; }
}
@media (prefers-reduced-motion: reduce) { * { animation-play-state: paused !important; } }
