﻿:root {
    color-scheme: light;
    --navy-950: #061727;
    --navy-900: #09233a;
    --navy-800: #103957;
    --blue-700: #1769c2;
    --blue-600: #247fe0;
    --blue-100: #e9f3ff;
    --cyan-400: #44d3e6;
    --gold-400: #e7c66d;
    --ink: #172737;
    --muted: #607286;
    --line: #d7e1eb;
    --surface: #ffffff;
    --page: #f2f6fa;
    --danger: #b42318;
    --shadow: 0 14px 36px rgba(13, 42, 68, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

img { max-width: 100%; }
a { color: var(--blue-700); }
a:hover { color: #0b4e96; }
button, input { font: inherit; }

:focus-visible {
    outline: 3px solid rgba(68, 211, 230, .75);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    transform: translateY(-160%);
    padding: 8px 12px;
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
}

.skip-link:focus { transform: none; }

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(6, 23, 39, .96);
    color: #fff;
    backdrop-filter: blur(10px);
}

.header-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 34px;
}

.brand-mark img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .28));
}

.brand-text small {
    display: block;
    color: #8ec7e8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;
}

.brand-text span { display: block; line-height: 1.3; }

.global-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3px;
}

.global-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: #dceaf5;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.site-account-actions {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.site-account-actions .site-shop-link {
    padding: 10px 12px;
    border-radius: 6px;
    color: #dceaf5;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.site-account-actions .site-shop-link:hover,
.site-account-actions .site-shop-link[aria-current="page"] {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.site-account-actions .login-link {
    padding-inline: 17px;
    background: var(--blue-600);
    color: #fff;
    border-radius: 6px;
    padding-block: 10px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.site-session {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #dceaf5;
    font-size: 12px;
}
.site-session img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #fff; }
.site-nickname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-session form { margin: 0; flex: 0 0 auto; }
.site-logout { border: 0; padding: 0; background: none; color: #dceaf5; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.site-logout:hover { background: none; color: #fff; }
.site-header .protected-avatar { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
.site-account-actions .login-link[hidden] { display: none; }

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 6px;
    padding: 7px 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy-950);
    color: #fff;
}

.hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(5, 20, 34, .97) 0%, rgba(5, 20, 34, .88) 42%, rgba(5, 20, 34, .28) 73%, rgba(5, 20, 34, .60) 100%);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
    opacity: .78;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    min-height: 308px;
    margin: 0 auto;
    padding: 49px 0 43px;
    display: flex;
    align-items: center;
}

.hero-copy { max-width: 640px; }
.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan-400);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .17em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.22;
    letter-spacing: .02em;
}

.hero-lead {
    max-width: 560px;
    margin: 20px 0 0;
    color: #d5e8f5;
    font-size: clamp(15px, 2vw, 18px);
}

.actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue-600);
    border-radius: 7px;
    padding: 9px 20px;
    background: var(--blue-600);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.button:hover { background: #126dc5; color: #fff; }
.button.secondary { border-color: rgba(255, 255, 255, .5); background: rgba(6, 23, 39, .42); }
.button.light { border-color: var(--line); background: #fff; color: var(--blue-700); }
.button.disabled { border-color: #b8c4cf; background: #e1e7ec; color: #617180; cursor: not-allowed; }

.page-shell {
    width: min(1200px, calc(100% - 40px));
    margin: 26px auto 70px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.sidebar { display: grid; gap: 14px; }
.side-card,
.content-card,
.feature-card,
.download-panel,
.stub-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: 0 5px 18px rgba(13, 42, 68, .04);
}

.side-card { overflow: hidden; }
.side-card h2 {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: #f7fafc;
    font-size: 14px;
}
.side-card-body { padding: 13px 14px; }
.side-card-body p { margin: 0; }
.side-card-body p + p { margin-top: 9px; }
.status-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #21a66b; box-shadow: 0 0 0 4px #dcf4e9; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.side-links { margin: 0; padding: 0; list-style: none; }
.side-links li + li { border-top: 1px solid #e8edf2; }
.side-links a { display: block; padding: 9px 0; font-weight: 650; text-decoration: none; }

.main-column { min-width: 0; display: grid; gap: 22px; }
.notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid #b8d8f4;
    border-radius: 9px;
    padding: 14px 16px;
    background: #eef7ff;
}
.notice-label { border-radius: 4px; padding: 2px 8px; background: var(--blue-700); color: #fff; font-size: 11px; font-weight: 800; }
.notice p { margin: 0; }
.notice-content { min-width: 0; display: grid; gap: 12px; }
.notice-title { margin: 0; font-size: 16px; line-height: 1.5; }
.notice-image { display: block; max-width: 100%; height: auto; }
.notice-list { margin: 0; padding-left: 1.5em; }
.notice-list li + li { margin-top: 8px; }
.notice-warning { border-color: #e7b4b4; background: #fff5f5; }
.notice-warning .notice-label { background: #b42318; }
.notice-warning .notice-title { color: #a11b13; }

.section-heading { margin: 0 0 14px; }
.section-heading .eyebrow { margin-bottom: 4px; color: var(--blue-700); }
.section-heading h2 { margin: 0; font-size: clamp(23px, 3vw, 31px); line-height: 1.35; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }

.schedule { display: grid; gap: 8px; }
.schedule-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-left: 4px solid var(--cyan-400);
    border-radius: 7px;
    padding: 13px 15px;
    background: var(--navy-900);
    color: #fff;
}
.schedule-row.release { border-left-color: var(--gold-400); background: linear-gradient(110deg, #22354a, #0d304c); }
.schedule-date { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-date small { font-size: 12px; font-weight: 500; }
.schedule-title { font-weight: 750; }
.schedule-detail { display: block; color: #bcd3e3; font-size: 12px; }
.schedule-state { color: #91cce8; font-size: 11px; white-space: nowrap; }

.release-announcement {
    grid-template-columns: minmax(0, 1fr);
    border-left-width: 6px;
    padding: 21px 24px;
    box-shadow: 0 10px 24px rgba(12, 36, 55, .16);
}
.release-announcement h2 { margin: 0 0 12px; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.4; }
.release-announcement p { margin: 0; }
.release-announcement p + p { margin-top: 8px; }
.release-announcement .release-eyebrow { margin-bottom: 7px; color: #f5d581; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.release-purchase-note { color: #c9dfed; font-size: 13px; }
.release-announcement a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.release-section { margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); }
.release-section h3 { margin: 0 0 6px; color: #f5d581; font-size: 14px; }
.release-section ul { margin: 9px 0 0; padding-left: 1.5em; }
.release-section li + li { margin-top: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-card { padding: 18px; }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }
.feature-number { display: block; margin-bottom: 8px; color: var(--blue-600); font-size: 11px; font-weight: 800; letter-spacing: .12em; }

.content-card { padding: 24px; }
.content-card h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.3; }
.content-card h2 { margin: 28px 0 8px; font-size: 21px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p { margin: 8px 0; }

.page-title-band {
    background: linear-gradient(115deg, var(--navy-950), var(--navy-800));
    color: #fff;
}
.page-title-inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 10px 0; }
.page-title-inner h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.page-title-inner p { max-width: 680px; margin: 2px 0 0; color: #c8dceb; font-size: 14px; line-height: 1.5; }

.download-panel { padding: 24px; }
.download-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.download-meta div { padding: 12px 14px; background: #f8fafc; }
.download-meta dt { color: var(--muted); font-size: 11px; }
.download-meta dd { margin: 2px 0 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.hash { display: block; overflow-wrap: anywhere; border-radius: 6px; padding: 10px 12px; background: #eef2f6; font-family: Consolas, monospace; font-size: 12px; }
.warning { border-left: 4px solid #e29b2d; padding: 12px 14px; background: #fff8eb; }
.check-list { padding-left: 1.3em; }
.check-list li + li { margin-top: 5px; }

.stub-panel { padding: 34px; text-align: center; }
.stub-badge { display: inline-block; border-radius: 20px; padding: 4px 12px; background: var(--blue-100); color: var(--blue-700); font-size: 12px; font-weight: 800; }
.stub-panel h2 { margin: 15px 0 8px; }
.stub-panel p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; text-align: left; }
.category-list div { border: 1px solid var(--line); border-radius: 7px; padding: 12px 14px; background: #fafcfe; }

.feature-page-shell { grid-template-columns: 220px minmax(0, 1fr); }
.feature-sidebar { position: sticky; top: 94px; }
.feature-sections { gap: 26px; }
.feature-section { scroll-margin-top: 90px; }
.feature-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.feature-section-heading span { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 34px; border-radius: 50%; background: var(--blue-700); color: #fff; font-size: 12px; font-weight: 800; }
.feature-section .feature-section-heading h2 { margin: 0; font-size: 25px; }
.feature-topic + .feature-topic { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.feature-topic h3 { margin: 0 0 6px; font-size: 19px; }
.feature-topic p { margin: 0 0 13px; color: var(--muted); }
.feature-topic-card { display: flex; min-width: 0; flex-direction: column; }
.feature-topic-card + .feature-topic-card { margin-top: 0; padding-top: 0; border-top: 0; }
.feature-topic-card .feature-shot { margin-top: auto; }
.feature-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.feature-gallery-three, .feature-gallery-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-gallery-span { grid-column: 1 / -1; }
.feature-shot { margin: 15px 0 0; }
.feature-gallery .feature-shot { margin: 0; }
.feature-shot a { display: block; overflow: hidden; border: 1px solid #cbd8e4; border-radius: 8px; background: #e8eef4; box-shadow: 0 8px 22px rgba(13, 42, 68, .08); }
.feature-shot img { display: block; width: 100%; height: auto; transition: transform .18s ease; }
.feature-shot a:hover img { transform: scale(1.012); }
.feature-shot figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.feature-shot-medium { max-width: 520px; }

.login-panel { max-width: 620px; }
.login-panel > h1 { margin-bottom: 18px; font-size: 25px; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 6px; font-weight: 700; }
.login-form input[type="email"],
.login-form input[type="password"] { width: 100%; min-height: 44px; border: 1px solid #adbdcb; border-radius: 6px; padding: 8px 11px; background: #fff; color: var(--ink); }
.login-form input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(36, 127, 224, .15); outline: 0; }
.login-check { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500 !important; }
.login-check input { width: 17px; height: 17px; }
.login-submit { margin-top: 12px; cursor: pointer; }
.login-error { border-left: 4px solid var(--danger); padding: 9px 12px; background: #fff0ef; color: var(--danger); font-weight: 700; }

.site-footer { background: var(--navy-950); color: #bcd0df; }
.footer-inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 12px 0 10px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; }
.footer-top > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.footer-brand { color: #fff; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-links a { color: #d4e3ed; font-size: 13px; }
.copyright { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 11px; }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .global-nav {
        position: absolute;
        top: 68px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 8px;
        padding: 8px;
        background: var(--navy-900);
        box-shadow: var(--shadow);
    }
    .global-nav.is-open { display: grid; }
}

@media (max-width: 900px) {
    .page-shell { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
    .feature-sidebar { position: static; grid-template-columns: 1fr; }
    .main-column { order: 1; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-gallery-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .header-inner { gap: 10px; flex-wrap: wrap; padding-block: 8px; }
    .site-account-actions { flex-basis: 100%; justify-content: flex-end; }
    .site-session { flex-basis: auto; justify-content: flex-end; }
    .site-nickname { max-width: min(120px, calc(100vw - 260px)); }
    .site-header .global-nav { top: 100%; }
    .header-inner,
    .hero-inner,
    .page-shell,
    .page-title-inner,
    .footer-inner { width: min(100% - 28px, 1200px); }
    .hero-inner { min-height: 294px; padding: 36px 0; }
    .hero::after { background: rgba(5, 20, 34, .80); }
    .page-shell { margin-top: 18px; }
    .sidebar,
    .feature-grid,
    .category-list,
    .feature-gallery,
    .feature-gallery-three,
    .feature-gallery-compact { grid-template-columns: 1fr; }
    .feature-gallery-span { grid-column: auto; }
    .schedule-row { grid-template-columns: 1fr; gap: 2px; }
    .schedule-state { margin-top: 4px; }
    .download-meta { grid-template-columns: 1fr; }
    .notice { grid-template-columns: 1fr; }
    .footer-top { display: block; }
    .footer-links { margin-top: 8px; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
