/* ------------------- */
/* content     上書き  */
/* ------------------- */
.content {
    width: min(90vw, 680px);
}

/* detailページ */

.post-detail {
    padding: 50px 15px;
}

/* 下書きプレビュー(スタッフだけが見られる)。公開し忘れに気づけるよう大きく出す */
.post-detail .draft-label {
    margin: 0 auto 30px;
    padding: 10px;
    border: 3px solid var(--color-red-dark);
    color: var(--color-red-dark);
    text-align: center;
}

.post-detail .draft-label .draft-label-title {
    margin: 0;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.3em;
}

.post-detail .draft-label .draft-label-note {
    margin: 5px 0 0;
    font-size: 14px;
}

/* 目次(.toc)の見た目は common/css/common.css(豆知識の解析の計算メモと共通) */


/* 本文(リッチテキスト)。<p>で囲まない地の文も段落と同じ見た目にする */
.post-detail .post-content {
    font-size: 16px;
    line-height: 1.7;
    width: 90%;
    margin: 20px auto 50px;
}

.post-detail .post-content p {
    line-height: 1.7;
    margin: 10px auto;
    font-size: 16px;
}

.post-detail .post-content li {
    line-height: 1.7;
    font-size: 16px;
}

/* 本文(CKEditor5)の小見出し・引用・画像・表 */
.post-detail .post-content h4 {
    color: var(--color-blue-dark);
    margin: 20px 0 5px;
}

.post-detail .post-content blockquote {
    margin: 15px 0;
    padding: 5px 15px;
    border-left: 4px solid var(--color-orange);
}

.post-detail .post-content img {
    max-width: 100%;
    height: auto;
}

.post-detail .post-content figure.image {
    margin: 15px auto;
    text-align: center;
}

.post-detail .post-content .image-style-align-left {
    float: left;
    margin-right: 15px;
}

.post-detail .post-content .image-style-align-right {
    float: right;
    margin-left: 15px;
}

.post-detail .post-content figure.table {
    margin: 0;
    overflow-x: auto;
    /* 列の多い表は横スクロール */
}

/* 角丸にするため collapse にしない(base.css の table の既定の separate・border-spacing: 0)。
   線が重ならないよう、外枠は表に引き、セルは右と下だけに引く(行の最後のセルの右・最後の行の下は外枠と重なるので引かない) */
.post-detail .post-content table {
    width: 100%;
    border: 1px solid var(--color-beige-medium);
    margin: 0 auto;
}

.post-detail .post-content th,
.post-detail .post-content td {
    border: none;
    border-right: 1px solid var(--color-beige-medium);
    border-bottom: 1px solid var(--color-beige-medium);
    padding: 5px 10px;
    line-height: 1.5;
}

.post-detail .post-content tr> :last-child {
    border-right: none;
}

.post-detail .post-content table> :last-child>tr:last-child>* {
    border-bottom: none;
}

.post-detail .post-content th {
    background-color: var(--color-beige-bright);
}



.post-detail .post-content::after {
    content: "";
    display: block;
    clear: both;
    /* 左右寄せの画像の回り込みを本文の中で終える */
}


.post-navigation {
    display: flex;
    justify-content: space-between;
    /* 前・ブログトップ・次を両端と中央に並べる */
    align-items: center;
    /* 縦中央揃え */
    margin: 40px auto 10px;
    width: 50%;
}

.post-navigation img {
    width: 25px;
    height: 25px;
}

a {
    color: var(--color-blue-dark);
    text-decoration: none;
}


/* スマホ用（画面幅768px以下） */
@media (max-width: 768px) {
    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .toc li {
        font-size: 0.9rem;
    }

    .post-detail .post-content p {
        font-size: 0.9rem;
    }
}