/* ============================================================
   バッテリーサイクル・レポート ブログ固有スタイル
   ※ヘッダー/フッター/ナビ/サイドバー共通部は ../styles.css を使用
   ============================================================ */

/* ---------------- 記事ページ ---------------- */
.article-header {
  margin-bottom: 1.4rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
}

.article-date {
  font-family: var(--font-num);
  color: var(--text-muted);
  font-weight: 600;
}

.article-category {
  background: var(--lime);
  color: var(--deep-green);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  font-size: 0.75rem;
}

.article-readtime {
  color: var(--text-muted);
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--deep-green);
  line-height: 1.5;
}

.article-eyecatch {
  margin: 0 0 1.8rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.article-content {
  min-width: 0;
}

/* ---------------- シェア・戻る ---------------- */
.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.5rem 0 1.2rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #eaf5df, #f3fae9);
  border-radius: var(--radius);
}

.share-label {
  font-weight: 700;
  color: var(--deep-green);
  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: #fff;
}

.share-btn.share-x {
  background: #111;
}

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

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

.share-btn.share-facebook:hover {
  background: #3b8bf5;
  color: #fff;
}

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

/* ---------------- ブログ一覧 ---------------- */
.blog-hero {
  background: linear-gradient(135deg, var(--deep-green), var(--moss));
  padding: 3rem 1.2rem;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: #f4ffdc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

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

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

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 46, 28, 0.2);
}

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

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

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

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

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

.blog-content time {
  font-family: var(--font-num);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-summary {
  font-size: 0.87rem;
  color: var(--text-body);
  flex: 1;
}

.read-more {
  align-self: flex-start;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--deep-green);
  background: rgba(168, 230, 60, 0.35);
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
}

.read-more:hover {
  background: var(--lime);
}

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