@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --accent-blue: #6366f1;
    --accent-indigo: #4f46e5;
    --accent-cyan: #06b6d4;
    --accent-glow: #ec4899;
    --accent-glow-secondary: #8b5cf6;
    --bg-main: #060913; /* Premium deeper dark */
    --bg-card: rgba(17, 24, 39, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --shadow-premium: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-blur: blur(20px);
    --accent-magenta: #ec4899;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Premium dark gradient background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-glow-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(6, 9, 19, 0.7);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
}
.logo-text { font-size: 1.4rem; font-weight: 800; font-family: 'Outfit'; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.95rem; font-weight: 500; transition: var(--transition-smooth);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.user-profile { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
button, .primary-btn, .secondary-btn {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    cursor: pointer; border-radius: 12px; font-weight: 600;
    transition: var(--transition-smooth);
}
.primary-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: white; border: none; padding: 0.8rem 1.8rem; font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.primary-btn:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5); filter: brightness(1.1);
}
.secondary-btn {
    background: rgba(255,255,255,0.03); color: var(--text-primary);
    border: 1px solid var(--border-card); padding: 0.8rem 1.8rem; font-size: 0.95rem;
}
.secondary-btn:hover {
    background: var(--bg-glass); border-color: var(--text-primary); transform: translateY(-2px);
}
.secondary-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; border-color: var(--border-glass); }

.lang-toggle-btn {
    padding: 0.5rem 1rem; margin-right: 1rem; border-color: rgba(255,255,255,0.3);
}

/* News & Event Cards */
.news-container { display: flex; flex-direction: column; gap: 1.5rem; }
.news-card {
    display: flex; gap: 1.5rem; align-items: flex-start;
    padding: 1.5rem; transition: var(--transition-smooth);
}
.news-card:hover { transform: scale(1.01); background: rgba(255,255,255,0.05); }

.date-badge {
    background: var(--accent-blue); color: #fff; padding: 0.5rem 1rem; 
    border-radius: 8px; font-weight: 700; font-size: 0.9rem; white-space: nowrap;
}
.date-badge.future { background: var(--accent-magenta); }
.date-badge.past { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }

.news-content h4 { font-size: 1.15rem; margin-bottom: 0.5rem; line-height: 1.4; }
.news-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* Hero Section */
.hero { 
    min-height: 98vh; 
    padding: 8rem 4rem 4rem; 
    display: flex; 
    align-items: center; 
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.05) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.1) 0, transparent 50%),
        var(--bg-deep);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
    pointer-events: none; /* これで下のボタンがクリックできるようになります */
}
.hero-content h1 { 
    font-size: 6.5rem; line-height: 0.95; margin-bottom: 2.5rem; font-weight: 800; 
    letter-spacing: -4px; 
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.4rem; font-weight: 300; letter-spacing: -0.5px; opacity: 0.8; }
.badge {
    display: inline-block; padding: 0.4rem 1.2rem; background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 100px; color: var(--accent-cyan);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 2rem; text-transform: uppercase;
}
.hero-content p.hero-desc {
    font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 4rem; max-width: 700px; line-height: 1.8;
}
.hero-stats { display: flex; justify-content: flex-start; gap: 4rem; margin-bottom: 4rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 3rem; font-weight: 800; font-family: 'Outfit'; color: var(--text-primary); margin-bottom: -5px; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.stat-sep { width: 1px; height: 50px; background: var(--border-glass); margin-top: 15px; }
.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 99; /* 前面へ */
    pointer-events: all;
}

.primary-btn, .secondary-btn {
    cursor: pointer !important;
    position: relative;
    z-index: 100; /* 最前面へ */
    transition: all 0.3s ease;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}
.sync-date { font-size: 0.85rem; color: var(--text-secondary); opacity: 0.7; font-weight: 500; display: block; margin-top: 1rem; }

/* Dashboard / Intel */
.section-padding { padding: 6rem 4rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-secondary); font-size: 1.15rem; }

.glass-card {
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px; padding: 2.5rem; box-shadow: var(--shadow-premium);
}
.intel-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: stretch; }
.intel-card { display: flex; flex-direction: column; height: 100%; }
.intel-card h3 { font-size: 1.3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 0.8rem; }

