/* ブログ本文専用CSS。公開記事ページと管理画面プレビューで共通に使う（.post-detail-body 配下にだけ適用） */
.post-detail-body{font-size:15px;line-height:1.85;color:#333;min-width:0;overflow-wrap:anywhere}
.post-detail-body p{margin:0 0 1.4em;font-size:15px;line-height:1.85;color:#333}
.post-detail-body h1,.post-detail-body h2,.post-detail-body h3,.post-detail-body h4,.post-detail-body h5,.post-detail-body h6{color:#1a2e4a;font-weight:800;line-height:1.4;margin:1.8em 0 .8em}
.post-detail-body h1{font-size:24px}
.post-detail-body h2{font-size:21px}
.post-detail-body h3{font-size:18px}
.post-detail-body h4{font-size:16px}
.post-detail-body h5,.post-detail-body h6{font-size:15px}
.post-detail-body > :first-child{margin-top:0}
.post-detail-body ul,.post-detail-body ol{margin:0 0 1.4em 1.4em;padding:0;font-size:15px;line-height:1.85;color:#333}
.post-detail-body ul ul,.post-detail-body ol ol,.post-detail-body ul ol,.post-detail-body ol ul{margin:.4em 0 .4em 1.2em}
.post-detail-body li{margin-bottom:.4em}
.post-detail-body h2+.md-label,.post-detail-body h3+.md-label,.post-detail-body h4+.md-label{margin-top:.2em !important}
.post-detail-body .md-label+ul,.post-detail-body .md-label+ol{margin-top:0}
.post-detail-body blockquote{margin:0 0 1.4em;padding:.6em 1em;border-left:4px solid #cfd8e3;background:#f6f8fb;color:#555;font-size:15px;line-height:1.85}
.post-detail-body hr{border:0;border-top:1px solid #e3e7ee;margin:2em 0}
.post-detail-body code{background:#f1f3f6;padding:.1em .35em;border-radius:4px;font-size:.92em}
.post-detail-body pre{background:#f1f3f6;padding:12px 14px;border-radius:6px;overflow-x:auto;margin:0 0 1.4em}
.post-detail-body pre code{background:none;padding:0}
.post-detail-body a{color:#1a5fb4;text-decoration:underline}
.post-detail-body strong,.post-detail-body b{font-weight:800}
.post-detail-body del{color:#888}
.post-detail-body img{max-width:100%;height:auto}

/* 表：枠内で横スクロール（ページ全体の幅は広げない）。HTML方式・Markdown方式の両方に適用 */
.post-detail-body .table-wrap{max-width:100%;margin:1.6em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #d5dce6;border-radius:8px;background:#fff}
.post-detail-body table{width:100%;border-collapse:collapse;margin:0;font-size:14px;line-height:1.6;color:#333;font-variant-numeric:tabular-nums}
.post-detail-body caption{caption-side:top;text-align:left;font-weight:800;color:#1a2e4a;padding:.7em .9em;background:#f6f8fb}
.post-detail-body th,.post-detail-body td{min-width:5.5em;padding:.65em .9em;border:1px solid #e1e6ee;text-align:left;vertical-align:top;overflow-wrap:break-word;word-break:normal;line-break:strict}
/* 5列以上の表はセル幅を確保し、足りなければ枠内で横スクロール（1文字ずつ折り返して縦に伸びないように） */
.post-detail-body table:has(tr > :nth-child(5)) th,.post-detail-body table:has(tr > :nth-child(5)) td{min-width:8em}
.post-detail-body thead th,.post-detail-body th{background:#1a2e4a;color:#fff;font-weight:700}
.post-detail-body th:first-child,.post-detail-body td:first-child{min-width:9em}
.post-detail-body tbody th{background:#eef2f7;color:#1a2e4a;white-space:normal}
.post-detail-body tbody tr:nth-child(even) td{background:#f6f8fb}
.post-detail-body tfoot td,.post-detail-body tfoot th{background:#eef2f7;color:#1a2e4a;font-weight:700}
.post-detail-body table p{margin:0}
.post-detail-body table ul,.post-detail-body table ol{margin:0 0 0 1.2em}
.post-detail-body .table-wrap > table > :first-child > tr > :first-child{border-left:0}
@media (max-width:600px){
  .post-detail-body{font-size:15px}
  .post-detail-body table{font-size:13px}
  .post-detail-body th,.post-detail-body td{padding:.55em .7em;min-width:5em}
}
