/* ============================================================
   Perovskite Solar Report — ブログ固有スタイル
   （ヘッダー/フッター/ナビ/2カラム共通は ../styles.css を使用）
   ============================================================ */

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.article-date {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.article-category {
  background: var(--green-deep);
  color: var(--amber-pale);
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  color: var(--green-deep);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.article-eyecatch {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

/* ---------- シェア ---------- */
.share-box {
  margin: 2.4rem 0 1.4rem;
  padding: 1.1rem 1.3rem;
  background: #fdfbf6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.share-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-deep);
}

.share-btn {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  color: #ffffff;
}

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

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

.share-btn:hover {
  opacity: 0.82;
  color: #ffffff;
}

.back-to-list {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-mid);
}

.back-to-list:hover {
  color: var(--amber);
}

/* ---------- 記事一覧（blog/index.html） ---------- */
.blog-list-hero {
  background: var(--green-deep);
  background-image: var(--lattice);
  padding: 3rem 1.2rem;
  text-align: center;
}

.blog-list-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: #fff8ea;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

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

.blog-card {
  background: var(--paper);
  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);
  border-color: var(--amber);
}

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

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

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

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

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

.blog-content time {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: block;
}

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

.read-more {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--green-mid);
}

.read-more:hover {
  color: var(--amber);
}

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

  .share-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

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