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

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

.blog-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.2rem 1.2rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.4rem;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

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

/* ---------------- ブログ一覧ヘッダー ---------------- */

.blog-page-head {
  border-left: 8px solid var(--amber);
  padding: 0.4rem 0 0.6rem 1rem;
  margin-bottom: 1.8rem;
}

.blog-page-head h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}

.blog-page-head p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------------- 記事カードグリッド ---------------- */

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

.blog-card {
  background: var(--white);
  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(-5px);
  box-shadow: 0 10px 26px rgba(29, 92, 99, 0.22);
}

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

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

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

.blog-card-body h2 {
  font-size: 1.02rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

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

.blog-card-body h2 a:hover {
  color: var(--amber-dark);
}

.blog-card-body time {
  display: block;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  color: var(--amber-dark);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.blog-card-body .article-summary {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 0.8rem;
}

.blog-card-body .read-more {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  background: var(--teal);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: var(--transition);
}

.blog-card-body .read-more:hover {
  background: var(--amber-dark);
  color: var(--white);
}

/* ---------------- 記事ページ本文 ---------------- */

.article-content {
  min-width: 0;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.article-meta .article-date {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  color: var(--amber-dark);
}

.article-meta .article-category {
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  border-radius: 4px;
  padding: 0.1rem 0.6rem;
}

.article-meta .article-readtime {
  color: var(--ink-soft);
}

.article-header h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.5;
  color: var(--teal-dark);
}

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

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

.article-body h2 {
  font-size: 1.4rem;
  color: var(--teal-dark);
  border-left: 6px solid var(--amber);
  border-bottom: 2px solid var(--line);
  padding: 0.2rem 0 0.4rem 0.8rem;
  margin: 2.2rem 0 1.2rem;
  scroll-margin-top: 110px;
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin: 1.6rem 0 0.7rem;
  padding-left: 0.6rem;
  border-left: 4px solid var(--teal-light);
}

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

.article-body ul,
.article-body ol {
  margin: 0 0 1.3rem 1.4rem;
}

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

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

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

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

.article-lead {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.96rem;
  box-shadow: var(--shadow);
}

/* ---------------- SVG図解 ---------------- */

.blog-figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1rem;
  margin: 1.6rem 0 2rem;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.blog-figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 620px;
  margin: 0 auto;
}

.blog-figure figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

/* ---------------- 記事中データ表 ---------------- */

.blog-table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0 1.8rem;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}

.blog-table th,
.blog-table td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.blog-table thead th {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
}

.blog-table tbody tr:nth-child(even) {
  background: var(--bg);
}

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

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

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

.share-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: var(--transition);
}

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

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

.share-btn:hover {
  color: var(--white);
  opacity: 0.85;
}

.back-to-list {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  transition: var(--transition);
}

.back-to-list:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---------------- サイドバー ---------------- */

.blog-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
}

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

.sidebar-widget .widget-title {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 0.4rem;
  margin-bottom: 0.7rem;
}

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

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

.sidebar-widget .ad-label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.toc-list,
.related-list {
  list-style: none;
}

.toc-list li,
.related-list li {
  border-bottom: 1px dotted var(--line);
}

.toc-list li:last-child,
.related-list li:last-child {
  border-bottom: none;
}

.toc-list li a,
.related-list li a {
  display: block;
  padding: 0.5rem 0.2rem;
  font-size: 0.85rem;
  color: var(--ink);
  transition: var(--transition);
}

.toc-list li a:hover,
.related-list li a:hover {
  color: var(--teal);
  padding-left: 0.5rem;
}

.toc-list li a::before {
  content: "▸ ";
  color: var(--amber-dark);
}

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

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

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

@media (max-width: 860px) {
  .blog-wrap {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-table {
    min-width: 420px;
  }
}

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