/* ハンバーガーボタン - PC版では非表示 */
#btn_menu {
  display: none;
}

/* スマホメニュー - PC版では非表示 */
#menu_list {
  display: none;
}

/* 背景オーバーレイ - PC版では非表示 */
#menu_overlay {
  display: none;
}

/* スマホ版 */
@media screen and (max-width:733px) {

  /* PC版ナビゲーションを非表示 */
  #header-fixd header .boxb ul {
    display: none;
  }

  /* ハンバーガーボタンを表示 */
  #btn_menu {
    display: block;
    position: fixed;
    top: 10px;
    right: 0px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
  }

  /* 三本線のスタイル */
  #btn_menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--color-main-compl);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
  }

  #btn_menu span:nth-child(1) {
    top: 12px;
  }

  #btn_menu span:nth-child(2) {
    top: 23px;
  }

  #btn_menu span:nth-child(3) {
    top: 34px;
  }

  /* ×に変形（メニューオープン時） */
  #btn_menu.active span:nth-child(1) {
    top: 23px;
    transform: translateX(-50%) rotate(45deg);
  }

  #btn_menu.active span:nth-child(2) {
    opacity: 0;
  }

  #btn_menu.active span:nth-child(3) {
    top: 23px;
    transform: translateX(-50%) rotate(-45deg);
  }

  /* 背景オーバーレイ */
  #menu_overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-main);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
  }

  #menu_overlay.open {
    opacity: 0.5;
    visibility: visible;
  }

  /* スマホメニュー */
  #menu_list {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 9999;
  }

  /* メニューオープン時 */
  #menu_list.open {
    right: 0;
  }

  /* スマホメニュー内のリスト */
  #menu_list ul {
    list-style: none;
    margin: 0;
    padding: 60px 0 0 0;
  }

  #menu_list ul li {
    border-bottom: 1px solid #eee;
margin-top: 0px;
  }

  #menu_list ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
  }

  #menu_list ul li a.current {
    background: #f0f0f0;
    font-weight: bold;
  }

}
