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

body {
    font-family: 'Segoe UI', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 500px;
}

.app-header {
    text-align: center;
}

h1 {
    color: #fff;
    font-size: 70px;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 4px;
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
}

h2 {
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* メニューセクション */
.menu-section {
    margin-bottom: 30px;
}

.menu-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #e8f0fe;
    border-color: #0056b3;
    color: #0056b3;
}

.section-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 16px;
    color: #adb5bd;
    font-size: 11px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.section-divider span {
    padding: 0 12px;
}

/* アップロードセクション */
.upload-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
    transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone.drag-over {
    border-color: #007bff;
    background-color: #e8f0fe;
}

.drop-zone-text {
    display: block;
    text-align: center;
    font-size: 10px;
    color: #aaa;
    margin-bottom: 8px;
}

.form-group select,
.form-group input[type="month"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background-color: #fff;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload {
    background-color: #28a745;
    color: white;
}

.btn-upload:hover:not(:disabled) {
    background-color: #218838;
}

.btn-upload:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* メッセージ */
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* スピナー */
.spinner {
    display: none;
    margin: 16px auto 0;
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top-color: #28a745;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ヘルプマーク */
.help-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #764ba2;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    text-decoration: none;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
}

.help-mark:hover {
    background: #5a3880;
    transform: scale(1.15);
}
