/* =========================================
   Base & Resets
   ========================================= */
:root {
    --bg-dark: #ffffff;
    --bg-darker: #f4f6f5;
    --text-main: #333333;
    --text-muted: #666666;
    --accent-blue: #123524;
    --accent-gold: #eab308;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(18, 53, 36, 0.1);
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.text-blue { color: var(--accent-blue) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }

/* =========================================
   Typography
   ========================================= */
.accent-text {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.mega-text { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
.ultra-text { font-size: 3.5rem; font-weight: 900; line-height: 1; }
.large-text { font-size: 1.5rem; font-weight: 700; }
.medium-text { font-size: 1.25rem; font-weight: 600; }
.small-text { font-size: 0.875rem; color: var(--text-muted); }

/* =========================================
   Background Effects
   ========================================= */
.background-effects {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}
.orb-1 { width: 400px; height: 400px; background: rgba(18, 53, 36, 0.1); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: rgba(34, 197, 94, 0.1); bottom: 10%; right: -50px; animation-delay: -5s; }
.orb-3 { width: 500px; height: 500px; background: rgba(234, 179, 8, 0.1); top: 50%; left: 30%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* =========================================
   Glassmorphism Components
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.premium-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(244,246,245,1));
    border: 1px solid rgba(18, 53, 36, 0.3);
    position: relative;
    overflow: hidden;
}
.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    100% { left: 200%; }
}

/* =========================================
   Layout & Sections
   ========================================= */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}
.dark-bg { background-color: var(--bg-darker); }

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%; width: 40px; height: 3px;
    background: var(--accent-blue);
    transform: translateX(-50%);
    border-radius: 2px;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
    background-image: url('../img/hero_bg_risk_free.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 2rem;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}
.badge-small {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    vertical-align: middle;
    margin-left: 0.5rem;
}
.badge-small.gold { background: rgba(234, 179, 8, 0.2); color: var(--accent-gold); border: 1px solid var(--accent-gold); }

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-subcopy {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 3rem;
}
.hero-notice { margin-bottom: 3rem; display: inline-block; max-width: 600px; }

/* =========================================
   Buttons & CTA
   ========================================= */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 3rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.primary-cta {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: none;
}
.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}
.arrow { transition: transform 0.3s ease; margin-left: 0.5rem; }
.cta-button:hover .arrow { transform: translateX(5px); }

.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* =========================================
   Lists & Elements
   ========================================= */
.check-list, .bullet-list, .x-list {
    list-style: none;
    text-align: left;
}
.check-list li, .bullet-list li, .x-list li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.check-list span { color: var(--accent-blue); margin-right: 0.5rem; font-weight: bold; }
.x-list span { color: var(--accent-red); margin-right: 0.5rem; font-weight: bold; }
.bullet-list li::before {
    content: '•'; color: var(--text-muted); margin-right: 0.5rem; font-size: 1.5rem; line-height: 1;
}

.highlight { background: rgba(59, 130, 246, 0.2); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* Timeline */
.vertical-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
}
.timeline-dot {
    width: 40px; height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem;
    flex-shrink: 0;
}
.timeline-arrow { color: var(--accent-blue); font-size: 1.5rem; font-weight: bold; }

/* Misc Cards */
.flex-cards { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.min-card { flex: 1; min-width: 200px; text-align: center; font-weight: 600; font-size: 1.1rem; }
.glow-box {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem; border-radius: 12px; font-weight: 600;
}
.border-red { border-top: 4px solid var(--accent-red); }
.border-green { border-top: 4px solid var(--accent-green); }

/* Message Avatar */
.avatar-placeholder {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #475569, #334155);
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
}
.message-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

/* =========================================
   Mermaid Container
   ========================================= */
.mermaid-container {
    padding: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    text-align: center;
    background: rgba(0,0,0,0.2) !important;
}

/* =========================================
   Footer (Skill Requirements)
   ========================================= */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-darker);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.separator { color: #334155; }
.copyright { color: #475569; font-size: 0.8rem; }

/* =========================================
   Animations
   ========================================= */
.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);
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .hero { padding-top: 6rem; }
    .glass-card { padding: 1.5rem; }
}
