
/* ===== 1段目 ===== */
.header-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight:600;
  z-index: 1000;
}

/* ===== 2段目 背景だけ ===== */
.header-nav {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 60px;
  background:var(--main-color);
  z-index: 900;
}

/* ===== nav（1つだけ） ===== */
.global-nav {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1400px;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /*gap: 20px;*/
  padding: 0 10px;
  z-index: 950;
}

.global-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight:600;
  height:60px;
  padding-left:10px;
  padding-right:10px;
  align-content: center;
}
.global-nav a:hover {
  background: var(--main-color-l);
}
/* ===== ハンバーガー ===== */
.burger {
  display: none;
  position: fixed;
  top: 26px;
  right: 16px;
  width: 63px;
  height: 56px;
  cursor: pointer;
  z-index: 1300;
  flex-direction: column;
  justify-content: space-between;
  background:var(--main-color);
  padding:14px;
  border-radius:3px;
}
.burger span {
  height: 4px;
  background: #fff;
  transition: .3s;
}
.burger.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 1100;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}



/* ========================= Mobile ========================= */
@media (max-width: 1100px) {

  .header-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .global-nav {
    top: 0;
    left: auto;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    height: 100vh;
    overflow-y: auto;
    background: var(--main-color-l);
    flex-direction: column;
    align-items: stretch;
    /*padding: 20px 20px;*/
    transition: .35s;
    z-index: 1200;
    padding-top:96px;
    padding-bottom:100px;
    justify-content: inherit;
  }

  .global-nav.active {
    transform: translateX(0);
  }

  .global-nav a {
    color: #fff;
    height:auto;
    padding: 13px 10px;
    border-bottom: 1px solid rgb(242, 203, 223);
    font-size: 16px;
  }
  .global-nav a:nth-of-type(1) {
    border-top: 1px solid rgb(242, 203, 223);
  }
  .global-nav a:hover {
    background:#f9b8da;
    color:#fff;
  }
/* ページのスクロールを固定
  body.menu-open {
    overflow: hidden;
  }スムーズスクロールを有効にするため固定しない
  */
}