:root {
    --color-bg: #050505;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-primary: #d4af37; /* Gold */
    --color-primary-dark: #b4941f;
    --color-surface: rgba(255, 255, 255, 0.05);
    --color-surface-hover: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Noto Serif JP', serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #fff;
}
    
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(5,5,5,0.9), transparent);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    color: var(--color-primary);
    z-index: 101;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-nav {
    color: var(--color-primary) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

/* Concept */
.concept {
    text-align: center;
    background: radial-gradient(circle at center, #111, #050505);
}

.concept-text {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 40px;
}

.concept-text-small {
    color: var(--color-text-muted);
}

/* System */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.price-card {
    background: var(--color-surface);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: var(--transition);
}

.price-card:hover {
    background: var(--color-surface-hover);
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.price-card.highlight {
    border-color: var(--color-primary);
    background: rgba(212, 175, 55, 0.05);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1rem;
}

.price-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.features li {
    margin-bottom: 10px;
    color: #ccc;
}

.system-notes {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Costume */
.costume {
    text-align: center;
    background: linear-gradient(to bottom, #050505, #111);
}

.costume-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn:hover {
    background: var(--color-primary);
    color: #000;
}

/* Access */
.access {
    text-align: center;
}

.access-text {
    font-size: 1.2rem;
}

/* Contact */
.contact {
    text-align: center;
    padding-bottom: 60px;
}

.contact-content p {
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.blog-link {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.blog-link a:hover {
    color: var(--color-primary);
}

.separator {
    margin: 0 10px;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Animations */
.fade-in, .fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible, .fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
