/* ==========================================================
   SAF産業レポート ブログ固有スタイル
   ※ヘッダー/フッター/ナビのスタイルは ../styles.css に依存。
     ここには記述しない。
   ========================================================== */

/* ---------- ブログ共通レイアウト ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky) 60%, #6db4e4 100%);
  padding: 3.2rem 1.2rem;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.blog-hero h1 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(10, 49, 78, 0.6);
}

.blog-hero p {
  color: #eaf4fc;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(10, 49, 78, 0.6);
}

/* ---------- 記事一覧（index） ---------- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  padding: 2.8rem 0;
}

.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(-5px);
  box-shadow: 0 14px 34px rgba(10, 92, 156, 0.2);
}

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

.blog-content {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-content h2 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

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

.blog-content h2 a:hover {
  color: var(--sky-deep);
}

.blog-content time {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}

.article-summary {
  font-size: 0.87rem;
  line-height: 1.75;
  flex: 1;
}

.read-more {
  margin-top: 0.9rem;
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky-deep);
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  transition: var(--transition);
}

.read-more:hover {
  background: var(--sky-deep);
  color: #ffffff;
}

/* ---------- 記事ページ ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  padding: 2.8rem 0 3.5rem;
}

.article-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem;
}

.article-header .article-category {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  margin-bottom: 0.8rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin-bottom: 0.8rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  color: #6c8299;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 2px solid var(--line);
}

.article-hero-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1.8rem;
  display: block;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.55rem;
  margin: 2.4rem 0 1.1rem;
  position: relative;
  letter-spacing: 0.03em;
}

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 68px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.05rem;
  color: var(--sky-deep);
  margin: 1.6rem 0 0.7rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--gold);
}

.article-content p {
  margin-bottom: 1.1rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.1rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

/* シェアボタン */
.share-box {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--line);
}

.share-box .share-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.share-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.share-buttons a {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 1.4rem;
  transition: var(--transition);
}

.share-buttons a:hover {
  opacity: 0.8;
  color: #ffffff;
}

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

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

.share-line {
  background: #06c755;
}

/* 記事フッターナビ */
.article-footer-nav {
  margin-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-footer-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.article-footer-nav a:hover {
  color: var(--gold);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.6rem;
  }
}

@media (max-width: 860px) {
  .blog-list {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 1.6rem 1.3rem;
  }
}

/* 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; }
}
