/* =========================================================
   Knowledge Computing — SpaceX-inspired theme
   Palette: pure black, white, neutral greys
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #000000;
    --bg-soft: #0a0a0a;
    --bg-panel: #111111;
    --fg: #ffffff;
    --fg-muted: #a7a7a7;
    --fg-dim: #6b6b6b;
    --line: rgba(255, 255, 255, 0.18);
    --line-strong: rgba(255, 255, 255, 0.45);
    --accent: #ffffff;
    --header-h: 76px;
    --font-sans: "Helvetica Neue", "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
    --tracking-wide: 0.18em;
    --tracking-wider: 0.3em;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--fg);
}

.brand .brand-jp {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--fg-muted);
    margin-top: 2px;
}

.nav-main {
    margin-left: auto;
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-main a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--fg);
    position: relative;
    padding: 6px 0;
    transition: opacity 0.25s ease;
}

.nav-main a:hover {
    opacity: 0.65;
}

.nav-main a.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--fg);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--fg);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--fg);
    margin: 6px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 24px 120px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(60, 80, 120, 0.35), transparent 60%),
        linear-gradient(180deg, #03060d 0%, #000 60%, #000 100%);
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 70% 60%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 40% 80%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 85% 15%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 10% 70%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 45%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 30% 10%, #ffffff 50%, transparent 51%),
        radial-gradient(1px 1px at 95% 90%, #ffffff 50%, transparent 51%);
    opacity: 0.6;
    animation: twinkle 8s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
}

@keyframes twinkle {
    from { opacity: 0.35; }
    to { opacity: 0.75; }
}

/* Photographic hero — background image with slow zoom (Ken Burns) */
.hero--photo .hero-bg,
.page-hero--photo .hero-bg {
    background-color: #000;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    animation: ken-burns 28s ease-in-out infinite alternate;
}

.hero--photo .hero-bg::before,
.page-hero--photo .hero-bg::before {
    display: none;
}

.hero--photo .hero-bg::after,
.page-hero--photo .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.85) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.9) 100%);
}

@keyframes ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-title .jp {
    display: block;
    font-size: clamp(14px, 1.4vw, 18px);
    letter-spacing: 0.25em;
    color: var(--fg-muted);
    font-weight: 400;
    margin-top: 14px;
    text-transform: none;
}

.hero-lead {
    max-width: 720px;
    margin: 0 auto 36px;
    color: var(--fg-muted);
    font-size: clamp(13px, 1.2vw, 15px);
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: var(--tracking-wider);
    color: var(--fg-muted);
    text-transform: uppercase;
}

.scroll-cue::after {
    content: "";
    display: block;
    width: 1px;
    height: 40px;
    background: var(--fg-muted);
    margin: 12px auto 0;
    animation: cue 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cue {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 28px;
    border: 1px solid var(--fg);
    color: var(--fg);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.btn--solid {
    background: var(--fg);
    color: var(--bg);
}

.btn--solid:hover {
    background: transparent;
    color: var(--fg);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--fg);
}

/* =========================================================
   Section: full-bleed feature
   ========================================================= */
.feature {
    position: relative;
    min-height: 100vh;
    padding: 120px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.feature--alt {
    background: var(--bg-soft);
}

.feature-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
}

.feature-bg--grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
}

.feature-bg--lines {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(40, 80, 140, 0.25), transparent 60%),
        linear-gradient(180deg, #000 0%, #050a14 100%);
}

.feature-bg--mesh {
    background:
        radial-gradient(circle at 20% 30%, rgba(40, 60, 100, 0.4), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(80, 40, 60, 0.3), transparent 50%),
        #000;
}

