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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fc974e;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    color: #fc974e;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.language-selector label {
    color: #666;
    font-weight: 500;
}

.language-selector select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-selector select:hover {
    border-color: #fc974e;
}

.language-selector select:focus {
    outline: none;
    border-color: #fc974e;
    box-shadow: 0 0 0 2px rgba(252, 151, 78, 0.2);
}

.app-name {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* Main content */
main {
    margin-bottom: 40px;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #fc974e;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

h3 {
    color: #555;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 15px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 5px;
}

/* Loading indicator */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #fc974e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0;
        box-shadow: none;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }

    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .app-name {
        font-size: 1rem;
    }
}