@charset "UTF-8";
:root {
    --primary: #007AFF;
    --primary-dark: #0056B3;
    --secondary: #5856D6;
    --accent: #30D158;
    --warning: #FF9F00;
    --error: #FF3B30;
    --light: #F2F2F7;
    --dark: #1C1C1E;
    --gray: #8E8E93;
    --light-gray: #E5E5EA;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --border: #E5E5EA;
    --card-background: #FFFFFF;
    --radius: 12px;
    --radius-large: 20px;
}

/* ダークモード用のCSS変数 */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #000000;
        --dark: #F2F2F7;
        --text-primary: #FFFFFF;
        --text-secondary: #98989D;
        --border: #38383A;
        --card-background: #1C1C1E;
        --shadow: rgba(0, 0, 0, 0.3);
        --primary: #0A84FF;
        --primary-dark: #409CFF;
        --gray: #98989D;
        --light-gray: #38383A;
    }
}

/* 手動ダークモード切り替え用のクラス */
body.dark-mode {
    --light: #000000;
    --dark: #F2F2F7;
    --text-primary: #FFFFFF;
    --text-secondary: #98989D;
    --border: #38383A;
    --card-background: #1C1C1E;
    --shadow: rgba(0, 0, 0, 0.3);
    --primary: #0A84FF;
    --primary-dark: #409CFF;
    --gray: #98989D;
    --light-gray: #38383A;
}

