/*
 * Maple Sourcing shared typography layer.
 * Loaded after the legacy theme CSS and WordPress theme CSS to keep the public
 * site visually consistent without changing page templates or content.
 */
:root {
    --maple-ui-font-family: Arial, Helvetica, sans-serif;
    --maple-content-font-family: Georgia, "Times New Roman", Times, serif;
    --maple-text-color: #4b5563;
    --maple-content-text-color: #1b1b1b;
    --maple-heading-color: #142033;
    --maple-content-heading-color: #111111;
    --maple-muted-color: #6b7280;
    --maple-border-color: #e4e7ec;
    --maple-soft-bg: #fbfaf8;
    --maple-accent-color: #f47500;
    --maple-link-color: #b35400;
    --maple-link-hover-color: #8f3f00;
    --maple-body-font-size: 16px;
    --maple-body-line-height: 1.68;
    --maple-content-font-size: 17px;
    --maple-content-line-height: 1.78;
    --maple-h1-font-size: 36px;
    --maple-h2-font-size: 28px;
    --maple-h3-font-size: 22px;
    --maple-h1-mobile-font-size: 30px;
    --maple-h2-mobile-font-size: 24px;
    --maple-h3-mobile-font-size: 20px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
    font-family: var(--maple-ui-font-family);
}

