/* ==========================================================
   ブルーカーボンビジネスラボ ブログ固有スタイル
   （ヘッダー/フッター/ナビは ../styles.css を使用）
   ========================================================== */

/* ---------- 記事ページ 2カラム ---------- */
.article-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.2rem;
  align-items: start;
}

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

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--teal-900);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.article-meta .article-category {
  background: var(--teal-100);
  color: var(--teal-900);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
  font-weight: 700;
  font-size: 0.78rem;
}

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

.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--teal-900);
  margin: 2.4rem 0 1rem;
  padding: 0.45rem 0 0.45rem 0.9rem;
  border-left: 6px solid var(--teal-500);
  background: linear-gradient(90deg, var(--sand-100), transparent);
  border-radius: 4px;
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--teal-700);
  margin: 1.6rem 0 0.7rem;
}

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

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

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

/* ---------- シェアボタン ---------- */
.share-section {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--sand-300);
}

.share-section h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--teal-900);
  margin-bottom: 0.8rem;
}

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

.share-buttons a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.share-buttons a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.share-x { background: #0f1419; }
.share-facebook { background: #1877f2; }
.share-hatena { background: #00a4de; }

/* ---------- 記事下ナビ ---------- */
.article-footer-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.article-footer-nav a {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- ブログ一覧 ---------- */
.blog-hero {
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
  padding: 3.4rem 1.2rem 2.8rem;
  text-align: center;
  position: relative;
}

.blog-hero h1 {
  font-family: var(--font-head);
  color: #fdfbf3;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-shadow: 0 2px 8px rgba(5, 35, 33, 0.6);
}

.blog-hero p {
  color: var(--teal-100);
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.blog-list-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.2rem;
  align-items: start;
}

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

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

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

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

.blog-content h2 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

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

.blog-content h2 a:hover {
  color: var(--teal-500);
}

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

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

.read-more {
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal-500);
}

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

@media (max-width: 640px) {
  .article-main {
    padding: 1.5rem 1.2rem 1.8rem;
  }

  .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; }
}
