/* カスタムスタイル（Bootstrap補完用） */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: #f8f9fa;
}

.main-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* ツリー構造（Bootstrap補完） */
.tree-child {
    margin-left: 30px;
    position: relative;
}


/* ドラッグ&ドロップエリア（Bootstrap補完） */
.drag-item {
    cursor: move;
    transition: all 0.2s ease;
}

.drag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ステータス色分け（Bootstrap補完） */
.status-completed {
    border-left: 4px solid #28a745;
}

.status-in-progress {
    border-left: 4px solid #ffc107;
}

.status-waiting {
    border-left: 4px solid #dc3545;
}

.status-available {
    border-left: 4px solid #17a2b8;
}

/* テーブル共通スタイル */
.table td,
.table th {
    vertical-align: middle;
}

/* 数値列の右寄せ */
.text-end,
.numeric {
    text-align: right;
}

/* Bootstrap Select カスタマイズ */
.bootstrap-select .dropdown-toggle {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

.bootstrap-select .dropdown-toggle:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* 高齢者向けフォントサイズ拡大 - Sass風の構造化されたスタイル */
.elderly-friendly {
    font-size: 1.25rem !important; /* 20px - 25%拡大 */
    line-height: 1.6 !important;
}

/* 見出しのスタイル */
.elderly-friendly h1 {
    font-size: 3.125rem !important; /* 50px */
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.elderly-friendly h2 {
    font-size: 2.5rem !important; /* 40px */
    font-weight: 600 !important;
    margin-bottom: 0.875rem !important;
}

.elderly-friendly h3 {
    font-size: 2.1875rem !important; /* 35px */
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

.elderly-friendly h4 {
    font-size: 1.875rem !important; /* 30px */
    font-weight: 600 !important;
    margin-bottom: 0.625rem !important;
}

.elderly-friendly h5 {
    font-size: 1.6875rem !important; /* 27px */
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.elderly-friendly h6 {
    font-size: 1.5rem !important; /* 24px */
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

/* フォーム要素 */
.elderly-friendly .form-label {
    font-size: 1.375rem !important; /* 22px */
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.elderly-friendly .form-control {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 0.75rem !important;
    border-radius: 0.375rem !important;
}

.elderly-friendly .form-select {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 2.25rem 0.75rem 0.75rem !important;
}

/* ボタン */
.elderly-friendly .btn {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.375rem !important;
}

.elderly-friendly .btn-sm {
    font-size: 1.25rem !important; /* 20px */
    padding: 0.5rem 1rem !important;
}

.elderly-friendly .btn-lg {
    font-size: 1.5625rem !important; /* 25px */
    padding: 1rem 2rem !important;
}

/* テーブル */
.elderly-friendly .table th,
.elderly-friendly .table td {
    font-size: 1.375rem !important; /* 22px */
    padding: 1rem 0.75rem !important;
    vertical-align: middle !important;
}

.elderly-friendly .table th {
    font-weight: 600 !important;
}

/* バッジ */
.elderly-friendly .badge {
    font-size: 1.25rem !important; /* 20px */
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
}

/* カード */
.elderly-friendly .card-title {
    font-size: 1.625rem !important; /* 26px */
    font-weight: 600 !important;
}

.elderly-friendly .card-text {
    font-size: 1.375rem !important; /* 22px */
}

/* リストグループ */
.elderly-friendly .list-group-item {
    font-size: 1.375rem !important; /* 22px */
    padding: 1rem 1.25rem !important;
}

/* アラート */
.elderly-friendly .alert {
    font-size: 1.375rem !important; /* 22px */
    padding: 1rem 1.25rem !important;
}

/* 入力グループ */
.elderly-friendly .input-group-text {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 0.75rem !important;
}

/* チェックボックス・ラジオボタン */
.elderly-friendly .form-check-label {
    font-size: 1.375rem !important; /* 22px */
    margin-left: 0.5rem !important;
}

.elderly-friendly .form-check-input {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* ナビゲーション */
.elderly-friendly .navbar-nav .nav-link {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 1rem !important;
}

.elderly-friendly .dropdown-item {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 1rem !important;
}

/* ページネーション */
.elderly-friendly .pagination .page-link {
    font-size: 1.375rem !important; /* 22px */
    padding: 0.75rem 1rem !important;
}

/* モーダル */
.elderly-friendly .modal-title {
    font-size: 1.625rem !important; /* 26px */
    font-weight: 600 !important;
}

.elderly-friendly .modal-body {
    font-size: 1.375rem !important; /* 22px */
}

/* プログレスバー */
.elderly-friendly .progress {
    height: 1.5rem !important;
}

.elderly-friendly .progress-bar {
    font-size: 1.375rem !important; /* 22px */
    line-height: 1.5rem !important;
}

/* アイコンサイズの調整 */
.elderly-friendly .bi {
    font-size: 1.2em !important;
}

/* 特別な注意事項 */
.elderly-friendly .text-danger {
    font-weight: 600 !important;
}

.elderly-friendly .text-warning {
    font-weight: 600 !important;
}

.elderly-friendly .text-success {
    font-weight: 600 !important;
}

/* フォーカス時の視認性向上 */
.elderly-friendly .form-control:focus,
.elderly-friendly .form-select:focus {
    border-width: 2px !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.elderly-friendly .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .elderly-friendly {
        font-size: 1.125rem !important; /* 18px - モバイルでは少し小さめ */
    }
    
    .elderly-friendly h1 {
        font-size: 2.5rem !important; /* 40px */
    }
    
    .elderly-friendly h2 {
        font-size: 2rem !important; /* 32px */
    }
    
    .elderly-friendly h3 {
        font-size: 1.75rem !important; /* 28px */
    }
    
    .elderly-friendly .btn {
        padding: 0.625rem 1.25rem !important;
    }
    
    .elderly-friendly .table th,
    .elderly-friendly .table td {
        padding: 0.75rem 0.5rem !important;
    }
}

/* 印刷時の調整 */
@media print {
    .elderly-friendly {
        font-size: 12pt !important;
    }
    
    .elderly-friendly h1, 
    .elderly-friendly h2, 
    .elderly-friendly h3, 
    .elderly-friendly h4, 
    .elderly-friendly h5, 
    .elderly-friendly h6 {
        page-break-after: avoid !important;
    }
    
    .elderly-friendly .btn {
        display: none !important;
    }
}