/* ============================================================
   article.css — NUXIL News & Column 記事詳細ページ共通スタイル
   - 各 news/*.html から <link> で参照
   - 修正はここ 1 ファイルで完結する
   ============================================================ */

html { scroll-behavior: smooth; }

.container { max-width: 80rem; margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #6b7280; }

/* ----- Hero featured image ----- */
.featured {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f3f4f6;
}
.featured img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.featured-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 50%, #334155 100%);
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 8vw, 4rem); letter-spacing: 0.25em;
  color: rgba(255,255,255,0.12);
}

/* ----- Article body ----- */
.article-body { max-width: 44rem; margin: 0 auto; }
.article-body p { font-size: 16px; line-height: 2; color: #1f2937; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin-top: 3.5rem; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e5e7eb; line-height: 1.5; }
.article-body h3 { font-size: 1.125rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; line-height: 1.5; }
.article-body ul, .article-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-body ul li { list-style-type: disc; font-size: 16px; line-height: 1.9; margin-bottom: 0.5rem; }
.article-body ol li { list-style-type: decimal; font-size: 16px; line-height: 1.9; margin-bottom: 0.5rem; }
.article-body blockquote { border-left: 3px solid #111; padding: 0.25rem 0 0.25rem 1.5rem; margin: 2rem 0; color: #374151; font-size: 15px; line-height: 1.95; }
.article-body blockquote p:last-of-type { margin-bottom: 0; }
.article-body strong { font-weight: 700; color: #111; }
.article-body a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { text-decoration: none; }
.article-body img { max-width: 100%; height: auto; margin: 1.5rem auto; display: block; border-radius: 0.375rem; }
.article-body hr { display: none; }

@media (max-width: 767px) {
  .article-body p, .article-body ul li, .article-body ol li { font-size: 15px; }
  .article-body h2 { font-size: 1.25rem; margin-top: 2.5rem; }
  .article-body h3 { font-size: 1.05rem; margin-top: 2rem; }
}

/* ----- Tag pill ----- */
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 12px; font-weight: 500;
  color: #4b5563; background: #f3f4f6;
  border-radius: 999px; text-decoration: none;
  transition: all 0.15s ease;
}
.tag-pill:hover { color: #fff; background: #111; }

/* ----- Table of contents ----- */
.toc {
  background: #f9fafb;
  border-left: 3px solid #111;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
}
.toc ol { margin-bottom: 0; }
.toc a { color: #374151; text-decoration: none; }
