/* Japanese professional style CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #1a237e;
    --secondary-color: #3f51b5;
    --accent-color: #ff4081;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

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

/* Header styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.header-info {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 1.1rem;
}

nav {
    margin-top: 1rem;
}

/* Alert messages */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-weight: 400;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--error-color);
}

/* Main content */
main {
    min-height: calc(100vh - 300px);
}

section {
    background-color: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Radio button styles */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-label span {
    cursor: pointer;
}

select, input[type="file"], input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: white;
    transition: border-color 0.3s;
}

select:focus, input[type="file"]:focus, input[type="date"]:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.date-input {
    margin-bottom: 0.5rem;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-link {
    background: none;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Upload list */
.upload-list ul {
    list-style: none;
}

.upload-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.no-data {
    color: var(--text-secondary);
    font-style: italic;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Instructions */
.instructions ol {
    margin-left: 1.5rem;
}

.instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Chart styles */
.chart-section {
    margin-bottom: 3rem;
}

.chart-container {
    width: 100%;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
}

/* Export section */
.export-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .header-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .form-actions, .action-buttons, .export-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}