/* 共通設定 */
body {
  margin: 0;
  font-family: sans-serif;
}

.toggle-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.toggle-button span {
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* ×マーク */
.toggle-button.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.toggle-button.open span:nth-child(2) {
  opacity: 0;
}
.toggle-button.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* メニュー本体（初期設定） */
.menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: rgba(0,0,0,0.7);
  transition: all 0.4s ease;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}
.menu-panel.open {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}

/* メニュー中身 */
.menu-content {
  padding: 20px;
  color: #fff;
}

/* 閉じるボタン */
.close-button {
  text-align: right;
  font-size: 32px;
  cursor: pointer;
  color: #fff;
  display: block;
}

/* 重複×対応 */
.toggle-button.open .close-button {
  display: none;
}

/* メニュー一覧 */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.menu-list li {
  margin: 10px 0;
}
.menu-list a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* 仮テキスト */
.menu-placeholder {
  display: none;
  margin-top: 30px;
  font-size: 14px;
  color: #ccc;
}

/* PC用：中央に大きめ・ふわっと出現 */
@media screen and (min-width: 769px) {
  .menu-panel {
    top: 60px;
    bottom: 60px;
    left: 60px;
    right: 60px;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 10px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.95);
  }
  .menu-panel.open {
    transform: scale(1);
  }

  .menu-content {
    text-align: center;
  }

  .menu-list {
    display: none;
  }

  .menu-placeholder {
    display: block;
    font-size: 16px;
    color: #ccc;
  }
}
