/* =========================================================
   SenScope Article Content
   Front-end + Gutenberg shared styles
========================================================= */


/* =========================================================
   BASE
========================================================= */

.single-post .entry-content,
.editor-styles-wrapper {
    color: #304657;
    font-size: 16px;
    line-height: 1.95;
}

.single-post .entry-content p,
.editor-styles-wrapper p {
    margin-top: 0;
    margin-bottom: 1.8em;
}


/* =========================================================
   H2
   大きな章見出し
========================================================= */

.single-post .entry-content h2,
.editor-styles-wrapper h2 {
    position: relative;
    margin: 64px 0 28px;
    padding: 18px 22px 19px 24px;

    border: 0;
    border-left: 6px solid #18a3a3;
    border-radius: 0;

    background: #153957;
    color: #ffffff;

    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.025em;

    box-shadow: none;
}

/* 黄色の小さなアクセント */
.single-post .entry-content h2::after,
.editor-styles-wrapper h2::after {
    content: "";
    position: absolute;
    top: 0;
    right: 22px;
    width: 54px;
    height: 4px;
    background: #ffd45a;
}


/* =========================================================
   H3
   章内の大項目
========================================================= */

.single-post .entry-content h3,
.editor-styles-wrapper h3 {
    margin: 46px 0 22px;
    padding: 4px 0 10px 16px;

    border: 0;
    border-left: 4px solid #18a3a3;
    border-bottom: 1px solid #d8e3e8;

    color: #153957;

    font-size: clamp(21px, 2.4vw, 26px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: -.02em;
}


/* =========================================================
   H4
   小見出し
========================================================= */

.single-post .entry-content h4,
.editor-styles-wrapper h4 {
    position: relative;

    margin: 38px 0 16px;
    padding-top: 12px;

    border: 0;

    color: #153957;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: -.015em;
}

/* 短いティールライン */
.single-post .entry-content h4::before,
.editor-styles-wrapper h4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 30px;
    height: 3px;

    background: #18a3a3;
}


/* =========================================================
   LINKS
========================================================= */

.single-post .entry-content a,
.editor-styles-wrapper a {
    color: #246ab5;
    font-weight: 600;

    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(36, 106, 181, .4);
    text-underline-offset: 4px;
}

.single-post .entry-content a:hover {
    color: #138e91;
    text-decoration-color: #138e91;
}


/* =========================================================
   LISTS
========================================================= */

