@charset "UTF-8";

/* 投稿詳細ページ 共通設定 */

/* === Quillスタイルリスト（フラット構造対応） === */
/* カウンターリセット */
.post-contents ol {
    padding-left: 1.5em;
    counter-reset: list-0 list-1 list-2 list-3;
}

/* レベル0: 1. 2. 3. */
.post-contents ol > li[data-list] {
    list-style-type: none;
    counter-increment: list-0;
    counter-reset: list-1 list-2 list-3;
}
.post-contents ol > li[data-list="ordered"]::before {
    content: counter(list-0, decimal) ". ";
    display: inline-block;
    white-space: nowrap;
    width: 1.2em;
    margin-left: -1.5em;
    margin-right: 0.3em;
    text-align: right;
}

/* レベル1: a. b. c. */
.post-contents ol > li[data-list].ql-indent-1 {
    counter-increment: list-1;
    counter-reset: list-2 list-3;
    padding-left: 3em;
}
.post-contents ol > li[data-list="ordered"].ql-indent-1::before {
    content: counter(list-1, lower-alpha) ". ";
}

/* レベル2: i. ii. iii. */
.post-contents ol > li[data-list].ql-indent-2 {
    counter-increment: list-2;
    counter-reset: list-3;
    padding-left: 4.5em;
}
.post-contents ol > li[data-list="ordered"].ql-indent-2::before {
    content: counter(list-2, lower-roman) ". ";
}

/* レベル3: 1. 2. 3. (リセット) */
.post-contents ol > li[data-list].ql-indent-3 {
    counter-increment: list-3;
    padding-left: 6em;
}
.post-contents ol > li[data-list="ordered"].ql-indent-3::before {
    content: counter(list-3, decimal) ". ";
}

/* === 箇条書きリスト（data-list="bullet"） === */
.post-contents ol > li[data-list="bullet"]::before {
    content: "\2022";
    display: inline-block;
    white-space: nowrap;
    width: 1.2em;
    margin-left: -1.5em;
    margin-right: 0.3em;
    text-align: right;
}
.post-contents ol > li[data-list="bullet"].ql-indent-1::before {
    content: "\25CB";
}
.post-contents ol > li[data-list="bullet"].ql-indent-2::before {
    content: "\25A0";
}
.post-contents ol > li[data-list="bullet"].ql-indent-3::before {
    content: "\2022";
}

/* === 標準HTMLリスト（Trumbowyg等・data-listなし） === */
.post-contents ul {
    padding-left: 1.5em;
}
.post-contents ul > li {
    list-style-type: disc;
    padding-left: 0.5em;
}

/* 標準ネストリスト */
.post-contents ol ol {
    counter-reset: list-1;
}
.post-contents ol ol > li {
    counter-increment: list-1;
}
.post-contents ol ol > li::before {
    content: counter(list-1, lower-alpha) ". ";
}
.post-contents ol ol ol {
    counter-reset: list-2;
}
.post-contents ol ol ol > li {
    counter-increment: list-2;
}
.post-contents ol ol ol > li::before {
    content: counter(list-2, lower-roman) ". ";
}

/* サイズ */
.post-contents .ql-size-huge {
    font-size: 2.5em;
}

/* 配置 */
.post-contents .ql-align-center {
    text-align: center;
}

.post-contents .ql-align-right {
    text-align: right;
}

/* テーブル */
.post-contents table {
    & td {
        /* テーブル幅オーバーフロー防止: max-width:0 + overflow:hidden でセルを親幅内に収める */
        max-width: 0;
        overflow: hidden;
        word-break: break-word;

        & img {
            max-width: 100%;
            height: auto;
        }

        & table {
            width: 100%;
            max-width: 100%;
        }
    }
}

/* 段落間スペース（CMSリッチテキストの<p>タグ用） */
.post-contents p + p {
    margin-top: 1em;
}

/* 見出し */
/* .exhibition--info--section {
    & .exhibition--item {
        & .card--content {
            & table {
                & th,
                & td {
                    padding: 5px;
                }
            }
        }
    }

    & h1 {
        font-size: 2rem;
    }

    & h2 {
        font-size: 1.5rem;
    }

    & h3 {
        font-size: 1.2rem;
    }

    & h4 {
        font-size: 1rem;
    }
} */
