/* ==========================================================
   Oral Care Tech Report - blog.css
   ブログ固有スタイル（2カラム / 記事装飾 / 一覧カード）
   ヘッダー・フッター・ナビのスタイルは ../styles.css に依存する。
   ここには絶対に書かないこと。
   ========================================================== */

/* ---------- 2カラムレイアウト ---------- */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  padding: 2.6rem 0 3.8rem;
  align-items: start;
}

.blog-breadcrumbs {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 1.4rem 0 0;
}

.blog-breadcrumbs a {
  color: var(--teal);
}

/* ---------- 記事本体 ---------- */

.article-content {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem 2.6rem;
  box-shadow: 0 4px 14px rgba(18, 58, 69, 0.06);
}

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

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

.article-date {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
}

.article-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal-deep);
  border-radius: 4px;
  padding: 0.15rem 0.7rem;
}

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

.article-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--teal-deep);
  line-height: 1.5;
}

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

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

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

.article-body {
  font-size: 1rem;
}

.article-body h2 {
  font-size: 1.4rem;
  color: var(--teal-deep);
  padding-left: 0.85rem;
  border-left: 5px solid var(--teal);
  margin: 2.4rem 0 1.1rem;
  scroll-margin-top: 110px;
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin: 1.8rem 0 0.7rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px dotted var(--line);
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body strong {
  color: var(--teal-dark);
  font-weight: 700;
}

.article-body a {
  color: var(--teal);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--teal-dark);
}

.article-lead {
  font-size: 1.04rem;
  background: var(--mint-soft);
  border-left: 5px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.6rem;
}

/* 記事内の図解 */
.article-figure {
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1rem;
  margin: 1.8rem 0;
  overflow-x: auto;
}

.article-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure-caption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.7rem;
}

/* ---------- シェア / 記事下ナビ ---------- */

.share-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2.6rem 0 0.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.share-btn {
  display: inline-block;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white);
}

.share-btn.share-x {
  background: #0f1419;
}

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

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

.share-btn.share-facebook:hover {
  background: #0f5ec7;
  color: var(--white);
}

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

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

/* ---------- 一覧ページ ---------- */

.blog-list-hero {
  text-align: center;
  padding: 2.8rem 1.2rem 0.4rem;
}

.blog-list-hero .section-title-en {
  color: var(--coral);
}

.blog-list-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  color: var(--teal-deep);
  margin: 0.3rem 0 0.6rem;
}

.blog-list-hero p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto;
}

.blog-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  padding: 2rem 0 3.8rem;
  align-items: start;
}

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

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(18, 58, 69, 0.06);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.blog-card-date {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal);
}

.blog-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  background: var(--coral);
  border-radius: 4px;
  padding: 0.12rem 0.6rem;
}

.blog-card h2 {
  font-size: 1.05rem;
  color: var(--teal-deep);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

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

.blog-card h2 a:hover {
  color: var(--teal);
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 0.9rem;
}

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

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

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

@media (max-width: 1024px) {
  .blog-layout,
  .blog-index-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.6rem;
  }

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

@media (max-width: 960px) {
  .blog-layout,
  .blog-index-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-content {
    padding: 1.4rem 1.2rem 1.8rem;
  }

  .article-body h2 {
    font-size: 1.2rem;
  }

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