/* ========================================
   みんなの電力 - ブログ専用スタイル
   ======================================== */

/* ── BLOG HERO ── */
.blog-hero {
  background: linear-gradient(135deg, #1abc6c 0%, #2ed687 45%, #25c9b5 100%);
  color: #fff; text-align: center;
  padding: 56px 32px 48px;
}
.blog-hero h1 { font-size: clamp(26px,3.2vw,40px); font-weight: 900; margin-bottom: 14px; }
.blog-hero p { font-size: 16px; opacity: .92; line-height: 1.9; max-width: 720px; margin: 0 auto; }

/* ── BLOG LIST ── */
.blog-list-section { background: var(--gray-1); padding: 56px 32px; }
.blog-cat-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px; align-items: center;
}
.filter-label { font-size: 13px; font-weight: 700; color: var(--gray-5); margin-right: 6px; }
.filter-btn {
  display: inline-block; background: #fff; color: var(--gray-7);
  padding: 6px 16px; border-radius: 18px; font-size: 13px; font-weight: 700;
  text-decoration: none; border: 1.5px solid #c8edd8;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green-d); color: #fff; border-color: var(--green-d);
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.blog-card {
  background: #fff; border-radius: 12px; padding: 24px;
  border: 1.5px solid #e4f5ec; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,188,108,.15);
  border-color: var(--green);
}
.blog-card-cat {
  display: inline-block; background: var(--green-l);
  color: var(--green-d); padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; margin-bottom: 12px;
  align-self: flex-start;
}
.blog-card h3 {
  font-size: 16px; font-weight: 800; color: var(--gray-7);
  line-height: 1.5; margin-bottom: 10px;
}
.blog-card p {
  font-size: 13px; color: var(--gray-5); line-height: 1.7;
  margin-bottom: 14px; flex: 1;
}
.blog-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-5); margin-top: auto;
  border-top: 1px solid var(--gray-2); padding-top: 12px;
}
.blog-card-meta .read-more { color: var(--green-d); font-weight: 700; }

/* ── BLOG ARTICLE ── */
.blog-article { background: var(--white); padding: 32px 32px 64px; }
.blog-article-inner { max-width: 800px; margin: 0 auto; }
.breadcrumb {
  font-size: 12px; color: var(--gray-5); margin-bottom: 24px;
}
.breadcrumb a { color: var(--green-d); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.article-header {
  border-bottom: 2px solid var(--gray-2); padding-bottom: 24px;
  margin-bottom: 32px;
}
.article-cat {
  display: inline-block; background: var(--green-d); color: #fff;
  padding: 4px 12px; border-radius: 4px;
  font-size: 12px; font-weight: 700; margin-bottom: 14px;
}
.article-header h1 {
  font-size: clamp(24px,2.8vw,32px); font-weight: 900;
  color: var(--gray-7); line-height: 1.4; margin-bottom: 14px;
}
.article-meta {
  display: flex; gap: 18px; font-size: 13px; color: var(--gray-5);
}
.article-meta time, .article-meta span { display: inline-flex; align-items: center; gap: 4px; }

.article-body { font-size: 15px; line-height: 2; color: var(--text); }
.article-lead {
  background: var(--green-l); border-left: 4px solid var(--green);
  padding: 18px 22px; border-radius: 4px; margin-bottom: 28px;
  font-weight: 600;
}
.article-body h2 {
  font-size: 22px; font-weight: 800; color: var(--green-d);
  border-left: 5px solid var(--green); padding-left: 14px;
  margin-top: 36px; margin-bottom: 16px;
}
.article-body p { margin-bottom: 18px; }
.article-body a { color: var(--green-d); font-weight: 700; }
.article-body strong { color: var(--gray-7); }

/* ── ARTICLE CTA ── */
.article-cta {
  background: linear-gradient(135deg, #1abc6c 0%, #25c9b5 100%);
  color: #fff; border-radius: 14px; padding: 32px 28px;
  text-align: center; margin: 48px 0 32px;
}
.article-cta h3 { font-size: 22px; font-weight: 900; margin-bottom: 12px; }
.article-cta p { font-size: 15px; opacity: .92; line-height: 1.8; margin-bottom: 22px; }
.btn-cta-primary {
  display: inline-block; background: var(--orange); color: #fff;
  padding: 14px 36px; border-radius: 8px; font-weight: 800; font-size: 15px;
  text-decoration: none;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* ── RELATED ── */
.article-related h3 {
  font-size: 18px; font-weight: 800; color: var(--gray-7);
  border-left: 5px solid var(--green); padding-left: 12px;
  margin-bottom: 18px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.related-card {
  background: var(--gray-1); border-radius: 10px; padding: 16px;
  text-decoration: none; color: inherit;
  border: 1.5px solid var(--gray-2);
}
.related-card:hover { border-color: var(--green); transform: translateY(-2px); }
.related-cat {
  display: inline-block; background: var(--green-l); color: var(--green-d);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  margin-bottom: 8px;
}
.related-card h4 { font-size: 13px; font-weight: 700; color: var(--gray-7); line-height: 1.5; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-list-section { padding: 40px 16px; }
  .blog-article { padding: 24px 16px 48px; }
}
