@charset "utf-8";

/* ============================================================================
 * File: assets/css/page-blog.css
 * Role: ブログ一覧・詳細ページ専用スタイル
 * ========================================================================== */

/* ===== ページヒーロー (一覧用) ===== */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 120px 20px 50px;
  text-align: center;
}
.page-hero h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== ブログヒーロー (詳細用) ===== */
.blog-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 100px 20px 80px;
  text-align: center;
  overflow: hidden;
}
.blog-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.blog-hero__breadcrumb {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 24px;
}
.blog-hero__breadcrumb a {
  color: #fff;
  text-decoration: underline;
}
.blog-hero__breadcrumb a:hover {
  color: var(--theme-accent);
}
.blog-hero__meta {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.blog-hero__date {
  font-size: 0.9rem;
  opacity: 0.9;
}
.blog-hero__category {
  font-size: 0.8rem;
  background: var(--theme-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
}
.blog-hero__title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ===== 一覧エリア ===== */
.blog-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.blog-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* ===== ブログカード ===== */
.blog-card {
  text-decoration: none;
  color: inherit;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.blog-card__thumb {
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__thumb img {
  transform: scale(1.05);
}
.blog-card__thumb-dummy {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-weight: 700;
}
.blog-card__body {
  padding: 20px;
}
.blog-card__category {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--color-bg-light);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.blog-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.blog-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: #777; /* or var(--color-text-light) */
  line-height: 1.6;
}

/* カード内のメタ情報 (blog-detail側のバリエーション) */
.bc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #999;
}
.bc-cat {
  background: #eee;
  padding: 2px 8px;
  border-radius: 10px;
  color: #666;
  font-size: 0.75rem;
}

/* 空メッセージ */
.empty-msg {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-light);
  font-size: 1rem;
}
.empty-msg .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}
.pagination {
  margin-top: 50px;
  text-align: center;
}

/* ===== 記事本文 ===== */
.blog-article {
  max-width: 840px;
  margin: 0 auto 60px;
  padding: 0 24px 30px;
  position: relative;
  background: #fff;
  margin-top: -40px;
  z-index: 3;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.blog-main-image {
  margin: 0 -24px 40px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.blog-main-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-body {
  padding: 0 20px 40px;
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
}
/* ブログ本文内のスタイル（汎用的） */
.blog-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 20px;
  border-bottom: 2px solid var(--theme-accent);
  padding-bottom: 10px;
}
.blog-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 30px 0 16px;
  border-left: 4px solid var(--theme-accent);
  padding-left: 12px;
}
.blog-body p {
  margin-bottom: 24px;
}
.blog-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
}
.blog-body ul,
.blog-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.blog-body li {
  margin-bottom: 8px;
}

/* ハッシュタグ */
.blog-tags {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.blog-tag {
  font-size: 0.85rem;
  color: var(--theme-accent);
  background: #f0f7ff;
  padding: 4px 10px;
  border-radius: 4px;
}
.blog-tag:before {
  content: '#';
  margin-right: 2px;
}

/* 他のブログ */
.other-blog {
  background: var(--color-bg-light);
  padding: 60px 0;
}
.other-blog__title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* 戻るリンク */
.back-link {
  text-align: center;
  margin-top: 40px;
}
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-accent);
  transition: color var(--transition-base);
}
.back-link a:hover {
  color: var(--theme-accent-hover);
}

@media (max-width: 768px) {
  .blog-cols {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 80px 20px 60px;
  }
  .blog-hero__title {
    font-size: 1.3rem;
  }
  .blog-article {
    margin-top: 0;
    padding: 0 0 30px;
    box-shadow: none;
    border-radius: 0;
  }
  .blog-main-image {
    margin: 0 0 30px;
    border-radius: 0;
  }
  .blog-body {
    padding: 0 20px 40px;
  }
}
