/* 全体のスタイル */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
    padding: 0;
    min-height: 100vh;
}

/* サイドバーのスタイル */
/* 旧サイドバーは使用しない */

.progress-container h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.step.active {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.05);
}

.step.completed {
    background-color: rgba(40, 167, 69, 0.3);
    opacity: 0.9;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: white;
    color: #667eea;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step-title {
    font-weight: 500;
    font-size: 0.95rem;
}

/* メインコンテンツのスタイル */
.main-content {
    padding: 2rem;
    background-color: white;
    min-height: 100vh;
    max-width: 960px;
    margin: 0 auto;
}

/* フォームセッションのスタイル */
.form-session {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-session.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.session-header h2 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.session-header i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* フォーム要素のスタイル */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
}

/* ナビゲーションボタンのスタイル */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

/* トップヘッダー */
.top-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1rem;
}
.top-header h4 {
    color: white;
    margin: 0;
    font-weight: 600;
}
.top-progress {
    background: #f8f9fa;
    padding: 1rem 0.5rem;
}

.navigation-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

/* 確認画面のスタイル */
.confirmation-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-label {
    font-weight: 600;
    color: #495057;
    min-width: 150px;
}

.confirmation-value {
    color: #6c757d;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* チェックボックスのスタイル */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: relative;
    }
    
    .progress-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .step {
        min-width: 120px;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .step-title {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
    
    .confirmation-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .confirmation-value {
        text-align: left;
        margin-left: 0;
    }
}

/* アニメーション効果 */
.form-control, .form-select, .btn {
    transition: all 0.3s ease;
}

/* ホバー効果 */
.form-control:hover, .form-select:hover {
    border-color: #adb5bd;
}

/* ローディング状態 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 成功メッセージ */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
}

/* エラーメッセージ */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
} 