:root {
    --bg0: #07070a;
    --bg1: #141419;
    --panel: rgba(19, 18, 22, 0.9);
    --panel2: rgba(14, 13, 17, 0.94);
    --line: rgba(255, 255, 255, 0.18);
    --text: #f3f3f4;
    --muted: #c0c0c6;
    --red: #d5252a;
    --orange: #ff8e3b;
    --road: #e8dbcc;
    --timeline-progress: 0%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    line-height: 1.56;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 10%, rgba(213, 37, 42, 0.2) 0%, rgba(213, 37, 42, 0) 38%),
        radial-gradient(circle at 82% 16%, rgba(255, 142, 59, 0.12) 0%, rgba(255, 142, 59, 0) 40%),
        linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.14;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.16) 0.7px, transparent 0.7px),
        repeating-linear-gradient(
            -12deg,
            rgba(255, 255, 255, 0) 0 42px,
            rgba(255, 255, 255, 0.1) 42px 44px
        );
    background-size: 3px 3px, auto;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 7, 10, 0.74), rgba(8, 7, 10, 0.88)),
        radial-gradient(circle at 48% 112%, rgba(50, 40, 40, 0.7) 0%, rgba(8, 7, 10, 0) 62%);
}

.curve-lanes {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.curve-lanes span {
    position: absolute;
    left: -40vw;
    width: 34vw;
    height: 2px;
    opacity: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0),
        rgba(244, 230, 214, 0.95),
        rgba(255, 255, 255, 0)
    );
}

.curve-lanes span:nth-child(1) { top: 24%; }
.curve-lanes span:nth-child(2) { top: 44%; }
.curve-lanes span:nth-child(3) { top: 63%; }
.curve-lanes span:nth-child(4) { top: 82%; }

