/* 調整用スタイル */

a {
  text-decoration: none;
  color: #fff;
}

ul,
li {
  list-style: none;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

.header-mv {
  position: relative;
  width: 100%;
  height: 100vh; /* ビューポート高さいっぱい */
  overflow: hidden;
}

.header-mv .header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 動画の切り抜き調整 */
  transform: translate(-50%, -50%);
  z-index: 0; /* 背景にする */
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
  width: 100%;
}

.header-content h1 {
  font-size: 3rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}
header {
  height: 100vh;
  background: #333;
  color: white;
  display: flex;
  flex-direction: column;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
}
nav ul li {
  padding: 0 1em;
  list-style: none;
}
nav a {
  position: relative;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* 文字のすぐ下に配置 */
  height: 2px; /* 太さ */
  width: 0%;
  background-color: #00ccff; /* お好みの色 */
  opacity: 0; /* 最初は透明 */
  transition: width 0.4s ease-out, opacity 0.4s ease-out;
}

nav a:hover::after {
  width: 100%;
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #000;
  transition: all 0.3s ease;
}

/* ✕ の変化 */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* モバイル表示 */
@media (max-width: 896px) {
  nav ul {
    display: flex;
    flex-direction: column;
    background: #444;
    position: fixed;
    top: 0;
    right: 0;
    height: 40vh;
    width: 100vw;
    padding: 2rem;
    border-left: 2px solid #666;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 999;
    text-align: center;
  }

  nav ul.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 1.2rem;
    z-index: 1001;
  }
}

.header-content {
  text-align: center;
  margin: auto;
}

main {
  background: #f0f0f0;
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1rem;
}

.effect_under {
  opacity: 0;
  transform: translateY(50px); /* 下から上へ */
  transition: all 0.8s ease-out;
}

.effect_under.active {
  opacity: 1;
  transform: translateY(0);
}