/* Dashboard Charts fixes */
.dashboard-chart-area {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) rgba(255,255,255,0.05);
}
.dashboard-chart-area::-webkit-scrollbar {
    height: 6px;
}
.dashboard-chart-area::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
.dashboard-chart-area::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 10px;
}
.trend-bars {
    display: flex; align-items: flex-end; gap: 14px; height: 240px; padding: 30px 20px; margin-top: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-width: max-content;
}
.trend-bar {
    width: 32px; flex-shrink: 0; background: linear-gradient(to top, var(--accent-indigo), var(--accent-cyan));
    border-radius: 6px 6px 0 0; position: relative; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.75; cursor: help;
}
.trend-bar:hover { opacity: 1; filter: brightness(1.2); box-shadow: 0 0 20px rgba(99,102,241,0.4); }
.trend-bar-value {
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--accent-cyan); font-weight: bold;
}
.trend-bar-inner {
    position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%) rotate(-45deg); font-size: 0.7rem; color: var(--text-secondary); font-weight: 500;
    white-space: nowrap;
}
.chart-caption { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2rem; text-align: center; opacity: 0.6; font-weight: 500;}

.topic-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.topic-item {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass);
    padding: 0.6rem 1.2rem; border-radius: 100px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px;
    color: var(--text-primary); transition: var(--transition-smooth); cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.topic-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.2);
}
.topic-item span {
    background: var(--accent-blue); padding: 2px 10px; border-radius: 100px; font-size: 0.8rem; font-weight: bold; color: white;
}

/* History UI */
.history-timeline {
    position: relative; padding: 4rem 0;
}
.history-timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-glass);
}
.timeline-event {
    width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem;
}
.timeline-event:nth-child(even) { flex-direction: row-reverse; }
.timeline-card {
    width: 45%; padding: 2.5rem; background: var(--bg-card); border: 1px solid var(--border-glass);
    border-radius: 24px; position: relative;
}
.timeline-dot {
    width: 20px; height: 20px; background: var(--accent-cyan); border-radius: 50%;
    position: absolute; left: 50%; transform: translateX(-50%); z-index: 10;
    box-shadow: 0 0 20px var(--accent-cyan);
}
.timeline-date {
    font-size: 2.5rem; font-weight: 800; font-family: 'Outfit'; opacity: 0.15;
    position: absolute; top: -1rem; right: 2rem;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
.pulse-point {
    position: absolute; width: 12px; height: 12px; background: var(--accent-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--accent-cyan);
}
.pulse-point::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    background: var(--accent-cyan); border-radius: 50%; transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
}

/* The Story Items - Adjust layout */
.section-story { padding: 6rem 4rem; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }

/* Knowledge Library */
.section-papers { padding: 6rem 4rem; }
.search-bar { position: relative; max-width: 500px; width: 100%; margin-top: 1rem; }
.search-bar input {
    width: 100%; padding: 1.2rem 1.8rem; padding-right: 5rem; border-radius: 100px;
    background: rgba(17, 24, 39, 0.6); border: 1px solid var(--border-card); color: var(--text-primary);
    font-size: 1.05rem; font-family: inherit; transition: var(--transition-smooth);
}
.search-bar input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); background: rgba(17, 24, 39, 0.9); }
.search-bar button {
    position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
    background: var(--accent-blue); border: none; border-radius: 100px; color: white;
    padding: 0.7rem 1.4rem; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.search-bar button:hover { background: var(--accent-indigo); }

/* Category Filter Chips */
.filter-container { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-chip {
    padding: 0.7rem 1.5rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass);
    border-radius: 100px; color: var(--text-secondary); cursor: pointer; transition: var(--transition-smooth); font-weight: 500; font-size: 0.95rem;
}
.filter-chip:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); transform: translateY(-2px); }
.filter-chip.active { background: var(--accent-blue); color: white; border-color: var(--accent-blue); box-shadow: 0 5px 15px rgba(99,102,241,0.3); }

