#history {
    background:
        radial-gradient(circle at 12% 0%, rgba(72, 108, 148, 0.16), transparent 34rem),
        #050608;
    min-height: 100vh;
}

#history .container {
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    max-width: 1440px;
    overflow: hidden;
    padding: 72px 64px 120px;
}

#history .history-header {
    margin-bottom: 56px;
    max-width: 1080px;
}

#history .eyebrow {
    color: rgba(176, 211, 255, 0.78);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 77%;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-bottom: 24px;
}

#history .history-header h1 {
    color: rgba(255, 255, 255, 0.94);
    font-size: 258%;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45em;
    margin-bottom: 28px;
}

#history .history-header .intro {
    color: rgba(255, 255, 255, 0.64);
    font-size: 108%;
    line-height: 2em;
    max-width: 820px;
}

#history .history-stats {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 44px;
    max-width: 820px;
}

#history .history-stats > div {
    align-items: baseline;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    gap: 14px;
    padding: 20px 24px;
}

#history .history-stats > div:first-child {
    padding-left: 0;
}

#history .history-stats > div:last-child {
    border-right: none;
}

#history .history-stats strong {
    color: rgba(255, 255, 255, 0.94);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 182%;
    font-weight: 300;
}

#history .history-stats span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 85%;
    line-height: 1.5em;
}

#history .section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 96px;
}

#history .section-nav a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    display: inline-flex;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 85%;
    gap: 10px;
    padding: 10px 16px;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

#history .section-nav a:hover {
    background: rgba(176, 211, 255, 0.1);
    border-color: rgba(176, 211, 255, 0.46);
    color: #fff;
    padding-bottom: 10px;
}

#history .section-nav a span {
    color: rgba(176, 211, 255, 0.72);
}

#history .works-section {
    margin-bottom: 120px;
    scroll-margin-top: 24px;
}

#history .section-heading {
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    gap: 26px;
    padding: 28px 0 32px;
}

#history .section-number {
    color: rgba(176, 211, 255, 0.66);
    flex: 0 0 42px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 85%;
    letter-spacing: 0.12em;
    margin: 0;
}

#history .section-heading h2 {
    color: rgba(255, 255, 255, 0.94);
    font-size: 153.9%;
    font-weight: 600;
    line-height: 1.5em;
    margin-bottom: 5px;
}

#history .section-heading div p {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 77%;
    letter-spacing: 0.06em;
}

#history .table-scroll {
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(176, 211, 255, 0.34) rgba(255, 255, 255, 0.05);
}

#history .table-scroll:focus-visible {
    outline: 2px solid rgba(176, 211, 255, 0.72);
    outline-offset: 4px;
}

#history .works-table {
    border-collapse: collapse;
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Yu Gothic', YuGothic, Meiryo, sans-serif;
    font-size: 100%;
    line-height: 1.65em;
    min-width: 1080px;
    table-layout: fixed;
    width: 100%;
}

#history .works-table th,
#history .works-table td {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    text-align: left;
    vertical-align: top;
}

#history .works-table th:last-child,
#history .works-table td:last-child {
    border-right: none;
}

#history .works-table thead th {
    background: #12161c;
    color: rgba(255, 255, 255, 0.52);
    font-size: 77%;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 13px 12px;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

#history .works-table thead th:nth-child(1) { width: 12%; }
#history .works-table thead th:nth-child(2) { width: 15%; }
#history .works-table thead th:nth-child(3) { width: 35%; }
#history .works-table thead th:nth-child(4) { width: 7%; }
#history .works-table thead th:nth-child(5) { width: 31%; }

#history .works-table tbody tr:not(.period-row) {
    background: rgba(255, 255, 255, 0.018);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 160ms ease;
}

#history .works-table tbody tr:not(.period-row):hover {
    background: rgba(176, 211, 255, 0.075);
}

#history .works-table tbody tr.archive-row--studio:not(.period-row) {
    background: rgba(78, 120, 168, 0.05);
}

#history .works-table tbody tr.archive-row--drama:not(.period-row) {
    background: rgba(185, 126, 68, 0.1);
}

#history .works-table tbody tr.archive-row--related:not(.period-row) {
    background: rgba(65, 142, 119, 0.1);
}

#history .works-table tbody tr.archive-row--studio:not(.period-row):hover {
    background: rgba(78, 120, 168, 0.13);
}

#history .works-table tbody tr.archive-row--drama:not(.period-row):hover {
    background: rgba(185, 126, 68, 0.18);
}

#history .works-table tbody tr.archive-row--related:not(.period-row):hover {
    background: rgba(65, 142, 119, 0.18);
}

