/* ==================================================
   記事詳細ページ固有スタイル
   ================================================== */

/* Layout（メイン＋サイドバー） */
.page-main { padding: 80px 0 120px; }
.layout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }

/* 記事エリア */
.post-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 24px; }
.post-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.post-date { font-family: var(--font-display); font-size: 0.92rem; color: #888; font-weight: 600; }
.post-cat { font-size: 0.75rem; padding: 4px 12px; background: #edf3e7; color: var(--color-primary); font-weight: 700; border-radius: 4px; }
.post-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: var(--color-dark); line-height: 1.45; }
.post-eyecatch { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 35px; }

/* 本文スタイル */
.article-body h2 { font-size: 1.55rem; color: var(--color-dark); margin: 40px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary); font-weight: 700; }
.article-body h3 { font-size: 1.25rem; color: var(--color-dark); margin: 30px 0 15px; padding-left: 12px; border-left: 4px solid var(--color-secondary); font-weight: 700; }
.article-body p { margin-bottom: 24px; color: #444; font-size: 1rem; line-height: 1.9; }
.article-body ul { margin: 0 0 24px 20px; color: #444; }
.article-body li { margin-bottom: 8px; }

/* 前後記事ページネーション */
.post-pagination { display: flex; justify-content: space-between; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 20px 0; margin-top: 50px; font-weight: 700; font-size: 0.9rem; }
.post-pagination a:hover { color: var(--color-primary); }

/* サイドバー */
.sidebar { display: flex; flex-direction: column; gap: 35px; }
.widget { background: var(--color-light-bg); border-radius: 8px; padding: 26px; border: 1px solid #e7ede7; }
.widget-title { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); margin-bottom: 18px; position: relative; padding-bottom: 8px; }
.widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--color-primary); border-radius: 2px; }

.recent-posts { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.recent-post-item a { display: block; }
.recent-post-date { font-family: var(--font-display); font-size: 0.8rem; color: #888; font-weight: 600; margin-bottom: 3px; }
.recent-post-title { font-size: 0.92rem; font-weight: 600; color: var(--color-dark); line-height: 1.45; transition: color 0.2s; }
.recent-post-item a:hover .recent-post-title { color: var(--color-primary); }

.cat-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cat-list a { display: flex; justify-content: space-between; font-size: 0.92rem; color: #555; font-weight: 500; transition: color 0.2s; }
.cat-list a:hover { color: var(--color-primary); }

@media (max-width: 992px) {
  .layout-grid { grid-template-columns: 1fr; gap: 50px; }
  .post-eyecatch { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .header-inner { height: 70px; }
  .page-hero { margin-top: 70px; padding: 50px 0; }
  .page-main { padding: 50px 0 80px; }
  .post-eyecatch { height: 220px; }
}
