/* ==========================================================
   フードロボティクス産業レポート ブログ固有スタイル
   （ヘッダー/フッター/ナビのスタイルは ../styles.css に依存）
   ========================================================== */

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

.article-header h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.5;
  margin-top: 0.6rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
}

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

.article-category {
  background: var(--tomato);
  color: var(--white);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.article-readtime {
  color: var(--ink-soft);
}

/* 本文 */
.article-content .article-body p {
  margin-bottom: 1.2rem;
}

/* シェア */
.share-box {
  margin: 2.2rem 0 1.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.share-label {
  font-weight: 700;
  font-size: 0.9rem;
}

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

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

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

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

.back-to-list {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--steel-50);
  border: 2px solid var(--steel-300);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  color: var(--ink);
  transition: var(--transition);
}

.back-to-list:hover {
  border-color: var(--tomato);
  color: var(--tomato-dark);
  background: var(--tomato-soft);
}

/* ---------- ブログ一覧 ---------- */
.blog-index-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.4rem 1.2rem 0;
}

.blog-index-header h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.blog-index-header h1::before {
  content: '';
  width: 14px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff6a5c, var(--tomato));
  flex-shrink: 0;
}

.blog-index-header p {
  color: var(--ink-soft);
  margin-top: 0.6rem;
  max-width: 800px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  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 12px 26px rgba(43, 50, 56, 0.16);
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-content {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.55;
}

.blog-content h2 a {
  color: var(--ink);
}

.blog-content h2 a:hover {
  color: var(--tomato-dark);
}

.blog-content time {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--tomato-dark);
}

.article-summary {
  color: var(--ink-soft);
  font-size: 0.88rem;
  flex: 1;
}

.read-more {
  font-weight: 700;
  font-size: 0.88rem;
}

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