body {
    color: var(--maple-text-color);
    font-size: var(--maple-body-font-size);
    line-height: var(--maple-body-line-height);
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body :where(p, li, a, span, div, td, th, label, button, input, select, textarea) {
    font-family: inherit;
    letter-spacing: 0;
}

:where(
    .sep-header-pc,
    .sep-lx-header-pc,
    .sep-lx-header-mb,
    .sep-mainnav,
    .sep-menu-box,
    .mb-bottom-wrap,
    .sep-footer,
    form,
    .form-control,
    .btn,
    .inquire,
    .contact,
    button,
    input,
    select,
    textarea
),
:where(
    .sep-header-pc,
    .sep-lx-header-pc,
    .sep-lx-header-mb,
    .sep-mainnav,
    .sep-menu-box,
    .mb-bottom-wrap,
    .sep-footer,
    form
) * {
    font-family: var(--maple-ui-font-family) !important;
}

:where(h1, h2, h3, h4, h5, h6, .titles, .titles-a, .b-titles, .ul-titles) {
    color: var(--maple-heading-color);
    letter-spacing: 0;
}

:where(h1, .page-title, h1.titles) {
    font-size: var(--maple-h1-font-size);
    line-height: 1.2;
}

:where(h2, .titles.fz24, a.titles.fz24, div.titles.fz24) {
    font-size: var(--maple-h2-font-size);
    line-height: 1.28;
}

:where(h3, .titles-a.fz20, .titles-a.fz22, .titles-a.fz24, h2.titles-a, h3.titles-a) {
    font-size: var(--maple-h3-font-size);
    line-height: 1.34;
}

.richtext,
.sep-wp-content {
    color: var(--maple-content-text-color);
    font-family: var(--maple-content-font-family);
    font-size: var(--maple-body-font-size);
    line-height: var(--maple-body-line-height);
    letter-spacing: 0;
    -webkit-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

.richtext :where(p, li, a, span, div, td, th, label, strong, em),
.sep-wp-content :where(p, li, a, span, div, td, th, label, strong, em) {
    font-family: var(--maple-content-font-family) !important;
    letter-spacing: 0;
}

.richtext :where(p, li),
.sep-wp-content :where(p, li) {
    color: var(--maple-content-text-color);
    font-size: var(--maple-body-font-size);
    font-weight: 400;
    line-height: var(--maple-body-line-height);
}

.richtext :where(p, ul, ol, table, blockquote),
.sep-wp-content :where(p, ul, ol, table, blockquote) {
    margin-top: 0;
    margin-bottom: 18px;
}

.richtext :where(blockquote),
.sep-wp-content :where(blockquote) {
    padding: 16px 20px;
    border-left: 4px solid var(--maple-accent-color);
    background: var(--maple-soft-bg);
    color: var(--maple-content-text-color);
}

.richtext :where(blockquote p:last-child),
.sep-wp-content :where(blockquote p:last-child) {
    margin-bottom: 0;
}

.richtext :where(ul, ol),
.sep-wp-content :where(ul, ol) {
    padding-left: 22px;
}

.richtext :where(li),
.sep-wp-content :where(li) {
    margin-bottom: 9px;
}

.richtext :where(li:last-child),
.sep-wp-content :where(li:last-child) {
    margin-bottom: 0;
}

.richtext :where(img),
.sep-wp-content :where(img) {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 28px auto;
}

.richtext :where(figcaption),
.sep-wp-content :where(figcaption) {
    margin-top: -14px;
    margin-bottom: 24px;
    color: var(--maple-muted-color);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.richtext :where(table),
.sep-wp-content :where(table) {
    border-collapse: collapse;
    display: table;
    width: 100% !important;
    margin: 26px 0;
}

.richtext :where(table th, table td),
.sep-wp-content :where(table th, table td) {
    border: 1px solid var(--maple-border-color);
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.55;
    vertical-align: top;
}

.richtext :where(table th),
.sep-wp-content :where(table th) {
    color: var(--maple-content-heading-color);
    font-weight: 700;
    background: #f6f7f9;
}

#richtext :where(a),
.richtext :where(a),
.sep-wp-content :where(a) {
    color: var(--maple-link-color) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

#richtext :where(a:hover),
.richtext :where(a:hover),
.sep-wp-content :where(a:hover) {
    color: var(--maple-link-hover-color) !important;
}

.richtext :where(h1, h2, h3, h4),
.sep-wp-content :where(h1, h2, h3, h4),
.richtext :where(h1, h2, h3, h4) *,
.sep-wp-content :where(h1, h2, h3, h4) * {
    color: var(--maple-content-heading-color) !important;
    font-family: var(--maple-content-font-family) !important;
    font-weight: 700;
    letter-spacing: 0;
    -webkit-font-smoothing: auto;
}

.richtext :where(h1, h2, h3, h4),
.sep-wp-content :where(h1, h2, h3, h4) {
    scroll-margin-top: 92px;
}

.richtext h1,
.richtext h1 *,
.sep-wp-content h1,
.sep-wp-content h1 * {
    font-size: var(--maple-h1-font-size) !important;
    line-height: 1.2 !important;
}

.richtext h2,
.richtext h2 *,
.richtext.art-h2 h2,
.richtext.art-h2 h2 *,
.sep-wp-content h2,
.sep-wp-content h2 * {
    font-size: var(--maple-h2-font-size) !important;
    line-height: 1.28 !important;
}

.richtext h3,
.richtext h3 *,
.sep-wp-content h3,
.sep-wp-content h3 * {
    font-size: var(--maple-h3-font-size) !important;
    line-height: 1.34 !important;
}

.richtext h2,
.sep-wp-content h2 {
    margin-top: 42px;
    margin-bottom: 16px;
}

.richtext h3,
.sep-wp-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.richtext h2:first-child,
.richtext h3:first-child,
.sep-wp-content h2:first-child,
.sep-wp-content h3:first-child {
    margin-top: 0;
}

.richtext.art-h2,
#richtext,
.sep-wp-content {
    font-size: var(--maple-content-font-size);
    line-height: var(--maple-content-line-height);
    max-width: 760px;
    overflow-wrap: break-word;
}

#richtext > p,
#richtext > div,
#richtext > ul,
#richtext > ol,
#richtext > table,
.richtext.art-h2 > p,
.richtext.art-h2 > div,
.richtext.art-h2 > ul,
.richtext.art-h2 > ol,
.richtext.art-h2 > table,
.sep-wp-content > p,
.sep-wp-content > div,
.sep-wp-content > ul,
.sep-wp-content > ol,
.sep-wp-content > table {
    margin-top: 0;
    margin-bottom: 20px;
}

#richtext > div:empty,
#richtext > p:empty,
.richtext.art-h2 > div:empty,
.richtext.art-h2 > p:empty,
.sep-wp-content > div:empty,
.sep-wp-content > p:empty {
    display: none;
}

#richtext > div,
#richtext > p,
.richtext.art-h2 > div,
.richtext.art-h2 > p,
.sep-wp-content > div,
.sep-wp-content > p {
    color: var(--maple-content-text-color);
    font-size: var(--maple-content-font-size);
    font-weight: 400;
    line-height: var(--maple-content-line-height);
}

.maple-blog-dates,
.sep-wp-post-meta {
    color: var(--maple-muted-color);
    font-size: 15px;
    line-height: 1.7;
}

.contents-wrap {
    margin: 30px 0 34px;
    padding: 20px 22px;
    border: 1px solid var(--maple-border-color);
    background: var(--maple-soft-bg);
    color: var(--maple-content-text-color);
    font-family: var(--maple-content-font-family);
    -webkit-font-smoothing: auto;
}

.contents-wrap * {
    font-family: var(--maple-content-font-family) !important;
    -webkit-font-smoothing: auto;
}

.contents-wrap .hd {
    color: var(--maple-content-heading-color);
    font-size: 18px;
    line-height: 1.35;
}

.contents-wrap .hd span {
    color: inherit;
    font-size: inherit;
    font-weight: 700;
}

.contents-wrap .bd {
    margin-top: 12px;
}

.contents-wrap li,
.contents-wrap a {
    color: var(--maple-content-text-color);
    font-size: 15px;
    line-height: 1.5;
}

.sep-in-blog-list .lis-boxs > a.titles-a,
.sep-in-blog-list .lis-boxs > .times {
    font-family: var(--maple-content-font-family) !important;
    -webkit-font-smoothing: auto;
}

.sep-list-pro-boxs .pro-lefts > h1.titles,
.sep-wp-content > h1.titles {
    color: var(--maple-content-heading-color) !important;
    font-family: var(--maple-content-font-family);
    font-size: var(--maple-h1-font-size) !important;
    line-height: 1.2 !important;
    margin-bottom: 14px;
    max-width: 760px;
    -webkit-font-smoothing: auto;
}

.sep-list-pro-boxs .pro-lefts > .wids {
    margin-top: 22px;
    max-width: 760px;
}

@media screen and (max-width: 768px) {
    :root {
        --maple-body-font-size: 16px;
        --maple-body-line-height: 1.65;
        --maple-content-font-size: 16px;
        --maple-content-line-height: 1.72;
    }

    :where(h1, .page-title, h1.titles),
    .sep-list-pro-boxs .pro-lefts > h1.titles,
    .richtext h1,
    .richtext h1 *,
    .sep-wp-content h1,
    .sep-wp-content h1 * {
        font-size: var(--maple-h1-mobile-font-size) !important;
    }

    :where(h2, .titles.fz24, a.titles.fz24, div.titles.fz24),
    .richtext h2,
    .richtext h2 *,
    .richtext.art-h2 h2,
    .richtext.art-h2 h2 *,
    .sep-wp-content h2,
    .sep-wp-content h2 * {
        font-size: var(--maple-h2-mobile-font-size) !important;
    }

    :where(h3, .titles-a.fz20, .titles-a.fz22, .titles-a.fz24, h2.titles-a, h3.titles-a),
    .richtext h3,
    .richtext h3 *,
    .sep-wp-content h3,
    .sep-wp-content h3 * {
        font-size: var(--maple-h3-mobile-font-size) !important;
    }

    .richtext h2,
    .sep-wp-content h2 {
        margin-top: 32px;
        margin-bottom: 12px;
    }

    .richtext h3,
    .sep-wp-content h3 {
        margin-top: 22px;
        margin-bottom: 10px;
    }

    #richtext > p,
    #richtext > div,
    #richtext > ul,
    #richtext > ol,
    #richtext > table,
    .richtext.art-h2 > p,
    .richtext.art-h2 > div,
    .richtext.art-h2 > ul,
    .richtext.art-h2 > ol,
    .richtext.art-h2 > table,
    .sep-wp-content > p,
    .sep-wp-content > div,
    .sep-wp-content > ul,
    .sep-wp-content > ol,
    .sep-wp-content > table {
        margin-bottom: 16px;
    }

    .contents-wrap {
        margin: 24px 0 28px;
        padding: 16px;
    }

    .richtext :where(table),
    .sep-wp-content :where(table) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .richtext :where(table th, table td),
    .sep-wp-content :where(table th, table td) {
        min-width: 140px;
    }
}
