/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --max-width: 800px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", 
                 "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.site-title:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switch {
    font-size: 0.875rem;
}

.lang-switch a {
    color: var(--primary-color);
    text-decoration: none;
}

.lang-switch a:hover {
    text-decoration: underline;
}

.current-lang {
    color: var(--text-color);
    font-weight: 500;
}

.separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

/* Home Page Styles */
.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

/* Language Switcher for Home Page */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.language-switcher .lang-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.language-switcher .lang-link:hover {
    text-decoration: underline;
}

.home-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.description {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.app-download {
    margin-bottom: 3rem;
}

.app-store-link {
    display: inline-block;
    transition: opacity 0.2s;
}

.app-store-link:hover {
    opacity: 0.8;
}

.features {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: left;
}

.features h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* Legal Document Styles */
.legal-document {
    min-height: calc(100vh - 120px);
    padding: 3rem 0;
}

.legal-document h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal-content {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--primary-hover);
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.home-footer {
    text-align: center;
}

.footer-nav {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.footer-nav a.current {
    color: var(--text-color);
    font-weight: 500;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .features {
        padding: 0 1rem;
    }
    
    .legal-document h1 {
        font-size: 1.75rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .legal-content h3 {
        font-size: 1.125rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f3f4f6;
        --text-secondary: #9ca3af;
        --bg-color: #111827;
        --bg-secondary: #1f2937;
        --border-color: #374151;
    }
    
    .legal-content h2,
    .legal-content h3 {
        color: #e5e7eb;
    }
}