/* --- 1. ページ全体の基盤 --- */
body {
  margin: 0;
  padding: 0;
  font-family: "MS Gothic", "Osaka", monospace;
  background-image: url("../images/pg.png");
  background-repeat: repeat;
  background-size: 600px;
  display: flex !important;
  height: 100vh;
  overflow: hidden;
}

/* --- 2. サイドバー（不透明・白・縦並び） --- */
.sidebar {
  width: 200px;
  min-width: 100px;
  background-color: #ffffff !important;
  border-right: 1px solid #ccc;
  padding: 20px;
  box-sizing: border-box;
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ロゴ */
#sidebar-logo {
  display: block !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}
#sidebar-logo img {
  width: 160px !important;
  height: auto !important;
}
#sidebar-logo::before { content: none !important; }

/* メニューリンク */
.sidebar a.menu-link {
  display: flex !important;
  align-items: center;
  margin-bottom: 12px;
  color: blue;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px !important;
}

.sidebar a.menu-link:not(#sidebar-logo)::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #999;
  margin-right: 8px;
}

/* カウンターエリア */
.sidebar-counter {
  margin-top: auto; 
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}
#sidebar-counter-display {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}
#sidebar-counter-display img {
  height: 24px;
  image-rendering: pixelated;
  margin: 0 -1px;
}

/* --- 3. メインエリア（全ページ共通・左寄せ） --- */
.main {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.65);
  position: relative;
  text-align: left; /* 左揃えを標準に */
}

/* ページタイトル（h1）の位置を全ページで固定 */
h1 {
  font-size: 24px;
  margin: 0 0 20px 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  color: #000;
}

/* リストや段落の標準設定 */
ul { list-style: none !important; padding: 0; margin-bottom: 30px; }
li { margin-bottom: 15px; font-size: 16px; }
p { line-height: 1.6; margin-bottom: 15px; }

/* メインエリア内のリンク */
.main a {
  color: blue;
  text-decoration: none;
  font-weight: bold;
}
.main a:hover {
  text-decoration: underline;
}

/* バージョン表記 */
.version-tag {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 11px;
  color: #666;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #ccc;
  padding: 2px 6px;
  z-index: 100;
}

/* リサイズ用の棒 */
.resizer {
  width: 5px;
  cursor: ew-resize;
  background-color: #ccc;
  flex-shrink: 0;
}

/* フッター */
footer {
  margin-top: 60px;
  padding-bottom: 20px;
  font-size: 12px;
  text-align: center;
}
