/*
 * 記事「お客さんの情報がないホームページも狙われる？」専用CSS
 * - hooksで、この記事（スラッグ why-small-business-sites-get-attacked）のときだけ読み込む
 * - すべてのセレクタは .al- で始まり、他の記事・ページには影響しない
 * - 色・余白・角丸は article-php2shell.css（.ps-cover）に合わせる
 */
.journal-article-top:has(.al-cover) h1,
.journal-card:has(.al-cover) h2 {
    word-break: auto-phrase;
    text-wrap: balance;
}
.al-cover-wrap {
    container-type: inline-size;
}
.al-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;
}
.al-cover p,
.al-cover ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.al-cover-kicker {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    color: #4f7363;
}
.al-cover-label {
    margin-top: 14px !important;
    font-size: 15px;
    font-weight: 900;
    color: #4f7363;
}
.al-cover-num {
    margin-top: 2px !important;
    font-size: 88px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #105440;
    font-feature-settings: "tnum";
}
.al-cover-num span {
    margin-left: 6px;
    font-size: 30px;
    letter-spacing: 0;
}
.al-cover .al-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;
}
.al-sheet {
    padding: 18px 26px 12px;
    background: #fff;
    border-top: 4px solid #105440;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(33, 59, 48, .08);
}
.al-sheet-head {
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #4f7363;
}
.al-sheet li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label count" "bar bar";
    column-gap: 14px;
    row-gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid #e3eae5;
}
.al-sheet li:last-child {
    border-bottom: 0;
}
.al-sheet-label {
    grid-area: label;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: #192320;
}
.al-sheet-count {
    grid-area: count;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 900;
    color: #105440;
    font-feature-settings: "tnum";
}
.al-sheet-count small {
    margin-left: 2px;
    font-size: 12px;
}
.al-sheet-bar {
    grid-area: bar;
    display: block;
    height: 8px;
    background: #edf2ef;
    border-radius: 4px;
    overflow: hidden;
}
.al-sheet-bar i {
    display: block;
    height: 100%;
    background: #105440;
    border-radius: 4px;
}
.al-sheet li:nth-child(2) .al-sheet-bar i {
    background: #496d5a;
}
.al-sheet li:nth-child(3) .al-sheet-bar i {
    background: #9fbaad;
}

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

/* 一覧の注目カード：タイトルの行間を詰め、サブタイトルとの間を広げる（この記事のカードだけ） */
.journal-featured:has(.al-cover) h2 {
    line-height: 1.42;
}
.journal-featured:has(.al-cover) h2 .journal-title-sub {
    margin-top: 12px;
}
