:root {
    --bg-dark: #000000;
    --text-main: #ffffff;
    --text-dim: #999999;
    --accent: #E63946;  /* Punchy aggressive red */
    --accent-light: #F1FAEE;
    --glass-bg: rgba(10, 10, 10, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

.cursor-ring.hovering {
    width: 60px; height: 60px;
    background-color: rgba(230, 57, 70, 0.2);
    border-color: var(--accent);
}

/* Background Video */
.video-wrap {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -3;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.5) contrast(1.2);
    /* Transform to make it look a bit more abstract/zoomed */
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Floating Huge Text */
.huge-bg-text {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, 0);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 20vw;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.12);
    z-index: -2;
    pointer-events: none;
    white-space: nowrap;
}

/* Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    border-radius: 50px;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #fff;
}

.brand-title span {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.brand-catch {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 700;
    line-height: 1.8;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.brand-catch .highlight {
    color: #fff;
    font-size: 1.5em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Card Grid — single unified 3-column grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 6rem 0;
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards — square via aspect-ratio, no 3D conflict */
.glass-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.card-inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 600px) {
    .glass-card {
        aspect-ratio: 1 / 1;
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.2);
    z-index: 10;
}

.glow-border {
    border-top: 3px solid var(--accent);
}

.card-icon {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.card-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.6rem;
    background-color: var(--text-main);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

/* Icon + Title on same line */
.card-title-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
}

.glass-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.glass-card .desc {
    color: #ccc;
    font-weight: 400;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.glass-card .sub-desc {
    color: var(--text-dim);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Links inside cards */
.dynamic-links {
    list-style: none;
    margin-top: auto;
}

.dynamic-links li {
    margin-bottom: 0.8rem;
}

.dynamic-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

.dynamic-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%; height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.dynamic-links a:hover::after {
    width: 100%;
}

.bold-links a {
    font-size: 1.1rem;
    font-weight: 900;
}

.nolink {
    color: #666;
    font-size: 0.9rem;
}

/* Footer Marquee */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.marquee-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: var(--accent);
    padding: 1rem 0;
}

.marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 15s linear infinite;
}

.marquee-inner span {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    padding: 0 2rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
