:root {
    --color-bg-dark: #050b14;
    --color-bg-panel: rgba(13, 25, 48, 0.6);
    --color-primary: #00d2ff;
    --color-primary-glow: rgba(0, 210, 255, 0.4);
    --color-secondary: #3a7bd5;
    --color-text-main: #f0f4f8;
    --color-text-muted: #9ba5b5;
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Noto Sans JP', 'Inter', sans-serif;
    --glass-blur: blur(16px);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(58,123,213,0.3) 0%, rgba(58,123,213,0) 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,210,255,0.2) 0%, rgba(0,210,255,0) 70%);
    bottom: -100px;
    left: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 40px); }
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--color-bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography */
.text-gradient {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--color-primary-glow);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-inline: auto;
}

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

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.chart-container {
    padding: 24px;
    margin-bottom: 32px;
}

.sankey-wrapper {
    width: 100%;
    overflow-x: auto;
}

.insight-box {
    padding: 24px 32px;
    border-left: 4px solid var(--color-primary);
}

.insight-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    border-radius: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-content {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Chart & Simulator */
.chart-title {
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: var(--color-primary);
    text-align: center;
}

.simulator-container {
    padding: 32px;
    margin-top: 40px;
    margin-bottom: 32px;
}

.simulator-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.controls-panel {
    flex: 1;
}

.pie-chart-panel {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.controls-panel label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

#aging-year {
    color: var(--color-secondary);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin-bottom: 16px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.slider-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.stats-mini {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 1.1rem;
}

.text-primary { color: #ffa940; }
.text-muted { color: #8c8c8c; }
.total-budget {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    font-weight: bold;
    color: var(--color-secondary);
}

/* Article Section */
.article-container {
    padding: 40px 60px;
    margin: 40px auto;
    max-width: 900px;
    background: linear-gradient(180deg, rgba(13, 25, 48, 0.8) 0%, rgba(13, 25, 48, 0.4) 100%);
    border-top: 4px solid var(--color-secondary);
}

.article-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: white;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-muted);
}

.metaphor-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid #ff4d4f;
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
}

.metaphor-box h4 {
    color: #ff4d4f;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.metaphor-box ul {
    list-style: none;
}

.metaphor-box li {
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 4px;
}

/* Info Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--color-text-main);
    font-size: 1.3rem;
}

/* Economy Section */
.economy-container {
    padding: 40px;
    margin-top: 40px;
}

.economy-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.highlight-box {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(0, 210, 255, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-content strong {
    font-size: 1.2rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 5px;
}

/* Future Grid */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.warning-card {
    padding: 30px;
    border-top: 4px solid #ff4d4f;
    transition: transform 0.3s ease;
}

.warning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 77, 79, 0.15);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(0, 210, 255, 0.15);
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.warning-card h3 {
    color: #ff4d4f;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Calculator Section */
.calc-container {
    padding: 40px;
    text-align: center;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.calc-input-group label {
    font-size: 1.2rem;
    font-weight: bold;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-with-unit input {
    font-size: 1.5rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    width: 150px;
    text-align: center;
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--color-primary-glow);
}

.calc-results {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    animation: fadeInUp 0.5s ease-out;
}

.calc-results h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

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

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
}

.breakdown-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 3px solid var(--color-secondary);
}

.breakdown-item .icon {
    font-size: 2rem;
}

.breakdown-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.breakdown-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* Monetization Action Section */
.action-container {
    padding: 50px;
    text-align: center;
    background: linear-gradient(180deg, rgba(13, 25, 48, 0.8) 0%, rgba(58, 123, 213, 0.2) 100%);
    border-top: 2px solid var(--color-primary);
}

.action-container h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.action-container p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.action-card {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, background 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.action-card p {
    font-size: 1rem;
    margin-bottom: 24px;
}

.action-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .chart-container { padding: 12px; }
    .simulator-layout { flex-direction: column; }
    .article-container { padding: 30px 20px; }
    .action-container { padding: 30px 20px; }
}

/* Floating X Share Button */
.floating-x-share {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000000;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.floating-x-share:hover {
    transform: translateY(-3px);
    background-color: #1a1a1a;
}

@media (max-width: 768px) {
    .floating-x-share {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
}

/* 5 Points Grid */
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.point-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 25, 48, 0.5);
    border-radius: 12px;
}
.point-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    background: rgba(13, 25, 48, 0.9);
}
.point-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 0 4px 10px var(--color-primary-glow);
}
.point-text h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}
.point-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
