/*
 * 記事「WordPressは作り直さずに守れる？」専用CSS
 * - hooksで、この記事（スラッグ wordpress-static-export-test）のときだけ読み込む
 * - すべてのセレクタは .se- で始まり、他の記事・ページには影響しない
 * - 色・余白は article-attack-log.css（.al-cover）に合わせる
 */
.journal-article-top:has(.se-cover) h1,
.journal-card:has(.se-cover) h2 {
    word-break: auto-phrase;
    text-wrap: balance;
}
.se-cover-wrap {
    container-type: inline-size;
}
.se-cover {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: center;
    padding: 40px 48px;
    background: linear-gradient(125deg, #d9e4df, #f0f4f0 70%, #d5dfd4);
    color: #213b30;
    word-break: auto-phrase;
}
.se-cover p,
.se-cover ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.se-cover-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    color: #4f7363;
}
.se-cover-label {
    margin-top: 14px !important;
    font-size: 15px;
    font-weight: 900;
    color: #4f7363;
}
.se-cover-num {
    margin-top: 2px !important;
    font-size: 96px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #105440;
    font-feature-settings: "tnum";
}
.se-cover-num span {
    margin-left: 8px;
    font-size: 30px;
    letter-spacing: 0;
}
.se-cover .se-cover-note {
    display: inline-flex;
    margin-top: 14px !important;
    padding: 6px 14px;
    background: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    color: #105440;
}
.se-sheet {
    padding: 18px 26px 10px;
    background: #fff;
    border-top: 4px solid #105440;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(33, 59, 48, .08);
}
.se-sheet-head {
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #4f7363;
}
.se-sheet li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-areas: "mark label" "mark result";
    column-gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e3eae5;
}
.se-sheet li:last-child {
    border-bottom: 0;
}
.se-sheet-mark {
    grid-area: mark;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #105440;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}
.se-sheet-label {
    grid-area: label;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
    color: #5d7468;
}
.se-sheet-result {
    grid-area: result;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
    color: #105440;
}
.se-sheet li.is-ng .se-sheet-mark {
    background: #b4532a;
}
.se-sheet li.is-ng .se-sheet-result {
    color: #9c4421;
}

/* 一覧カードなど、狭い幅のとき */
@container (max-width: 760px) {
    .se-cover {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 24px 20px;
    }
    .se-cover-label {
        margin-top: 10px !important;
        font-size: 13px;
    }
    .se-cover-num {
        font-size: 64px;
    }
    .se-cover-num span {
        font-size: 22px;
    }
    .se-cover .se-cover-note {
        margin-top: 10px !important;
        font-size: 13px;
    }
    .se-sheet {
        padding: 12px 18px 4px;
    }
    .se-sheet li {
        padding: 9px 0;
        grid-template-columns: 28px minmax(0, 1fr);
    }
    .se-sheet-mark {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }
    .se-sheet-result {
        font-size: 16px;
    }
}

/* 本文の表：スマホで窮屈にならないように（この記事の表だけ） */
.se-table-entry td:last-child,
.se-table-entry th:last-child {
    white-space: nowrap;
}
@media (max-width: 600px) {
    .se-table-cards table,
    .se-table-cards tbody,
    .se-table-cards tr,
    .se-table-cards td {
        display: block;
        width: 100%;
    }
    .se-table-cards thead {
        display: none;
    }
    .se-table-cards tr {
        padding: 14px 16px;
        border-bottom: 1px solid #e3eae5;
    }
    .se-table-cards tr:last-child {
        border-bottom: 0;
    }
    .se-table-cards td {
        padding: 4px 0;
        border: 0;
    }
    .se-table-cards td:first-child {
        padding-bottom: 6px;
        font-size: 1.05em;
        font-weight: 700;
        color: #105440;
    }
    .se-table-cards td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #5d7468;
    }
}
