/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 42px;
  display: block;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav a {
  font-family: "Oswald", "Noto Sans JP", sans-serif;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  color: #aaa;
  transition: color 0.3s, border-color 0.3s;
  position: relative;
}
.header-nav a:hover,
.header-nav a.active {
  color: #1f2c5c;
}
.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1f2c5c;
}
.header-btn a {
  display: inline-block;
  border: 2px solid #1f2c5c;
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2c5c;
  text-decoration: none;
  transition: all 0.3s;
}
.header-btn a:hover {
  background-color: #1f2c5c;
  color: #fff;
}
/* ハンバーガーメニュー（スマホ） */
.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 1001;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #1f2c5c;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger span:nth-child(1) {
  top: 0px;
}
.hamburger span:nth-child(2) {
  top: 10px;
}
.hamburger span:nth-child(3) {
  top: 20px;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.header-nav {
  transition: all 0.3s ease;
}
@media (max-width: 970px) {
  .header{
    width: 100%;
    max-width: 470px;
    position: fixed;
  }
  .hamburger {
    display: block;
  }
  .site-header {
    position: fixed;
    height: 70px;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }
  .header-logo img {
    height: 32px;
    width: auto;
  }
  .header-nav {
    position: fixed;
    top: 95px;
    right: -100%;
    width: 60%;
    max-width: 280px;
    background: #979DAF;
    border-radius: 20px 0 0 20px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.4s ease;
    z-index: 999;
    margin-right: 3%;
    overflow-y: auto;
  }
  .header-nav.active {
    right: 0;
  }
  .header-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .header-nav li {
    width: 100%;
  }
  .header-nav a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #cfd2df;
    position: relative;
  }
  .header-nav a.active {
    color: #1f2c5c;
  }
  .header-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 24%;
    height: 2px;
    background-color: #1f2c5c;
  }
  .header-nav .submenu .active::after {
    display: none;
  }
  .header-nav li a:hover {
    opacity: 0.7;
  }
  .header-btn {
    display: none;
  }
  /* サブメニュー */
  .header-nav .submenu {
    flex-direction: column;
    margin-top: 5px;
    transition: all 0.3s ease;
  }
  .header-nav .submenu.show {
    display: flex !important;
  }
  .submenu_a {
    font-size: 11px !important;
    color: #fff !important;
    font-weight: 500 !important;
    display: flex !important;
    justify-content: space-between;
  }
   .submenu_a_harassment {
    font-size: 11px !important;
    color: #fff !important;
    font-weight: 500 !important;
  }
  .harassment {
    display: flex;
    justify-content: flex-end;
  }
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 980; /* navの下ではなく、navより上に！ */
  display: none;
}

/* メニュー開いたら表示 */
.header-nav.active + .nav-overlay {
  display: block;
}
