/* ============================================================
   断熱リフォーム産業レポート ブログ固有スタイル
   ※ヘッダー/フッター/ナビのスタイルは ../styles.css に集約
   ============================================================ */

/* ---------- 記事本体 ---------- */
.article-content {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2.4rem;
  min-width: 0;
}

.article-header {
  border-bottom: 2px solid var(--sand);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--brown-soft);
  margin-bottom: 0.7rem;
}

.article-category {
  background: var(--terracotta);
  color: #fff;
  border-radius: 6px;
  padding: 0.1rem 0.6rem;
  font-weight: 700;
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.45;
  color: var(--brown);
}

.article-eyecatch {
  margin: 0 0 1.6rem;
  border-radius: 10px;
  overflow: hidden;
}

.article-eyecatch img {
  width: 100%;
  display: block;
}

.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  line-height: 1.5;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sand);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-content h2::before {
  content: "";
  width: 20px;
  height: 18px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    var(--terracotta) 0 38%,
    var(--sand) 38% 62%,
    var(--clay) 62% 100%
  );
  clip-path: polygon(50% 0%, 100% 38%, 88% 38%, 88% 100%, 12% 100%, 12% 38%, 0% 38%);
}

.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brown);
  margin: 1.4rem 0 0.7rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--terracotta);
}

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

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

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

.article-content strong {
  color: var(--terracotta-dark);
}

/* ---------- シェア ---------- */
.share-box {
  margin-top: 2.2rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.share-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brown-soft);
}

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

.share-btn:hover {
  opacity: 0.8;
  color: #fff;
}

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

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

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

.back-to-list::before {
  content: "← ";
}

/* ---------- ブログ一覧 ---------- */
.blog-hero {
  background: linear-gradient(135deg, var(--sand), var(--bg-alt));
  border-bottom: 3px solid var(--terracotta);
  text-align: center;
  padding: 3rem 1.2rem 2.4rem;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--brown);
}

.blog-hero p {
  color: var(--brown-soft);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

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

.blog-card {
  background: var(--cream);
  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);
  box-shadow: 0 10px 26px rgba(61, 47, 36, 0.2);
}

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

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

.blog-content h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

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

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

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

.article-summary {
  font-size: 0.86rem;
  color: var(--brown-soft);
  flex: 1;
}

.read-more {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.read-more::after {
  content: " →";
}

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

  .article-content {
    padding: 1.5rem 1.2rem;
  }

  .article-header h1 {
    font-size: 1.35rem;
  }
}


/* News commentary quality guard: mobile-safe media and sidebar layout */
.blog-page header .header-inner { flex-direction: row; align-items: center; width: 100%; }
.blog-page header nav { margin-left: auto; }
.blog-main, .article-main, .blog-article, .article-content, .blog-article-content { min-width: 0; max-width: 100%; }
.article-header { display: block; min-width: 0; }
body.blog-page { overflow-x: hidden; }
.blog-article-hero, .article-hero-image, .article-header figure { max-width: 100%; overflow: hidden; }
.blog-article-hero img, .article-hero-image, .article-header figure img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.blog-article-content img, .article-content img, .blog-main img { max-width: 100%; height: auto; }
.related-articles ul, .related-posts ul, .toc ul, .sidebar-widget ul { margin: 0; padding-left: 1.2rem; }
.related-articles li, .related-posts li, .toc li, .sidebar-widget li { margin: .45rem 0; line-height: 1.55; }
.sitenavi-slot { display: none !important; }
@media (max-width: 768px) {
  .blog-layout, .article-layout { grid-template-columns: minmax(0, 1fr) !important; width: min(calc(100% - 24px), 1120px); }
  .blog-sidebar { position: static !important; width: 100%; }
  .blog-main, .article-main { width: 100%; }
  .blog-article-hero { margin-left: 0; margin-right: 0; }
  .blog-article-hero img, .article-hero-image { width: 100% !important; max-width: 100% !important; }
}

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