/* single-news.css */

/* レイアウト全体 */
.single-news-two-column {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

/* 左カラム（一覧） */
.news-sidebar {
  order: 1;
  width: 30%;
}

.news-sidebar-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

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

.news-sidebar-list li {
  margin-bottom: 0.8rem;
}

.news-sidebar-list a {
  color: var(--color-link);
  text-decoration: underline;
}

/* 右カラム（本文） */
.single-news-wrapper {
  order: 2;
  width: 70%;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.news-category {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.news-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.news-thumbnail {
  margin-bottom: 2rem;
}

.news-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.news-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.news-content h2,
.news-content h3,
.news-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.news-content p {
  margin-bottom: 1.5rem;
}

.news-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.news-pagination a {
  color: var(--color-link);
  text-decoration: underline;
}

/* スマホ時：1カラム化＋順序逆転 */
@media screen and (max-width: 767px) {
  .single-news-two-column {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .single-news-wrapper {
    order: 1;
    width: 100%;
  }

  .news-sidebar {
    order: 2;
    width: 100%;
  }
}
