/* wp-sidebar.css */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #ffffff; /* 背景白 */
}
li::marker {display: none;}

/* ===== サイドバー ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -220px;
  width: 220px;
  height: 100%;
  background: #fff;
  color: #fff;
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 60px;
  overflow-y: auto;
  box-shadow: 4px 0 12px rgba(0,0,0,0.25);
}

.sidebar.open {
  left: 0;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  padding: 14px 20px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar ul li:hover {
  background: #333;
}

/* ===== サイドタブ（縦書き） ===== */
.sidebar-tab {
  position: fixed;
  top: 100px;
  left: 0;
  width: 50px;
  height: 140px;
  background: linear-gradient(135deg, #76b138, #5a8c28);
  color: #fff;
  writing-mode: vertical-rl;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
  border-radius: 0 8px 8px 0;
  transition: left 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  overflow: hidden;
}

.sidebar.open ~ .sidebar-tab {
  left: 220px;
}

/* ===== 文字切替用スタイル ===== */
.tab-text {
  position: absolute;
  transition: opacity 0.3s ease;
}

.tab-text.hide {
  opacity: 0;
}

.tab-text.show {
  opacity: 1;
}

/* ===== スクロールバー ===== */
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #76b138;
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-track {
  background: #333;
}

/* ===== モバイル対応 ===== */
@media (max-width: 768px) {
  .sidebar {
    left: -220px;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-tab {
    display: flex;
  }
}
