html {
  font-size: 62.5%;
}

body {
  padding: 16px;
  font-family: "Noto Sans JP", sans-serif;
}

.top-header {
  margin: 0px 0px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid #eee;
}

h1 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.2em;
}

.top-title {
  color: #ffffff;
  font-size: 4.8rem;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.1em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4), 1px 1px 0 #222, 0 0 2px #fff;
}

nav {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 8px;
  margin-left: 0;
}

nav a {
  color: #fff;
  font-size: 1.4rem;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.6;
}

.menu-title {
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.4em;
  margin-top: 64px;
  font-weight: 600;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    position: relative;
  }
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
}
@media (max-width: 768px) {
  .nav-menu {
    background: #d5d5d5;
  }
}
.nav-menu .nav-link {
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s;
}
.nav-menu .nav-link:hover {
  color: #ddd;
}
.nav-menu .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}
.nav-menu .nav-link:hover::after {
  width: 100%;
}
.nav-menu .nav-item-with-sub {
  position: relative;
}
.nav-menu .nav-item-with-sub:hover .sub-menu,
.nav-menu .nav-item-with-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .nav-item-with-sub .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  list-style: none;
  padding: 12px 0;
  margin: 0;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  z-index: 50;
}
.nav-menu .nav-item-with-sub .sub-menu li {
  padding: 8px 20px;
}
.nav-menu .nav-item-with-sub .sub-menu li a {
  color: #929292;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  transition: color 0.2s, background 0.2s;
}
.nav-menu .nav-item-with-sub .sub-menu li a span {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  margin-left: 8px;
  color: #666;
}
.nav-menu .nav-item-with-sub .sub-menu li a:hover {
  color: #333;
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(30, 30, 30, 0.95); /* 全面背景色 */
    padding: 80px 24px 24px 24px;
    z-index: 1000; /* 他要素より前面 */
    overflow-y: auto;
    justify-content: flex-start;
    gap: 16px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    color: #fff;
    font-size: 1.8rem;
  }

  .nav-menu .nav-item-with-sub .sub-menu {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    border-radius: 0;
    margin: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu .nav-item-with-sub .sub-menu li {
    padding: 8px 0;
  }

  .nav-menu .nav-item-with-sub .sub-menu li a {
    color: #ccc;
    font-size: 1.2rem;
  }
  .nav-menu .nav-item-with-sub .sub-menu li a:hover {
    background: none;
    color: #ddd;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 3px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 16px 0;
  color: #ffffff;
  font-size: 1.1rem;
}
body.dark footer {
  border-top: 1px solid #374151;
  color: #aaa;
} /*# sourceMappingURL=style.css.map */
