.md-typeset h1::before {
    content: "\f02e" !important;
}

.md-typeset h1 {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.87);
    border-bottom: solid 2px rgba(0, 0, 0, 0.87);
    padding-bottom: 0.1em;
}

.md-typeset h2::before {
    content: "\f02d" !important;
}

.md-typeset h2 {
    font-weight: bold;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.87);
}

.md-typeset h3::before {
    content: "\f02b" !important;
}

.md-typeset h3 {
    font-weight: bold;
    border-bottom: 1px dotted #757575;
}

.md-typeset h4::before {
    content: "\f02c" !important;
}

.md-typeset h4 {
    font-weight: bold;
    border-bottom: 1px solid hsla(0, 0%, 92.5%, 0.5);
}

.md-typeset > ::before {
    font-family: "FontAwesome";
    /* font-family: "Font Awesome 5 Free"; */
    margin-right: 0.3em;
    display: inline-block !important;
}

.md-typeset a:not([class])::before {
    font-family: "FontAwesome";
    margin-right: 0.2em;
    content: "\f14c";
}

.md-typeset a:not([class]) {
    border-bottom: 1px dotted #757575;
}

.md-typeset > p {
    text-indent: 0em;
}

.md-typeset > div.admonition {
    margin-left: 1em !important;
}

.md-typeset > table.codehilitetable {
    margin-left: 1em !important;
    margin-right: 0em !important;
}

.md-typeset__scrollwrap > div > table > thead {
    background-color: #f3f3f3;
}

.md-typeset > ul {
    margin-left: 1em;
}

.md-typeset > ol li,
.md-typeset > ul li {
    margin-bottom: 0.1em !important;
}

.md-typeset > ol li ol,
.md-typeset > ol li ul,
.md-typeset > ul li ol,
.md-typeset > ul li ul {
    margin-top: 0.1em !important;
}

.md-typeset i.fa {
    text-indent: 0em;
}

.md-typeset .highlighttable .linenos .linenodiv pre {
    line-height: 15pt;
}

/* フォント一覧用 */

/* --- グリッド全体の枠 --- */
dl.fa-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin: 2em 0;
    padding: 0;
}

/* --- 各タイルの枠 --- */
.fa-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: var(--md-code-bg-color, #f5f5f5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- 1. アイコン名 (dt) --- */
.md-typeset .fa-grid-item dt {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    color: var(--md-typeset-color);
}

/* --- ddタグ共通の強制リセット --- */
.md-typeset .fa-grid-item dd {
    margin: 0 !important;
    padding: 0;
    text-align: center;
    width: 100%;
}

/* --- 2. ユニコード (dd) --- */
.md-typeset .fa-grid-item dd.unicode {
    font-size: 0.8rem;
    color: #777;
    font-family: monospace;
    margin-bottom: 15px !important;
}

/* --- 3. 実際のアイコン画像 (dd) --- */
.md-typeset .fa-grid-item dd.icon i {
    font-size: 4rem !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    color: var(--md-typeset-color, #333);
    display: inline-block;
}

.md-typeset .fa-grid-item dd.icon svg {
    font-size: 4rem !important;
    width: auto !important;
    height: auto !important;
}
