/* 会社概要と同じ白ヘッダー＋稜線メニュー（コラム・季節ハブなど） */
.legal-header {
  --ridge-green: #16352e;
  --ridge-line: rgba(28, 46, 66, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  position: relative;
  z-index: 30;
  padding: 14px 24px 36px;
  background: #fff;
  color: var(--ridge-green);
  box-shadow: none;
  border-bottom: 0;
}

.legal-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: url("/site-mountains.svg") center bottom / 100% 32px no-repeat;
  pointer-events: none;
}

.legal-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FB6542;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.legal-header .logo img {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.legal-header .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.legal-header .hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ridge-green);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.legal-header .hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.legal-header .hamburger.active span:nth-child(2) {
  opacity: 0;
}

.legal-header .hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.legal-header .nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.legal-header .nav-menu a {
  color: var(--ridge-green);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.legal-header .nav-menu .current,
.legal-header .nav-menu a:hover,
.legal-header .nav-menu a:focus-visible {
  background: rgba(22, 53, 46, 0.1);
}

/* タブレット・スマホはハンバーガー。PCのみ横並び。 */
@media (max-width: 1024px) {
  .legal-header {
    padding: 12px 20px 34px;
  }

  .legal-header::after {
    height: 28px;
    background-size: 100% 28px;
  }

  .legal-header .hamburger {
    display: flex;
  }

  .legal-header .nav-menu {
    position: absolute;
    top: calc(100% - 28px);
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--ridge-line);
    box-shadow: 0 8px 18px rgba(28, 46, 66, 0.08);
    transition: max-height 0.25s ease;
  }

  .legal-header .nav-menu.active {
    max-height: 420px;
  }

  .legal-header .nav-menu a {
    padding: 14px 20px;
    border-radius: 0;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .legal-header {
    padding: 10px 16px 30px;
  }

  .legal-header::after {
    background-size: 900px 28px;
  }
}
