/* 
 * kumamotoevent.com / Antigravity
 * High-End Visual Style 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    /* Colors */
    --bg-core: #02040a;
    --bg-sub: #080c16;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-glow: #60a5fa;
    --accent-purple: #8b5cf6;
    --accent-red: #ef4444;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-dark: linear-gradient(to bottom, transparent, #02040a);

    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;

    /* Effects */
    --glass-bg: rgba(10, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* Typography */
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Inter", sans-serif;
}

/* --- Reset & Base --- */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-core);
    background-image:
        radial-gradient(circle at 50% 0%, #1a2035 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, #151030 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-en), var(--font-jp);
    line-height: 1.7;
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* --- Utilities --- */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Header --- */

header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Hero Section --- */

.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

/* Hero Background Image */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    /* Dimmed for text readability */
    filter: saturate(1.2) contrast(1.1);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- Buttons --- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.btn-primary:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-nav-shortcut {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 5px 10px;
    transition: all 0.3s;
}

.btn-nav-shortcut:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* --- Sections --- */

section {
    position: relative;
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    display: inline-block;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent-blue);
    border-radius: 2px;
}

/* --- Cards Grid --- */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--glow-shadow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-weight: 700;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s;
}

.card:hover .card-link::after {
    transform: translateX(5px);
}


/* --- Footer --- */

footer {
    background: #020205;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav h4,
.footer-social h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}


/* --- Responsive Mobile --- */

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

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