.mist {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.mist span {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    opacity: 0.14;
    filter: blur(20px);
}

.mist span:nth-child(1) {
    left: -14vw;
    top: -16vw;
    background: radial-gradient(circle, rgba(213, 37, 42, 0.76) 0%, rgba(213, 37, 42, 0) 72%);
}

.mist span:nth-child(2) {
    right: -14vw;
    top: 18%;
    background: radial-gradient(circle, rgba(255, 142, 59, 0.56) 0%, rgba(255, 142, 59, 0) 72%);
}

.mist span:nth-child(3) {
    left: 30vw;
    bottom: -20vw;
    background: radial-gradient(circle, rgba(125, 127, 146, 0.42) 0%, rgba(125, 127, 146, 0) 72%);
}

.back-home {
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 30;
    border: 1px solid rgba(255, 173, 149, 0.66);
    border-radius: 8px;
    background: rgba(33, 12, 14, 0.86);
    color: #fff0e5;
    text-decoration: none;
    font-family: "Teko", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.34rem 0.72rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease;
}

.back-home:hover {
    border-color: rgba(213, 37, 42, 0.9);
    transform: translateY(-2px);
}

.hero,
.layout,
.footer {
    width: min(1040px, 92vw);
    margin-inline: auto;
}

.hero {
    position: relative;
    margin-top: 3.45rem;
    padding: clamp(1rem, 2.8vw, 1.6rem);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(175deg, var(--panel), var(--panel2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 36px rgba(0, 0, 0, 0.44);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background:
        repeating-linear-gradient(
            118deg,
            rgba(255, 255, 255, 0) 0 40px,
            rgba(255, 255, 255, 0.08) 40px 42px
        ),
        linear-gradient(92deg, rgba(213, 37, 42, 0.16), rgba(213, 37, 42, 0));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), #ff4b39, var(--orange));
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    margin: 0;
    color: #ffb9a2;
    font-family: "Teko", sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0.56rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(2rem, 5.8vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff5ec;
}

.hero-copy {
    margin: 0.68rem 0 0.86rem;
    color: var(--muted);
    max-width: 66ch;
}

.hero-meter {
    width: min(460px, 100%);
    margin: 0 0 0.86rem;
    padding: 0.72rem;
    border: 1px solid rgba(255, 157, 128, 0.44);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(36, 13, 15, 0.78), rgba(26, 11, 13, 0.86));
}

.hero-meter p {
    margin: 0;
    color: #ffd0ba;
    font-family: "Teko", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.meter-readout {
    margin-top: 0.24rem;
    display: flex;
    align-items: flex-end;
    gap: 0.46rem;
}

.meter-number {
    font-family: "Teko", sans-serif;
    font-size: clamp(1.9rem, 5.5vw, 3.2rem);
    line-height: 0.92;
    color: #ffe4d2;
    letter-spacing: 0.03em;
}

.meter-unit {
    margin-bottom: 0.2rem;
    font-family: "Teko", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd4bd;
}

.meter-bar {
    margin-top: 0.4rem;
    border: 1px solid rgba(255, 168, 139, 0.46);
    border-radius: 999px;
    height: 10px;
    background: rgba(30, 10, 12, 0.9);
    overflow: hidden;
}

.meter-bar span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #ffb172, #ff8e3b, #ef5042, #d5252a);
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.56rem;
}

.hero-nav a {
    border: 1px solid rgba(255, 171, 145, 0.42);
    border-radius: 999px;
    background: rgba(34, 12, 14, 0.86);
    color: #fff0e5;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Teko", sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.74rem;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease;
}

.hero-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(213, 37, 42, 0.9);
}

.layout {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(176deg, rgba(20, 18, 22, 0.9), rgba(14, 13, 17, 0.94));
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #f43f35, var(--orange));
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.17;
    background: repeating-linear-gradient(
        -12deg,
        rgba(255, 255, 255, 0) 0 54px,
        rgba(255, 255, 255, 0.08) 54px 56px
    );
}

.panel > * {
    position: relative;
    z-index: 1;
}

.panel-heading {
    margin-bottom: 0.8rem;
}

.panel-tag {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffb48b;
}

.panel h2 {
    margin: 0.42rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(1.44rem, 3.5vw, 2.3rem);
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff2e8;
}

.panel-heading p:last-child {
    margin: 0.46rem 0 0;
    color: var(--muted);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline::before,
.timeline::after {
    content: "";
    position: absolute;
    left: 0.66rem;
    top: 0.36rem;
    width: 2px;
}

.timeline::before {
    bottom: 0.36rem;
    background: rgba(255, 255, 255, 0.22);
}

.timeline::after {
    height: var(--timeline-progress);
    background: linear-gradient(180deg, var(--orange), var(--red));
}

.timeline-item {
    position: relative;
    padding-left: 2.08rem;
}

.timeline-item + .timeline-item {
    margin-top: 0.84rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.44rem;
    width: 1.24rem;
    height: 1.24rem;
    border-radius: 50%;
    border: 2px solid #ffd9c3;
    background: #b32026;
    box-shadow: 0 0 0 4px rgba(17, 14, 18, 0.88);
}

.timeline-item time {
    display: inline-block;
    font-family: "Teko", sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffc89f;
}

.timeline-item h3 {
    margin: 0.32rem 0 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(1.06rem, 2.4vw, 1.42rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff1e7;
}

.timeline-item p {
    margin: 0.34rem 0 0;
    color: var(--muted);
}

.garage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.car-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: linear-gradient(175deg, rgba(26, 16, 18, 0.88), rgba(16, 13, 17, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0.86rem;
}

.car-card h3 {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: clamp(1rem, 2vw, 1.32rem);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff0e4;
}

.card-role {
    margin: 0.4rem 0 0;
    color: #ffb189;
    font-family: "Teko", sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.car-card ul {
    margin: 0.48rem 0 0;
    padding-left: 1.08rem;
    color: var(--muted);
}

.car-card li + li {
    margin-top: 0.2rem;
}

.footer {
    margin: 1rem auto 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(24, 14, 16, 0.86);
    text-align: center;
    padding: 0.56rem 0.72rem;
    color: var(--muted);
}

.footer p {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
}

.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 720px) {
    .hero {
        margin-top: 3.58rem;
    }

    .back-home {
        font-size: 0.8rem;
        letter-spacing: 0.09em;
    }

    .hero-kicker,
    .panel-tag,
    .hero-nav a,
    .footer p {
        font-size: 0.78rem;
    }

    .hero-copy,
    .timeline-item p,
    .panel-heading p:last-child,
    .car-card ul {
        font-size: 0.95rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
