@charset "utf-8";
/* サイドメニュー全体 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100%;
  background: #f8f8f8;
  border-right: 1px solid #ccc;
  padding-top: 60px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 999;
}

/* メニューリスト */
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  padding: 12px 20px;
}

.menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  font-size: 30px;
  padding: 10px 20px;
  background: #f8f8f8;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1001;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* モバイル表示用のスタイル */
@media (max-width: 768px) {
  .sidebar {
    display: none; /* サイドバーを非表示に */
  }

  .hamburger {
    display: block; /* ハンバーガーを表示 */
  }

  .sidebar.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    max-height: 60vh;
    overflow-y: auto;
    width: 220px;
    z-index: 1000;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }
}

.menu a {
  text-decoration: none;
  color: #333;
  transition: transform 0.15s ease, color 0.15s ease;
  display: inline-block;
}

/* ホバー時に少し浮く（文字だけ） */
.menu a:hover {
  transform: translateY(-2px);
}

/* クリック時に押し込まれて色が明るくなる */
.menu a:active {
  transform: translateY(1px);
  color: #007bff; /* 明るめの青などお好みで変更可能 */
}