/* ====== レイアウト ====== */
.blog-layout {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;

  @media screen and (max-width: 767px) {
    padding: 2rem 0 3rem;
  }
}

.blog-main {
  flex: 3;
}

.blog-sidebar {
  flex: 1;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

/* ====== 投稿カード ====== */
.blog-card {
  background: #fff8f3;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;

  @media screen and (max-width: 767px) {
    padding: 1rem;
  }
}

.blog-card-category {
  background: #ff8263;
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.3rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.blog-card-title a {
  text-decoration: none;
  color: #333;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: #ff8263;
  margin-bottom: 0.8rem;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #444;
}

/* ====== サイドバー ====== */
.sidebar-section {
  margin-bottom: 2rem;
  background: #fff8f3;
  padding: 1rem;
  border-radius: 8px;
}

.sidebar-title {
  border-bottom: 1px solid #ff8263;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

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

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

.sidebar-list a {
  text-decoration: none;
  color: #444;
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background: #fff8f3;
  border-radius: 4px;
  color: #444;
  text-decoration: none;
}

.pagination .current {
  background: #f9d7c1;
  font-weight: bold;
}

/* ====== 記事詳細 ====== */
.single-article {
  background: #fff8f3;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;

  @media screen and (max-width: 767px) {
    padding: 1rem;
  }
}

.single-category {
  background: #ff8263;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 1rem;
}

.single-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;

  @media screen and (max-width: 767px) {
    font-size: 1.5rem;
  }
}

.single-meta {
  font-size: 0.9rem;
  color: #ff8263;
  margin-bottom: 1.5rem;
}

.single-content {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;

  @media screen and (max-width: 767px) {
    font-size: 14px;
  }
}

.single-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
}

/* ====== 前後記事リンク ====== */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.post-navigation a {
  background: #fff8f3;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: #444;
  text-decoration: none;
}

.post-navigation a:hover {
  background: #f9d7c1;
}
