/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 40px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: #f5f5f5;
}

.lang-btn.active {
    background-color: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Screenshots Section */
.screenshots {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.screenshots h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.screenshots-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}

.screenshots-grid img {
    height: 400px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* Features Section */
.features {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.features h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

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

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1976d2;
}

.feature-item p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1976d2;
}

.copyright {
    color: #999;
    font-size: 14px;
}

/* Legal Pages */
.legal-page {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.legal-page h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.legal-page .date {
    color: #999;
    margin-bottom: 30px;
    display: block;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1976d2;
}

.legal-page h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.legal-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.legal-page ul, .legal-page ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: #555;
}

.legal-page a {
    color: #1976d2;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Language-specific content */
[lang]:not([lang="ja"]) .ja-only,
[lang]:not([lang="en"]) .en-only {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .features {
        padding: 20px;
    }

    .screenshots {
        padding: 20px;
    }

    .screenshots-grid img {
        height: 300px;
    }

    .legal-page {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }
}
