/* 記事ページ専用CSS */
@import 'common.css';

/* === Article layout === */
.article {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* === Article header === */
.article-header {
  margin-bottom: 3rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px  var(--common-border) var(--border-soft);
}

.article-meta {
  font-family: var(--font-structure);
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: calc(0.9rem * var(--structure-scale));
}

/* === Article content === */
.article-content {
  margin-bottom: 3rem;
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-structure);
  margin-top: 2.5rem;
  color: var(--text-light);
}

.article-content pre {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px  var(--common-border) var(--border-soft);
  font-family: var(--font-mono);
}

.article-content code {
  background: var(--bg-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-color);
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--bg-light);
  border-radius: 4px;
  color: var(--text-light);
  font-family: var(--font-content);
  font-style: italic;
}

/* === Article footer === */
.article-footer {
  border-top: 1px  var(--common-border) var(--border-soft);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-nav a {
  font-family: var(--font-structure);
  color: var(--text-light);
}

.article-sharing {
  font-family: var(--font-structure);
  font-size: calc(0.9rem * var(--structure-scale));
  color: var(--text-muted);
}

.article-sharing p {
  margin-bottom: 0.5rem;
  font-size: calc(0.9rem * var(--structure-scale));
}

@media (max-width: 768px) {
  .article-footer {
    flex-direction: column;
    text-align: center;
  }
}