/* Index List Enhancement (Fixing alignment / overflow) */
.index-container {
    background: rgba(17, 24, 39, 0.5); padding: 2rem 2.5rem; border-radius: 24px;
    border: 1px solid var(--border-card); margin-bottom: 4rem; max-height: 450px; overflow-y: auto;
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.2);
}
/* Custom scrollbar */
.index-container::-webkit-scrollbar { width: 8px; }
.index-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 10px; }
.index-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.index-container::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

#paperIndexList li {
    display: flex; justify-content: space-between; align-items: stretch; padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: all 0.2s;
}
/* Intelligence Archive - New Unified Style */
#paperIndexList {
    list-style: none;
    padding: 0;
}
.knowledge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 2rem;
    display: flex;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}
.knowledge-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-side-info {
    flex: 0 0 140px;
    background: rgba(255,255,255,0.02);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border-glass);
}
.card-year {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}
.card-tags-v {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.card-tags-v .tag-chip {
    width: 100%;
    margin: 0;
    font-size: 0.65rem;
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    white-space: nowrap;
    overflow: hidden;
}

.card-main-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-header-row {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: flex-end;
}
.source-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}
.source-badge:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.source-pubmed { background: rgba(99, 102, 241, 0.15); color: var(--accent-cyan); border: 1px solid rgba(99, 102, 241, 0.3); }
.source-j-stage { background: rgba(236, 72, 153, 0.15); color: #ec4899; border: 1px solid rgba(236, 72, 153, 0.3); }
.source-cinii { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.8rem;
    color: #fff;
    font-family: 'Outfit';
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
.card-authors {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-abstract-preview {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    padding: 1.2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
}

.card-actions {
    flex: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.01);
    padding: 0.8rem;
    gap: 0.8rem;
}
.source-jump-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
    width: 100%;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.expand-toggle-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: var(--accent-cyan);
    font-family: 'Outfit';
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: 0.3s;
}
.expand-toggle-btn:hover { 
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Filter Infrastructure Improvements */
.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-item label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.filter-options {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.25s var(--transition-smooth);
}

.filter-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-main);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.filter-btn:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-cyan);
    color: #fff;
}

/* --- Absolute Visibility Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 99999; /* 確実に最前面へ */
    overflow-y: auto;
}

.modal-content {
    background: #0f172a; /* 確実な暗色背景 */
    color: #f8fafc;
    margin: 5vh auto;
    padding: 3rem;
    width: 90%;
    max-width: 900px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    min-height: 200px;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .knowledge-card { flex-direction: column; overflow: hidden; }
    .card-side-info { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--border-glass); flex-direction: row; justify-content: space-between; padding: 1rem 2rem; }
    .card-tags-v { flex-direction: row; width: auto; gap: 0.5rem; }
    .card-year { margin-bottom: 0; }
    .card-actions { 
        border-left: none; 
        border-top: 1px solid var(--border-glass); 
        flex-direction: row; 
        width: 100%; 
        padding: 1.2rem;
        gap: 1.2rem;
    }
    .abstract-btn, .source-jump-btn { flex: 1; height: 45px; }
    .modal-content { padding: 2rem; border-radius: 12px; margin: 2vh auto; }
}

/* --- Deep Time Timeline Styles --- */
.history-timeline {
    position: relative;
    padding: 3rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-event {
    position: relative;
    padding: 2rem 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.timeline-event:nth-child(even) {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--accent-gold);
    z-index: 10;
    top: 50%;
}

.timeline-card {
    width: 45%;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-event:nth-child(odd) .timeline-card {
    border-left: 4px solid var(--accent-gold);
}

.timeline-event:nth-child(even) .timeline-card {
    border-right: 4px solid var(--accent-gold);
    text-align: right;
}

.timeline-card:hover {
    transform: scale(1.03) translateY(-10px);
    border-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.2);
}

.timeline-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
}

.timeline-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-card p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .timeline-dot { left: 20px; transform: none; }
    .timeline-card { width: 90%; margin-left: 40px !important; text-align: left !important; border-left: 4px solid var(--accent-gold) !important; border-right: none !important; }
    .timeline-event:nth-child(even) { justify-content: flex-start; }
}

