/* フッターカルーセル用CSS */

/* フッター協賛企業タイトル */
#footer-sponsors .sponsors-title {
  font-size: 1rem;
  margin-bottom: 15px;
  color: white;
  text-align: center;
}

/* フッター協賛企業カルーセル */
#footer-sponsors .sponsors-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 20px;
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

#footer-sponsors .sponsors-track {
  display: flex;
  animation: footer-scroll 10s linear infinite;
  gap: 20px;
  align-items: center;
  will-change: transform;
}

#footer-sponsors .sponsors-track:hover {
  animation-play-state: paused;
}

/* フッター協賛企業アイテム */
#footer-sponsors .sponsor-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: auto;
  min-height: 60px;
  background: transparent;
  position: relative;
}

#footer-sponsors .sponsor-item-link {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 180px !important;
  height: auto !important;
  min-height: 60px !important;
  background: transparent !important;
  position: relative !important;
}

#footer-sponsors .sponsor-item-link:hover {
  text-decoration: none !important;
  color: inherit !important;
}

/* フッター協賛企業の星表示 */
#footer-sponsors .sponsor-stars {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  gap: 2px;
}

#footer-sponsors .sponsor-stars .star {
  color: #ffd700;
  font-size: 10px;
  line-height: 1;
}

/* フッター協賛企業のロゴ */
#footer-sponsors .sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px;
}

#footer-sponsors .sponsor-logo img {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;
}

/* フッター協賛企業の会社名 */
#footer-sponsors .sponsor-name {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #666;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* フッター協賛企業のリンク */
#footer-sponsors .sponsor-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* アニメーション定義 */
@keyframes footer-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* レスポンシブ対応 - SP時のカルーセル速度調整 */
@media screen and (max-width: 768px) {
  #footer-sponsors .sponsors-track {
    animation: footer-scroll 5s linear infinite;
  }
  
  #footer-sponsors .sponsor-item {
    width: 100px;
    height: auto;
    min-height: 50px;
  }
  
  #footer-sponsors .sponsor-name {
    font-size: 9px;
    max-width: 90px;
  }
}
