:root {
    --primary-bg: #050505;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --accent-main: #e60000;
    --accent-sub: #ff4d4d;
    --glass-bg: rgba(20, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.9);
    border-bottom: 1px solid rgba(230, 0, 0, 0.3);
}

.logo-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s, text-shadow 0.3s;
    letter-spacing: 0.05em;
}

nav a:hover {
    color: var(--accent-main);
    text-shadow: 0 0 8px rgba(230, 0, 0, 0.5);
}

/* Hamburger Menu Icon */
.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    position: absolute;
    transition: all 0.3s;
}

.menu-btn span:nth-child(1) {
    top: 0;
}

.menu-btn span:nth-child(2) {
    top: 9px;
}

.menu-btn span:nth-child(3) {
    top: 18px;
}

/* Hamburger Open Animation */
header.nav-open .menu-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

header.nav-open .menu-btn span:nth-child(2) {
    opacity: 0;
}

header.nav-open .menu-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Common Sections */
.section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    display: block;
    height: 1px;
    flex-grow: 1;
    max-width: 300px;
    background: linear-gradient(to right, var(--accent-main), transparent);
}

/* Content Blocks */
.content-block {
    margin-bottom: 60px;
}

.content-block h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-main);
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Feature Grid */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(230, 0, 0, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(230, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--accent-main);
    color: var(--accent-main);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background: var(--accent-main);
    color: #fff;
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: rgba(230, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 60px;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(230, 0, 0, 0.2);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        border-left: 1px solid rgba(230, 0, 0, 0.2);
    }

    header.nav-open nav {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    nav a {
        font-size: 1.4rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}