/* Background overscan keeps edges covered during the bounded parallax drift. */
body.page-parallax-active::before {
    bottom: -72px;
    transform: translate3d(0, var(--page-parallax-y, 0px), 0);
    will-change: transform;
}
@media (max-width: 767px) {
    body.page-parallax-active::before { bottom: -32px; }
}
@media (prefers-reduced-motion: reduce) {
    body.page-parallax-active::before {
        bottom: 0;
        transform: none;
        will-change: auto;
    }
}

/* Unified Japanese headings for the four tool pages. */
.tools-sharing-page main h2.tool-body-title {
    margin: 0 0 16px;
    color: #f2f2f2;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-align: center;
}

*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #0a0a0a;
    color: #f2f2f2;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

/* Limit selection suppression to the games directory and its game pages. */
.games-page main,
.puzzle-page main {
    -webkit-user-select: none;
    user-select: none;
}

main a,
main form,
main button,
main input,
main select,
main textarea,
main output,
main [contenteditable="true"],
main [role="button"],
main [role="textbox"] {
    -webkit-user-select: text;
    user-select: text;
}

/* HEADER */

.home-page,
.biography-page,
.discography-page,
.videos-page,
.tools-page,
.links-page,
.blog-page,
.blog-article-page,
.sitemap-page {
    isolation: isolate;
}

.home-page {
    --page-background-image: url("EMJ-logo1.png");
}

.biography-page {
    --page-background-image: url("BIO%E8%83%8C%E6%99%AF.PNG");
}

.discography-page {
    --page-background-image: url("DISCO%E8%83%8C%E6%99%AF.PNG");
}

.videos-page {
    --page-background-image: url("VIDEOS%E8%83%8C%E6%99%AF.PNG");
}

.tools-page {
    --page-background-image: url("TOOL%E8%83%8C%E6%99%AF.PNG");
}

.links-page {
    --page-background-image: url("LINK%E8%83%8C%E6%99%AF.PNG");
}

.blog-page,
.blog-article-page {
    --page-background-image: url("MARKET%E8%83%8C%E6%99%AF.JPEG");
}

.sitemap-page {
    --page-background-image: url("MAP%E8%83%8C%E6%99%AF.PNG");
}

.home-page > header,
.biography-page > header,
.discography-page > header,
.videos-page > header,
.tools-page > header,
.links-page > header,
.blog-page > header,
.blog-article-page > header,
.sitemap-page > header {
    background-image: none;
}

.home-page::before,
.biography-page::before,
.discography-page::before,
.videos-page::before,
.tools-page::before,
.links-page::before,
.blog-page::before,
.blog-article-page::before,
.sitemap-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(10, 10, 10, 0.58), rgba(10, 10, 10, 0.68)),
        var(--page-background-image);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-page::before {
    background-size: 100% 100%, 100% auto;
}

@media (max-width: 767px) {
    .home-page::before,
    .biography-page::before,
    .discography-page::before,
    .videos-page::before,
    .tools-page::before,
    .links-page::before,
    .blog-page::before,
    .blog-article-page::before,
    .sitemap-page::before {
        /* Keep the overlay full-screen and start the image one sixth down. */
        background-position: center top, center 16.6667vh;
        background-position: center top, center 16.6667svh;
    }
}

header {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

header img {
    width: min(90%, 900px);
    max-height: 180px;
    height: auto;
    display: block;
    object-fit: contain;
}

header > a[aria-label="Home"] {
    display: flex;
    width: 100%;
    justify-content: center;
}

header > a[aria-label="Home"] img {
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header p {
    margin-top: 24px;
    font-size: 1rem;
    letter-spacing: 0.28em;
    color: #a8a8a8;
}

header p.site-name {
    margin-bottom: 0;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: #f2f2f2;
}

header p.site-name small {
    font-size: 0.75em;
}

/* NAVIGATION */

/* Prevent the legacy horizontal layout from flashing before menu setup. */
body.home-page:not(.site-menu-ready) > nav.site-navigation {
    display: none;
}

body.site-menu-ready > nav:not(.digital-philosophy-nav) {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1201;
    display: flex;
    width: min(360px, 80vw);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    overflow-y: auto;
    padding: 78px 28px 28px;
    background: rgba(10,10,10,.98);
    border: 0;
    box-shadow: 12px 0 36px rgba(0,0,0,.35);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .26s ease, visibility .26s;
}

body.site-menu-ready > nav:not(.digital-philosophy-nav).is-open { transform: translateX(0); visibility: visible; }
body.site-menu-ready > nav:not(.digital-philosophy-nav) a { display: block; padding: 12px 4px; border-bottom: 1px solid #333; font-size: .9rem; }
body.site-menu-ready > nav:not(.digital-philosophy-nav) .site-menu-close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border: 0; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }

.site-games-group {
    background: #111;
    border-bottom: 1px solid #333;
}
.site-games-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: bold;
    letter-spacing: .14em;
    text-align: left;
    cursor: pointer;
}
.site-games-indicator {
    color: #d7faff;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
}
.site-games-submenu {
    display: grid;
    grid-template-rows: 0fr;
    background: #1b1e20;
    transition: grid-template-rows .24s ease;
}
.site-games-group.is-expanded .site-games-submenu { grid-template-rows: 1fr; }
.site-games-submenu-content {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}
.site-games-group.is-expanded .site-games-submenu-content {
    opacity: 1;
    transform: translateY(0);
}
body.site-menu-ready > nav:not(.digital-philosophy-nav) .site-games-submenu a {
    position: relative;
    min-height: 48px;
    padding: 12px 30px 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #f2f5f6;
    font-size: .82rem;
    letter-spacing: .09em;
    transition: color .2s ease, text-shadow .2s ease, background-color .2s ease;
}
body.site-menu-ready > nav:not(.digital-philosophy-nav) .site-games-submenu a::after {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #9bdde5;
    content: "→";
    font-size: .8rem;
    transform: translateY(-50%);
}
body.site-menu-ready > nav:not(.digital-philosophy-nav) .site-games-submenu a:hover,
body.site-menu-ready > nav:not(.digital-philosophy-nav) .site-games-submenu a:focus-visible {
    background: rgba(31, 191, 210, .08);
    color: #baf8ff;
    text-shadow: 0 0 8px rgba(67, 220, 237, .42);
}
body.site-menu-ready > nav:not(.digital-philosophy-nav) .site-games-index {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #aeb8bb;
    font-size: .74rem;
}
.site-games-toggle:focus-visible {
    outline: 1px solid #55d5e4;
    outline-offset: -2px;
}

.site-menu-toggle { position: fixed; top: 18px; left: 20px; z-index: 1202; display: flex; width: 46px; height: 46px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 3px; background: rgba(10,10,10,.72); cursor: pointer; }
.site-menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; }
@media (max-width: 700px) { .site-menu-toggle { right: 20px; left: auto; } }
.site-menu-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .24s ease; }
.site-menu-backdrop.is-visible { opacity: 1; }
body.site-menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    body.site-menu-ready > nav:not(.digital-philosophy-nav),
    .site-menu-backdrop,
    .site-games-submenu,
    .site-games-submenu-content { transition-duration: .01ms; }
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;

    padding: 18px 20px;

    background-color: rgba(10, 10, 10, 0.96);

    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

nav a {
    color: #ffffff;
    text-decoration: none;

    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.14em;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #888888;
}

