:root {
    color-scheme: light;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #111;
    background: #f5f7fa;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
}
.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 48px;
    background: #fff;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}
header h1 {
    margin: 0;
    font-size: 28px;
}
header .meta {
    text-align: right;
    color: #5b6683;
    font-size: 14px;
    line-height: 1.6;
}
.section {
    margin-bottom: 32px;
}
.section h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #1f2937;
}
.card-grid,
.gauge-grid,
.graph-grid {
    display: grid;
    gap: 16px;
}
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gauge-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}
.graph-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 24px;
}
.card,
.gauge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}
.card strong,
.gauge strong {
    display: block;
    font-size: 12px;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.card .value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}
.score-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.score-pill {
    border-radius: 8px;
    background: #eef2ff;
    padding: 18px;
    text-align: center;
}
.score-pill strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #4f46e5;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.score-pill span {
    font-size: 40px;
    font-weight: 800;
    color: #312e81;
}
.gauge {
    text-align: center;
}
.gauge svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
    margin-bottom: 12px;
}
.gauge circle {
    fill: none;
    stroke-width: 12;
}
.gauge circle.track {
    stroke: #e2e8f0;
}
.gauge circle.fill {
    stroke-linecap: round;
    stroke: #4f46e5;
}
.gauge span {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}
.chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}
.chart-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1f2937;
}
.chart-bar {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.chart-bar__label {
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chart-bar__track {
    position: relative;
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    width: 100%;
}
.chart-bar__fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
}
.chart-bar__value {
    color: #0f172a;
    font-size: 13px;
    min-width: 36px;
    text-align: right;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
}
thead {
    background: #eef2ff;
}
th,
td {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
th {
    color: #334155;
    font-weight: 700;
}
tbody tr:nth-child(even) {
    background: #f8fafc;
}
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #10b981;
}
.badge.high {
    background: #ef4444;
}
.badge.medium {
    background: #f59e0b;
}
.badge.notice {
    background: #6366f1;
}
.detail-para {
    margin: 0 0 12px;
    line-height: 1.75;
    color: #475569;
}
.issue-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
}
.issue-title-text {
    font-weight: 700;
    color: #111827;
}
.issue-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.issue-help__button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    cursor: help;
    padding: 0;
}
.issue-help__button:hover,
.issue-help__button:focus {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #312e81;
    outline: 0;
}
.issue-help__panel {
    position: fixed;
    z-index: 999999;
    top: 96px;
    right: 32px;
    width: min(380px, calc(100vw - 64px));
    max-height: calc(100vh - 132px);
    overflow: auto;
    display: none;
    background: #111827;
    color: #f8fafc;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    font-size: 13px;
    line-height: 1.5;
}
.issue-help__panel strong {
    display: block;
    margin-top: 8px;
    color: #c7d2fe;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.issue-help__panel strong:first-child {
    margin-top: 0;
}
.issue-help__panel span {
    display: block;
    color: #f8fafc;
    overflow-wrap: anywhere;
}
.issue-help__panel a {
    color: #bfdbfe;
    font-weight: 700;
    text-decoration: underline;
}
.issue-help:hover .issue-help__panel,
.issue-help:focus-within .issue-help__panel {
    display: block;
}
.issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.issue-item {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}
.issue-item p {
    margin: 0;
}
.issue-meta {
    color: #475569;
    font-size: 13px;
    margin-top: 6px;
}
footer {
    margin-top: 40px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}
@media print {
    body {
        background: #fff;
    }
    .page {
        box-shadow: none;
        margin: 0;
        padding: 24px;
    }
    .section,
    table,
    thead,
    tbody,
    tr,
    td,
    th {
        page-break-inside: avoid;
    }
}
@media (max-width: 700px) {
    .page {
        padding: 20px 14px;
    }
    header,
    .score-blocks {
        display: block;
    }
    header .meta {
        text-align: left;
        margin-top: 12px;
    }
    .chart-bar {
        grid-template-columns: 1fr;
    }
    .score-pill {
        margin-bottom: 12px;
    }
    .issue-help__panel {
        top: 72px;
        right: 14px;
        left: 14px;
        width: auto;
        max-height: calc(100vh - 104px);
    }
}