.single-post .entry-content ul,
.single-post .entry-content ol,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol {
    margin: 30px 0 34px;
    padding: 18px 0 18px 34px;

    border: 0;
    border-left: 4px solid #cde5e5;

    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.single-post .entry-content li,
.editor-styles-wrapper li {
    margin-bottom: .75em;
    padding-left: .25em;
}

.single-post .entry-content li:last-child,
.editor-styles-wrapper li:last-child {
    margin-bottom: 0;
}

.single-post .entry-content ul li::marker,
.editor-styles-wrapper ul li::marker {
    color: #18a3a3;
}

.single-post .entry-content ol li::marker,
.editor-styles-wrapper ol li::marker {
    color: #3f78c5;
    font-weight: 800;
}

/* 入れ子 */
.single-post .entry-content li > ul,
.single-post .entry-content li > ol,
.editor-styles-wrapper li > ul,
.editor-styles-wrapper li > ol {
    margin: 10px 0 4px;
    padding-top: 0;
    padding-bottom: 0;

    border-left-width: 2px;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.single-post .entry-content blockquote,
.editor-styles-wrapper blockquote {
    position: relative;

    margin: 40px 0;
    padding: 28px 34px 26px 46px;

    border: 0;
    border-top: 1px solid #b9d9da;
    border-bottom: 1px solid #b9d9da;

    border-radius: 0;

    background: #eef7f7;
    color: #304657;

    box-shadow: none;
}

.single-post .entry-content blockquote::before,
.editor-styles-wrapper blockquote::before {
    content: "“";

    position: absolute;
    top: 19px;
    left: 17px;

    color: #18a3a3;

    font-family: Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.single-post .entry-content blockquote p:last-child,
.editor-styles-wrapper blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   TABLE
========================================================= */

.single-post .entry-content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
    margin: 38px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.single-post .entry-content table,
.editor-styles-wrapper table {
    width: 100%;
    margin: 38px 0;

    border: 1px solid #cfdde3;
    border-collapse: collapse;
    border-spacing: 0;

    border-radius: 0;

    background: #ffffff;
    color: #304657;

    font-size: 14px;
    line-height: 1.75;

    box-shadow: none;
}

.single-post .entry-content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
    margin: 0;
}

.single-post .entry-content th,
.single-post .entry-content td,
.editor-styles-wrapper th,
.editor-styles-wrapper td {
    padding: 15px 18px;

    border: 1px solid #cfdde3;

    vertical-align: top;
}

/* 表のヘッダー */
.single-post .entry-content th,
.editor-styles-wrapper th {
    background: #153957;
    color: #ffffff;

    font-weight: 800;
}

/* 偶数行 */
.single-post .entry-content tbody tr:nth-child(even) td,
.editor-styles-wrapper tbody tr:nth-child(even) td {
    background: #f4f8f9;
}


/* =========================================================
   IMAGE / CAPTION
========================================================= */

.single-post .entry-content figure,
.editor-styles-wrapper figure {
    margin-top: 38px;
    margin-bottom: 42px;
}

.single-post .entry-content img,
.editor-styles-wrapper img {
    max-width: 100%;
    height: auto;
}

.single-post .entry-content figcaption,
.single-post .entry-content .wp-element-caption,
.editor-styles-wrapper figcaption,
.editor-styles-wrapper .wp-element-caption {
    margin-top: 9px;

    color: #718493;

    font-size: 12px;
    line-height: 1.7;
    text-align: left;
}


/* =========================================================
   SEPARATOR
========================================================= */

.single-post .entry-content hr,
.editor-styles-wrapper hr {
    width: 100%;
    height: 1px;

    margin: 52px 0;

    border: 0;

    background: #ccdbe2;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .single-post .entry-content,
    .editor-styles-wrapper {
        font-size: 16px;
        line-height: 1.9;
    }

    .single-post .entry-content h2,
    .editor-styles-wrapper h2 {
        margin: 50px 0 24px;
        padding: 15px 17px 16px 19px;

        border-left-width: 5px;

        font-size: 24px;
    }

    .single-post .entry-content h2::after,
    .editor-styles-wrapper h2::after {
        right: 17px;
        width: 40px;
    }

    .single-post .entry-content h3,
    .editor-styles-wrapper h3 {
        margin: 38px 0 18px;
        padding-left: 13px;

        font-size: 21px;
    }

    .single-post .entry-content h4,
    .editor-styles-wrapper h4 {
        margin: 32px 0 14px;
        font-size: 17px;
    }

    .single-post .entry-content ul,
    .single-post .entry-content ol,
    .editor-styles-wrapper ul,
    .editor-styles-wrapper ol {
        padding-left: 28px;
    }

    .single-post .entry-content blockquote,
    .editor-styles-wrapper blockquote {
        padding: 24px 20px 22px 38px;
    }

    .single-post .entry-content blockquote::before,
    .editor-styles-wrapper blockquote::before {
        left: 12px;
    }

    .single-post .entry-content table,
    .editor-styles-wrapper table {
        min-width: 620px;
        font-size: 13px;
    }

    .single-post .entry-content th,
    .single-post .entry-content td,
    .editor-styles-wrapper th,
    .editor-styles-wrapper td {
        min-width: 140px;
        padding: 13px 14px;
    }
}


/* =========================================================
   GUTENBERG EDITOR ONLY
========================================================= */

/* 本文幅を実際の記事に近づける */
.editor-styles-wrapper .is-root-container {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.editor-styles-wrapper {
    background: #ffffff;
}


/* =========================================================
   SENSCOPE EDITORIAL NOTE BLOCKS
========================================================= */

.single-post .entry-content .ss-note,
.editor-styles-wrapper .ss-note {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);

    width: 100%;
    margin: 44px 0;

    border: 1px solid #cbd8de;
    border-radius: 0;

    background: #ffffff;

    box-shadow: none;
    overflow: hidden;
}


/* =========================================================
   LABEL
========================================================= */

.single-post .entry-content .ss-note__label,
.editor-styles-wrapper .ss-note__label {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    margin: 0;
    padding: 28px 22px;

    background: #153957;
    color: #ffffff;
}

.single-post .entry-content .ss-note__eyebrow,
.editor-styles-wrapper .ss-note__eyebrow {
    margin: 0 0 8px;

    color: rgba(255, 255, 255, .65);

    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .14em;
}

.single-post .entry-content .ss-note__title,
.editor-styles-wrapper .ss-note__title {
    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: inherit;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.single-post .entry-content .ss-note__title::before,
.single-post .entry-content .ss-note__title::after,
.editor-styles-wrapper .ss-note__title::before,
.editor-styles-wrapper .ss-note__title::after {
    content: none;
}


/* 上部アクセント */
.single-post .entry-content .ss-note__label::before,
.editor-styles-wrapper .ss-note__label::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 54px;
    height: 5px;

    background: #ffd45a;
}


/* =========================================================
   BODY
========================================================= */

.single-post .entry-content .ss-note__body,
.editor-styles-wrapper .ss-note__body {
    min-width: 0;
    margin: 0;
    padding: 26px 30px;
}

.single-post .entry-content .ss-note__body > *:first-child,
.editor-styles-wrapper .ss-note__body > *:first-child {
    margin-top: 0;
}

.single-post .entry-content .ss-note__body > *:last-child,
.editor-styles-wrapper .ss-note__body > *:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LIST INSIDE NOTE
========================================================= */

.single-post .entry-content .ss-note__body ul,
.single-post .entry-content .ss-note__body ol,
.editor-styles-wrapper .ss-note__body ul,
.editor-styles-wrapper .ss-note__body ol {
    margin: 0;
    padding: 0 0 0 1.4em;

    border: 0;
    background: transparent;
}

.single-post .entry-content .ss-note__body li,
.editor-styles-wrapper .ss-note__body li {
    margin-bottom: .7em;
}

.single-post .entry-content .ss-note__body li:last-child,
.editor-styles-wrapper .ss-note__body li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   POINT
========================================================= */

.single-post .entry-content .ss-note--point,
.editor-styles-wrapper .ss-note--point {
    border-color: #b9ccd5;
}

.single-post .entry-content .ss-note--point .ss-note__label,
.editor-styles-wrapper .ss-note--point .ss-note__label {
    background: #153957;
}


/* =========================================================
   TEACHER VIEW
========================================================= */

.single-post .entry-content .ss-note--teacher,
.editor-styles-wrapper .ss-note--teacher {
    border-color: #9fcfcf;
}

.single-post .entry-content .ss-note--teacher .ss-note__label,
.editor-styles-wrapper .ss-note--teacher .ss-note__label {
    background: #148f91;
}

.single-post .entry-content .ss-note--teacher .ss-note__label::before,
.editor-styles-wrapper .ss-note--teacher .ss-note__label::before {
    background: #ffffff;
}


/* =========================================================
   CAUTION
========================================================= */

.single-post .entry-content .ss-note--caution,
.editor-styles-wrapper .ss-note--caution {
    border-color: #e2c86e;
}

.single-post .entry-content .ss-note--caution .ss-note__label,
.editor-styles-wrapper .ss-note--caution .ss-note__label {
    background: #ffd45a;
    color: #153957;
}

.single-post .entry-content .ss-note--caution .ss-note__eyebrow,
.editor-styles-wrapper .ss-note--caution .ss-note__eyebrow {
    color: rgba(21, 57, 87, .65);
}

.single-post .entry-content .ss-note--caution .ss-note__label::before,
.editor-styles-wrapper .ss-note--caution .ss-note__label::before {
    background: #153957;
}


/* =========================================================
   SOURCE / DATA
========================================================= */

.single-post .entry-content .ss-note--source,
.editor-styles-wrapper .ss-note--source {
    border-top: 3px solid #153957;
}

.single-post .entry-content .ss-note--source .ss-note__label,
.editor-styles-wrapper .ss-note--source .ss-note__label {
    background: #ffffff;
    color: #153957;

    border-right: 1px solid #cbd8de;
}

.single-post .entry-content .ss-note--source .ss-note__eyebrow,
.editor-styles-wrapper .ss-note--source .ss-note__eyebrow {
    color: #18a3a3;
}

.single-post .entry-content .ss-note--source .ss-note__label::before,
.editor-styles-wrapper .ss-note--source .ss-note__label::before {
    background: #18a3a3;
}

.single-post .entry-content .ss-note__meta,
.editor-styles-wrapper .ss-note__meta {
    margin-top: 10px;

    color: #718493;

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .single-post .entry-content .ss-note,
    .editor-styles-wrapper .ss-note {
        grid-template-columns: 1fr;
        margin: 34px 0;
    }

    .single-post .entry-content .ss-note__label,
    .editor-styles-wrapper .ss-note__label {
        min-height: 0;
        padding: 18px 20px;
    }

    .single-post .entry-content .ss-note__eyebrow,
    .editor-styles-wrapper .ss-note__eyebrow {
        margin-bottom: 4px;
    }

    .single-post .entry-content .ss-note__title,
    .editor-styles-wrapper .ss-note__title {
        font-size: 18px;
    }

    .single-post .entry-content .ss-note__body,
    .editor-styles-wrapper .ss-note__body {
        padding: 22px 20px;
    }

    .single-post .entry-content .ss-note--source .ss-note__label,
    .editor-styles-wrapper .ss-note--source .ss-note__label {
        border-right: 0;
        border-bottom: 1px solid #cbd8de;
    }
}