/* Article / Term 本文（公開・プレビュー共通） */

.article-content {
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.8;
    color: #1a202c;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    line-height: 1.35;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.3rem;
    color: #3b82f6;
    padding-left: 0.5rem;
    border-left: 4px solid #3b82f6;
    text-align: center;
}

/* commons/heading.css の section h2::after（下線）を本文では無効化 */
section .article-content h2::after {
    content: none;
    display: none;
}

.article-content h3 {
    font-size: 1.15rem;
    color: #4a5568;
    text-align: left;
}

.article-content p {
    margin: 0 0 1rem;
}

.article-content .text-center {
    text-align: center;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.35rem;
}

.article-content blockquote {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    color: #334155;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content a {
    color: #1d4ed8;
    text-decoration: underline;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius: 8px;
}

.article-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 2rem 0;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(15, 23, 42, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.article-content pre {
    margin: 0 0 1rem;
    padding: 1rem;
    overflow-x: auto;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 8px;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 0.875rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    display: block;
    overflow-x: auto;
}

.article-content th,
.article-content td {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.article-content th {
    background: rgba(15, 23, 42, 0.04);
    font-weight: 600;
}

@media (max-width: 756px) {
    .article-content {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .article-content h2 {
        font-size: 1.15rem;
    }

    .article-content h3 {
        font-size: 1.05rem;
    }
}