/* Trends Graph Special Highlighting */
.origin-peak {
    background: linear-gradient(to top, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.8)) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.nature-peak {
    background: linear-gradient(to top, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.8)) !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

/* Hero Refined Styles */
.hero-section {
    background: linear-gradient(rgba(10,14,24,0.8), rgba(10,14,24,0.9)), url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
}
.hero-stats-row {
    margin-top: 2rem;
    display: flex;
    gap: 3.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}
.stat-live-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}
.pulse-dot-live {
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700;
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.stat-num-hero {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit';
    line-height: 1;
}
.stat-label-hero {
    display: block;
    opacity: 0.6;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.stat-prefix-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}
.label-live { color: #ffd700; }
.label-cyan { color: var(--accent-cyan); }
.label-secondary { color: var(--text-secondary); }

.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.search-bar-container {
    max-width: 100%;
    margin-bottom: 3rem;
}

/* Footer Styles */
.site-footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--border-glass);
    padding-top: 5rem;
    padding-bottom: 3rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit';
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-credits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.credit-item label {
    display: block;
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.credit-item p {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-credits { grid-template-columns: 1fr; gap: 2rem; }
}

/* Initial Loader */
.initial-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #020617;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.initial-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-glow 2s infinite;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    transition: width 0.3s ease;
}

#loading-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Section Refinements */
.story-section {
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.03));
    position: relative;
}

@keyframes pulse-glow {
    0% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.2); }
    100% { opacity: 0.8; }
}

