/* ======================
   ハンバーガーボタン
====================== */
.sp-menu-btn_02 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.sp-menu-btn_02 .line {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: all 0.4s ease;
}

/* ×アニメーション */
.sp-menu-btn_02.active .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.sp-menu-btn_02.active .line:nth-child(2) {
  opacity: 0;
}

/* ======================
   メニュー本体
====================== */
.ham {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 1000;
  padding: 60px 20px;
}

/* 開いた状態 */
.ham.open {
  transform: translateX(0);
}

/* 閉じるボタン */
.ham-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* メニューリスト */
.ham ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ham li {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.ham.open li {
  opacity: 1;
  transform: translateX(0);
}

/* 順番ディレイ */
.ham.open li:nth-child(1) { transition-delay: 0.1s; }
.ham.open li:nth-child(2) { transition-delay: 0.15s; }
.ham.open li:nth-child(3) { transition-delay: 0.2s; }
.ham.open li:nth-child(4) { transition-delay: 0.25s; }
.ham.open li:nth-child(5) { transition-delay: 0.3s; }

/* リンク下線ホバー */
.ham a {
  text-decoration: none;
  color: #333;
  position: relative;
}
.ham a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #6aa84f;
  transition: width 0.3s ease;
}
.ham a:hover::after {
  width: 100%;
}

/* 背景スクロール止め */
body.no-scroll {
  overflow: hidden;
}

/* =======================
   PC用メニュー
======================= */
.header-site-menu {
  display: block; /* PCで表示 */
}

/* =======================
   SP用メニュー
======================= */
.ham {
  display: none; /* 初期は非表示 */
}

/* SPサイズで切り替え */
@media screen and (max-width: 768px) {
  .header-site-menu {
    display: none;  /* SPでは消す */
  }

  .ham {
    display: block; /* SPでは表示 */
  }
}
/* PC表示（デフォルト） */
.sp-menu-btn_02 {
  display: none; /* PCではハンバーガー非表示 */
}

.ham {
  display: none; /* PCではSPメニュー非表示 */
}

.header-site-menu {
  display: block; /* PC用メニュー表示 */
}

@media screen and (max-width: 768px) {
  .sp-menu-btn_02 {
    display: flex; /* SPでハンバーガー表示 */
  }

  .ham {
    display: block; /* SPでSPメニュー表示 */
  }

  .header-site-menu {
    display: none; /* SPではPCメニュー非表示 */
  }
}