/* ===========================
   ハンバーガーメニュー スタイル
   hamburger-menu.css
   =========================== */

/* ---- 右上固定ボタン（常時表示） ---- */
#hamburger-fixed-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  line-height: 0;
}

/* PC（1197px以上）: 幅・高さ両方指定して比率を固定 */
#hamburger-fixed-btn img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* タブレット（768px〜1196px） */
@media screen and (min-width: 768px) and (max-width: 1196px) {
  #hamburger-fixed-btn img {
    width: 70px;
    height: 70px;
    object-fit: contain;
  }
}

/* スマホ（767px以下） */
@media screen and (max-width: 767px) {
  #hamburger-fixed-btn {
    top: 6px;
    right: 6px;
  }
  #hamburger-fixed-btn img {
    width: 55px;
    height: 55px;
    object-fit: contain;
  }
}

/* ---- スマホ専用固定メニュー（PCでは非表示） ---- */
@media screen and (min-width: 768px) {
  #sp-fixed-menu {
    display: none !important;
  }
}

/* ---- オーバーレイ（暗い背景） ---- */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---- スライドパネル（右からスライドイン） ---- */
#menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.35s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

#menu-panel.active {
  right: 0;
}

@media screen and (max-width: 767px) {
  #menu-panel {
    width: 240px;
    right: -260px;
  }
}

/* ---- 閉じるボタン ---- */
#menu-close {
  display: block;
  text-align: left;
  padding: 12px 15px 0;
  cursor: pointer;
  font-size: 26px;
  color: #555;
  line-height: 1;
  background: none;
  border: none;
  width: 100%;
}

#menu-close:hover {
  color: #000;
}

/* ---- メニューコンテンツ ---- */
#menu-content {
  padding: 10px 20px 30px;
  font-size: 14px;
  line-height: 2.2;
}

#menu-content a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dotted #ddd;
}

#menu-content a:hover {
  color: #8b0000;
  text-decoration: underline;
}

#menu-content h3 {
  font-size: 13px;
  color: #666;
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid #ccc;
}

@media screen and (max-width: 767px) {
  #menu-content {
    font-size: 12px;
    line-height: 2;
  }
}