/* =============================================
   ミライコンパス - ブログ・コラム CSS
   ============================================= */

/* ===== 個別記事 ===== */
.single-hero {
  margin-bottom: 28px;
}
.single-cat {
  display: inline-block;
  background: var(--primary); color: white;
  font-size: 0.72rem; font-weight: 900; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 999px;
  text-decoration: none; margin-bottom: 14px;
  transition: opacity 0.2s;
}
.single-cat:hover { opacity: 0.8; }

.single-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900; color: var(--navy); line-height: 1.5;
  margin-bottom: 14px;
}
.single-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 0.8rem; color: #aaa;
}
.single-updated {
  padding-left: 12px;
  border-left: 1px solid #ddd;
}

/* アイキャッチ */
.single-thumb {
  border-radius: 16px; overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.single-thumb img {
  width: 100%; height: auto; display: block;
}

/* 本文 */
.single-content {
  font-size: 0.95rem; line-height: 2; color: #444;
  margin-bottom: 32px;
}
.single-content h2 {
  font-size: 1.3rem; font-weight: 900; color: var(--navy);
  margin: 40px 0 16px; padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.single-content h3 {
  font-size: 1.1rem; font-weight: 900; color: var(--navy);
  margin: 32px 0 12px;
}
.single-content p { margin-bottom: 16px; }
.single-content ul, .single-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.single-content li { margin-bottom: 6px; line-height: 1.8; }
.single-content a { color: var(--primary); text-decoration: underline; }
.single-content img {
  max-width: 100%; border-radius: 10px; margin: 16px 0;
}
.single-content blockquote {
  background: #f9f9f9; border-left: 4px solid var(--secondary);
  border-radius: 0 10px 10px 0; padding: 16px 20px;
  margin: 20px 0; color: #555; font-style: italic;
}
.single-content strong { color: var(--navy); font-weight: 900; }
.single-content code {
  background: #f0f0f0; padding: 2px 6px; border-radius: 4px;
  font-size: 0.88em; color: var(--primary);
}

/* タグ */
.single-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.single-tag {
  font-size: 0.78rem; font-weight: 700; color: #888;
  padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid #e8e8e8; text-decoration: none;
  transition: all 0.2s;
}
.single-tag:hover { border-color: var(--primary); color: var(--primary); }

/* 前後ナビ */
.single-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 40px;
}
.snav-prev, .snav-next {
  background: white; border-radius: 14px;
  border: 2px solid #f0f0f0; padding: 16px 20px;
  text-decoration: none; display: block;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.snav-prev:hover, .snav-next:hover {
  border-color: var(--primary); transform: translateY(-2px);
}
.snav-next { text-align: right; }
.snav-label {
  display: block; font-size: 0.72rem; font-weight: 900;
  color: #aaa; letter-spacing: 1px; margin-bottom: 6px;
}
.snav-title {
  display: block; font-size: 0.88rem; font-weight: 700;
  color: var(--navy); line-height: 1.5;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ===== SNS シェアボタン ===== */
.share-buttons {
  background: #f9f9f9; border-radius: 14px;
  padding: 16px 20px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.share-label {
  font-size: 0.78rem; font-weight: 900; color: #aaa;
  letter-spacing: 1px; white-space: nowrap;
}
.share-list { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 900; text-decoration: none;
  transition: all 0.2s; white-space: nowrap;
}
.share-btn:hover { transform: translateY(-2px); }
.share-x    { background: #000;    color: white; }
.share-x:hover { background: #333; }
.share-line { background: #06C755; color: white; }
.share-line:hover { background: #05a84a; }
.share-hb   { background: #00A4DE; color: white; }
.share-hb:hover { background: #0090c5; }

/* ===== アーカイブ一覧 ===== */
.archive-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-bottom: 40px;
}
.archive-card {
  background: white; border-radius: 18px;
  border: 2px solid #f0f0f0; overflow: hidden;
  text-decoration: none; display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.arc-thumb { aspect-ratio: 16/9; overflow: hidden; background: #f5f5f5; }
.arc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.arc-thumb-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 3rem; color: #ddd;
}
.arc-body { padding: 20px; }
.arc-cat {
  display: inline-block; font-size: 0.7rem; font-weight: 900;
  background: var(--primary); color: white;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
}
.arc-title {
  font-size: 0.95rem; font-weight: 900; color: var(--navy);
  line-height: 1.5; margin-bottom: 8px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.arc-excerpt {
  font-size: 0.82rem; color: #666; line-height: 1.7;
  margin-bottom: 12px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.arc-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.arc-date { font-size: 0.76rem; color: #aaa; }
.arc-more  { font-size: 0.78rem; font-weight: 900; color: var(--primary); }

/* ページネーション */
.archive-pagination { text-align: center; margin-top: 16px; }
.archive-pagination .page-numbers {
  display: inline-flex; gap: 6px; list-style: none;
  padding: 0; flex-wrap: wrap; justify-content: center;
}
.archive-pagination .page-numbers li a,
.archive-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  border: 2px solid #f0f0f0; color: var(--navy);
  transition: all 0.2s;
}
.archive-pagination .page-numbers li a:hover {
  border-color: var(--primary); color: var(--primary);
}
.archive-pagination .page-numbers li .current {
  background: var(--primary); border-color: var(--primary); color: white;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .archive-grid { grid-template-columns: 1fr; }
  .single-nav   { grid-template-columns: 1fr; }
  .snav-next    { text-align: left; }
  .share-buttons { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== ブログ一覧（home.php）===== */

/* カテゴリフィルター */
.blog-cat-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.bcf-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 700;
  text-decoration: none; color: #666;
  border: 2px solid #e8e8e8; background: white;
  transition: all 0.2s;
}
.bcf-btn:hover, .bcf-btn.active {
  background: var(--primary); border-color: var(--primary); color: white;
}
.bcf-count {
  background: rgba(0,0,0,0.1); color: inherit;
  border-radius: 999px; padding: 0 6px;
  font-size: 0.72rem;
}
.bcf-btn.active .bcf-count { background: rgba(255,255,255,0.25); }

/* 最新記事フィーチャー */
.blog-featured {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 0; border-radius: 20px; overflow: hidden;
  text-decoration: none; background: white;
  border: 2px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-bottom: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.bf-thumb { overflow: hidden; aspect-ratio: 4/3; background: #f5f5f5; }
.bf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-thumb-placeholder {
  width: 100%; height: 100%; min-height: 260px;
  background: linear-gradient(135deg, rgba(255,107,53,.1), rgba(168,85,247,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.bf-body {
  padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.bf-cat {
  display: inline-block; font-size: 0.72rem; font-weight: 900;
  background: var(--primary); color: white;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 14px;
}
.bf-title {
  font-size: 1.2rem; font-weight: 900; color: var(--navy);
  line-height: 1.5; margin-bottom: 12px;
}
.bf-excerpt {
  font-size: 0.85rem; color: #666; line-height: 1.8;
  margin-bottom: 16px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.bf-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.bf-date { font-size: 0.78rem; color: #aaa; }
.bf-more { font-size: 0.84rem; font-weight: 900; color: var(--primary); }

/* 記事なし表示 */
.blog-empty {
  text-align: center; padding: 80px 20px;
}
.be-icon  { font-size: 4rem; margin-bottom: 20px; }
.be-title { font-size: 1.3rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.be-desc  { color: #888; margin-bottom: 28px; line-height: 1.7; }

@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .bf-thumb { aspect-ratio: 16/9; }
  .bf-body  { padding: 20px; }
}
