body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Meiryo", sans-serif;
    background-color: #F4F7F6;
    color: #333;
    padding: 20px;
    margin: 0;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
h1 {
    font-size: 24px;
    border-bottom: 2px solid #6B5B95;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #6B5B95;
}
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6B5B95;
    color: #FFF;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.btn:hover {
    background-color: #554877;
}
.btn-danger {
    background-color: #E07A5F;
}
.btn-danger:hover {
    background-color: #CC664A;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px;
    border: 1px solid #EAEAEA;
    text-align: left;
}
th {
    background-color: #FAFAFA;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"], textarea, input[type="password"], input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
}
textarea {
    height: 150px;
}
.actions {
    margin-top: 20px;
    text-align: right;
}

/* ===== ログインページ ===== */
.login-container {
    max-width: 420px;
    margin-top: 60px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 5px;
}

/* --- アラートメッセージ --- */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}
.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* --- ステップインジケーター --- */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 15px 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E0E0E0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}
.step-item.active .step-number {
    background-color: #6B5B95;
    color: #FFF;
    box-shadow: 0 2px 8px rgba(107, 91, 149, 0.4);
}
.step-item.completed .step-number {
    background-color: #4CAF50;
    color: #FFF;
}
.step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.step-item.active .step-label {
    color: #6B5B95;
    font-weight: bold;
}
.step-item.completed .step-label {
    color: #4CAF50;
}
.step-line {
    width: 60px;
    height: 3px;
    background-color: #E0E0E0;
    margin: 0 12px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}
.step-line.active {
    background-color: #4CAF50;
}

/* --- CAPTCHA --- */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    user-select: none;
}
.captcha-question {
    font-size: 24px;
    font-weight: bold;
    color: #FFF;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.captcha-equals {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    font-weight: bold;
}
.captcha-input {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* --- OTP入力 --- */
.otp-input {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
}
.otp-input-large {
    font-size: 28px;
    padding: 16px;
    letter-spacing: 12px;
    max-width: 260px;
    margin: 0 auto;
    display: block;
}
.otp-description {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

/* --- OTPセットアップ --- */
.otp-status {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}
.otp-status-active {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
}
.otp-status-active h3 {
    color: #2e7d32;
    border: none;
}
.otp-status-inactive {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
}
.otp-status-inactive h3 {
    color: #e65100;
    border: none;
}
.otp-status-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.otp-status p {
    color: #555;
    font-size: 14px;
}
.otp-setup-steps h3 {
    color: #6B5B95;
    font-size: 16px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 8px;
    margin-top: 20px;
}
.qr-container {
    text-align: center;
    padding: 20px;
    background-color: #FAFAFA;
    border: 2px dashed #DDD;
    border-radius: 8px;
    margin: 15px 0;
}
.qr-container img {
    border-radius: 4px;
}
.secret-key-display {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 3px;
    background-color: #F5F5F5;
    padding: 10px 16px;
    border: 1px solid #DDD;
    border-radius: 4px;
    text-align: center;
    color: #333;
    word-break: break-all;
}

/* --- 再送信ボタン --- */
.btn-resend {
    width: 100%;
    padding: 10px;
    background-color: #FFF;
    color: #6B5B95;
    border: 2px solid #6B5B95;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.btn-resend:hover {
    background-color: #6B5B95;
    color: #FFF;
}

/* --- OTPタイマー --- */
.otp-timer {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 6px;
}

/* ===== 一括操作バー ===== */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.bulk-select-all {
    font-size: 13px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
}
.bulk-count {
    font-size: 14px;
    font-weight: bold;
    color: #6B5B95;
}
.bulk-delete-files {
    font-size: 13px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #E07A5F;
    margin: 0;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}
td input[type="checkbox"],
th input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    transform: scale(1.2);
}

/* ===== ドロップゾーン（一括アップロード）===== */
.drop-zone {
    border: 2px dashed #CCC;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background-color: #FAFAFA;
    transition: all 0.3s ease;
    cursor: pointer;
}
.drop-zone.drag-over {
    border-color: #6B5B95;
    background-color: #f0ecf8;
}
.drop-zone-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}
.file-list {
    text-align: left;
    margin-top: 15px;
    font-size: 13px;
    color: #333;
}
.file-list ul {
    margin-top: 8px;
    padding-left: 20px;
}
.file-list li {
    padding: 3px 0;
}
select {
    font-size: 14px;
}
