/* ナビゲーション アクティブ状態 */
.nav-active {
  font-weight: 600;
  color: #1d4ed8;
  background-color: #eff6ff;
  border-radius: 0.375rem;
}

/* テーブル奇数行 */
tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

/* コードブロック */
pre code {
  font-size: 0.85rem;
}

/* サイドバー固定 */
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* メインコンテンツ */
main {
  min-width: 0;
}

/* hr */
hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

/* TODO ハイライト */
.todo-badge {
  color: #ea580c;
  font-weight: 600;
  background: #fff7ed;
  border-radius: 0.25rem;
  padding: 0 0.25rem;
}

/* 折りたたみナビ */
.nav-section-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-collapsed {
  display: none;
}
.nav-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* ===== サイドバー開閉 ===== */
aside {
  transition: width 0.25s ease, padding 0.25s ease, border-right-color 0.25s ease;
}
aside.sidebar-collapsed {
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-right-color: transparent !important;
}
#sidebar-toggle-btn {
  position: fixed;
  left: 228px;
  top: 14px;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  font-size: 13px;
  color: #9ca3af;
  transition: left 0.25s ease;
  line-height: 1;
}
#sidebar-toggle-btn:hover {
  background: #f3f4f6;
  color: #374151;
}
#sidebar-toggle-btn.collapsed {
  left: 6px;
}

/* ===== テーブル幅を最大化 ===== */
main {
  min-width: 0;
  max-width: none !important;
}
main .max-w-4xl {
  max-width: none !important;
}
/* テーブルを横幅いっぱいに */
main table {
  width: 100%;
}
/* メインコンテンツのパディング調整 */
main.main-content {
  padding: 2.5rem 2rem;
}
