/* =====================================
   リセット & ベーススタイル
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - セガブルー & 宇宙テーマ */
    --color-primary: #0089D6;
    --color-primary-light: #00A3FF;
    --color-primary-dark: #006BB3;
    --color-secondary: #6C63FF;
    --color-bg-dark: #0A0E27;
    --color-bg-darker: #050812;
    --color-bg-card: rgba(15, 23, 42, 0.8);
    --color-text: #FFFFFF;
    --color-text-secondary: #B4B8D4;
    --color-accent: #00D9FF;

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* タイポグラフィ */
    --font-base: "Noto Sans", "Noto Sans JP", sans-serif;

    --card-radius: 8px;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: #000000;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =====================================
   背景エフェクト - WebGLで実装
   ===================================== */
/* 背景はJavaScript（Three.js）で動的に生成されます */

/* =====================================
   レイアウト
   ===================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* =====================================
   ヘッダー
   ===================================== */
.header {
    padding: var(--spacing-md) 0;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0) 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0, 137, 214, 0.5));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 137, 214, 0.8));
}

/* =====================================
   ヒーローセクション
   ===================================== */
.hero {
    padding: 0 0 0 0;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(5, 8, 18, 0.75) 0%, rgba(5, 8, 18, 0.6) 80%, rgba(5, 8, 18, 0) 100%);
    padding: var(--spacing-xl) 0;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.hero-title .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    position: relative;
    z-index: 1;
}


.hero-title-sub {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-logo {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    filter:
        drop-shadow(0 0 10px rgba(0, 163, 255, 0.4))
        drop-shadow(0 0 20px rgba(0, 163, 255, 0.2))
        drop-shadow(0 0 30px rgba(0, 163, 255, 0.1));
    transition: filter 0.3s ease;
}

.hero-logo:hover {
    filter:
        drop-shadow(0 0 10px rgba(0, 163, 255, 0.6))
        drop-shadow(0 0 20px rgba(0, 163, 255, 0.4))
        drop-shadow(0 0 30px rgba(0, 163, 255, 0.2));
}

.hero-title h1 {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: var(--spacing-lg);
}

/* =====================================
   ボタン
   ===================================== */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: skewX(-32.3deg);
}

.btn > span {
    display: inline-block;
    transform: skewX(32.3deg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text);
    box-shadow:
        0 8px 20px rgba(0, 137, 214, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary:hover {
    transform: skewX(-32.3deg) translateY(-3px);
    box-shadow:
        0 12px 30px rgba(0, 137, 214, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: skewX(-32.3deg) translateY(0px);
    box-shadow:
        0 4px 10px rgba(0, 137, 214, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 1.25rem 4rem;
    font-size: 1.25rem;
}

/* =====================================
   セクション共通
   ===================================== */
section {
    padding: var(--spacing-xl) 0 0 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================
   特徴セクション
   ===================================== */
.features {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.5) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: rgba(180, 180, 180, 0.1);
    border: 1px solid rgba(130, 130, 130, 0.4);
    border-radius: var(--card-radius);
    padding: 2.0rem var(--spacing-md);
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

/*
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 50px rgba(0, 137, 214, 0.3);
}
*/
.feature-icon {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(0, 137, 214, 0.5));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-align: center;
    color: var(--color-text);
}

.feature-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* =====================================
   MDLiteセクション
   ===================================== */
.mdlite {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.5) 50%, transparent 100%);
    text-align: center;
}

.mdlite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.mdlite-card {
    background: rgba(180, 180, 180, 0.1);
    border: 1px solid rgba(130, 130, 130, 0.4);
    border-radius: var(--card-radius);
    padding: 2.0rem var(--spacing-md);
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.mdlite-icon {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(0, 137, 214, 0.5));
}

.mdlite-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    text-align: center;
    color: var(--color-text);
}

.mdlite-description {
    font-size: 1.25rem;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-lg);
}

/* =====================================
   導入事例セクション
   ===================================== */
.cases {
    background: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.case-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 1.0);
    border-radius: var(--card-radius);
    padding: 2.0rem var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.case-card:hover {
    transform: translateY(-3px);
    filter:
        drop-shadow(0 0 6px rgba(100, 220, 255, 0.5))
        drop-shadow(0 0 12px rgba(100, 220, 255, 0.25));
}

.case-logo {
    width: 100%;
    height: 64px;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 1.0);
    border-radius: 8px;
    background: rgba(255, 255, 255, 1.0);
}

.case-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-company {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.case-service {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* =====================================
   CTAセクション
   ===================================== */
.cta {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

/* =====================================
   フッター
   ===================================== */
.footer {
    position: relative;
    z-index: 1;
    background: #1a1a1add;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 1rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-logo {
    display: block;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.logo-small {
    height: 40px;
    width: auto;
    filter:
        drop-shadow(0 0 15px rgba(0, 163, 255, 0.5))
        drop-shadow(0 0 30px rgba(0, 163, 255, 0.3));
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-small:hover {
    opacity: 1;
    filter:
        drop-shadow(0 0 20px rgba(0, 163, 255, 0.7))
        drop-shadow(0 0 40px rgba(0, 163, 255, 0.4));
}

.footer-brand {
    flex-direction: column;
    align-items: center;
}

.footer-sega-xd-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 0.5rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.footer-license {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.section {
    display: inline-block;
}
/* =====================================
   レスポンシブデザイン
   ===================================== */
@media (max-width: 840px) {
    .hero-logo {
        max-width: 100%;
    }

    .hero-title-sub {
        font-size: 0.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .mdlite-description {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr
    }

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

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .btn-large {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    .hero-content .section:nth-child(-n+2) {
        display: inline-block;
    }

    .hero-content .section {
        display: inline;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-logo {
        max-width: 100%;
    }

    .logo {
        height: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr
    }

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

    .hero-content .section:nth-child(-n+2) {
        display: inline;
    }

    .hero-content .section {
        display: inline;
    }
}
