        :root {
            --header-bg: #1a1f2e;
            --header-text: #ffffff;
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-card: #ffffff;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --text-muted: #718096;
            --accent-teal: #2b6cb0;
            --accent-coral: #996060;
            --accent-warm: #c05621;
            --accent-green: #2f855a;
            --border: #e2e8f0;
            --shadow: 0 1px 3px rgba(0,0,0,0.08);
            --hot-color: #dc2626;
            --cold-color: #0891b2;
            --loser-bg: #fef2f2;
            --loser-border: #fecaca;
            --winner-bg: #f0fdf4;
            --winner-border: #bbf7d0;
        }

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

        body {
            font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
            background: var(--bg-secondary);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        body.ja {
            font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
        }

        /* Header */
        header {
            background: var(--header-bg);
            color: var(--header-text);
            padding: 0.75rem 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: -0.01em;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: inherit;
        }

        .logo-icon {
            overflow: hidden;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #5b9a94 0%, #2b6cb0 100%);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .lang-switch {
            font-size: 0.8rem;
            display: flex;
            gap: 0.25rem;
        }

        .lang-switch button {
            background: none;
            border: none;
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            font-size: 0.8rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .lang-switch button:hover { color: rgba(255,255,255,0.9); }
        .lang-switch button.active { color: #ffffff; background: rgba(255,255,255,0.15); }

        /* Main */
        main {
            max-width: 900px;
            margin: 0 auto;
            padding: 2.5rem 2rem;
        }

        /* Breadcrumb */
        .breadcrumb {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
        }

        .breadcrumb a {
            color: var(--accent-teal);
            text-decoration: none;
        }

        .breadcrumb a:hover { text-decoration: underline; }

        /* Page header */
        .page-header {
            margin-bottom: 2.5rem;
        }

        .page-header h1 {
            font-size: 1.75rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            margin-bottom: 0.75rem;
        }

        body.ja .page-header h1 {
            font-size: 1.5rem;
            letter-spacing: 0;
        }

        .page-header .lead {
            font-size: 1rem;
            color: var(--text-secondary);
            line-height: 1.8;
            max-width: 720px;
        }

        body.ja .page-header .lead {
            line-height: 2;
        }

        /* Cards */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: var(--shadow);
        }

        .card-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        /* Winners and Losers grid */
        .wl-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

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

        .wl-card {
            padding: 1.25rem;
            border-radius: 8px;
            border: 1px solid;
        }

        .wl-card.loser {
            background: var(--loser-bg);
            border-color: var(--loser-border);
        }

        .wl-card.winner {
            background: var(--winner-bg);
            border-color: var(--winner-border);
        }

        .wl-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
        }

        .wl-card.loser .wl-header { color: var(--hot-color); }
        .wl-card.winner .wl-header { color: var(--accent-green); }

        .wl-list {
            list-style: none;
        }

        .wl-list li {
            padding: 0.35rem 0;
            font-size: 0.9rem;
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
        }

        .wl-list .scientific {
            font-style: italic;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .wl-note {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 0.75rem;
            padding-top: 0.5rem;
            border-top: 1px dashed var(--border);
        }

        /* Hero section */
        .hero-section {
            background: linear-gradient(135deg, rgba(30, 60, 114, 0.75), rgba(42, 157, 143, 0.75)), url("../images/bg-species.webp");
            color: white;
            padding: 2.5rem 2rem;
            border-radius: 12px;
            margin-bottom: 2.5rem;
            background-size: cover;
            background-position: center;
        }

        .hero-main { text-align: center; margin-bottom: 1.5rem; }
        .hero-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }

        .hero-tagline {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        body.ja .hero-tagline { font-size: 1.3rem; }

        .hero-subtitle {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 1rem;
        }

        .hero-stat {
            display: inline-block;
            background: rgba(255,255,255,0.2);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            margin-top: 0.5rem;
        }

        .hero-stat .number {
            font-family: 'JetBrains Mono', monospace;
            font-size: 2rem;
            font-weight: 600;
        }

        .hero-stat .label {
            font-size: 0.85rem;
            opacity: 0.9;
            margin-top: 0.25rem;
        }

        /* Story box */
        .story-box {
            background: #fffbeb;
            border: 1px solid #fde68a;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .story-box .story-lead {
            font-size: 1.05rem;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        body.ja .story-box .story-lead { line-height: 2; }

        .story-box p {
            font-size: 0.95rem;
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.9;
        }

        .story-box p:last-child { margin-bottom: 0; }

        .story-box .highlight {
            background: linear-gradient(transparent 60%, #fde68a 60%);
            padding: 0 0.2rem;
        }

        .story-box .emphasis {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Content sections */
        .content-section {
            margin-bottom: 2rem;
        }

        .content-section h2 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .content-section h3 {
            font-size: 0.95rem;
            font-weight: 600;
            margin: 1.5rem 0 0.75rem;
            color: var(--text-primary);
        }

        .content-section p {
            color: var(--text-secondary);
            line-height: 1.9;
            margin-bottom: 1rem;
        }

        body.ja .content-section p {
            line-height: 2.1;
        }

        .cite {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Factor cards */
        .factor-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 1rem;
        }

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

        .factor-card {
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 6px;
            text-align: center;
        }

        .factor-card .icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .factor-card .title {
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 0.35rem;
        }

        .factor-card .desc {
            font-size: 0.75rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* Recovery pattern */
        .recovery-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 1rem;
        }

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

        .recovery-card {
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 6px;
            border-left: 3px solid;
        }

        .recovery-card.boom-bust {
            border-color: var(--accent-warm);
        }

        .recovery-card.protracted {
            border-color: var(--accent-teal);
        }

        .recovery-card .pattern-name {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }

        .recovery-card .genus {
            font-size: 0.8rem;
            font-style: italic;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }

        .recovery-card .desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Case study table */
        .case-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
            margin-top: 1rem;
        }

        .case-table th, .case-table td {
            padding: 0.6rem 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border);
        }

        .case-table th {
            font-weight: 600;
            color: var(--text-primary);
            background: var(--bg-secondary);
        }

        .case-table td {
            color: var(--text-secondary);
        }

        /* Insights box */
        .insights-box {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bae6fd;
            border-radius: 8px;
            padding: 1.25rem;
            margin-top: 1.5rem;
        }

        .insights-box .box-title {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .insights-list {
            list-style: none;
        }

        .insights-list li {
            padding: 0.5rem 0;
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.7;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .insights-list li:last-child {
            border-bottom: none;
        }

        .insights-list .label {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Coming soon placeholder */
        .coming-soon {
            background: var(--bg-secondary);
            border: 2px dashed var(--border);
            border-radius: 8px;
            padding: 2rem;
            text-align: center;
            color: var(--text-muted);
            margin: 1rem 0;
        }

        .coming-soon .badge {
            display: inline-block;
            background: var(--border);
            color: var(--text-muted);
            font-size: 0.7rem;
            font-weight: 600;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            letter-spacing: 0.05em;
        }

        .coming-soon .title {
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 0.25rem;
        }

        .coming-soon .desc {
            font-size: 0.75rem;
        }

        /* Source info */
        .source-info {
            font-size: 0.75rem;
            color: var(--text-muted);
            padding: 1rem;
            background: var(--bg-secondary);
            border-radius: 6px;
            margin-top: 1rem;
        }

        .source-info a {
            color: var(--accent-teal);
            text-decoration: none;
        }

        .source-info a:hover { text-decoration: underline; }

        .source-info ul {
            margin-top: 0.5rem;
            padding-left: 1.25rem;
        }

        .source-info li {
            margin-bottom: 0.35rem;
        }

        /* Footer */
        footer {
            max-width: 900px;
            margin: 0 auto;
            padding: 2rem;
            text-align: center;
            font-size: 0.75rem;
            color: var(--text-muted);
            border-top: 1px solid var(--border);
        }

        footer a {
            color: var(--accent-teal);
            text-decoration: none;
        }

        /* Language toggle */
        [data-lang="ja"] { display: none; }
        body.ja [data-lang="en"] { display: none; }
        body.ja [data-lang="ja"] { display: inline; }

        /* Block elements need display: block */
        div[data-lang="ja"], li[data-lang="ja"], tr[data-lang="ja"] { display: none; }
        body.ja div[data-lang="en"], body.ja li[data-lang="en"], body.ja tr[data-lang="en"] { display: none; }
        body.ja div[data-lang="ja"] { display: block; }
        body.ja li[data-lang="ja"] { display: list-item; }
        body.ja tr[data-lang="ja"] { display: table-row; }

/* Mobile-optimized background images */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(135deg, rgba(30, 60, 114, 0.75), rgba(42, 157, 143, 0.75)), url("../images/bg-species-mobile.webp") !important;
        background-size: cover !important;
        background-position: center !important;
    }
}
