/* ==========================================
   1. 変数定義 & 全体設定
   ========================================== */
:root { 
    --navy: #002366; 
    --gray: #d1d9e6; 
    
       
	:root { 
            --navy: #002366; 
            --gray: #d1d9e6; 
            
            /* ボタンのアクティブ時（選択時）の色 */
            --bg-cd: #fef9c3;        --color-cd: #a16207;       /* C・Dのみ（薄い黄） */
            --bg-all: #e0f2fe;       --color-all: #0369a1;      /* 全業者対象（薄い青） */
        }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: #e6ebf0 radial-gradient(var(--gray) 1px, transparent 1px) 0 0 / 20px 20px;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
}

/* ==========================================
   2. コンポーネント（共通・カード・入力）
   ========================================== */
h2 {
    max-width: 1200px;
    width: 100%;
    background: white;
    padding: 15px 20px;
    border-left: 8px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    box-sizing: border-box;
    letter-spacing: 0.1em;
    font-weight: bold;
    margin-bottom: 30px;
}

.card, .upload-container, .table-wrapper {
    width: 100%;
    max-width: 1240px;
    background: white;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    box-sizing: border-box;
    border-top: 4px solid var(--navy);
}

/* アップロードエリア */
.upload-container { 
    text-align: center; 
    border: 2px dashed var(--navy); 
    background-color: #f8fafc;
}

.upload-container p {
    font-weight: bold;
    color: var(--navy);
}

#excel-file { 
    display: none; 
}

/* 検索インプット */
input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--navy);
}

/* ==========================================
   3. フィルターボタン
   ========================================== */
.filter-group { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 10px; 
    margin-bottom: 25px; 
}

.filter-btn {
    padding: 12px 24px;
    border: 1px solid var(--navy);
    background: white;
    color: var(--navy);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f0f4f8;
}

.filter-btn.active { 
    background: var(--navy); 
    color: white; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ボタン固有の色分け */
.btn-baibai { background: var(--bg-baibai); color: var(--color-baibai); border-color: var(--color-baibai); }
.btn-baibai.active { background: var(--color-baibai); color: white; }

.btn-ryoshoku { background: var(--bg-ryoshoku); color: var(--color-ryoshoku); border-color: var(--color-ryoshoku); }
.btn-ryoshoku.active { background: var(--color-ryoshoku); color: white; }

.btn-ekimu { background: var(--bg-ekimu); color: var(--color-ekimu); border-color: var(--color-ekimu); }
.btn-ekimu.active { background: var(--color-ekimu); color: white; }

.btn-koji { background: var(--bg-koji); color: var(--color-koji); border-color: var(--color-koji); }
.btn-koji.active { background: var(--color-koji); color: white; }

/* ==========================================
   4. テーブル
   ========================================== */
.table-wrapper { 
    overflow-x: auto; 
    padding: 0; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 800px; 
}

th { 
    background: var(--navy); 
    color: white; 
    padding: 16px; 
    text-align: left; 
    font-size: 0.95rem;
}

td { 
    padding: 14px; 
    border-bottom: 1px solid var(--gray); 
    font-size: 0.9rem; 
}

tr:nth-child(even) { 
    background: #f8fafc; 
}

tr:hover { 
    background: #e0e7ff !important; 
}

/* 行の固有色設定 */
tr.row-baibai { background-color: var(--bg-baibai); }
tr.row-ryoshoku { background-color: var(--bg-ryoshoku); }
tr.row-ekimu { background-color: var(--bg-ekimu); }
tr.row-koji { background-color: var(--bg-koji); }

/* 行ホバー時の微調整 */
tr.row-baibai:hover { background-color: #bae6fd !important; }
tr.row-ryoshoku:hover { background-color: #fef08a !important; }
tr.row-ekimu:hover { background-color: #bbf7d0 !important; }
tr.row-koji:hover { background-color: #fecdd3 !important; }

/* ==========================================
   5. その他・ユーティリティ
   ========================================== */
.placeholder { 
    color: #718096; 
    text-align: center; 
    padding: 60px; 
    font-style: italic;
}

.back-link a { 
    text-decoration: none; 
    color: #666; 
    font-weight: bold; 
    display: inline-block;
    padding: 5px 10px;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--navy) !important;
    text-decoration: underline !important;
}

.text-center {
    text-align: center;
}

/* レスポンシブ */
@media (max-width: 600px) {
    body { padding: 20px 10px; }
    h2 { font-size: 1.2rem; }
}

/* 「訂正」の文字だけを赤くする */
.txt-teisei {
    color: #ff0000;
    font-weight: bold; /* 必要に応じて太字（不要なら削除してください） */
}