/* ==========================================================
   空き家再生・活用ビジネス総覧 blog.css
   ブログ専用（2カラム記事レイアウト・記事装飾・一覧カード）
   ※ ヘッダー/フッター/ナビのスタイルは ../styles.css を参照
   ========================================================== */

/* ---------------- 記事ヘッダー ---------------- */
.article-header {
  margin-bottom: 1.4rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
}

.article-meta .article-date {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--wood-dark);
}

.article-meta .article-category {
  background: var(--moss);
  color: var(--white);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.article-meta .article-readtime {
  color: var(--muted);
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--moss-dark);
  letter-spacing: 0.03em;
}

/* ---------------- アイキャッチ ---------------- */
.article-eyecatch {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.2rem;
  aspect-ratio: 16 / 9;
}

.article-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- 本文リード ---------------- */
.article-lead {
  background: var(--moss-soft);
  border-left: 5px solid var(--moss);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.4rem;
  font-size: 0.98rem;
  font-weight: 500;
}

/* ---------------- SVG 図解 ---------------- */
.blog-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.3rem 1.1rem;
  margin: 1.8rem 0 2.2rem;
}

.blog-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.blog-figure-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--moss-dark);
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--wood-light);
}

.blog-figure-caption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------------- シェア・戻る ---------------- */
.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.6rem 0 1.6rem;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.share-label {
  font-weight: 700;
  color: var(--moss-dark);
  font-size: 0.9rem;
}

.share-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.share-btn:hover {
  opacity: 0.88;
  color: var(--white);
}

.share-x {
  background: #1a1a1a;
}

.share-facebook {
  background: #1877f2;
}

.back-to-list {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: var(--moss);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.back-to-list::before {
  content: "← ";
}

.back-to-list:hover {
  background: var(--moss-dark);
  color: var(--white);
}

/* ---------------- ブログ一覧ヘッダー ---------------- */
.blog-page-head {
  background: var(--moss-dark);
  color: #f2ede0;
  padding: 2.8rem 0;
  text-align: center;
}

.blog-page-head h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: #fffdf5;
  letter-spacing: 0.06em;
}

.blog-page-head p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #cfc7b4;
}

/* ---------------- ブログ一覧カード ---------------- */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42, 38, 32, 0.16);
}

.blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-card-body time {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.blog-card-body h2 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--moss-dark);
}

.blog-card-body h2 a {
  color: var(--moss-dark);
}

.blog-card-body h2 a:hover {
  color: var(--wood-dark);
}

.blog-card-body .article-summary {
  font-size: 0.84rem;
  color: var(--muted);
  flex: 1;
}

.blog-card-body .read-more {
  align-self: flex-end;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.blog-card-body .read-more::after {
  content: " →";
}

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 1024px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .article-header h1 {
    font-size: 1.55rem;
  }

  .blog-page-head h1 {
    font-size: 1.6rem;
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile news-commentary readability baseline (shared site-local rule). */
@media (max-width: 768px) {
  .blog-main, .blog-container, .two-col-layout { min-width: 0; }
  .article-detail, .blog-article, .article-body { min-width: 0; }
  .article-detail .article-body, .blog-article { padding-inline: 16px; }
  .article-content {
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  .article-content h2 { font-size: clamp(1.25rem, 6vw, 1.45rem); line-height: 1.4; }
  .article-content h3 { font-size: clamp(1.12rem, 5vw, 1.25rem); line-height: 1.45; }
  .article-content :is(img, iframe, video) { max-width: 100%; height: auto; }
  .article-content table { display: block; max-width: 100%; overflow-x: auto; }
  .sidebar, .blog-sidebar { position: static; order: 2; }
}
/* Mobile article reading width: keep outer page gutters, remove duplicated inner gutters. */
@media (max-width: 768px) {
  .article-content,
  .article-detail .article-body,
  .blog-article,
  .main-content > article.main-content {
    padding-left: 0;
    padding-right: 0;
  }
  /* Cap article-panel padding without removing deliberate card framing. */
  .article-panel,
  .article-main,
  .post-content,
  .article-detail {
    padding-left: min(16px, 4vw);
    padding-right: min(16px, 4vw);
  }
  .article-body { padding-left: 0; padding-right: 0; }
}