/* Modal UI Components */
.modal-tags {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.modal-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.modal-meta {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

.modal-abstract-card {
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    font-size: 1.15rem;
    border-left: 6px solid var(--accent-cyan);
    background: rgba(15, 23, 42, 0.4);
    border-radius: 20px;
}

.modal-abstract-card center-label {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
}

.abstract-content {
    color: #e2e8f0;
    word-break: break-word;
}

.modal-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pulse-btn {
    animation: btn-pulse 3s infinite;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 30px;
    border: 1px dashed rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Professional Insight Section */
.insight-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(2, 6, 23, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.insight-visual {
    position: relative;
}

.poster-container {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
    cursor: zoom-in;
    overflow: hidden;
}

.poster-container:hover {
    transform: scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.poster-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    transition: 0.5s ease;
}

.poster-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 242, 255, 0.9);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
    pointer-events: none; /* クリックが親の poster-container に通るようにする */
    z-index: 5;
    transition: 0.3s ease;
}

.poster-container:hover .poster-overlay {
    transform: translateY(-5px);
    background: #fff;
}

.expert-profile {
    margin-bottom: 2rem;
}

.expert-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 0.8rem;
    display: block;
}

.expert-names {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
}

.product-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.insight-desc {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.large-btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

@media (max-width: 968px) {
    .insight-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Poster Fallback System */
.poster-fallback-content {
    display: none;
    padding: 3rem;
    text-align: left;
}

.poster-fallback .poster-img {
    display: none;
}

.poster-fallback .poster-fallback-content {
    display: block;
}

.conference-badge {
    background: var(--accent-cyan);
    color: #000;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.white-text {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.fallback-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.f-stat {
    display: flex;
    flex-direction: column;
}

.f-stat label {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.f-stat span {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    font-family: 'Outfit';
}

.fallback-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Poster Modal Specifics */
.poster-modal-content {
    max-width: 90vw;
    width: 1000px;
    margin-top: 3vh;
    padding: 0;
    overflow-y: auto;
    max-height: 94vh;
}

@media (max-width: 768px) {
    .poster-modal-content {
        max-width: 95vw;
        padding: 0;
    }
}

/* Intelligence Dashboard - Compact Layout */
.dashboard-panel {
    padding: 3rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.dashboard-header {
    margin-bottom: 3rem;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.area-label {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.area-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent-cyan);
}

.trend-chart-container {
    height: 380px; /* 縦長に変更 */
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 2px; /* PubMed風に極細の間隔へ */
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    background: rgba(0,0,0,0.2);
    padding-left: 10px;
    padding-right: 10px;
}

.compact-chart {
    display: flex;
    align-items: flex-end;
    gap: 1px; /* バーの隙間を極限まで詰める */
    height: 100%;
    width: 100%;
}

.trend-bar {
    flex: 1;
    min-width: 2px; /* 1本ずつを細く */
    background: var(--accent-cyan);
    border-radius: 1px 1px 0 0;
    position: relative;
    transition: 0.2s;
}

.trend-bar:nth-child(even) {
    background: rgba(34, 211, 238, 0.6); /* 互い違いに色を変えて密度感を演出 */
}

.trend-bar:hover {
    background: var(--accent-gold);
    transform: scaleY(1.05);
    z-index: 10;
}

.trend-bar-inner {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg); /* 縦書き風に回転 */
    font-size: 0.5rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0; /* 数が多いので一部だけ表示（後でJSで調整可） */
}

/* 10年ごとのラベルだけ表示させる */
.trend-bar:nth-child(10n) .trend-bar-inner {
    opacity: 1;
}

/* Dense Topic Cloud */
.dense-topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.topic-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topic-item span {
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 0.75rem;
    background: rgba(34, 211, 238, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}

.topic-item:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--accent-cyan);
    color: #fff;
    transform: translateY(-2px);
}

.chart-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1.5rem;
}

.dashboard-grid {
    display: flex;
    flex-direction: column; /* 確実に重なりを避けるため、基本を縦並びから開始し、幅がある時だけ横にする */
    gap: 4rem;
}

@media (min-width: 1200px) {
    .dashboard-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .dashboard-chart-area {
        flex: 1.6;
        min-width: 0;
        overflow: hidden;
    }
    .dashboard-topics-area {
        flex: 1;
        min-width: 0;
        background: rgba(15, 23, 42, 0.4);
        padding: 2rem;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.05);
    }
}

@media (max-width: 768px) {
    .dashboard-topics-area {
        padding: 1rem;
        width: 100%;
    }
    .topic-item {
        white-space: nowrap; /* 縦書きを防止 */
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
    
.dashboard-panel {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: var(--shadow-xl);
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

/* Institutional Synergy - Premium Aesthetics */
.synergy-canvas {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 20px;
}

.synergy-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

.synergy-content {
    text-align: center;
    z-index: 1;
}

.synergy-label {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.synergy-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Strategic Video Promotion - Professional Styles */
.promotion-video-area {
    margin-bottom: 5rem;
    padding: 2rem;
    border-radius: 24px;
}

.video-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.promo-btn {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    display: inline-flex;
    align-items: center;
}

.promo-btn .btn-icon {
    margin-right: 8px;
}

/* Scientific Manifesto Typography */
.manifesto-text {
    max-width: 800px;
    margin: 2.5rem auto;
    font-size: 1.15rem;
    line-height: 1.9;
    opacity: 0.95;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 300;
}

.manifesto-text strong {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Academic Control Panel - PhD Level Refinement */
.academic-control-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.control-section {
    flex: 1;
    min-width: 280px;
}

.control-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.filter-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.filter-pill.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

@media (max-width: 768px) {
    .academic-control-panel {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .filter-pill {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* --- Research Card Premium Redesign --- */
.knowledge-card {
    display: flex;
    flex-direction: column; /* スマホでは縦積みで情報をしっかり見せる */
    gap: 1.2rem;
    padding: 1.8rem;
    background: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

@media (min-width: 968px) {
    .knowledge-card {
        display: grid;
        grid-template-columns: 100px 1fr 180px;
        flex-direction: row;
        align-items: center;
    }
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    word-break: break-word; /* 途中で切らずに折り返す */
}

@media (min-width: 968px) {
    .card-title {
        font-size: 1.35rem;
    }
}

.knowledge-card:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
}

.year-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(6, 182, 212, 0.2);
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card-tags-v {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.pmid-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
    opacity: 0.6;
}

.card-authors-row {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.card-abstract-preview {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(203, 213, 225, 0.85);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Future proofing */
    overflow: hidden;
}

.card-actions-v {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.card-actions-v .primary-btn, 
.card-actions-v .secondary-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
}

.btn-icon {
    font-size: 1rem;
}

/* --- Global Responsive Overhaul --- */

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
        padding: 0 1rem;
    }

    header nav {
        display: none; 
    }
    
    /* 言語切り替えボタンだけはスマホでも表示する */
    #langToggle {
        display: block !important;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 1.5rem;
    }

    /* 論文カードのスマホ最適化 */
    .knowledge-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .card-side-info {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 1rem;
    }
    
    .card-actions-v {
        flex-direction: row !important;
        border-left: none !important;
        border-top: 1px solid rgba(255,255,255,0.05);
        padding-left: 0 !important;
        padding-top: 1rem;
        gap: 0.5rem;
    }
    
    .card-actions-v button {
        flex: 1;
        font-size: 0.75rem !important;
        padding: 0.6rem !important;
    }
    
    /* モーダルのスマホ最適化 */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 5% auto;
    }
    
    .academic-title {
        font-size: 1.2rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }

    /* トピックセクションのスマホ最適化 */
    .topic-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255,255,255,0.03);
        padding: 0.8rem 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.05);
        cursor: pointer;
        width: 100%;
        white-space: nowrap; /* 文字を縦一列にしない */
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .topic-name {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis; /* 長すぎる場合は末尾のみ省略 */
    }
}

/* 追加の微調整：iPhone SEなどの極小画面用 */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .primary-btn, 
    .hero-actions .secondary-btn {
        width: 100%;
        text-align: center;
    }
}

/* --- World-Class Mobile UX Overhaul --- */

:root {
    --mobile-padding: 1.25rem;
}

@media (max-width: 768px) {
    /* Fluid Typography & Layout */
    body {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem !important; /* スマホで見出しを少し小さく */
        letter-spacing: -1px;
    }

    .dashboard-panel h2 {
        font-size: 1.25rem !important; /* 表示崩れを完全に防ぐサイズ */
        line-height: 1.1;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
    }

    .area-label {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .section-tag {
        font-size: 0.7rem;
    }

    .container {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }

    /* Header Optimization - Prevent Overlap */
    .navbar {
        height: auto;
        padding: 1rem var(--mobile-padding);
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .logo-container {
        font-size: 1.2rem;
    }

    #langToggle {
        width: 100%;
        max-width: 120px;
    }

    /* Hero Section - Text Shifting Fix */
    .hero-section h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
        word-break: break-word;
    }

    .hero-desc {
        font-size: 0.95rem;
        text-align: justify;
    }

    /* Dashboard - Chart Panorama Logic */
    .dashboard-chart-area {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin; /* Firefox */
        padding-bottom: 1.5rem;
        margin-bottom: 2rem;
    }

    /* スクロールバーの美装 (iPhone/Android対応) */
    .dashboard-chart-area::-webkit-scrollbar {
        height: 4px;
    }
    .dashboard-chart-area::-webkit-scrollbar-thumb {
        background: rgba(var(--accent-primary-rgb), 0.3);
        border-radius: 10px;
    }

    .trend-chart-container {
        min-width: 800px; /* 1950年から2025年までを美しく表示するために確保 */
        height: 280px;
        display: flex;
        align-items: flex-end;
        gap: 2px;
    }

    /* Topic Cloud - Better wrapping */
    .dense-topic-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .topic-item {
        flex: 1 1 calc(50% - 0.5rem); /* 2カラム並びで安定させる */
        min-width: 140px;
        font-size: 0.8rem;
    }

    /* Knowledge Card - Flowing Structure */
    .knowledge-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .card-side-info {
        display: flex;
        flex-wrap: wrap; 
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .year-badge, .elite-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .academic-title {
        font-size: 1.05rem;
        line-height: 1.4;
    }

    /* Modal - Prevent Overflow */
    .modal-content {
        width: 92% !important;
        margin: 10% auto !important;
        padding: 1.5rem !important;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Fix for horizontal chart bars */
.trend-bar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    background: linear-gradient(to top, var(--accent-cyan), var(--accent-primary));
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    min-height: 12px; /* 小さなデータでも存在感を持たせる */
}

.trend-bar:hover {
    background: var(--highlight-color);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* --- Elite & Premium Elements (Restored) --- */
.elite-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 0.5rem;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.05em;
    display: inline-block;
}

.section-marker {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.is-visible { display: block !important; }
.is-hidden { display: none !important; }
.is-transparent { opacity: 0.6 !important; }

img {
    max-width: 100%;
    height: auto;
}
/* --- Academic Summary Section (SEO) --- */
.academic-summary {
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.05));
}
.summary-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.summary-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.keyword-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.keyword-tags li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 600;
    transition: var(--transition-smooth);
}
.keyword-tags li:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .summary-content-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   100% QUALITY UPGRADE: AGENTIC & INTELLIGENCE STYLES
   ========================================================================== */

/* Intelligence Pulse Ticker */
.intelligence-pulse {
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 999;
    background: rgba(99, 102, 241, 0.1);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.pulse-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}
.pulse-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-right: 2rem;
    letter-spacing: 2px;
    white-space: nowrap;
}
.pulse-ticker {
    display: flex;
    gap: 4rem;
    animation: ticker-slide 30s linear infinite;
}
.ticker-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0.8;
}
@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating AI Agent */
.ai-agent-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}
.ai-agent-trigger {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    padding: 0; /* Reset glass-card padding */
}
.ai-agent-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(99, 102, 241, 0.4);
}
.agent-icon {
    font-size: 1.8rem;
    animation: agent-float 3s ease-in-out infinite;
}
.agent-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
}
@keyframes agent-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.ai-agent-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-agent-panel.is-hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}
.agent-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-glass);
}
.agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.agent-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.agent-info .status { font-size: 0.7rem; color: #10b981; font-weight: 600; }
.close-agent {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.agent-body {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}
.agent-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
}
.agent-msg.bot {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}
.agent-msg.user {
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.agent-footer {
    padding: 1.2rem;
    display: flex;
    gap: 0.8rem;
    border-top: 1px solid var(--border-glass);
}
.agent-footer input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    color: white;
    font-size: 0.85rem;
}
.agent-footer button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Interactive Network Map */
.interactive-graph {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.3;
}
.node-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}
.line-connect {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    transform-origin: left center;
    opacity: 0.2;
}

