/* ==========================================================
   暑熱対策・ウェアラブル冷却レポート blog.css
   ブログ固有スタイル（ヘッダー/フッターは ../styles.css）
   ========================================================== */

/* ---------- 記事ページ ---------- */
.article-content {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem 2.6rem;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.article-meta span {
  background: var(--ice-100);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-weight: 500;
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  color: var(--deep);
  line-height: 1.5;
}

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

.article-eyecatch img {
  width: 100%;
  height: auto;
}

.article-content h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--deep);
  line-height: 1.5;
  margin: 2.2rem 0 1rem;
  padding: 0.5rem 0.9rem 0.5rem 1.1rem;
  background: linear-gradient(90deg, var(--ice-100), rgba(227, 244, 251, 0));
  border-left: 5px solid var(--accent);
  border-radius: 6px;
}

.article-content h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.7rem;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.3em;
}

.article-content li {
  margin-bottom: 0.4em;
}

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

/* シェア */
.share-box {
  margin: 2.2rem 0 1.4rem;
  padding: 1.1rem 1.2rem;
  background: var(--ice-50);
  border: 1px solid var(--ice-200);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

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

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

.share-btn:hover {
  opacity: 0.85;
  color: #fff;
  transform: translateY(-1px);
}

.share-x {
  background: #111418;
}

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

.back-to-list {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--ice-300);
  border-radius: 999px;
  transition: var(--transition);
}

.back-to-list:hover {
  background: var(--ice-100);
}

/* ---------- 記事一覧 ---------- */
.blog-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(41, 184, 229, 0.18) 0, transparent 240px),
    radial-gradient(circle at 10% 85%, rgba(147, 212, 236, 0.25) 0, transparent 200px),
    linear-gradient(135deg, var(--deep), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 3rem 1.2rem 2.6rem;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(6, 34, 50, 0.6);
}

.blog-hero p {
  color: #dff2fb;
  font-size: 0.95rem;
}

.blog-list-wrap {
  padding-top: 1.4rem;
  padding-bottom: 3rem;
}

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

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(14, 124, 168, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14, 124, 168, 0.16);
  border-color: var(--ice-300);
}

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

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

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

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

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

.blog-content time {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.article-summary {
  font-size: 0.85rem;
  color: var(--text-mid);
  flex-grow: 1;
}

.read-more {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.read-more::after {
  content: " \2192";
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .article-content {
    padding: 1.5rem 1.2rem 1.8rem;
  }

  .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; }
}
