:root {
    --mx: 50%;
    --my: 50%;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #06070a;
    color: #ffffff;
    /* overflow: hidden; */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto,
        "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 10;
}

.logo {
    height: 24px;
    width: auto;
    opacity: 0.94;
    image-rendering: auto;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .65));
}

/* ===== Stage ===== */
.stage {
    position: relative;
    height: 100vh;
    /* heroは1画面 */
    overflow: hidden;
    /* hero内のcanvasだけ隠すのはOK */
}

.company {
    position: relative;
    z-index: 2;
    /* canvasより前 */
    background: #07080b;
    /* padding: 80px 24px 50px; */
}

.company-inner {
    max-width: 880px;
    margin: 0 auto;
}

section {
    padding-bottom: 60px;
}

.sectionTitle {
    font-size: 18px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 32px;
    opacity: 0.8;
    text-align: center;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.company-table th,
.company-table td {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.company-table th {
    width: 30%;
    font-weight: 500;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
}

.company-table td {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.site-footer {
    padding: 32px 16px 48px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    background: #07080b;
}

.site-footer p {
    margin: 0 auto;
    font-size: 12px;
    ;
}

canvas#bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* ←重要 */
    z-index: 0;
}


/* Cursor-follow lighting */
.light {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(520px 520px at var(--mx) var(--my),
            rgba(255, 140, 60, .08),
            rgba(30, 120, 255, .05),
            transparent 60%),
        radial-gradient(closest-side,
            transparent 58%,
            rgba(0, 0, 0, .90) 125%);
    mix-blend-mode: normal;
}

/* ===== Hero ===== */
main {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0 24px;
    /* 上下paddingを消して上下中央に */
}

.wrap {
    width: min(100%, 100%);
}

h1 {
    margin: 0 0 18px 0;
    text-align: center;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 800;
    text-shadow: 0 18px 70px rgba(0, 0, 0, .75);
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
    will-change: transform;
}

/* p {
    margin: 0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    color: rgba(255, 255, 255, .86);
    max-width: 46ch;
    text-shadow: 0 14px 60px rgba(0, 0, 0, .7);
} */

.en {
    margin-top: 18px;
    text-align: center;
    font-size: 24px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    h1 {
        transform: none;
    }

    .light {
        background:
            radial-gradient(900px 700px at 30% 20%,
                rgba(30, 120, 255, .10),
                transparent 65%),
            radial-gradient(1200px 900px at 70% 30%,
                rgba(255, 140, 60, .08),
                transparent 70%),
            radial-gradient(closest-side,
                transparent 55%,
                rgba(0, 0, 0, .88) 120%);
    }
}

html {
    scroll-behavior: smooth;
}

/* scroll cue (optional) */
.scrollCue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 10px 12px;
}

.scrollCue::after {
    content: "";
    display: block;
    width: 1px;
    height: 22px;
    margin: 10px auto 0;
    background: rgba(255, 255, 255, 0.35);
    opacity: 0.8;
}

/* Hero scroll transition targets */
#heroContent {
    will-change: transform, opacity, filter;
    transform: translate3d(0, var(--heroY, 0px), 0);
    opacity: var(--heroO, 1);
    filter: blur(var(--heroBlur, 0px));
}

/* Canvas subtle zoom/dim driven by CSS vars */
canvas#bg {
    transform: scale(var(--bgS, 1));
    filter: brightness(var(--bgB, 1));
    will-change: transform, filter;
}

/* Company reveal base */
.company {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 700ms ease, transform 700ms ease;
}

/* When visible */
.company.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #heroContent,
    canvas#bg {
        filter: none !important;
        transform: none !important;
    }

    .company {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ===== About ===== */
.about {
    position: relative;
    z-index: 2;
    padding: 120px 0 80px;
}

.about-inner {
    max-width: 880px;
    margin: 0 auto;
}

.aboutBody {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.95;
    font-size: 12px;
}

.aboutBody p {
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    margin-bottom: 18px;
}

.aboutLast {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.92);
}

/* reveal animation base */
.reveal {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}