/* 記事内にある4列の表だけを対象にする */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5))) {
    width: 100% !important;
    table-layout: fixed !important;
}

/* 1列目：22% */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
tr > :nth-child(1) {
    width: 22% !important;
}

/* 2列目：8% */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
tr > :nth-child(2) {
    width: 8% !important;
    text-align: center;
}

/* 3列目：8% */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
tr > :nth-child(3) {
    width: 8% !important;
    text-align: center;
}

/* 4列目：62% */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
tr > :nth-child(4) {
    width: 62% !important;
}

/* 文字がセルからはみ出さないようにする */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
th,
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
td {
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
    padding: 6px 8px !important;
}

/* ===== 4列表：1行目（ヘッダー）のみグレー ===== */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
tr:first-child th,
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
tr:first-child td {
    background: #d9d9d9;
    font-weight: bold;
}
/* 枠線を少し濃く */
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
th,
.main_content article table:has(tr:first-child > :nth-child(4)):not(:has(tr:first-child > :nth-child(5)))
td {
    border: 1px solid #666;
}

