/* 画面全体を使う */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* 背景写真 */
.hero {
  height: 100vh;               /* 画面いっぱい */
  background-image: url("photo.jpg");
  background-size: cover;      /* 画面にフィット */
  background-position: center;
}


/* 写真の上に乗せる要素 */
.overlay {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

/* ロゴ */
.logo {
  width: 150px;
  margin-bottom: 20px;
}

/* 文字 */
h1 {
  font-size: 48px;
  margin: 0;
}

p {
  font-size: 30px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
background: rgba(0, 0, 0, 0.1);
}
/* お知らせバー */
.news-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  overflow: hidden;
  padding: 10px 0;
}

/* 横に流れる文字 */
.news-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-news 40s linear infinite;
}

.news-track span {
  color: #fff;
  font-size: 16px;
  margin-right: 50px;
}


/* アニメーション */
@keyframes scroll-news {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .hero {background-position: 68% center!important;}
h1 {font-size: 24px;  }
p {font-size: 16px;}
  .logo {
    width: 100px;
  }
.overlay{
    width: 300px;
}
  .news-track {
    animation-duration: 30s; /* ゆっくり */
  }

  .news-track span {
    font-size: 14px;
  }
}