<div class="li-numb">
<ol>
<li>番号付き箇条書きのサンプル</li>
<li>番号付き箇条書きのサンプル</li>
<li>番号付き箇条書きのサンプル</li>
</ol>
</div>
/*番号付き箇条書き style.css 2115-2181行目
========================================================================== */
.li-numb ol {
    counter-reset: number;
    /*数字をリセット*/
    list-style-type: none !important;
    /*数字を一旦消す*/
    padding: 0.5em;
    background: #fff;
    margin-bottom: 1.5em;
    padding: 1em 1em 1em 2.5em;
    border-radius: 3px;
    border: solid 1px #ffaf58;
    width: 90%;
    margin: 0 auto 1.5em;
}

.li-numb ol li {
    position: relative;
    padding-left: 30px;
    line-height: 1.5em;
    padding: 0.5em 0.5em 0.5em 30px;
}

.li-numb ol li:before {
    /* 以下数字をつける */
    position: absolute;
    counter-increment: number;
    content: counter(number);
    /*以下数字のデザイン変える*/
    display: inline-block;
    background: #ffaf58;
    color: white;
    font-family: 'Avenir', 'Arial Black', 'Arial', sans-serif;
    font-weight: bold;
    font-size: 15px;
    border-radius: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    /*以下 上下中央寄せのため*/
    top: 50%;
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);

}

@media (max-width: 763px) {
    .li-numb ol {
        counter-reset: number;
        list-style-type: none !important;
        padding: 0.5em;
        background: #fff;
        margin-bottom: 1.5em;
        padding: 1em 1em 1em 2.5em;
        border-radius: 3px;
        border: solid 1px #ffaf58;
        width: 90%;
        margin: 0 auto 1.5em;
        padding: 8px;
        font-size: 14px;
        margin-top: 1em;
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.