@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.source-page {
    margin: 0;
    padding: 24px 32px 48px;
    background: #f8fafc;
    color: #1f2937;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
}

@media (max-width: 768px) {
    body.source-page {
        padding: 16px 12px 32px;
    }
}

.source-page h1 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    color: #8338ec;
    letter-spacing: -0.025em;
}

.source-bar {
    margin: 0 0 24px;
}

.source-bar select {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.2s;
}

.source-bar select:focus {
    border-color: #8338ec;
    box-shadow: 0 0 0 2px rgba(131, 56, 236, 0.2);
}

.source-table-wrap {
    overflow: auto;
    max-height: calc(100vh - 160px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.source-table {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content;
    min-width: max-content;
    font-size: 13px;
    line-height: 1.5;
}

.source-table th,
.source-table td,
.source-table a {
    font-size: 13px;
}

.source-table th,
.source-table td {
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    padding: 12px 16px;
    vertical-align: top;
    text-align: left;
}

.source-table th:last-child,
.source-table td:last-child {
    border-right: none;
}

.source-table th {
    background: #f3e8ff;
    font-weight: 700;
    color: #6b21a8;
    white-space: nowrap;
    border-bottom: 2px solid #c084fc;
    border-right: 1px solid #c084fc;
}

.source-table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 12;
    background: #f3e8ff;
}

body.source-score thead tr:nth-child(2) th {
    top: 45px;
    border-top: 1px solid #c084fc;
}

.source-table .col-fixed {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 6;
    border-right: 2px solid #c084fc;
    box-shadow: 4px 0 6px -4px rgba(107, 33, 168, 0.18);
}

.source-table thead th.col-fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 30;
    background: #f3e8ff;
}

.source-table tr:last-child td {
    border-bottom: none;
}

.source-table td.col-ward,
.source-table td.col-page {
    white-space: nowrap;
    font-weight: 500;
    color: #4b5563;
}

.source-table td.col-link {
    min-width: 280px;
    word-break: break-all;
}

.source-table td.col-link a {
    color: #8338ec;
    text-decoration: none;
}

.source-table td.col-link a:hover {
    text-decoration: underline;
    color: #7e22ce;
}

.source-table td.col-pdf {
    white-space: nowrap;
}

.source-table td.col-pdf a {
    color: #8338ec;
    text-decoration: none;
}

.source-table td.col-pdf a:hover {
    text-decoration: underline;
    color: #7e22ce;
}

.source-table td.col-note {
    min-width: 200px;
    color: #6b7280;
}

.source-empty {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

body.source-score .source-table {
    table-layout: auto;
    width: max-content;
    min-width: max-content;
}

body.source-score .source-table-wrap {
    overflow: auto;
}
