/* サイドバー本体 */
#sidebar {
  position: fixed;
  top: 0;
  left: -250px;         
  width: 250px;
  height: 100%;
  background: #F5B800;  /* ベース色 */
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 6px
  );                     /* 薄いストライプ */
  transition: left 0.3s ease;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  color: #222;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);   /* 外側シャドウ */
  border-right: 3px solid #cc9600;         /* 右端ボーダー */
}


/* 表示状態 */
#sidebar.active {
  left: 0;
}

/* 開閉ボタン */
#toggleSidebar {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
}

/* ロゴ */
.sidebar-logo {
  text-align: center;
  padding: 60px 10px 10px;
}
.sidebar-logo img {
  max-width: 190px;   /* 横幅を少し拡大 */
  height: auto;
}

/* サイドバー内リンク */
#sidebar a {
  color: #222;
  text-decoration: none;
}
#sidebar a:hover {
  color: #000;
}
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sidebar ul li {
  margin: 10px 0;
}
/* トグルボタン */
#toggleSidebar {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 8px;
  background: #0d4c8d;   /* 濃い青背景 */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ハンバーガー用のバー共通 */
#toggleSidebar span,
#toggleSidebar span::before,
#toggleSidebar span::after {
  display: block;
  position: absolute;
  width: 26px;
  height: 3px;
  background: #fff; /* 白いライン */
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .25s ease;
}

/* span本体が真ん中 */
#toggleSidebar span {
  position: relative;
}

/* 上下の線 */
#toggleSidebar span::before,
#toggleSidebar span::after {
  content: "";
  position: absolute;
  left: 0;
}
#toggleSidebar span::before { top: -8px; }
#toggleSidebar span::after  { top: 8px; }

/* 開いた状態は「×」に変形 */
#toggleSidebar[aria-expanded="true"] span {
  background: transparent;
}
#toggleSidebar[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
#toggleSidebar[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}
/* カテゴリ見出し (親liのテキスト) */
#sidebar ul > li {
  font-weight: bold;
  font-size: 15px;
  margin-top: 18px;
  padding: 6px 0;
  border-bottom: 2px solid rgba(0,0,0,0.15);
  color: #111;
}

/* 見出し直下のリンク (単独リンク用) */
#sidebar ul > li > a {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}
#sidebar ul > li > a:hover {
  background: rgba(0,0,0,0.1);
}

/* サブリスト */
#sidebar ul li ul {
  margin: 6px 0 0 12px;
  padding-left: 10px;
  border-left: 2px solid rgba(0,0,0,0.2);
}
#sidebar ul li ul li {
  font-weight: normal;
  margin: 6px 0;
  border: none;
}
#sidebar ul li ul li a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: #333;
  border-radius: 4px;
}
#sidebar ul li ul li a:hover {
  background: rgba(0,0,0,0.15);
  color: #000;
}
#sidebar {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;   /* Firefox */
}
#sidebar::-webkit-scrollbar {
  display: none;           /* Chrome, Safari */
}