/* ページ全体のスタイル */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
}

/* 背景動画 */
#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  max-height: 80%;
  border: 10px solid white;
  border-radius: 10px;
  z-index: -1;
  filter: brightness(1.2);
}
.centered-content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
  padding: 20px;
}

/* タイトルのスタイル */
.title {
  font-size: 5em;
  font-weight: 200;
  margin-bottom: 20px;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
}

/* ナビゲーションリンクのスタイル */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  margin: 10px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

/* リンクの下線エフェクト */
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

nav a:hover {
  color: #fff;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100vh;
    width: auto;
    min-width: 100vw;
    object-fit: cover;
    border: none;
  }

  .title {
    font-size: 2.5em;
  }

  .centered-content {
    top: 40%;
    transform: translate(-50%, -40%);
    padding: 10px;
  }

  nav {
    flex-direction: column;
    gap: 8px;
  }

  nav a {
    font-size: 1em;
    margin: 5px 0;
    padding: 8px;
    display: block;
  }
}

