/* =========================================================
   Version History
   ========================================================= */

.page-version-history-shell {
    position: relative;
}

.version-history-container {
    position: relative;
    z-index: 3;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(64px, 7vw, 104px) 0 clamp(96px, 10vw, 150px);
}

/* =========================================================
   Lead
   ※ page-title 周りは既存固定ページCSSを踏襲するため触らない
   ========================================================= */

.version-history-lead {
    width: min(820px, 100%);
    margin: 48px auto 0;
    padding: 32px 36px;
    box-sizing: border-box;

    border: 1px solid rgba(212, 175, 55, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(8, 15, 32, 0.62);
    backdrop-filter: blur(18px);

    box-shadow:
        0 0 38px rgba(62, 142, 255, 0.08),
        inset 0 0 28px rgba(255, 255, 255, 0.035);
}

.version-history-lead p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(14px, 1.45vw, 16px);
    line-height: 2;
    letter-spacing: 0.055em;
}

.version-history-lead p + p {
    margin-top: 14px;
}

/* =========================================================
   Current Versions
   ========================================================= */

.version-current {
    margin-top: clamp(56px, 7vw, 88px);
}

.version-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.version-section-header__label {
    margin: 0 0 8px;
    color: rgba(212, 175, 55, 0.78);
    font-family: "PrismTitle", sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.version-section-header__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 500;
    letter-spacing: 0.08em;
}

.version-current-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.version-current-card {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 22px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 20% 0%, rgba(63, 166, 255, 0.16), transparent 45%),
        rgba(7, 14, 30, 0.72);

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.22),
        inset 0 0 24px rgba(255, 255, 255, 0.025);
}

.version-current-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        rgba(0, 220, 255, 0.85),
        rgba(212, 175, 55, 0.65)
    );
}

.version-current-card--os {
    border-color: rgba(212, 175, 55, 0.3);
    background:
        radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.18), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(0, 220, 255, 0.12), transparent 42%),
        rgba(8, 14, 30, 0.78);
}

.version-current-card__name {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.08em;
}

.version-current-card__version {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-family: "PrismTitle", sans-serif;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1;
    letter-spacing: 0.06em;
}

/* =========================================================
   History Sections
   ========================================================= */

.version-history-sections {
    margin-top: clamp(72px, 9vw, 112px);
}

.version-history-section {
    padding: clamp(36px, 5vw, 56px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.version-history-section:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-engine-header {
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 28px;
}

.version-engine-header__label {
    margin: 0;
    color: rgba(212, 175, 55, 0.78);
    font-family: "PrismTitle", sans-serif;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.2;
    letter-spacing: 0.1em;
}

.version-engine-header__title {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.06em;
}

.version-engine-header__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.05em;
}

/* =========================================================
   History Cards
   ========================================================= */

.version-history-list {
    display: grid;
    gap: 16px;
}

.version-history-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: start;

    padding: 22px 26px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(8, 14, 30, 0.54);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.18),
        inset 0 0 22px rgba(255, 255, 255, 0.018);
}

.version-history-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.version-history-card__meta time,
.version-history-card__meta span {
    display: inline-flex;
    width: fit-content;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.version-history-card__meta span {
    padding: 5px 10px;
    color: rgba(212, 175, 55, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(212, 175, 55, 0.08);
}

.version-history-card__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(15px, 1.6vw, 17px);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.045em;
}

.version-history-empty {
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.version-history-empty p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
    .version-current-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .version-engine-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .version-history-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .version-history-card__meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.version-current-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.version-current-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(0, 220, 255, 0.08),
        inset 0 0 24px rgba(255, 255, 255, 0.035);
}

.version-history-section {
    scroll-margin-top: 96px;
}

@media (max-width: 640px) {
    .version-history-container {
        width: min(100% - 28px, 1080px);
        padding-top: 56px;
        padding-bottom: 88px;
    }

    .version-history-lead {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 22px 18px;
    }

    .version-current-grid {
        grid-template-columns: 1fr;
    }

    .version-current-card {
        padding: 22px 22px 20px;
    }

    .version-history-section {
        padding: 40px 0;
    }

    .version-history-card {
        padding: 20px 20px;
    }
}