body.light-mode {
    --primary: #007AFF;
    --primary-dark: #0056B3;
    --secondary: #5856D6;
    --accent: #30D158;
    --warning: #FF9F00;
    --error: #FF3B30;
    --light: #F2F2F7;
    --dark: #1C1C1E;
    --gray: #8E8E93;
    --light-gray: #E5E5EA;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(0, 0, 0, 0.1);
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --border: #E5E5EA;
    --card-background: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* テーマ読み込み中のフラッシュを防ぐ */
body.theme-loading {
    visibility: hidden;
}

body.light-mode,
body.dark-mode {
    visibility: visible;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Version Notification Bar */
.version-notification {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 76px; /* ヘッダーの下に配置 */
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.version-notification.warning {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
}

.version-notification.success {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.notification-close {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ヘッダーがある場合のボディ調整 */
body.has-notification {
    padding-top: calc(76px + 48px); /* ヘッダー + 通知バーの高さ */
}

body:not(.has-notification) {
    padding-top: 76px; /* ヘッダーの高さのみ */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}

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

.cta-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    will-change: transform, box-shadow;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.cta-button:active {
    transform: scale(0.95);
}

.cta-button.primary {
    background-color: var(--primary);
}

.cta-button.secondary {
    background-color: var(--card-background);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}

.cta-button.secondary:hover {
    background-color: var(--light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-buttons .cta-button {
    font-size: 18px;
    padding: 16px 32px;
    min-width: 200px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background-color: var(--card-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    will-change: transform, box-shadow;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 122, 255, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    fill: none;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* Screenshots Section */
.screenshots {
    background-color: var(--card-background);
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.screenshot-slider {
    margin-top: 60px;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    cursor: grab;
    user-select: none;
}

.screenshot-slider:active {
    cursor: grabbing;
}

.screenshot-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.screenshot-slide.active {
    opacity: 1;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.25);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--light);
}

.steps {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    gap: 60px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.step-content {
    flex-grow: 1;
    background-color: var(--card-background);
    padding: 32px;
    border-radius: var(--radius-large);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Roadmap Section */
.roadmap {
    background-color: var(--card-background);
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transition: all 0.6s ease;
    transform: translateY(30px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px var(--card-background);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.timeline-content {
    background-color: var(--card-background);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta .cta-button {
    font-size: 18px;
    padding: 16px 32px;
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta .cta-button:hover {
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Download Options */
.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.download-option:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-option.recommended {
    border-color: var(--accent);
    background: rgba(48, 209, 88, 0.1);
}

.download-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-option h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.download-option p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 24px;
    line-height: 1.5;
}

.download-option .cta-button {
    width: 100%;
    margin-bottom: 0;
}

.manual-install-note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.manual-install-note small {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.4;
    display: block;
}

/* Responsive adjustments for download options */
@media (max-width: 768px) {
    .download-options {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .download-option {
        padding: 24px;
    }
    
    .download-option h3 {
        font-size: 18px;
    }
    
    .manual-install-note small {
        font-size: 10px;
    }
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex-basis: 300px;
}

.footer-logo h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.footer-links h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Demo Components */
.progress-demo {
    background-color: var(--card-background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.progress-demo h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.progress-bar {
    height: 8px;
    background-color: var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 4px;
    width: 0;
    transition: width 2s ease;
}

.stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.sync-demo {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background-color: var(--light);
    border-radius: var(--radius);
}

.device-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.device-icons svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    fill: none;
}

.sync-status {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    animation: syncPulse 2s ease-in-out infinite;
}

.dark-mode-demo {
    background-color: var(--dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.dark-mode-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode-switch.active {
    background-color: var(--primary);
}

.dark-mode-slider {
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode-switch.active .dark-mode-slider {
    transform: translateX(20px);
}

.dark-mode-content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes syncPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes progressAnimation {
    0% { width: 0; }
    100% { width: 75%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* バージョン通知のモバイル対応 */
    .version-notification {
        top: 70px; /* モバイルではヘッダー高さが異なる場合に調整 */
        padding: 8px 0;
    }
    
    .notification-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .notification-text {
        font-size: 13px;
        padding: 0 40px; /* 閉じるボタンのスペースを確保 */
    }
    
    .notification-close {
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        position: absolute;
    }
    
    body.has-notification {
        padding-top: calc(70px + 44px); /* モバイル用の調整 */
    }
    
    body:not(.has-notification) {
        padding-top: 70px; /* モバイル用のヘッダー高さ */
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .step, .step:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 0 20px 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
}

/* ダークモードスイッチのスタイル */
.dark-mode-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.dark-mode-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background-color: var(--light-gray);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}

.dark-mode-switch.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.dark-mode-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--white);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode-switch.active .dark-mode-slider {
    transform: translateX(28px);
}

.dark-mode-content {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: all 0.3s ease;
}

.dark-mode-demo.active .dark-mode-content {
    color: var(--primary);
}

/* ヘッダーの背景をダークモードに対応 */
body.dark-mode header {
    background: rgba(28, 28, 30, 0.95);
    border-bottom-color: var(--border);
}

/* バージョン通知のダークモード対応 */
body.dark-mode .version-notification {
    background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
}

body.dark-mode .version-notification.warning {
    background: linear-gradient(135deg, #FF9F0A 0%, #FF6B00 100%);
}

body.dark-mode .version-notification.success {
    background: linear-gradient(135deg, #32D74B 0%, #30D158 100%);
}

/* プログレスバーのダークモード対応 */
body.dark-mode .progress-bar {
    background-color: var(--border);
}

/* スクリーンショットスライダーのダークモード対応 */
body.dark-mode .slider-dot {
    background-color: var(--border);
}

body.dark-mode .slider-dot.active {
    background-color: var(--primary);
}

/* フッターのダークモード対応 */
body.dark-mode footer {
    background-color: var(--card-background);
    border-top: 1px solid var(--border);
}

/* CTAセクションのダークモード対応 */
body.dark-mode .cta {
    background: linear-gradient(135deg, var(--card-background) 0%, rgba(28, 28, 30, 0.8) 100%);
}

/* タイムラインのダークモード対応 */
body.dark-mode .timeline::before {
    background-color: var(--border);
}

body.dark-mode .timeline-dot {
    background-color: var(--primary);
    border-color: var(--card-background);
}

/* デモコンポーネントのダークモード対応 */
body.dark-mode .sync-demo,
body.dark-mode .progress-demo {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

/* スクリーンショットスライドのダークモード対応 */
body.dark-mode .screenshot-slide {
    border: 1px solid var(--border);
}