/* ============================================================
   防災テック・レジリエンス産業レポート - blog.css
   ブログ固有: 記事装飾・ブログ一覧の2カラムグリッド
   ヘッダー/フッター/ナビ/page-layout/sidebar は ../styles.css に依存
   ============================================================ */

/* ---------------- 記事ヘッダー ---------------- */
.article-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--line);
}

.article-header h1 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.55;
  margin-top: 0.9rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.article-date {
  font-family: "Shippori Mincho B1", serif;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.article-category {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 4px;
  padding: 0.16rem 0.7rem;
  letter-spacing: 0.06em;
}

.article-readtime {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

.article-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------------- 記事内の補足要素 ---------------- */
.article-main .article-lead {
  font-size: 1.05rem;
  background: var(--sky);
  border-left: 6px solid var(--steel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2.2rem;
}

.article-main .callout {
  background: #fff6ec;
  border: 1px solid var(--amber);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  font-size: 0.95rem;
}

.article-main .callout strong {
  color: var(--accent-dark);
}

/* ---------------- シェアボタン ---------------- */
.share-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 2.8rem 0 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.share-btn.share-x {
  background: #0f1419;
}

.share-btn.share-x:hover {
  background: #333;
  color: var(--white);
}

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

.share-btn.share-facebook:hover {
  background: #0f5ec7;
  color: var(--white);
}

.back-to-list {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--steel);
}

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

/* ---------------- ブログ一覧 ---------------- */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  border-bottom: 3px solid var(--accent);
  padding: 2.8rem 0;
  text-align: center;
}

.blog-hero h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.blog-hero p {
  color: #d9e8f2;
  font-size: 0.95rem;
  margin-top: 0.7rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

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

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(14, 34, 51, 0.2);
}

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

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

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

.blog-card time {
  font-family: "Shippori Mincho B1", serif;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.blog-card h2 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 0.5rem 0 0.7rem;
}

.blog-card h2 a {
  color: var(--navy);
}

.blog-card h2 a:hover {
  color: var(--accent);
}

.blog-card .article-summary {
  font-size: 0.86rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card .read-more {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.blog-card .read-more:hover {
  color: var(--accent-dark);
}

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

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

@media (max-width: 560px) {
  .blog-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; }
}