.feature-inner {
    max-width: 980px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(28px, 4.4vw, 54px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.section-title .jp {
    display: block;
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 0.2em;
    color: var(--fg-muted);
    font-weight: 400;
    margin-top: 12px;
    text-transform: none;
}

.section-lead {
    max-width: 760px;
    margin: 0 auto 40px;
    color: var(--fg-muted);
    font-size: clamp(13px, 1.1vw, 15px);
    letter-spacing: 0.04em;
}

/* =========================================================
   Page header (subpages)
   ========================================================= */
.page-hero {
    min-height: 70vh;
    padding: calc(var(--header-h) + 80px) 24px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-hero h1 .jp {
    display: block;
    font-size: clamp(13px, 1.3vw, 16px);
    letter-spacing: 0.25em;
    color: var(--fg-muted);
    font-weight: 400;
    margin-top: 14px;
    text-transform: none;
}

.page-hero p {
    max-width: 760px;
    color: var(--fg-muted);
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* =========================================================
   Content blocks (about, services, mission, contact)
   ========================================================= */
.content {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.content--narrow {
    max-width: 820px;
}

.content h2 {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 80px 0 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.content h2:first-child {
    margin-top: 0;
}

.content h2 .jp {
    display: inline-block;
    margin-left: 14px;
    font-size: 12px;
    color: var(--fg-muted);
    letter-spacing: 0.2em;
    font-weight: 400;
    vertical-align: middle;
}

.content h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 36px 0 14px;
}

.content p {
    color: var(--fg-muted);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.85;
}

.content ul {
    list-style: none;
    margin-bottom: 20px;
}

.content ul li {
    color: var(--fg-muted);
    padding: 10px 0 10px 22px;
    position: relative;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    width: 10px;
    height: 1px;
    background: var(--fg);
}

/* Definition list — company profile */
.info-table {
    width: 100%;
    border-top: 1px solid var(--line);
}

.info-table .row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 22px 8px;
    border-bottom: 1px solid var(--line);
}

.info-table dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg);
}

.info-table dt .jp {
    display: block;
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.15em;
    font-weight: 400;
    margin-top: 4px;
    text-transform: none;
}

.info-table dd {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--line);
    margin: 40px 0;
}

.card {
    background: var(--bg);
    padding: 36px 28px;
    text-align: left;
    transition: background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-panel);
}

/* Image card — top media area with hover zoom */
.card--media {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.card--media .media {
    position: relative;
    height: 200px;
    background-color: #050505;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.card--media .media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
}

.card--media .media-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.card--media:hover .media-inner {
    transform: scale(1.08);
}

.card--media .body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card--media .body p {
    flex: 1;
}

.card--media .more {
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: var(--tracking-wider);
    color: var(--fg);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.card--media .more::after {
    content: "→";
    transition: transform 0.25s ease;
}

.card--media:hover .more::after {
    transform: translateX(6px);
}

/* Full-bleed showcase with background image */
.showcase {
    position: relative;
    min-height: 100vh;
    padding: 120px 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.showcase-bg {
    position: absolute;
    inset: 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.02);
}

.showcase-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%);
    z-index: -1;
}

.showcase-inner {
    max-width: 600px;
    margin-left: 5%;
}

.showcase .eyebrow {
    margin-bottom: 18px;
}

.showcase h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 22px;
    letter-spacing: 0.04em;
}

.showcase p {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 24px;
}

.showcase .badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 28px;
}

.showcase .badges span {
    font-size: 11px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    letter-spacing: 0.15em;
    color: var(--fg);
}

@media (max-width: 720px) {
    .showcase-inner {
        margin-left: 0;
        max-width: 100%;
    }

    .showcase-bg::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
}

.card .num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--fg-dim);
    margin-bottom: 18px;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    line-height: 1.4;
    text-transform: none;
}

.card p {
    color: var(--fg-muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* Values grid */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--line);
    margin: 40px 0 0;
}

.value {
    background: var(--bg);
    padding: 48px 28px;
    text-align: center;
}

.value .label-en {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--fg-muted);
    margin-bottom: 14px;
}

.value h4 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--fg);
}

/* Industry tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--fg);
}

/* Contact form */
.contact-form {
    display: grid;
    gap: 22px;
    margin-top: 40px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg);
}

.field input,
.field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 12px 4px;
    color: var(--fg);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.25s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--fg);
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-actions {
    margin-top: 12px;
}

.contact-direct {
    margin-top: 60px;
    padding: 36px;
    border: 1px solid var(--line);
    text-align: center;
}

.contact-direct .label {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--fg-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.contact-direct .email {
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: 0.08em;
    color: var(--fg);
    font-weight: 700;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 50px 40px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.footer-brand .jp {
    display: block;
    font-size: 11px;
    color: var(--fg-muted);
    letter-spacing: 0.15em;
    font-weight: 400;
    margin-top: 6px;
}

.footer-addr {
    margin-top: 14px;
    font-size: 12px;
    color: var(--fg-muted);
    line-height: 1.8;
}

.footer-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    font-size: 12px;
    color: var(--fg-muted);
    letter-spacing: 0.1em;
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: var(--fg);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 11px;
    color: var(--fg-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* =========================================================
   Animations on scroll
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
    .site-header {
        padding: 0 20px;
    }

    .nav-main {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: rgba(0, 0, 0, 0.96);
        flex-direction: column;
        gap: 28px;
        padding: 60px 20px;
        justify-content: flex-start;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.35s ease;
    }

    .nav-main.is-open {
        transform: translateY(0);
    }

    .nav-main a {
        font-size: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .feature,
    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .info-table .row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .hero {
        padding-bottom: 140px;
    }

    .btn {
        min-width: 160px;
        padding: 13px 22px;
    }
}
