/* ====================================
   基本設定：全体的な読みやすさを向上
   ==================================== */
.entry-content {
    /* ページの最大幅を設定し、中央寄せにして読みやすくする */
    max-width: 800px;
    margin: 0 auto;
    /* 基本フォントの設定（ゴシック体など） */
    font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.8; /* 行間を広げて読みやすくする */
    font-size: 16px;
    color: #333;
    padding: 20px 15px; /* モバイル対応のため左右にパディング */
}

/* ====================================
   見出しスタイル：条文を明確にする
   ==================================== */
.entry-content h2.wp-block-heading {
    /* H2を見出しらしく、太く、色を付けて強調 */
    border-left: 5px solid #ceab4b;
    padding: 5px 15px;
    margin-top: 2.5em;
    margin-bottom: 1.5em;
    font-size: 1.5em;
    font-weight: bold;
    color: #ceab4b;
    background-color: #f7f9fc;
}

/* ====================================
   段落スタイル
   ==================================== */
.entry-content p {
    margin-bottom: 1.5em;
line-height: 2em;
}

/* ====================================
   リスト（条文）スタイル：階層と可読性を向上
   ==================================== */

/* 主な条文リスト (<ol>) */
.entry-content ol {
    margin-bottom: 2em;
    padding-left: 20px; /* 番号表示のためのインデント */
}

.entry-content ol > li {
    margin-bottom: 0.8em;
    /* リストマーカーの色を本文より強調 */
    color: #333;
    list-style-type: decimal; /* 1., 2., 3. の形式を明示 */
    padding-left: 5px; /* リストマーカーとテキストの間の調整 */
}

/* ネストされた（入れ子の）リスト（例：第2条(2)の(i)(ii)(iii)） */
.entry-content ol ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    /* さらにインデントを深くする */
    padding-left: 30px; 
}

.entry-content ol ol > li {
    list-style-type: lower-roman; /* i., ii., iii. の形式に変更 */
    font-weight: normal; /* 親の太字を継承しないように */
    line-height: 1.7;
}

/* `<div>` 要素の `toc` は、スタイルをリセット */
.entry-content .toc {
    display: none; /* 目次エリアが空なら非表示に */
}

/* 最終の「以上」の文字を右寄せにするなど */
.entry-content p:last-child {
    text-align: right;
    margin-top: 3em;
    font-weight: bold;
}