:root {
  --content-width-novel: clamp(520px, 92vw, 720px);
  --content-width-page: clamp(720px, 92vw, 1100px);
}

/* インデント */
.indent {
  padding-left: 1em;
}

/* ヘッダー */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  height: 60px;
  width: 100%;
  background: #111;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 1000;
}

.app-header a {
  color: #fff;
  text-decoration: none;
}

.app-header a:hover {
  text-decoration: underline;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ロゴリンク */
.logo-link {
  margin-left: auto;   /* ← 右側へ押し出す */
  margin-right: 2.5rem; /* ← 右側に余白を追加してはみ出し防止 */
  display: flex;
  align-items: center;
}

/* ロゴ画像 */
.logo-img {
  height: 36px;       /* ヘッダー高さ60pxに対して自然なサイズ */
  width: auto;
  display: block;
}

/* メイン余白 */
.app-main {
  margin-top: 60px;
  padding: 1rem;
}

/* サイドバー */
.app-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #222;
  color: white;
  transition: left 0.3s ease;
  z-index: 1100;
}

.app-sidebar ul {
  list-style: none;
  padding-left: 0.8rem;
  margin: 0;
}

.app-sidebar li {
  margin: 0.35rem 0;
}

.app-sidebar ul ul {
  padding-left: 0.6rem;
  margin-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.app-sidebar a {
  color: #fff;
  text-decoration: underline;
}

.app-sidebar a:hover {
  text-decoration: underline;
}

.app-sidebar.open {
  left: 0;
}

.sidebar-inner {
  padding: 1rem;
}

/* サイドバー上部 */
.sidebar-header {
  height: 60px;               /* ヘッダーと揃える */
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

/* オーバーレイ */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}

.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* パンくずリスト */
.breadcrumb {
  max-width: var(--content-width-novel);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: #666;
  text-decoration: underline;
}

.breadcrumb .sep {
  color: #999;
  margin: 0 0.4em;
}

.breadcrumb span {
  color: #333;
  font-weight: 500;
}

/* カスタムhr */
/* 細い */
.divider-thin {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}
/* ノベル幅 */
.divider-novel {
  border: none;
  border-top: 1px solid #ddd;
  max-width: var(--content-width-novel);
  margin: 14px auto 20px;
}
