/* =========================
   流れるニュース看板
========================= */

.news-bar {
  width: 100%;
  height: 55px;

  display: flex;
  align-items: center;

  background: #222;

  color: white;

  overflow: hidden;
}


/* NEWSのタイトル部分 */

.news-title {
  height: 55px;

  padding: 0 25px;

  display: flex;
  align-items: center;

  background: #e60012;

  color: white;

  font-weight: bold;

  flex-shrink: 0;
}


/* 流れる部分 */

.news-content {
  flex: 1;

  overflow: hidden;

  white-space: nowrap;
}


/* 流れる文字 */

.news-track {

  display: inline-block;

  white-space: nowrap;

  padding-left: 100%;

  animation: news-scroll 25s linear infinite;
}


/* ニュースの文字 */

.news-track a {

  color: white;

  text-decoration: none;

  margin-right: 100px;

  font-size: 15px;
}


/* マウスを乗せた時 */

.news-track a:hover {

  color: #ffd700;
}


/* 横に流れるアニメーション */

@keyframes news-scroll {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }

}


/* スマホ対応 */

@media screen and (max-width: 768px) {

  .news-bar {
    height: 50px;
  }

  .news-title {
    height: 50px;
    padding: 0 15px;
    font-size: 13px;
  }

  .news-track a {
    font-size: 13px;
    margin-right: 60px;
  }

}
