/*
|---------------------------------------------------------------
| qinc2026-top-news-ticker.css - ニュースティッカー
|---------------------------------------------------------------
*/

/* ==========================================================================
   Top News Ticker
   ========================================================================== */
.top-news-ticker {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 47px;
  background-color: var(--color-blue01);
  overflow: hidden;
}

.top-news-ticker__track {
  display: flex;
  width: max-content;
  animation: top-news-ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

.top-news-ticker__track:hover {
  animation-play-state: paused;
}

.top-news-ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 47px;
  padding: 0 8px;
}

/* --- Item --- */
.top-news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.top-news-ticker__item:hover {
  opacity: 0.7;
  color: var(--color-white);
}

/* --- Badge --- */
.top-news-ticker__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-family: var(--font-family-en);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
}

/* --- Text --- */
.top-news-ticker__text {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: var(--color-white);
  white-space: nowrap;
  text-decoration: none;
}

/* --- Divider --- */
.top-news-ticker__divider {
  flex-shrink: 0;
  margin: 0 20px;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Animation
   ========================================================================== */
@keyframes top-news-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Responsive - Top News Ticker
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .top-news-ticker {
    height: 40px;
  }

  .top-news-ticker__group {
    height: 40px;
  }

  .top-news-ticker__text {
    font-size: 12px;
  }

  .top-news-ticker__divider {
    margin: 0 16px;
  }
}

@media screen and (max-width: 768px) {
  .top-news-ticker {
    height: 36px;
  }

  .top-news-ticker__group {
    height: 36px;
  }

  .top-news-ticker__badge {
    font-size: 10px;
    height: 20px;
  }

  .top-news-ticker__text {
    font-size: 11px;
  }

  .top-news-ticker__divider {
    margin: 0 12px;
  }
}
