/* ==========================================================
   DC Cooling Insight - ブログ固有スタイル
   2カラムレイアウト・記事装飾のみ
   ヘッダー/フッター/ナビは ../styles.css を使用（ここには書かない）
   ========================================================== */

/* ---------------- 記事本文カード ---------------- */

.article-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem 2.8rem;
  min-width: 0;
}

.article-header {
  margin-bottom: 1.6rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.article-date {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.9rem;
}

.article-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  padding: 0.14rem 0.8rem;
}

.article-readtime {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.article-header h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.5;
  color: var(--navy);
}

.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;
  display: block;
}

/* ---------------- 記事本文タイポグラフィ ---------------- */

.article-content .lead {
  font-weight: 500;
  color: var(--ink-soft);
  border-left: 4px solid var(--cyan);
  background: var(--cyan-pale);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  margin-bottom: 2.2rem;
}

.article-content section {
  margin-bottom: 2.6rem;
}

.article-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--navy);
  line-height: 1.5;
  padding-left: 0.9rem;
  border-left: 5px solid var(--cyan);
  margin-bottom: 1.2rem;
  scroll-margin-top: 110px;
}

.article-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
  margin: 1.6rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--cyan-pale);
}

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

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

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

.article-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content strong {
  color: var(--navy);
  font-weight: 700;
}

.article-content .callout {
  background: var(--cyan-pale);
  border: 1px solid #bfe4ef;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  font-size: 0.93rem;
  margin: 0 0 1.4rem;
}

/* ---------------- シェア / 戻る ---------------- */

.share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 2.4rem 0 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.share-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.share-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.share-btn:hover {
  opacity: 0.88;
}

.share-x {
  background: #14171a;
}

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

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

/* ---------------- サイドバーウィジェット ---------------- */

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.3rem;
}

.sidebar-widget.sidebar-ad {
  text-align: center;
}

.sidebar-ad .amazon-banner {
  margin: 0;
}

.sidebar-ad img {
  max-width: 100%;
  height: auto;
}

.widget-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

/* ---------------- ブログ一覧 ヒーロー ---------------- */

.blog-page-hero {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--cyan) 160%);
  color: #f2fbff;
  padding: 3rem 1.2rem 2.6rem;
  border-bottom: 3px solid var(--cyan);
}

.blog-page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-page-hero .eyebrow {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--cyan-bright);
  margin-bottom: 0.6rem;
}

.blog-page-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 0.7rem;
}

.blog-page-hero p {
  max-width: 640px;
  color: #dcecf4;
  font-size: 0.95rem;
}

/* ---------------- ブログ一覧 カードグリッド ---------------- */

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-card {
  background: var(--surface);
  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 16px 36px rgba(11, 34, 57, 0.18);
}

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

.blog-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.blog-card-body time {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--cyan);
}

.blog-card-body h2 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.blog-card-body h2 a {
  color: var(--navy);
}

.blog-card-body h2 a:hover {
  color: var(--cyan);
  opacity: 1;
}

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

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

/* ---------------- レスポンシブ ---------------- */

@media (max-width: 1024px) {
  .article-content {
    padding: 1.8rem 1.5rem 2.2rem;
  }

  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .article-content {
    padding: 1.5rem 1.1rem 1.8rem;
  }

  .article-content h2 {
    font-size: 1.25rem;
  }

  .blog-list {
    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; }
}
