/* ========================================
   Single Article
   ======================================== */
.article-single {
    max-width: 720px;
    margin: 0 auto;
}

.article-single--all {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.article-single--header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.article-single--meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.article-single--title {
    font-size: 32px;
    font-weight: bold;
    color: #316EA9;
    line-height: 1.5;
    letter-spacing: 0.1em;
}

.article-single--content {
    line-height: 1.9;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-single--content h1 {
    font-size: 28px;
    font-weight: bold;
    color: #316EA9;
    line-height: 80px;
    margin-top: 48px;
}

.article-single--content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #316EA9;
    border-width: 3px 0px 3px 0px;
    border-style: solid;
    border-color: #316EA9;
    line-height: 74px;
    padding: 0 12px 0 12px;
    margin-top: 48px;
}

.article-single--content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #316EA9;
    border-width: 0 0 3px 0;
    border-style: solid;
    border-color: #316EA9;
    line-height: 53px;
    padding: 0 12px 0 12px;
    margin-top: 48px;
}

.article-single--content h4 {
    font-size: 20px;
    font-weight: bold;
    border-width: 0 0 3px 0;
    border-style: solid;
    border-color: #316EA9;
    line-height: 53px;
    padding: 0 12px 0 12px;
    margin-top: 48px;
}

.article-single--content h5 {
    font-size: 18px;
    font-weight: bold;
    color: #316EA9;
    line-height: 48px;
    margin-top: 48px;
}

/* 管理画面でHTML編集時に手動で割り振られたidへのアンカー遷移時、
   見出しがヘッダーと重ならないようにスクロール位置をずらす */
.article-single--content [id] {
    scroll-margin-top: calc(var(--header-height));
}

body.admin-bar .article-single--content [id] {
    scroll-margin-top: calc(var(--header-height) + 32px);
}

.article-single--content p {
    font-size: 16px;
    font-weight: 400;
    color: #3C3C3C;
    letter-spacing: 0.1em;
    line-height: 32px;
}

.article-single--content p > strong {
    font-weight:800;
}

.article-single--content p:empty {
    min-height: 1em;
}

.article-single--content ul,
.article-single--content ol {
    margin: 0 0 16px 24px;
    list-style: disc;
}

.article-single--content ol {
    list-style: decimal;
}

.article-single--content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.article-single--content table th,
.article-single--content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.article-single--content table th {
    background: #f5f5f5;
    font-weight: bold;
}

.article-single--content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.article-single--content pre {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.article-single--content blockquote {
    border-left: 4px solid #ddd;
    padding: 12px 16px;
    margin: 0 0 16px;
    color: #666;
    background: #fafafa;
}

.article-single--content img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.article-single--content a {
    color: #0000EE;
    text-decoration: underline;
}

.article-single--content a:visited {
    color: #551A8B;
}

.article-single--content a:hover {
    color: #0000EE;
    text-decoration: underline;
}

.tag-badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    color: #555;
}

.tag-badge:hover {
    border-color: #666;
    color: #000;
    text-decoration: none;
}

@media (max-width: 768px) {
    .article-single--all {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .article-single--title {
        font-size: 20px;
    }

    .article-single--header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-single--header-inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .article-single--news-tag-parent {
        padding-bottom: 20px;
    }

    .article-single--content {
        line-height: 1.9;
        display: flex;
        flex-direction: column;
        gap: 20px
    }

    .article-single--content h1 {
        font-size: 24px;
        line-height: 60px;
        margin-top: 28px;
    }

    .article-single--content h2 {
        font-size: 22px;
        border-width: 2px 0 2px 0;
        line-height: 60px;
        padding: 0 8px 0 8px;
        margin-top: 28px;
    }

    .article-single--content h3 {
        font-size: 18px;
        border-width: 0 0 2px 0;
        line-height: 46px;
        padding: 0 8px 0 8px;
        margin-top: 28px;
    }

    .article-single--content h4 {
        border-width: 0 0 2px 0;
        line-height: 46px;
        margin-top: 28px;
    }

    .article-single--content h5 {
        font-size: 16px;
        line-height: 40px;
        margin-top: 28px;
    }

    .article-single--content p {
        font-size: 14px;
        line-height: 28px;
    }
}
