/* style.css — セキサンバディ (最終更新: 2026-04-19 初期構築) */
:root {
    --primary: #1a237e;
    --primary-light: #283593;
    --bg: #ffffff;
    --bg-card: #f5f5f5;
    --text: #212121;
    --text-light: #757575;
    --border: #e0e0e0;
    --success: #2e7d32;
    --warning: #f57f17;
    --danger: #c62828;
    --radius: 8px;
}

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

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

/* Header */
.header {
    background: var(--primary);
    color: #fff;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
}
.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.header-right { display: flex; align-items: center; gap: 1rem; }
.user-name { font-size: 0.875rem; opacity: 0.9; }
.btn-logout {
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.15); }

/* Main */
.main-content { padding: 2rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Typography */
.page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); }
.back-link { display: inline-block; color: var(--primary); text-decoration: none; margin-bottom: 1rem; font-size: 0.875rem; }
.back-link:hover { text-decoration: underline; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.feature-card-disabled { opacity: 0.5; pointer-events: none; }
.card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--primary); }
.feature-card p { font-size: 0.8125rem; color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(26,35,126,0.05); }
.btn-full { width: 100%; }
.btn-sm { padding: 4px 12px; font-size: 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-input:focus, .form-select:focus { outline: none; border-color: var(--primary); }
.form-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 0.375rem; font-weight: 400; cursor: pointer; }

/* Login */
.login-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 56px); }
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}
.login-title { text-align: center; color: var(--primary); font-size: 1.75rem; margin-bottom: 0.25rem; }
.login-subtitle { text-align: center; color: var(--text-light); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Alerts */
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: #ffebee; color: var(--danger); border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #c8e6c9; }

/* Dropzone */
.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 700px;
}
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 1rem;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: rgba(26,35,126,0.03); }
.dropzone-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.dropzone-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.5rem; }

.file-list { margin-bottom: 1rem; }
.file-item { padding: 8px 12px; background: #e3f2fd; border-radius: 4px; font-size: 0.8125rem; margin-bottom: 4px; }

/* Progress */
.progress-area { margin: 1rem 0; }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.5s ease; width: 0%; }
.progress-text { font-size: 0.8125rem; color: var(--text-light); margin-top: 0.5rem; }

/* Tables */
.table-wrapper { overflow-x: auto; margin-bottom: 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.data-table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-weight: 500; white-space: nowrap; }
.data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover { background: #f5f5f5; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Result */
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.result-actions { display: flex; gap: 0.5rem; }
.result-meta { display: flex; gap: 1.5rem; font-size: 0.8125rem; color: var(--text-light); margin-bottom: 1.5rem; flex-wrap: wrap; }

/* Stats */
.stats-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #e8f5e9; color: var(--success); }
.badge-warning { background: #fff8e1; color: var(--warning); }
.badge-danger { background: #ffebee; color: var(--danger); }

/* Raw response */
.raw-response { margin: 1rem 0; }
.raw-response summary { cursor: pointer; font-size: 0.875rem; color: var(--primary); padding: 0.5rem 0; }
.raw-response pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.8125rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Next actions */
.next-actions { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.next-actions h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.next-actions .btn { margin-right: 0.5rem; }

/* States */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); font-size: 0.875rem; }
.success-state { text-align: center; padding: 2rem 1rem; color: var(--success); font-size: 1rem; font-weight: 500; background: #e8f5e9; border-radius: var(--radius); }