/* Scroll Trigger Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   HYPER-INTELLIGENCE PHASE: 100% QUALITY FINAL
   ========================================================================== */

/* 3D Molecular Background */
.molecular-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Audio Player Pulse */
.audio-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
}
.audio-btn:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 15px var(--accent-blue);
}
.audio-btn.playing {
    animation: audio-pulse 1s infinite alternate;
    background: var(--accent-magenta);
    border-color: var(--accent-magenta);
}
@keyframes audio-pulse {
    from { transform: scale(1); box-shadow: 0 0 10px var(--accent-magenta); }
    to { transform: scale(1.2); box-shadow: 0 0 25px var(--accent-magenta); }
}

/* Global Analytics Map */
.world-map-placeholder {
    height: 400px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1) brightness(0.65) sepia(0.8) saturate(6) hue-rotate(180deg) opacity(0.9);
    box-shadow: inset 0 0 50px rgba(6,182,212,0.15);
}
.map-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-cyan);
    animation: point-glow 2s infinite;
}
.map-point::after {
    content: attr(data-count);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
}
.map-point.us { top: 35%; left: 20%; }
.map-point.eu { top: 30%; left: 48%; background: var(--accent-magenta); box-shadow: 0 0 15px var(--accent-magenta); }
.map-point.jp { top: 40%; left: 82%; }
.map-point.cn { top: 42%; left: 75%; }

@keyframes point-glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0.3; }
}

.map-stats-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(6, 9, 19, 0.8);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.m-stat { font-size: 0.8rem; display: flex; justify-content: space-between; gap: 2rem; }
.m-stat strong { color: var(--accent-cyan); }


/* SEO Directory & Authority Enhancements */
.seo-directory {
    background: linear-gradient(to bottom, transparent, rgba(6, 182, 212, 0.05));
    border-top: 1px solid var(--border-glass);
}
.directory-container {
    padding: 3.5rem !important;
}
.directory-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}
.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.dir-col h3 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.dir-col ul {
    list-style: none;
    padding: 0;
}
.dir-col li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 0.5rem;
}
.dir-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.dir-col a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}
@media (max-width: 768px) {
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