/* TOOL DIRECTORY */

.tools-main {
    max-width: 1000px;
    margin: 0 auto;
}

.tools-section {
    min-height: 0;
    padding: 48px 40px 64px;
}

.tools-intro {
    margin-bottom: 8px;
}

.tools-intro-japanese {
    margin: 0 0 28px;
    color: #999999;
    font-size: 0.92rem;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.tool-card {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #444444;
    background: linear-gradient(135deg, #141414, #0b0b0b 70%);
    color: #f2f2f2;
    text-decoration: none;
}

a.tool-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.tool-card:hover,
a.tool-card:focus-visible {
    border-color: #999999;
    background: #171717;
}

.tool-card-title {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.12em;
}

.tool-card-description {
    color: #cfcfcf;
}

.tool-card-japanese {
    margin-top: 8px;
    color: #999999;
    font-size: 0.88rem;
}

.tool-card-coming-soon {
    border-style: dashed;
    color: #999999;
}

/* COMPOUND INTEREST CALCULATOR */

.compound-calculator-page header h1 {
    max-width: 1000px;
    margin: 14px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
}

.compound-calculator-main {
    max-width: 1000px;
    margin: 0 auto;
}

.compound-calculator-section {
    min-height: 0;
    padding: 48px 40px 64px;
}

.compound-calculator-intro {
    margin-bottom: 30px;
}

.compound-calculator-intro h2 {
    margin-bottom: 16px;
}

.compound-calculator-intro .compound-japanese-copy,
.compound-assumption-note span,
.compound-currency-note span,
.compound-results dt span,
.compound-chart-section h3 span,
.compound-projection-section h3 span,
.compound-notes h3 span,
.compound-privacy-note span {
    color: #999999;
    font-size: 0.72em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.compound-japanese-inline {
    color: #999999;
    font-size: 0.58em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.compound-calculator-intro .compound-japanese-copy,
.compound-japanese-copy {
    margin-top: -10px;
    color: #999999;
    font-size: 0.92rem;
}

.compound-calculator-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 26px;
    border: 1px solid #444444;
    background: linear-gradient(135deg, #141414, #0b0b0b 70%);
}

.compound-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    color: #d7d7d7;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.12em;
}

.compound-field > span:first-child > span {
    display: block;
    color: #999999;
    font-size: 0.9em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.compound-input-wrap {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #555555;
    background: #090909;
    color: #bdbdbd;
    letter-spacing: normal;
}

.compound-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f2f2f2;
    font: inherit;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.compound-input-wrap input:focus-visible {
    outline: 2px solid #d5d5d5;
    outline-offset: 2px;
}

.compound-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #555555;
    border-radius: 0;
    background-color: #090909;
    color: #f2f2f2;
    color-scheme: dark;
    font: inherit;
    font-size: 0.9rem;
    letter-spacing: normal;
}

.compound-field-note {
    margin-top: -4px;
    color: #999999;
    font-size: 0.78em;
    font-weight: normal;
    letter-spacing: normal;
}

.compound-field select:focus-visible,
.compound-reset-button:focus-visible,
.compound-table-wrap:focus-visible {
    outline: 2px solid #d5d5d5;
    outline-offset: 3px;
}

.compound-assumption-note,
.compound-currency-note,
.compound-privacy-note {
    margin: 14px 0 0;
    color: #999999;
    font-size: 0.8rem;
}

.compound-error {
    margin: 18px 0 0;
    color: #f0b6b6;
    font-size: 0.9rem;
}

.compound-error:empty {
    display: none;
}

.compound-results {
    margin-top: 34px;
}

.compound-future-value {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 26px;
}

.compound-result-label,
.compound-summary-results dt {
    color: #a0a0a0;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.14em;
}

.compound-result-label span {
    margin-left: 6px;
    color: #999999;
    font-size: 0.9em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.compound-future-amount {
    color: #ffffff;
    font-size: clamp(2.6rem, 8vw, 5.5rem);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.compound-summary-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 22px 0;
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
}

.compound-summary-results div {
    min-width: 0;
}

.compound-summary-results dt {
    min-height: 2.5em;
}

.compound-summary-results dd {
    margin: 5px 0 0;
    color: #f2f2f2;
    font-size: clamp(1.05rem, 2.8vw, 1.5rem);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.compound-summary-results dt span {
    display: block;
}

.compound-chart-section,
.compound-projection-section {
    margin-top: 38px;
}

.compound-chart-section h3,
.compound-projection-section h3,
.compound-notes h3 {
    margin: 0 0 14px;
    color: #d7d7d7;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.compound-chart-section h3 span,
.compound-projection-section h3 span,
.compound-notes h3 span {
    margin-left: 5px;
}

.compound-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 10px;
    color: #bdbdbd;
    font-size: 0.78rem;
}

.compound-chart-legend i {
    display: inline-block;
    width: 16px;
    height: 3px;
    margin: 0 7px 3px 0;
    background: #a0a0a0;
}

.compound-chart-legend .compound-legend-value {
    background: #eeeeee;
}

.compound-chart-legend .compound-legend-principal {
    height: 0;
    border-top: 2px dashed #777777;
    background: transparent;
    vertical-align: middle;
}

.compound-chart-wrap {
    position: relative;
    overflow-x: auto;
    border: 1px solid #333333;
    background: #0d0d0d;
}

.compound-chart-tooltip {
    position: absolute;
    z-index: 1;
    display: grid;
    gap: 5px;
    max-width: min(320px, calc(100% - 16px));
    padding: 9px 11px;
    border: 1px solid #777777;
    background: #181818;
    color: #eeeeee;
    font-size: 0.72rem;
    pointer-events: none;
}

.compound-chart-tooltip[hidden] {
    display: none;
}

.compound-chart-tooltip-year {
    color: #bdbdbd;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.compound-chart-tooltip-value {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.compound-chart-tooltip-value strong {
    white-space: nowrap;
}

.compound-chart-wrap svg {
    display: block;
    width: 100%;
    min-width: 620px;
    height: auto;
}

.compound-chart-grid-line {
    stroke: #333333;
    stroke-width: 1;
}

.compound-chart-axis-label {
    fill: #999999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.compound-chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.compound-chart-principal-line {
    stroke: #777777;
    stroke-dasharray: 7 5;
}

.compound-chart-value-line {
    stroke: #eeeeee;
}

.compound-chart-point {
    opacity: 0;
    pointer-events: none;
}

.compound-chart-point-active {
    opacity: 1;
}

.compound-chart-point-principal {
    fill: #aaaaaa;
}

.compound-chart-point-value {
    fill: #ffffff;
}

.compound-table-wrap {
    overflow-x: auto;
    border: 1px solid #333333;
}

.compound-table-wrap table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.compound-table-wrap th,
.compound-table-wrap td {
    padding: 11px 12px;
    border-bottom: 1px solid #2c2c2c;
    text-align: right;
    white-space: nowrap;
}

.compound-table-wrap th {
    background: #151515;
    color: #bdbdbd;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.compound-table-wrap th span {
    display: block;
    color: #888888;
    font-size: 0.9em;
    font-weight: normal;
}

.compound-table-wrap th:first-child,
.compound-table-wrap td:first-child {
    text-align: left;
}

.compound-table-wrap td {
    color: #e6e6e6;
    font-size: 0.9rem;
}

.compound-table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.compound-reset-button {
    display: block;
    min-height: 46px;
    margin: 26px auto 0;
    padding: 10px 18px;
    border: 1px solid #777777;
    background: #111111;
    color: #f2f2f2;
    font: inherit;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.compound-reset-button:hover {
    background: #f2f2f2;
    color: #111111;
}

.compound-reset-button span {
    display: block;
    color: #999999;
    font-size: 0.85em;
    font-weight: normal;
}

.compound-notes {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid #333333;
}

.compound-notes h3:not(:first-child) {
    margin-top: 26px;
}

.compound-notes p {
    margin: 0 0 14px;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.compound-notes .compound-japanese-copy {
    margin-top: -9px;
    color: #888888;
    font-size: 0.82rem;
}

.compound-privacy-note {
    margin-top: 26px;
}

.compound-privacy-note span {
    display: inline-block;
    margin-top: 2px;
}

/* COUNTDOWN TO FULFILLMENT */

.life-countdown-page header {
    min-height: 38vh;
}

.life-countdown-main {
    max-width: 900px;
}

.life-countdown-section {
    min-height: 0;
    padding: 48px 40px 64px;
}

.life-countdown-intro {
    margin-bottom: 36px;
}

.life-countdown-intro h2 {
    margin-bottom: 4px;
}

.life-countdown-intro h2 span {
    display: block;
    margin: 8px 0 0;
    color: #999999;
    font-size: 0.58em;
    letter-spacing: 0.04em;
}

.life-countdown-lead {
    margin: 0 0 8px;
    color: #f2f2f2;
    font-size: 1.15rem;
    font-weight: bold;
}

.life-countdown-tagline {
    margin: 0 0 22px;
    color: #f2f2f2;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.06em;
}

.life-countdown-copy p {
    margin: 0 0 14px;
    color: #cfcfcf;
    font-size: 1rem;
}

.life-countdown-copy .life-countdown-japanese {
    margin-top: -8px;
    font-size: 0.92rem;
}

.life-countdown-copy .life-countdown-closing {
    margin-top: 20px;
}

.life-countdown-copy .life-countdown-japanese.life-countdown-closing {
    margin-top: -8px;
}

.life-countdown-privacy {
    margin: 14px 0 0;
    color: #999999;
    font-size: 0.8rem;
}

.countdown-leap-note {
    margin: 10px 0 0;
    color: #888888;
    font-size: 0.75rem;
    letter-spacing: normal;
}

.life-countdown-form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr);
    gap: 22px 28px;
    align-items: end;
    padding: 28px;
    border: 1px solid #444444;
    background: linear-gradient(135deg, #141414, #0b0b0b 70%);
}

.countdown-field-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.countdown-field-group legend,
.countdown-field-group label {
    color: #d7d7d7;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.14em;
}

.countdown-japanese-label {
    display: block;
    margin-top: 2px;
    color: #999999;
    font-size: 0.78em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.countdown-date-inputs {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.8fr;
    gap: 10px;
    margin-top: 10px;
}

.countdown-date-inputs label,
.target-age-group label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.countdown-date-inputs select,
.target-age-group input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #555555;
    border-radius: 0;
    background-color: #090909;
    color: #f2f2f2;
    font: inherit;
    letter-spacing: normal;
}

.countdown-date-inputs select:disabled {
    color: #777777;
}

.countdown-date-inputs select:focus-visible,
.target-age-group input:focus-visible,
.countdown-calculate-button:focus-visible {
    outline: 2px solid #d5d5d5;
    outline-offset: 3px;
}

.target-age-group input {
    margin-top: 10px;
    font-size: 1.2rem;
}

.countdown-calculate-button {
    min-height: 50px;
    grid-column: 1 / -1;
}

.compound-field-currency {
    grid-column: 1 / -1;
    padding: 12px 20px;
    border: 1px solid #bcbcbc;
    background: #d8d8d8;
    color: #101010;
    font: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.countdown-calculate-button:hover {
    background: #ffffff;
}

.countdown-calculate-button span {
    display: block;
    font-size: 0.78em;
    font-weight: normal;
    letter-spacing: 0.08em;
}

.countdown-form-message {
    display: none;
    grid-column: 1 / -1;
    margin: -8px 0 0;
    color: #f0b6b6;
    font-size: 0.9rem;
}

.countdown-form-message:not(:empty) {
    display: block;
}

.countdown-results {
    margin-top: 48px;
}

.countdown-from-today {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-left: 2px solid #777777;
    background: #111111;
}

.countdown-from-today p {
    margin: 8px 0 0;
    color: #cfcfcf;
    font-size: 0.9rem;
}

.countdown-from-today p span {
    color: #999999;
    font-size: 0.92em;
}

.countdown-result-message {
    min-height: 1.7em;
    margin: 0 0 26px;
    color: #bdbdbd;
}

.countdown-target-date {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid #333333;
}

.countdown-target-date output {
    color: #f2f2f2;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.countdown-current-age {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 34px;
}

.countdown-label,
.countdown-secondary-results dt {
    color: #a0a0a0;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.countdown-japanese-inline {
    margin-left: 6px;
    color: #999999;
    font-size: 0.88em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.countdown-age-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: bold;
    letter-spacing: 0.06em;
}

.countdown-unit {
    display: inline-block;
    color: #a0a0a0;
    font-size: 0.52em;
    font-weight: normal;
    letter-spacing: 0.08em;
    line-height: 1.2;
    vertical-align: baseline;
}

.countdown-progress {
    margin-bottom: 26px;
}

.countdown-progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}

.countdown-percentage {
    color: #eeeeee;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.countdown-progress-track {
    position: relative;
    height: 14px;
    overflow: hidden;
    border: 1px solid #555555;
    background: #191919;
}

.countdown-progress-track::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, transparent calc(100% - 1px), rgba(255, 255, 255, 0.2) 1px);
    background-size: 10% 100%;
    content: "";
    pointer-events: none;
}

.countdown-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #666666, #dedede);
    transition: width 600ms ease;
}

.countdown-days {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 0 30px;
}

.countdown-days-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #ffffff;
    font-size: clamp(4rem, 13vw, 8.5rem);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.countdown-days-value .countdown-unit {
    margin-bottom: 0.14em;
    font-size: 0.2em;
    letter-spacing: 0.12em;
}

.countdown-secondary-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 24px 0;
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
}

.countdown-secondary-results div {
    min-width: 0;
}

.countdown-secondary-results dt {
    min-height: 2.5em;
}

.countdown-secondary-results dd {
    margin: 6px 0 0;
    color: #f2f2f2;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.countdown-secondary-results .countdown-unit {
    margin-left: 5px;
    font-size: 0.55em;
}

.countdown-calendar-time {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.countdown-time-join {
    color: #a0a0a0;
    font-size: 0.75em;
    font-weight: normal;
}

.countdown-rounding-note {
    margin: 16px 0 0;
    color: #888888;
    font-size: 0.75rem;
}

.countdown-rounding-note span,
.countdown-leap-note span,
.life-countdown-privacy span {
    font-size: 0.92em;
}

.countdown-closing-line {
    margin: 34px 0 0;
    color: #a8a8a8;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: center;
}

.countdown-closing-line span {
    display: block;
    margin-top: 4px;
    font-size: 0.88em;
    font-weight: normal;
    letter-spacing: 0.08em;
}

@media (max-width: 700px) {
    .compound-calculator-page header h1 {
        font-size: clamp(1.3rem, 6vw, 2rem);
        letter-spacing: 0.08em;
    }

    .compound-calculator-section {
        padding: 42px 20px 48px;
    }

    .compound-calculator-form {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
    }

    .compound-summary-results {
        gap: 14px 10px;
    }

    .compound-summary-results dt {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }

    .compound-chart-section,
    .compound-projection-section {
        margin-top: 30px;
    }

    .tools-section {
        padding: 42px 20px 48px;
    }

    .life-countdown-page header {
        min-height: auto;
    }

    .life-countdown-section {
        padding: 42px 20px 48px;
    }

    .life-countdown-form {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 20px 16px;
    }

    .countdown-calculate-button,
    .countdown-form-message {
        grid-column: 1;
    }

    .countdown-results {
        margin-top: 38px;
    }

    .countdown-days-value {
        font-size: clamp(3.5rem, 17vw, 6rem);
    }

    .countdown-secondary-results {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .countdown-calendar-time {
        gap: 10px;
    }

    .countdown-secondary-results dt {
        font-size: 0.65rem;
        letter-spacing: 0.08em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .countdown-progress-fill,
    .countdown-calculate-button {
        transition: none;
    }
}

/* JAPANESE ERA CONVERTER */

.japanese-era-converter-page header h1 {
    max-width: 1000px;
    margin: 14px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
}

.japanese-era-converter-main {
    max-width: 1000px;
    margin: 0 auto;
}

.japanese-era-converter-section {
    min-height: 0;
    padding: 48px 40px 64px;
}

.era-converter-intro {
    margin-bottom: 30px;
}

.era-converter-intro h2 {
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.era-converter-intro h2 span,
.era-converter-panels h3 span,
.era-converter-note h3 span {
    margin-left: 8px;
    color: #999999;
    font-size: 0.58em;
    letter-spacing: 0.04em;
}

.era-converter-intro h2 span {
    display: block;
    margin: 8px 0 0;
}

.era-converter-japanese {
    margin-top: -10px;
    color: #999999;
    font-size: 0.92rem;
}

.era-converter-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.era-converter-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 24px;
    border: 1px solid #444444;
    background: linear-gradient(135deg, #141414, #0b0b0b 70%);
}

.era-converter-panel h3,
.era-converter-note h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.09em;
}

.era-converter-panel h3 span,
.era-converter-note h3 span {
    display: block;
    margin: 3px 0 0;
}

.era-converter-field {
    display: grid;
    gap: 8px;
    color: #cfcfcf;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.era-converter-field input,
.era-converter-field select {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #666666;
    border-radius: 0;
    background-color: #0a0a0a;
    color: #f2f2f2;
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.era-converter-field input:focus-visible,
.era-converter-field select:focus-visible,
.era-converter-copy:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 3px;
}

.era-converter-field input[aria-invalid="true"],
.era-converter-field select[aria-invalid="true"] {
    border-color: #e08080;
}

.era-converter-result {
    min-height: 112px;
    padding: 14px 0;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.era-converter-result-label {
    display: block;
    margin-bottom: 8px;
    color: #999999;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.14em;
}

.era-converter-result-label span {
    letter-spacing: 0.04em;
}

.era-converter-result output {
    display: block;
    color: #f2f2f2;
    font-size: 1.08rem;
    font-weight: bold;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.era-converter-error {
    min-height: 0;
    margin: -10px 0 0;
    color: #f0a0a0;
    font-size: 0.85rem;
    white-space: pre-line;
}

.era-converter-error:empty {
    display: none;
}

.era-converter-copy {
    align-self: flex-start;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #777777;
    background-color: #171717;
    color: #f2f2f2;
    font: inherit;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.era-converter-copy span {
    margin-left: 4px;
    color: #aaaaaa;
    font-size: 0.9em;
    letter-spacing: 0.03em;
}

.era-converter-copy:hover:not(:disabled) {
    border-color: #ffffff;
    background-color: #242424;
}

.era-converter-copy:disabled {
    color: #777777;
    cursor: not-allowed;
}

.era-converter-copy-status {
    min-height: 1.5em;
    margin: -14px 0 0;
    color: #b8d8b8;
    font-size: 0.85rem;
}

.era-converter-note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333333;
}

.era-converter-note p {
    margin: 12px 0;
}

.era-converter-note p[lang="ja"],
.era-converter-note li {
    color: #999999;
    font-size: 0.9rem;
}

.era-converter-note ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 4px 20px;
    margin: 16px 0 0;
    padding-left: 22px;
}

.era-converter-copy-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 700px) {
    .japanese-era-converter-page header {
        min-height: auto;
        padding: 42px 20px;
    }

    .japanese-era-converter-page header h1 {
        font-size: clamp(1.3rem, 6vw, 2rem);
        letter-spacing: 0.08em;
    }

    .japanese-era-converter-section {
        padding: 42px 20px 48px;
    }

    .era-converter-panels {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .era-converter-panel {
        padding: 20px 16px;
    }
}

/* LOAN INTEREST CALCULATOR */

.loan-calculator-page header h1 {
    max-width: 1000px;
    margin: 14px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
}

.loan-calculator-main {
    max-width: 1000px;
    margin: 0 auto;
}

.loan-calculator-section {
    min-height: 0;
    padding: 48px 40px 64px;
}

.loan-calculator-intro {
    margin-bottom: 30px;
}

.loan-calculator-intro h2 {
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

.loan-calculator-intro h2 span,
.loan-schedule-heading h3 span,
.loan-notes h3 span {
    margin-left: 8px;
    color: #999999;
    font-size: 0.58em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.loan-calculator-intro h2 span {
    display: block;
    margin: 8px 0 0;
}

.loan-japanese-copy {
    margin-top: -10px;
    color: #999999;
    font-size: 0.92rem;
}

.loan-calculator-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 26px;
    border: 1px solid #444444;
    background: linear-gradient(135deg, #141414, #0b0b0b 70%);
}

.loan-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    color: #d7d7d7;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.loan-field-wide,
.loan-form-actions {
    grid-column: 1 / -1;
}

.loan-field > span:first-child > span {
    display: block;
    color: #999999;
    font-size: 0.9em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.loan-input-wrap {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #555555;
    background: #090909;
    color: #bdbdbd;
    letter-spacing: normal;
}

.loan-input-wrap input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f2f2f2;
    font: inherit;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.loan-input-wrap input:focus-visible,
.loan-field > input[type="date"]:focus-visible,
.loan-field select:focus-visible,
.loan-reset-button:focus-visible,
.loan-download-button:focus-visible,
.loan-table-wrap:focus-visible {
    outline: 2px solid #d5d5d5;
    outline-offset: 3px;
}

.loan-field > input[type="date"],
.loan-field select {
    width: 100%;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid #555555;
    border-radius: 0;
    background-color: #090909;
    color: #f2f2f2;
    color-scheme: dark;
    font: inherit;
    font-size: 0.92rem;
    letter-spacing: normal;
}

.loan-field-note {
    margin-top: -4px;
    color: #999999;
    font-size: 0.78em;
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1.6;
}

.loan-field-note span {
    color: #888888;
}

.loan-form-actions {
    display: flex;
    justify-content: flex-end;
}

.loan-reset-button,
.loan-download-button {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #777777;
    background-color: #171717;
    color: #f2f2f2;
    font: inherit;
    font-size: 0.76rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.loan-reset-button span,
.loan-download-button span {
    margin-left: 4px;
    color: #aaaaaa;
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

.loan-reset-button:hover,
.loan-download-button:hover:not(:disabled) {
    border-color: #ffffff;
    background-color: #242424;
}

.loan-download-button:disabled {
    color: #777777;
    cursor: not-allowed;
}

.loan-error {
    margin: 18px 0 0;
    color: #f0b6b6;
    font-size: 0.9rem;
    white-space: pre-line;
}

.loan-error:empty {
    display: none;
}

.loan-results,
.loan-schedule-section,
.loan-notes {
    min-height: 0;
    padding: 0;
    border-bottom: 0;
}

.loan-results {
    margin-top: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid #333333;
}

.loan-summary-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.loan-summary-results > div {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid #383838;
    background: linear-gradient(135deg, #121212, #0b0b0b);
}

.loan-summary-results > .loan-summary-highlight {
    grid-column: span 3;
    padding: 22px;
    border-color: #555555;
}

.loan-summary-results dt {
    color: #a0a0a0;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
}

.loan-summary-results dt span {
    display: block;
    margin-top: 3px;
    color: #888888;
    font-size: 0.9em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

.loan-summary-results dd {
    margin: 10px 0 0;
    color: #f2f2f2;
    font-size: 1.15rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.loan-summary-highlight dd {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.loan-summary-results .loan-summary-highlight + .loan-summary-highlight {
    margin-top: -8px;
}

.loan-method-summary {
    margin: 18px 0 0;
    color: #999999;
    font-size: 0.86rem;
}

.loan-schedule-section {
    margin-top: 36px;
}

.loan-schedule-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.loan-schedule-heading h3,
.loan-notes h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.12em;
}

.loan-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #3c3c3c;
    overscroll-behavior-inline: contain;
}

.loan-schedule-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.loan-schedule-table th,
.loan-schedule-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #333333;
    text-align: right;
    white-space: nowrap;
}

.loan-schedule-table th {
    background-color: #141414;
    color: #b5b5b5;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.loan-schedule-table th span {
    display: block;
    color: #888888;
    font-size: 0.9em;
    font-weight: normal;
    letter-spacing: 0;
}

.loan-schedule-table td {
    color: #dedede;
    font-size: 0.86rem;
}

.loan-schedule-table th:first-child,
.loan-schedule-table td:first-child,
.loan-schedule-table th:nth-child(2),
.loan-schedule-table td:nth-child(2) {
    text-align: left;
}

.loan-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.loan-notes {
    display: grid;
    gap: 12px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid #333333;
}

.loan-notes h3:not(:first-child) {
    margin-top: 16px;
}

.loan-notes p {
    margin: 0;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.loan-notes p[lang="ja"],
.loan-privacy-note {
    color: #999999;
    font-size: 0.84rem;
}

.loan-related-tool,
.compound-related-tool {
    margin: 26px 0 0;
    text-align: center;
}

.loan-related-tool a,
.compound-related-tool a {
    color: #cfcfcf;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.loan-related-tool a span,
.compound-related-tool a span {
    color: #999999;
    font-size: 0.92em;
    font-weight: normal;
    letter-spacing: 0.02em;
}

@media (max-width: 700px) {
    .loan-calculator-page header {
        min-height: auto;
        padding: 42px 20px;
    }

    .loan-calculator-page header h1 {
        font-size: clamp(1.3rem, 6vw, 2rem);
        letter-spacing: 0.08em;
    }

    .loan-calculator-section {
        padding: 42px 20px 48px;
    }

    .loan-calculator-form {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 16px;
    }

    .loan-field-wide,
    .loan-form-actions {
        grid-column: 1;
    }

    .loan-summary-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .loan-summary-results > .loan-summary-highlight {
        grid-column: span 2;
        padding: 18px;
    }

    .loan-summary-results > div {
        padding: 14px 12px;
    }

    .loan-summary-results dt {
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    .loan-summary-results dd {
        font-size: 1rem;
    }

    .loan-summary-highlight dd {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }

    .loan-schedule-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* MAIN */

main {
    max-width: 1100px;
    margin: 0 auto;
}

/* SECTIONS */

section {
    min-height: 45vh;
    padding: 5px 40px;

    border-bottom: 1px solid #2c2c2c;
}

section h2 {
    margin: 0 0 30px;

    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.15em;
}

.biography-page header h1,
.biography-page section h2 {
    font-size: 2rem;
}

.videos-page .video-promo-heading {
    margin: 0 0 8px;
    color: #d7d7d7;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-align: left;
}

.videos-page .video-promo-description {
    max-width: 700px;
    margin: 0 0 20px;
    color: #cfcfcf;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

section p {
    max-width: 700px;
    color: #cfcfcf;
}

.apostrophe-note {
    padding: 0 40px 24px;
    color: #777777;
    font-size: 0.72rem;
    line-height: 1.5;
}

.apostrophe-note p {
    max-width: 900px;
    margin: 8px 0;
}

/* LINKS */

section a {
    color: #ffffff;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-decoration: none;
}

section a:hover {
    color: #888888;
}

/* FOOTER */

footer {
    padding: 50px 20px;

    text-align: center;

    color: #666666;
    font-size: 0.8rem;
}

footer .footer-sitemap {
    margin: 14px 0 0;
}

footer .footer-sitemap a {
    color: #999999;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-decoration: none;
}

footer .footer-sitemap a:hover,
footer .footer-sitemap a:focus-visible {
    color: #ffffff;
}

/* PROFILE ARTWORK */

.profile-artwork {
    width: 280px;
    height: 280px;
    object-fit: cover;
    display: block;
    margin: 0 auto 30px;
}

.biography-page .profile-artwork {
    border-radius: 50%;
    background: transparent;
}

.biography-page .biography-artwork-flipper {
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.biography-page .biography-artwork-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.biography-page.biography-switcher-ready .biography-artwork-card {
    transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

.biography-page .biography-artwork-card.is-creator {
    transform: rotateY(180deg);
}

.biography-page .biography-artwork-card .profile-artwork {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.biography-page .biography-artwork-back {
    transform: rotateY(180deg);
}

.biography-page .biography-switcher {
    padding: 5px 40px 0;
}

.biography-page .biography-switch-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 700px;
    min-height: 52px;
    margin: -22px auto 18px;
    padding: 0 40px;
}

.biography-page.biography-switcher-ready .biography-switch-controls {
    display: flex;
}

.biography-page .biography-switch-control,
.biography-page .biography-switch-control[hidden] {
    display: none;
}

.biography-page.biography-switcher-ready .biography-switch-controls .biography-switch-control:not([hidden]) {
    display: inline-flex;
}

.biography-page .biography-switch-control {
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: #85898c;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease;
}

.biography-page .biography-switch-control--next:not([hidden]) {
    margin-left: auto;
}

.biography-page .biography-switch-control:hover,
.biography-page .biography-switch-control:focus-visible {
    color: #d7e5ea;
}

.biography-page .biography-switch-control:focus-visible {
    outline: 1px solid #879ba3;
    outline-offset: 4px;
}

.biography-page .biography-switch-control span {
    display: inline-block;
    transition: transform 180ms ease;
}

.biography-page .biography-switch-control--next:hover span,
.biography-page .biography-switch-control--next:focus-visible span {
    transform: translateX(4px);
}

.biography-page .biography-switch-control--previous:hover span,
.biography-page .biography-switch-control--previous:focus-visible span {
    transform: translateX(-4px);
}

.biography-page .biography-panels {
    position: relative;
}

.biography-page .biography-panel[hidden] {
    display: none;
}

.biography-page .biography-panel.is-moving {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
}

.biography-page .biography-panel.is-entering,
.biography-page .biography-panel.is-exiting {
    transition: opacity 280ms ease, transform 280ms ease;
}

.biography-page .biography-panel.is-entering {
    opacity: 0;
}

.biography-page .biography-panel.is-entering[data-direction="forward"] {
    transform: translateX(20px);
}

.biography-page .biography-panel.is-entering[data-direction="backward"] {
    transform: translateX(-20px);
}

.biography-page .biography-panel.is-exiting {
    opacity: 0;
}

.biography-page .biography-panel.is-exiting[data-direction="forward"] {
    transform: translateX(-20px);
}

.biography-page .biography-panel.is-exiting[data-direction="backward"] {
    transform: translateX(20px);
}

.biography-page .biography-panels.is-transitioning {
    overflow: hidden;
    transition: height 280ms ease;
}

@media (max-width: 700px) {
    .biography-page .biography-switcher {
        padding-top: var(--mobile-line-space, 1.7rem);
    }

    .biography-page .biography-switch-controls {
        margin-top: -22px;
        margin-bottom: 12px;
        padding-right: 25px;
        padding-left: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .biography-page .biography-switch-control,
    .biography-page .biography-switch-control span,
    .biography-page .biography-panel.is-entering,
    .biography-page .biography-panel.is-exiting,
    .biography-page .biography-panels.is-transitioning,
    .biography-page.biography-switcher-ready .biography-artwork-card {
        transition: none;
    }
}

/* ALBUM LIST */

article {
    padding: 50px 0;
    border-bottom: 1px solid #333;
}

article:first-of-type {
    padding-top: 20px;
}

article:last-of-type {
    border-bottom: none;
}

/* ALBUM COVERS */

article img {
    width: 280px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Return links on discography and tool detail pages. */
.detail-back-row {
    display: flex;
    justify-content: center;
    padding: 20px 16px 12px;
}

.detail-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid #50555a;
    border-radius: 3px;
    background: linear-gradient(#292c2f, #121315);
    color: #cfd2d5;
    font-size: .72rem;
    font-weight: bold;
    letter-spacing: .14em;
    text-decoration: none;
}

.detail-back-button:hover {
    color: #fff;
    border-color: #a2acb4;
}

.detail-back-button:focus-visible {
    outline: 2px solid #b4e7f7;
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .detail-back-row .detail-back-button,
    .detail-back-row .detail-back-button:visited,
    .detail-back-row .detail-back-button:hover,
    .detail-back-row .detail-back-button:active {
        color: #fff;
        font-size: .85rem;
        font-weight: normal;
        border: 0;
        background: none;
    }
}

/* INTERACTIVE STUDIO ALBUMS */

.studio-albums-page .studio-album-display {
    min-width: 0;
    width: 100%;
}

.studio-albums-page .studio-album-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 1.7em;
}

.studio-albums-page .studio-album-controls button {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #c9cdd0;
    font: 600 .75rem/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: .1em;
    cursor: pointer;
}

.studio-albums-page .studio-album-controls button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.studio-albums-page .studio-album-controls button:focus-visible { outline: 2px solid #b4e7f7; outline-offset: 2px; }

@media (min-width: 900px) {
    .studio-albums-page .studio-album-display { grid-column: 1; }
}

@media (max-width: 760px) {
    .studio-albums-page .studio-album-controls { margin-top: 1em; margin-bottom: 8px; gap: 20px; }
}

.studio-albums-page .studio-album-experience {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    margin: 20px 0 44px;
}

.studio-albums-page .studio-album-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: clamp(340px, 38vw, 500px);
    margin-inline: auto;
    perspective: 1100px;
    touch-action: pan-y;
    cursor: grab;
    outline-offset: 5px;
}

.studio-albums-page .studio-album-carousel:active {
    cursor: grabbing;
}

.studio-albums-page .studio-album-ring {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(-8deg) rotateZ(-4deg);
}

.studio-albums-page .studio-album-ring.is-moving .studio-album-card {
    transition: none;
}

.studio-albums-page .studio-album-card {
    position: absolute;
    top: 38%;
    left: 50%;
    width: clamp(130px, 16vw, 200px);
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: #111;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.56);
    transform: translate(-50%, -50%) rotateY(var(--album-angle)) translateZ(clamp(300px, 36vw, 470px)) scale(var(--album-scale, 0.72));
    opacity: var(--album-opacity, 0.55);
    transition: transform 580ms cubic-bezier(.2,.7,.2,1), opacity 420ms ease, border-color 200ms ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.studio-albums-page .studio-album-card.is-selected {
    border-color: rgba(255, 255, 255, 0.9);
}

.studio-albums-page .studio-album-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.studio-albums-page .studio-album-card img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    pointer-events: none;
}

.studio-albums-page .studio-album-information {
    min-width: 0;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
    padding: 14px 18px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.68);
    text-align: center;
}

.studio-albums-page .studio-album-release {
    margin: 0 0 4px;
    color: #aaa;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.studio-albums-page .studio-album-information h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    letter-spacing: 0.08em;
    line-height: 1.25;
}

.studio-albums-page .studio-album-information h4 {
    margin: 0 0 8px;
    color: #aaa;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

.studio-albums-page .studio-album-tracklist {
    display: grid;
    gap: 3px;
    width: 100%;
    max-width: none;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    color: #dedede;
    font-size: clamp(0.78rem, 1.05vw, 0.94rem);
    line-height: 1.55;
    text-align: left;
}

.studio-albums-page .studio-album-tracklist li {
    display: grid;
    grid-template-columns: 2.5ch minmax(0, 1fr);
    gap: 0.65em;
}

.studio-albums-page .studio-track-number {
    color: #999;
    font-variant-numeric: tabular-nums;
}

.studio-albums-page article[hidden] {
    display: none;
}

@media (min-width: 900px) {
    .studio-albums-page .studio-album-experience {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
        column-gap: clamp(20px, 3vw, 48px);
        align-items: center;
    }

    .studio-albums-page .studio-album-information {
        position: relative;
        z-index: 2;
        grid-column: 2;
    }

    .studio-albums-page .studio-album-carousel {
        grid-column: 1;
    }

    .studio-albums-page .studio-album-tracklist {
        margin-top: 14px;
    }
}

@media (max-width: 760px) {
    .studio-albums-page > header {
        min-height: auto;
        padding-bottom: 0;
    }

    .studio-albums-page > header > p:last-child {
        margin-bottom: 0;
    }

    .studio-albums-page > main > section:first-child {
        padding-top: 0;
    }

    .studio-albums-page .studio-album-experience {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 0;
    }

    .studio-albums-page .studio-album-carousel {
        height: clamp(210px, 59vw, 340px);
    }

    .studio-albums-page .studio-album-card {
        top: 50%;
    }

    .studio-albums-page .studio-album-card {
        width: clamp(112px, 29vw, 150px);
        transform: translate(-50%, -50%) rotateY(var(--album-angle)) translateZ(56vw) scale(var(--album-scale, 0.72));
    }

    .studio-albums-page .studio-album-information {
        max-width: 560px;
        padding-top: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-albums-page .studio-album-card {
        transition-duration: 0.01ms;
    }
}

/* Each rendered line enters once as it scrolls into view. */
.biography-page .biography-reveal,
.home-page .digital-philosophy .biography-reveal {
    position: relative;
    top: 8px;
    opacity: 0;
    transition: opacity 800ms ease-out, top 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.biography-page .biography-reveal.is-visible,
.home-page .digital-philosophy .biography-reveal.is-visible {
    opacity: 1;
    top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .biography-page .biography-reveal,
    .home-page .digital-philosophy .biography-reveal {
        opacity: 1;
        top: 0;
        transition: none;
    }
}

/* SMARTPHONE */

@media (max-width: 700px) {

header {
    min-height: auto;
    padding: 40px 20px 15px;
}

    header h1 {
        font-size: 2.2rem;
    }

    .biography-page header h1,
    .biography-page section h2 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 0.8rem;
        letter-spacing: 0.18em;
    }

    header p.site-name small {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header p.site-name small span {
        white-space: nowrap;
    }

    header p.site-name + p {
        margin-top: 12px;
    }

    nav {
        gap: 16px;
        padding: 15px 12px;
    }

    nav a {
        font-size: 0.75rem;
    }

    section {
        padding: 80px 25px;
    }

        .music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .compilation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collaboration-grid {
        grid-template-columns: 1fr;
    }

}

/* HOME ALBUM GRID */

.album-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 40px 0;
}

.album-grid-click-entry {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    text-align: center;
}

.album-grid a {
    display: block;
}

.album-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.album-grid img:hover {
    opacity: 0.7;
}

/* TODAY'S TRACK */

.todays-track {
    max-width: 760px;
    margin: 54px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.todays-track h2 {
    margin: 0 0 16px;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    letter-spacing: 0.12em;
}

.todays-track h2 span {
    margin-left: 8px;
    color: #999999;
    font-size: 0.7em;
    letter-spacing: 0.04em;
}

.todays-track-status {
    margin: 0;
    color: #b8b8b8;
    font-size: 0.9rem;
}

.todays-track-link {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.todays-track-link[hidden] {
    display: none;
}

.todays-track-link:hover,
.todays-track-link:focus-visible {
    border-color: #999999;
    background: rgba(255, 255, 255, 0.04);
}

.todays-track-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.todays-track-title {
    color: #f2f2f2;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .todays-track {
        margin-top: 38px;
    }

    .todays-track-link {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* LATEST RELEASE */

.latest-release-image {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 0 25px;
}

/* HOME ABOUT LOGO */

.about-logo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 0 25px;
}

/* MUSIC PAGE GRID */

.music-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 40px 0;
}

.music-grid a {
    display: block;
}

.music-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.music-grid img:hover {
    opacity: 0.7;
}


/* HOME SECTION */

/* A separate, document-scrolling layer below the header copy. */
.home-page > header {
    position: relative;
    min-height: 70vh;
    min-height: 70svh;
    padding-bottom: 116px;
}

.home-page > header > .home-scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 50%;
    display: flex;
    width: 64px;
    min-height: 80px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transform: translateX(-50%);
    color: #ff8ae7;
    text-shadow: 0 0 4px #ff39d4, 0 0 9px #b52aff99;
    text-decoration: none;
    transition: opacity .35s ease, visibility .35s;
    -webkit-tap-highlight-color: transparent;
}

.home-scroll-cue svg {
    width: 36px;
    height: 48px;
    overflow: visible;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 2px #ff4edb) drop-shadow(0 0 6px #b52aff99);
}

.home-scroll-cue span {
    font-size: .56rem;
    font-weight: bold;
    letter-spacing: .22em;
    padding-left: .22em;
}

.home-scroll-tube { stroke: #ff8ae7; stroke-width: 2.2; }
.home-scroll-light {
    stroke: #ce85ff;
    stroke-width: 3;
    filter: drop-shadow(0 0 3px #b52aff);
    stroke-dasharray: 24 176;
    stroke-dashoffset: 24;
    opacity: 0;
    animation: home-scroll-flow 3.2s linear infinite;
}
.home-scroll-light--core {
    stroke: #f6dfff;
    stroke-width: 2;
    stroke-dasharray: 5 195;
    animation-name: home-scroll-core;
}
.home-scroll-light--head { animation-name: home-scroll-tip; }

@keyframes home-scroll-flow {
    0%, 8% { stroke-dashoffset: 24; opacity: 0; }
    14% { opacity: .85; }
    52% { stroke-dashoffset: -100; opacity: 1; }
    62%, 100% { stroke-dashoffset: -125; opacity: 0; }
}

@keyframes home-scroll-tip {
    0%, 38% { stroke-dashoffset: 24; opacity: 0; }
    44% { opacity: .9; }
    64% { stroke-dashoffset: -100; opacity: 1; }
    74%, 100% { stroke-dashoffset: -125; opacity: 0; }
}

@keyframes home-scroll-core {
    0%, 8% { stroke-dashoffset: 5; opacity: 0; }
    14% { opacity: .9; }
    52% { stroke-dashoffset: -119; opacity: 1; }
    62%, 100% { stroke-dashoffset: -144; opacity: 0; }
}

.home-page > header > .home-scroll-cue:hover { color: #f0baff; }
.home-scroll-cue:focus-visible { outline: 2px solid #ce85ff; outline-offset: 4px; border-radius: 4px; }
.home-page > header > .home-scroll-cue.is-dismissed,
.site-menu-open .home-scroll-cue { opacity: 0; visibility: hidden; pointer-events: none; }
.home-scroll-cue.is-dismissed .home-scroll-light { animation-play-state: paused; }
.home-page #home-mission { scroll-margin-top: 24px; }

@media (max-width: 700px) {
    .home-page > header {
        min-height: 0;
    }
    .home-page > header > .home-scroll-cue {
        bottom: 2px;
        min-height: 60px;
        gap: 0;
    }
    .home-scroll-cue svg {
        width: 32px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.home-scroll-cue) { scroll-behavior: auto; }
    .home-scroll-light { animation: none; opacity: 0; }
    .home-page > header > .home-scroll-cue { transition: none; }
}

.home-page .visions-entry {
    margin: 0 auto 102px;
    text-align: center;
}

.home-page .visions-click-hint {
    display: block;
    margin-bottom: 5px;
    color: #c1aa85;
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0.18em;
    animation: visions-click-blink 3.0s ease-in-out infinite;
}

.home-page .visions-entry a {
    display: inline-block;
    font-size: clamp(1.3rem, 2.7vw, 1.7rem);
}

.home-page .visions-description {
    margin-top: 6px;
    color: #c1c1c1;
    line-height: 1.5;
    text-align: center;
}

.home-page .visions-description p {
    max-width: none;
    margin: 0;
}

.home-page .visions-description p + p {
    margin-top: 2px;
}

.home-page .visions-description-en {
    color: #999;
    font-size: 0.82rem;
}

@keyframes visions-click-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .visions-click-hint {
        animation: none;
    }
}

.home-section {
    border-bottom: 1px solid #2c2c2c;
}

.home-mission {
    min-height: 45vh;
    display: grid;
    place-items: center;
    padding: clamp(44px, 7vw, 84px) 28px;
    text-align: center;
}

.home-page .home-mission {
    min-height: auto;
    padding: 0 28px;
}

.home-mission-content {
    width: min(100%, 900px);
    padding: clamp(28px, 5vw, 52px);
}

.home-mission-label {
    margin: 0 auto 8px;
    color: #c1aa85;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.3em;
}

.home-slogan {
    margin: 0 0 34px;
    color: #fff;
    font-size: clamp(2.1rem, 6.4vw, 5.2rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0.035em;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}

.home-mission-ja {
    margin: 0 auto 2px;
    color: #fff;
    font-size: clamp(1.15rem, 3vw, 1.8rem);
    font-weight: bold;
    line-height: 1.6;
    text-shadow: 0 2px 10px #000;
}

.home-page .mission-slide-pending {
    opacity: 0;
    transform: translateX(-56px);
}

.home-page .mission-slide-visible {
    animation: mission-slide-in 1.1s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes mission-slide-in {
    from { opacity: 0; transform: translateX(-56px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .mission-slide-pending,
    .home-page .mission-slide-visible {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.home-mission-en {
    margin: 0 auto;
    color: #d0d0d0;
    font-size: clamp(0.88rem, 1.8vw, 1.05rem);
    line-height: 1.5;
    text-shadow: 0 2px 8px #000;
}

@media (max-width: 520px) {
    .home-mission {
        min-height: 40vh;
        padding: 36px 18px;
    }

    .home-page .home-mission {
        min-height: auto;
        padding: 0 18px;
    }

    .home-mission-content {
        padding: 28px 18px;
    }

    .home-page .home-mission-content {
        padding: 48px 18px 28px;
    }

    .desktop-break {
        display: none;
    }
}

/* Smartphone spacing: one body-text line on either side of dividers. */
@media (max-width: 700px) {
    body:is(.home-page, .biography-page, .discography-page, .videos-page, .blog-page, .blog-article-page) {
        --mobile-line-space: 1.7rem;
    }

    :is(.home-page, .biography-page, .discography-page, .videos-page, .blog-page, .blog-article-page) > header {
        padding-bottom: 0;
    }

    .home-page > header {
        padding-bottom: 68px;
    }

    .home-page > header > p:nth-last-child(2) {
        margin-bottom: 0;
    }

    :is(.home-page, .biography-page, .discography-page, .videos-page, .blog-page, .blog-article-page) > header > p:last-child {
        margin-bottom: 0;
    }

    :is(.home-page, .biography-page, .discography-page, .videos-page, .blog-page, .blog-article-page) > main > section:first-child {
        padding-top: var(--mobile-line-space);
    }

    .blog-page > main > section:first-child > p:first-child,
    .videos-page > main > section:first-child > h3:first-child {
        margin-top: 0;
    }

    .home-page .home-mission-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .home-page .home-mission {
        padding-top: 8px;
        padding-bottom: var(--mobile-line-space);
    }

    .home-page .home-mission + .home-section {
        padding-top: var(--mobile-line-space);
        padding-bottom: var(--mobile-line-space);
    }

    .home-page .visions-entry {
        margin-bottom: var(--mobile-line-space);
        padding-bottom: var(--mobile-line-space);
        border-bottom: 1px solid #2c2c2c;
    }

    .home-page .album-grid {
        margin-top: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        width: calc(100vw - 8px);
        margin-left: calc(50% - 50vw + 4px);
        margin-right: calc(50% - 50vw + 4px);
    }

    .home-page .album-grid-click-entry:empty {
        display: none;
    }

    .home-page .todays-track {
        min-height: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .home-page .todays-track h2 span[lang="ja"] {
        display: block;
        margin-left: 0;
    }

    .home-page .digital-philosophy {
        padding-top: var(--mobile-line-space);
    }
}

/* HOME LINKS */

.digital-philosophy {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 28px 60px;
    line-height: 1.85;
}

.digital-philosophy h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.12em;
}

.digital-philosophy h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

.digital-philosophy article p {
    margin: 0 0 1em;
}

.digital-philosophy article {
    padding: 0;
    border: 0;
}

.digital-philosophy-nav {
    position: static;
    top: auto;
    z-index: auto;
    display: flex;
    justify-content: flex-start;
    gap: 0.45em;
    margin: 10px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.digital-philosophy-nav span {
    color: #999;
}

.digital-philosophy h3[id] {
    scroll-margin-top: 24px;
}

.home-section a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 0.08em;
}

.links-page main section {
    min-height: 0;
    padding: 5px 40px 42px;
}

.links-page main section > p {
    margin: 0 auto 8px;
    text-align: center;
}

.service-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 920px;
    margin: 28px auto 0;
}

.service-link {
    display: flex;
    min-width: 0;
    min-height: 142px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.82);
    color: #f2f2f2;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.service-link:hover,
.service-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.service-link:focus-visible {
    outline: 2px solid #c1aa85;
    outline-offset: 3px;
}

.service-link-logo {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
}

.service-logo {
    display: block;
    width: auto;
    max-width: min(100%, 174px);
    max-height: 48px;
    object-fit: contain;
    opacity: 0.88;
}

.service-logo--icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.service-logo--tunecore {
    width: 174px;
    height: 54px;
    max-width: 174px;
    max-height: 54px;
    object-fit: cover;
}

.service-link-name {
    max-width: 100%;
    color: inherit;
    font-size: 0.86rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .service-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .links-page main section {
        padding: 42px 25px 48px;
    }
}

@media (max-width: 560px) {
    .service-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-link {
        min-height: 132px;
        padding: 14px 8px;
    }
}

/* BLOG */
.blog-page main,
.blog-article-page main {
    min-height: 0;
}

.blog-list {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 64px;
    text-align: left;
}

.blog-list-item {
    padding: 26px 0 30px;
    border-bottom: 1px solid rgba(242, 242, 242, 0.28);
    text-align: left;
}

.blog-list-item:first-child {
    padding-top: 10px;
}

.blog-list-item time,
.blog-article-header time {
    display: block;
    color: #b9b9b9;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-align: left;
}

.blog-category {
    margin: 8px 0 4px;
    color: #c6c6c6;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-align: left;
}

.blog-list-item h2 {
    margin: 4px 0 10px;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.4;
    text-align: left;
}

.blog-list-item h2 a,
.blog-read-more {
    color: #fff;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.blog-list-item > p:not(.blog-category) {
    margin: 0 0 14px;
}

.blog-read-more,
.blog-article-links a {
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.blog-article {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.blog-article-header {
    min-height: 0;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(242, 242, 242, 0.28);
}

.blog-article-header h1 {
    margin: 10px 0 0;
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    line-height: 1.35;
    text-align: left;
}

.blog-article-body {
    padding: 24px 0 10px;
}

.blog-article-body p {
    margin: 0 0 1.4em;
}

.blog-article-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(242, 242, 242, 0.28);
}

.blog-article-links a {
    color: #fff;
}

@media (max-width: 700px) {
    .blog-list,
    .blog-article {
        width: calc(100% - 32px);
        padding-bottom: 48px;
    }

    .blog-list-item {
        padding: 22px 0 26px;
    }

    .blog-article-links {
        flex-direction: column;
    }
}