#history .archive-row--studio td:first-child {
    box-shadow: inset 4px 0 #78a8db;
}

#history .archive-row--drama td:first-child {
    box-shadow: inset 4px 0 #ca8b50;
}

#history .archive-row--related td:first-child {
    box-shadow: inset 4px 0 #58a88e;
}

#history .works-table td {
    color: rgba(255, 255, 255, 0.62);
    padding: 13px 12px;
}

#history .works-table .number,
#history .works-table .year-short,
#history .works-table .date,
#history .works-table .duration {
    color: rgba(255, 255, 255, 0.42);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#history .works-table .broadcast-date {
    color: rgba(255, 255, 255, 0.96);
    font-size: 118%;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#history .works-table .duration {
    color: rgba(255, 255, 255, 0.84);
    font-size: 116%;
    font-weight: 600;
}

#history .studio-table .year-short {
    color: rgba(176, 211, 255, 0.86);
    font-size: 116%;
    font-weight: 500;
    letter-spacing: 0.04em;
}

#history .works-table .composer {
    color: rgba(176, 211, 255, 0.86);
    font-size: 108%;
    font-weight: 500;
}

#history .works-table .work-title {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Kozuka Mincho Pro', 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', serif;
    font-size: 108%;
    font-weight: 600;
    line-height: 1.7em;
}

#history .works-table .work-title .discography-link {
    border-bottom: 1px solid rgba(176, 211, 255, 0.34);
    color: inherit;
    display: inline;
    padding-bottom: 2px;
    transition: border-color 150ms ease, color 150ms ease;
}

#history .works-table .work-title .discography-link::after {
    color: rgba(176, 211, 255, 0.7);
    content: ' ↗';
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 68%;
    font-weight: 400;
}

#history .works-table .work-title .discography-link:hover,
#history .works-table .work-title .discography-link:focus-visible {
    border-color: rgba(176, 211, 255, 0.92);
    color: #d8eaff;
    padding-bottom: 2px;
}

#history .sample-status {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.5);
    display: inline-flex;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 72%;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1em;
    margin-left: 10px;
    padding: 5px 8px 4px;
    vertical-align: 0.12em;
    white-space: nowrap;
}

#history .works-table .work-title small,
#history .works-table .work-title span[lang="en"] {
    color: rgba(255, 255, 255, 0.48);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 77%;
    font-weight: 400;
    letter-spacing: 0.02em;
}

#history .works-table .period-row {
    scroll-margin-top: 24px;
}

#history .works-table .period-row th {
    background: linear-gradient(90deg, rgba(76, 116, 160, 0.22), rgba(255, 255, 255, 0.025));
    border-bottom: 1px solid rgba(176, 211, 255, 0.22);
    color: rgba(255, 255, 255, 0.82);
    font-size: 92%;
    font-weight: 400;
    letter-spacing: 0.12em;
    padding: 16px 14px;
}

#history .works-table .period-row span {
    color: rgba(176, 211, 255, 0.94);
    margin-right: 18px;
}

#history .works-table .period-row strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 124%;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-right: 12px;
}

#history .works-table .period-row small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 110%;
    letter-spacing: 0.05em;
}

#history .subsection-heading {
    color: rgba(255, 255, 255, 0.72);
    font-size: 108%;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 4px 0 18px;
}

#history .subsection-heading--second {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 56px;
    padding-top: 28px;
}

#history .works-table .cd {
    background: rgba(176, 211, 255, 0.1);
    border: 1px solid rgba(176, 211, 255, 0.2);
    border-radius: 999px;
    color: rgba(210, 231, 255, 0.9);
    display: inline-block;
    font-size: 85%;
    line-height: 1.4em;
    padding: 3px 8px;
}

#history .works-table .empty {
    color: rgba(255, 255, 255, 0.2);
}

#history .archive-legend {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding: 22px 4px 20px;
}

#history .archive-legend__title {
    color: rgba(176, 211, 255, 0.68);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 72%;
    font-weight: 600;
    letter-spacing: 0.16em;
    margin-right: 4px;
}

#history .archive-legend span {
    align-items: center;
    color: rgba(255, 255, 255, 0.64);
    display: inline-flex;
    font-size: 85%;
    gap: 9px;
}

#history .legend-mark {
    background: currentColor;
    display: inline-block;
    height: 14px;
    width: 4px;
}

#history .legend-mark--studio { color: #78a8db; }
#history .legend-mark--drama { color: #ca8b50; }
#history .legend-mark--related { color: #58a88e; }

#history .source-note {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.36);
    font-size: 77%;
    line-height: 1.8em;
    padding-top: 20px;
}
