/* ========================================
   ブログページスタイル
   ======================================== */

/* カテゴリフィルター */
.blog-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: #8b7355;
  color: #8b7355;
}

.category-btn.active {
  background: #8b7355;
  border-color: #8b7355;
  color: #fff;
}

/* 記事一覧グリッド */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* 記事カード */
.blog-card {
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card a:hover {
  opacity: 1;
}

.blog-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px 24px 28px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card-category {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.category-knowhow {
  background: #e8f4e8;
  color: #2d6a2d;
}

.category-news {
  background: #e3eef9;
  color: #2a5a8a;
}

.category-column {
  background: #f5ede3;
  color: #8b7355;
}

.blog-card-date {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.03em;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   記事ページ
   ======================================== */
.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.6;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.article-hero-img {
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: 4px;
  overflow: hidden;
}

.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #8b7355;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 36px 0 16px;
}

.article-content p {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.article-content li {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin-bottom: 4px;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: #f9f7f4;
  border-left: 4px solid #8b7355;
  border-radius: 0 4px 4px 0;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: #666;
}

/* 記事フッター */
.article-footer {
  max-width: 800px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid #e8e4de;
}

.article-footer-cta {
  background: #f9f7f4;
  border-radius: 8px;
  padding: 36px;
  text-align: center;
}

.article-footer-cta h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.article-footer-cta p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* 関連記事 */
.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-img {
    height: 180px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .article-content h2 {
    font-size: 19px;
    margin: 36px 0 16px;
  }

  .article-footer-cta {
    padding: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
