/**
 * SVGハンバーガーメニュー（index.html用）
 * 色調は main.css の :root / body を継承
 */

/* ハンバーガーボタン：スマホ時のみ表示（PCでは .nav を表示） */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.menu-btn:hover {
  opacity: 0.85;
}
.menu-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn svg {
  display: block;
}

/* SVGの線：サイトのテキスト色で表示 */
.menu-btn .line {
  fill: none;
  stroke: var(--green);
  stroke-width: 6;
  stroke-linecap: round;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 「×」になる時のスタイル */
.menu-btn.is-active .top {
  transform: translateY(20px) rotate(45deg);
}
.menu-btn.is-active .middle {
  opacity: 0;
}
.menu-btn.is-active .bottom {
  transform: translateY(-20px) rotate(-45deg);
}

/* オーバーレイ（メニュー背後の暗い部分） */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 41, 51, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 101;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* メニューパネル：白背景・サイトのボーダー・テキスト色を継承 */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  z-index: 102;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 80px;
  padding-bottom: 40px;
  overflow-y: auto;
}
.menu-panel.is-open {
  transform: translateX(0);
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list li {
  border-bottom: 1px solid var(--border);
}
.menu-list a {
  display: block;
  padding: 16px 24px;
  color: #1f2933;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.menu-list a:hover {
  background: var(--soft-bg);
  color: var(--green-dark);
}

.menu-list .menu-cta {
  margin-top: 12px;
  padding: 16px 24px;
}
.menu-list .menu-cta a {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
}
.menu-list .menu-cta a:hover {
  background: var(--accent-dark);
  color: #ffffff;
}
