:root {
    --bg-color: #050a14;
    --text-color: #e6f1ff;
    --text-muted: #8892b0;
    --accent-color: #64ffda;
    --glass-bg: rgba(17, 34, 64, 0.7);
    --glass-border: rgba(100, 255, 218, 0.1);
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-jp);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.en-name {
    display: block;
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    font-weight: 300;
}

.subtitle {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-en);
    border-radius: 4px;
    font-weight: 500;
}

.cta-button:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Section Common */
.section {
    padding: 8rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

/* Article/Full Text Styles */
.content-wrapper {
    position: relative;
    z-index: 1;
}

.article-section {
    padding: 6rem 0;
}

.container-narrow {
    max-width: 800px;
    /* Optimal readability width */
}

.section-header {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.chapter-number {
    font-family: var(--font-en);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(100, 255, 218, 0.1);
    position: absolute;
    top: -30px;
    left: 0;
    line-height: 1;
    z-index: -1;
}

.chapter-title {
    font-size: 2rem;
    line-height: 1.3;
}

.text-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #cbd5e1;
    /* Lighter gray for better reading on dark */
    text-align: justify;
}

.text-content p {
    margin-bottom: 1.5rem;
}

/* Headings within text */
.sub-chapter-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

/* Highlight Components */
.quote-box {
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    margin: 2rem 0;
    font-style: italic;
    color: #fff;
    font-size: 1.1rem;
}

.quote-box i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: block;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-box h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.separator {
    text-align: center;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--text-muted);
    margin: 1.5rem 0;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* 2-hit Theory Visual */
.concept-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.hit-item,
.result-item {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.hit-label,
.result-label {
    display: block;
    font-family: var(--font-en);
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plus-icon,
.equals-icon {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.result-item {
    background: rgba(100, 255, 218, 0.15);
    border-color: var(--accent-color);
}

/* Data List */
.data-list {
    list-style: none;
    margin: 1.5rem 0;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-val {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--accent-color);
}

/* Project Box */
.project-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-box h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.signature {
    text-align: right;
    font-size: 1.5rem;
    margin-top: 3rem;
    font-family: serif;
}

/* Manuscript Figures */
.figure-container {
    margin: 3rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.manuscript-figure {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s;
}

.manuscript-figure:hover {
    transform: scale(1.02);
}

.caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
    text-align: left;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .vision-grid {
        flex-direction: column;
    }

    .arrow-container {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .research-item {
        flex-direction: column;
    }

    .research-item.reverse {
        flex-direction: column;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .edu-stats {
        flex-direction: column;
        gap: 2rem;
    }
}