@charset "UTF-8";

/* ---------- 見出し ---------- */
h1 {
    font-size: 2em;
}

h2 {
    position: relative;
    z-index: 1;
    font-size: 1.6em;
    line-height: 1.5;
}

h3 {
    position: relative;
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1.5;

}

h4 {
    position: relative;
    font-size: 1.2em;
    line-height: 1.5;
}

/* ---------- Bold ---------- */
h2,
h3,
h4,
dt {
    font-weight: bold;
}

/* ---------- 横線 ---------- */
hr {
    margin: 2.5em 0;
    border: none;
    border-bottom: solid 1px rgba(0, 0, 0, .1);
}

/* ---------- リスト ---------- */
// li {
//     position: relative;
//     margin: .5em 0;
//     line-height: 1.5;

//     ul,
//     ol {
//         margin: 0 !important;
//     }
// }

// ol {
//     counter-reset: li;

//     & > li::before {
//         counter-increment: li;
//     }

//     &[reversed] {

//         & > li::before {
//             counter-increment: li -1;
//         }
//     }
// }

// ul.is-style-default,
ul:not([class]) {
    list-style: disc;
}

// ol.is-style-default,
ol:not([class]) {
    list-style: decimal;
}

// ul.is-style-default,
// ol.is-style-default,
ul:not([class]),
ol:not([class]) {
    margin-left: 0;
    padding-left: 1.5em;

    li {
        margin: 0;
    }

    ul {
        list-style: circle;
    }
}

// pre
pre {
    padding: 1em;
    overflow-x: auto;
    background-color: var(--ark-color_gray);

    code {
        font-size: 14px;
        font-family: Menlo, Consolas, monaco, monospace;
    }
}

/* ---------- 引用 ---------- */
blockquote {
    padding: .25em 1em;
    background: none;
    border-left: solid 2px var(--ark-color_border);

    cite {
        display: block;
        margin-top: 1em;
        font-size: .8em;
        opacity: .8;
    }

    // p {
    //     position: relative;
    //     z-index: 1;
    // }

    p + p {
        margin-top: 1em;
    }
}


/* ---------- テーブル ---------- */
// borderを分けて指定しているのはSPでの縦並びも考慮しているため。
table {
    width: 100%;
    max-width: 100%;
    // line-height: 1.5;
    border: none;
    border-top: solid 1px #ededed;
    border-right: solid 1px #ededed;
    // border-collapse: separate;
    border-spacing: 0;

    caption {
        padding: .5em;
        font-size: .9em;
        opacity: .8;
    }
}

th,
td {
    padding: .5em .75em;
    vertical-align: top;
    border-bottom: solid 1px #ededed;
    border-left: solid 1px #ededed;
}

thead {

    td,
    th {
        color: #fff;
        background-color: var(--ark-color_main);
    }
}

tbody th {
    font-weight: bold;
    background-color: var(--ark-color_gray);
}


/* ---------- テキスト装飾 ---------- */
//インラインコード
:not(pre) > code {
    display: inline-block;
    margin: 0 .5em;
    padding: 0 .5em;
    color: #333;
    font-size: .9em;
    font-family: Menlo, Consolas, "メイリオ", sans-serif;
    line-height: 1.6;
    letter-spacing: 0;
    background: #f7f7f7;
    border: solid 1px rgba(0, 0, 0, .1);
    border-radius: 2px;
}

small {
    font-size: .8em;
    opacity: .8;
}


iframe {
    display: block;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}
