:root {
    --bg-color: #050510;
    --text-primary: #f0f4f8;
    --text-secondary: #b0b8c4;
    --accent-blue: #4facfe;
    --accent-gold: #ffd700;
    --glass-bg: rgba(20, 30, 50, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --card-hover-bg: rgba(30, 40, 70, 0.6);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Animated Background --- */
.stars-bg,
.twinkling-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars-bg {
    background: #000 url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    opacity: 0.6;
}

.twinkling-bg {
    background: transparent;
    /* Optional: Add a subtle animation or gradient overlay here if needed */
    background: radial-gradient(circle at bottom, #0f2040 0%, transparent 60%);
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: white;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Hero --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-blue);
    margin-bottom: 4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.prologue {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: left;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-top: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Safari support */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover-bg);
}

/* --- Sections --- */
.guide-section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.section-sub {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

/* --- Content Grid --- */
.content-grid {
    display: grid;
    gap: 2rem;
}

.content-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.content-grid.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Lists & Specific Elements --- */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

ul li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 0.8rem;
    top: 0.4em;
}

.note-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.note-box.caution {
    background: rgba(255, 80, 80, 0.1);
    border-left: 4px solid #ff5050;
    color: #ffcccc;
}

/* --- Section 3: Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.step-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.highlight-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff8cc;
}

/* --- Section 4: Process Flow --- */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    bottom: -25px;
    /* Adjust spacing */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
}

.process-step:last-child::after {
    display: none;
}

.highlight-step {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

/* --- Footer --- */
footer {
    padding: 6rem 0 3rem;
    text-align: center;
    background: linear-gradient(to top, #000, transparent);
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: none;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .content-grid.two-columns,
    .content-grid.three-columns {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .guide-section {
        padding: 60px 0;
    }
}