/* front-page.css - トップページ専用スタイル */

/* ロゴサイズ調整 */
#logo.idx {
  top: 25px;
  left: 35px;
  width: 105px;
  height: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);
  z-index: 8889;
}
#logo a img {
  width: 105px;
}

/* スクロール有効化 */
body {
  overflow: visible !important;
  overflow-y: auto !important;
}
main#main.idx {
  height: auto !important;
}

/* 動画エリア全高 */
#top.idx {
  height: 100vh !important;
  margin-top: -60px;
  padding-top: 0;
}

/* スクロールボタン非表示 */
.video-area-scroll {
  display: none !important;
}

/* ニュースバー */
.f-news {
  position: relative;
  z-index: 2;
  max-width: 70%;
  margin: 0 auto 0 0;
  padding: 0;
}
.f-news-bar {
  margin-top: 0;
  transform: translateY(-80px) translateX(-100%);
  position: relative;
  z-index: 2;
  animation: slideIn 0.8s ease-out 1.5s forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-80px) translateX(-100%);
  }
  to {
    transform: translateY(-80px) translateX(0);
  }
}

.f-news-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #1B2D42;
  border: none;
  background-color: #fff;
  padding: 12px 20px;
  height: 80px;
  border-radius: 0 10px 10px 0;
  transition: background-color 0.5s ease, color 0.5s ease;
}
.f-news-link:hover {
  background-color: #1B2D42;
  color: #fff;
  opacity: 1;
}
.f-news-link:hover .f-news-r p,
.f-news-link:hover .f-news-l time,
.f-news-link:hover .new-icon {
  color: #fff;
}
.f-news-l {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.new-icon {
  background-color: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.f-news-l time {
  color: #1B2D42;
  font-size: 13px;
  font-family: 'Roboto Condensed', sans-serif;
}
.f-news-r {
  margin-left: 20px;
}
.f-news-r p {
  color: #1B2D42;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

@media only screen and (max-width: 768px) {
  #top.idx {
    height: calc(100vh + 60px) !important;
    margin-top: -60px !important;
  }
  .f-news {
    padding: 0;
    max-width: 85%;
    margin-left: 0;
  }
  .f-news-bar {
    transform: translateY(-60px) translateX(-100%);
  }
  @keyframes slideIn {
    from {
      transform: translateY(-60px) translateX(-100%);
    }
    to {
      transform: translateY(-60px) translateX(0);
    }
  }
  .f-news-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
    height: auto;
    border-radius: 0 10px 10px 0;
  }
  .f-news-r {
    margin-left: 0;
    margin-top: 5px;
  }
  #logo.idx {
    top: 15px;
    left: 15px;
    width: 65px;
  }
  #logo a img {
    width: 65px;
  }
}