/* 記事コンテンツの行間・余白調整 */

/* 記事コンテンツ全体の行間調整 */
.post-content {
    line-height: 1.4 !important; /* 1.6 → 1.4 に縮小 */
    font-size: 16px;
}

/* 段落の余白調整 */
.post-content p {
    margin-bottom: 12px !important; /* 段落間の余白を縮小 */
    line-height: 1.5 !important;
}

/* 見出しの余白調整 */
.post-content h1 {
    margin-top: 16px !important; /* 24px → 16px に縮小 */
    margin-bottom: 8px !important; /* 12px → 8px に縮小 */
    line-height: 1.3 !important;
}

.post-content h2 {
    margin-top: 12px !important; /* 20px → 12px に縮小 */
    margin-bottom: 6px !important; /* 10px → 6px に縮小 */
    line-height: 1.3 !important;
}

.post-content h3 {
    margin-top: 10px !important; /* 18px → 10px に縮小 */
    margin-bottom: 5px !important; /* 8px → 5px に縮小 */
    line-height: 1.3 !important;
}

.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 8px !important; /* 16px → 8px に縮小 */
    margin-bottom: 4px !important; /* 8px → 4px に縮小 */
    line-height: 1.3 !important;
}

/* リストの余白調整 */
.post-content ul,
.post-content ol {
    margin-bottom: 12px !important;
    padding-left: 20px !important;
}

.post-content li {
    margin-bottom: 4px !important; /* リスト項目間の余白を縮小 */
    line-height: 1.4 !important;
}

/* 引用ブロックの調整 */
.post-content blockquote {
    margin: 16px 0 !important;
    padding: 12px 16px !important;
    line-height: 1.4 !important;
}

/* テーブルの余白調整 */
.post-content table {
    margin-bottom: 16px !important;
}

/* コードブロックの調整 */
.post-content pre {
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
}

.post-content code {
    line-height: inherit !important;
}

/* 画像の余白調整 */
.post-content img {
    margin-bottom: 12px !important;
}

/* 全体的な余白のリセット（最初の要素） */
.post-content > *:first-child {
    margin-top: 0 !important;
}

/* 全体的な余白のリセット（最後の要素） */
.post-content > *:last-child {
    margin-bottom: 0 !important;
}
