@charset "UTF-8";

/* ============================================================
   記事セクション専用CSS（/column/article/ 以下で使用）
   clinic.css のトークン・ボタン・ヘッダー等はそのまま引き継ぎ、
   ここでは「記事一覧」「個別記事」に必要なスタイルだけを追加する。
   ============================================================ */

:root {
  --c-ink: #0f1c3f;
  --c-primary: #1d4ed8;
  --c-primary-tint: #eef4ff;
  --c-border: #e3e8f0;
  --c-text: #29303d;
  --c-text-soft: #5b6472;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 28, 63, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 28, 63, 0.10);
}

/* ============================================================
   記事一覧ページ（/column/article/index.php）
   ============================================================ */

.article-index-fv {
  background: var(--c-ink);
  padding: 60px 20px;
  text-align: center;
}

.article-index-fv .fv-label {
  color: #9fb3e0;
  font-size: 14px;
  margin-bottom: 8px;
}

.article-index-fv h1 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 12px;
}

.article-index-fv .fv-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.article-list-intro {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 20px;
}

.article-list-intro p {
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.9;
}

.article-list {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.article-card-link {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .article-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-thumb {
  flex: 0 0 200px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-primary-tint);
}

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

.article-card-body {
  padding: 20px 24px;
  flex: 1;
  min-width: 0;
}

.article-card-meta {
  color: var(--c-text-soft);
  font-size: 13px;
  margin: 0 0 8px;
}

.article-card-body h2 {
  color: var(--c-ink);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.article-excerpt {
  color: var(--c-text-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .article-card-link {
    flex-direction: column;
  }
  .article-card-thumb {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   個別記事ページ（/column/article/[記事スラッグ]/index.php）
   ============================================================ */

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.article-header-meta {
  color: var(--c-text-soft);
  font-size: 13px;
  margin: 0 0 12px;
}

.article-header h1 {
  color: var(--c-ink);
  font-size: 26px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.article-header-lead {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.9;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}

/* アイキャッチ画像（見出し直下に表示） */
.article-featured-image {
  margin: 24px 0 32px;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
}

.article-featured-image figcaption {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-top: 8px;
  text-align: center;
}
.article-toc {
  background: var(--c-primary-tint);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 32px 0;
}

.article-toc-title {
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 10px;
  font-size: 14px;
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin-bottom: 6px;
}

.article-toc a {
  color: var(--c-primary);
  text-decoration: none;
  font-size: 14px;
}

.article-toc a:hover {
  text-decoration: underline;
}

/* 本文の見出し・段落（長文を読みやすく：line-height広め・行長を制限） */
.article-body section h2 {
  color: var(--c-ink);
  font-size: 21px;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
}

.article-body section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.article-body section p {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 20px;
}

.article-body section img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: block;
}

.article-body section ul,
.article-body section ol {
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.9;
  padding-left: 22px;
}

/* 関連エリアリンク（記事末尾） */
.article-related-areas {
  background: var(--c-ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  color: #fff;
}

.article-related-areas h2 {
  color: #fff !important;
  border-top: none !important;
  margin-top: 0 !important;
}

.article-related-areas p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.article-related-areas ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-related-areas a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .article-related-areas a {
    transition: background-color 0.15s ease;
  }
}

.article-related-areas a:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* 監修者ボックス（使う場合） */
.article-supervisor {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
}

.article-supervisor h2 {
  font-size: 15px !important;
  margin: 0 0 8px !important;
  border-top: none !important;
  color: var(--c-text-soft) !important;
}

@media (max-width: 768px) {
  .article-body {
    padding: 30px 16px 40px;
  }
  .article-related-areas {
    padding: 24px 20px;
  }
}
