/**
 * Clients Logo Marquee
 * 取引先ロゴの無限スクロールアニメーション
 */

/* ============================================
   Clients Section
   ============================================ */

.p-clients {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
  overflow: hidden;
}

.p-clients__heading {
  text-align: center;
  margin-bottom: 60px;
}

.p-clients__title {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.p-clients__subtitle {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

/* ============================================
   Marquee Container
   ============================================ */

.p-clients__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

/* グラデーションフェード（左右） */
.p-clients__marquee::before,
.p-clients__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.p-clients__marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.p-clients__marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #f9f9f9, transparent);
}

/* ============================================
   Marquee Track (無限スクロール)
   ============================================ */

.p-clients__track {
  display: flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  width: fit-content;
}

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

/* ============================================
   Client Logo Item
   ============================================ */

.p-clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 110px;
  padding: 20px 36px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 188, 212, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-clients__item:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 188, 212, 0.3);
  box-shadow:
    0 8px 24px rgba(0, 188, 212, 0.15),
    0 0 20px rgba(0, 229, 255, 0.1);
  transform: translateY(-4px) scale(1.05);
}

.p-clients__logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* ============================================
   Responsive
   ============================================ */

@media screen and (max-width: 768px) {
  .p-clients {
    padding: 60px 0;
  }

  .p-clients__heading {
    margin-bottom: 40px;
  }

  .p-clients__track {
    gap: 40px;
    animation-duration: 30s; /* モバイルは少し速く */
  }

  .p-clients__item {
    min-width: 200px;
    height: 85px;
    padding: 16px 24px;
  }

  .p-clients__marquee::before,
  .p-clients__marquee::after {
    width: 80px;
  }
}

@media screen and (max-width: 480px) {
  .p-clients {
    padding: 40px 0;
  }

  .p-clients__track {
    gap: 30px;
    animation-duration: 25s;
  }

  .p-clients__item {
    min-width: 160px;
    height: 70px;
    padding: 12px 18px;
  }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .p-clients__track {
    animation: none;
  }

  .p-clients__item {
    transition: none;
  }

}
