/* ====== メイン全体構成 ====== */
#contents {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 970px;
  margin: 10px auto;
  background: #fff;
}

/* ====== 左カラム（アーカイブ） ====== */
#sidebar {
  width: 180px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
}

#sidebar h3 {
  font-size: 1.2em;
  color: #6a3906;
  margin-bottom: 10px;
  border-bottom: 2px solid #6a3906;
  padding-bottom: 5px;
}

#sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#sidebar ul li {
  margin-bottom: 6px;
}

#sidebar ul li a {
  color: #333;
  text-decoration: none;
  font-size: 0.95em;
}

#sidebar ul li a:hover {
  color: #6a3906;
  text-decoration: underline;
}

/* ====== 右カラム（本文） ====== */
.post-page {
  flex: 1;
  padding: 15px 40px 40px 10px;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
}

.post-page h1 {
  font-size: 2em;
  color: #6a3906;
  margin-bottom: 20px;
  border-bottom: 2px solid #6a3906;
  padding-bottom: 5px;
}

.post-page .date {
  color: #333;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.post-page .content {
  line-height: 1.8;
  font-size: 1em;
}

.post-page .content a {
  color: #333;
  text-decoration: none;
}

.post-page .content a:hover {
  text-decoration: underline;
}

.post-page .back-link {
  display: block;
  margin-top: 30px;
  color: #6a3906;
  text-decoration: none;
}

.post-page .back-link:hover {
  text-decoration: underline;
}

/* ====== レスポンシブ対応 ====== */
@media screen and (max-width: 768px) {
  #contents {
    flex-direction: column;
    width: 100%;
  }

  #sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .post-page {
    padding: 20px;
  }
}

/* ====== 前後ナビゲーション ====== */
.post-navigation {
  display: flex;                     /* 横並びにする */
  justify-content: space-between;    /* 左右に配置 */
  align-items: center;               /* 高さ揃え */
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.post-navigation a {
  color: #6a3906;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;               /* ここで折り返し防止 */
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* ページ全体の不要な余白調整 */
.post-page {
  padding-bottom: 60px; /* ここで記事下のスペースを調整（必要に応じて減らす） */
}

.post-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #fff;
}

.post-card h2 {
  font-size: 1.4em;
  margin-bottom: 5px;
}

.post-card h2 a {
  color: #6a3906;
  text-decoration: none;
}

.post-card .date {
  font-size: 0.9em;
  color: #666;
}

.news-list {
    margin: 0;
    padding: 0;
}

/* 投稿間の線（個別投稿ページと同じ） */
.news-separator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*margin-top: 40px;
    padding-top: 20px; */
  border-top: 1px solid #ddd; /* 個別投稿ページと同じ線 */
}

/* タイトル */
.news-row {
  display: flex;
  align-items: center;
  gap: 20px; /* 日付とタイトルの間隔 */
  padding: 5px 0;
}

.news-row .news-date {
  font-size: 0.95em;
  font-weight: bold;
  color: #6a3906;
  white-space: nowrap; /* 改行させない */
}

/* タイトル（通常） */
.news-row .news-title a {
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

/* タイトル ホバー時 */
.news-row .news-title a:hover {
  color: #6a3906;
  text-decoration: underline;
}

/* アーカイブ記事間のスペース */
.archive-contents .news-item {
    margin-bottom: 10px; /* 記事と記事の間隔 */
}

/* タイトルと日付の下の余白 */
.archive-contents .news-row {
    margin-bottom: 19px;
}

/* アーカイブ専用：投稿間の線 */
.archive-separator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd; /* 線 */
    margin-bottom: 19px;        /* 線と次の記事の間隔 */
}

/* ページナビの上の線 */
.pagination-separator {
    border-top: 1px solid #ddd; /* 線の色 */
    margin: 20px 0;             /* 線とコンテンツの間隔 */
}

/* ページナビ全体を右下に寄せる */
.pagination-right {
    display: flex;
    justify-content: flex-end;  /* 右寄せ */
    font-size: 0.95em;          /* 文字サイズ調整 */
    margin-top: 10px;
}

/* ページナビリンクの装飾 */
.pagination a, .pagination span {
    color: #6a3906;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}

.pagination a:hover {
    text-decoration: underline;
}