/* 記事ページ専用スタイル（site/assets/style.css と併用） */

.article {
  background: #ffffff;
  padding-bottom: 64px;
}

.article-header {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan-dark));
  color: #fff;
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(72, 202, 228, 0.13);
}
.article-header > .container {
  position: relative;
  z-index: 1;
  padding-bottom: 32px;
  max-width: 820px;
}
.article-meta {
  margin: 0 0 18px;
  font-size: 13px;
  color: #d8e8eb;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-meta time { letter-spacing: 0.04em; }
.article-meta .reading-time { color: #b7d2d7; }
.article-title {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 700;
}
.article-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #d8e8eb;
}
.article-hero {
  margin: 0;
  background: #0d1f3c;
}
.article-hero img {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
}

.article-body {
  max-width: 760px;
  padding: 56px 24px 16px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text);
}
.article-body > :first-child { margin-top: 0; }

.article-body h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  font-weight: 700;
}
.article-body h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  font-weight: 700;
  color: var(--brand-cyan-dark);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 1.4em;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--brand-cyan-dark); }
.article-body a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { text-decoration-thickness: 2px; }

.article-body blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--brand-cyan);
  background: #f0f7f9;
  color: var(--text);
  font-size: 15.5px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article-illust {
  margin: 36px auto;
  text-align: center;
}
.article-illust img {
  max-width: 100%;
  width: 460px;
  height: auto;
  border-radius: 12px;
  background: #f0f7f9;
}
.article-illust figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.related-articles {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.related-articles h2 {
  font-size: 18px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-articles li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.related-articles li:last-child { border-bottom: none; }
.related-articles a { color: var(--text); }
.related-articles a:hover { color: var(--brand-cyan); }
.related-articles .related-desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.references {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.references h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.references ul { padding-left: 1.2em; }
.references a {
  color: var(--brand-cyan);
  word-break: break-all;
}

.article .cta-section {
  max-width: 820px;
  margin: 64px auto 0;
}

@media (max-width: 640px) {
  .article-header { padding: 40px 0 0; }
  .article-title { font-size: 24px; }
  .article-lead { font-size: 14.5px; }
  .article-body {
    padding: 40px 16px 16px;
    font-size: 15.5px;
  }
  .article-body h2 { font-size: 19px; }
  .article-body h3 { font-size: 16.5px; }
  .related-articles, .references { padding: 0 16px; }
}
