/* ============================
   case-cpt.css
   案件情報テーブル・バッジ スタイル
   最小フォントサイズ: 1rem
   ============================ */

/* ===== バッジ行 ===== */
.ca-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}
.ca-badge {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 99px;
    white-space: nowrap;
    letter-spacing: .02em;
}
.ca-badge-legal {
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #86efac;
}
.ca-badge-new {
    background: #fef9c3;
    color: #854d0e;
    border: 1.5px solid #fde047;
}
.ca-badge-genre {
    background: #ede9fe;
    color: #5b21b6;
    border: 1.5px solid #c4b5fd;
}

/* ===== 案件情報エリア ===== */
.ca-case-info {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* ===== リーガルバナー ===== */
.ca-legal-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-bottom: 1.5px solid #86efac;
    color: #15803d;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 20px;
    letter-spacing: .02em;
}
.ca-legal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #16a34a;
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== 案件情報テーブル ===== */
.ca-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}
.ca-info-table tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .1s;
}
.ca-info-table tr:last-child {
    border-bottom: none;
}
.ca-info-table tr:hover {
    background: #f9fafb;
}
.ca-info-table th {
    width: 140px;
    padding: 14px 18px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
    border-right: 1px solid #f3f4f6;
}
.ca-info-table td {
    padding: 14px 18px;
    color: #111;
    vertical-align: middle;
    font-size: 1rem;
    font-weight: 500;
}
.ca-info-table a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ca-info-table a::after {
    content: '↗';
    font-size: 1rem;
}
.ca-info-table a:hover {
    text-decoration: underline;
}

/* ===== 編集部スコア ===== */
.ca-editor-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ca-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
.ca-score-num {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 99px;
}

/* ===== 管理画面カラム ===== */
.column-case_genre        { width: 130px; }
.column-case_income       { width: 110px; }
.column-case_legal        { width: 90px; text-align: center; }
.column-case_score        { width: 80px; text-align: center; }
.column-case_applications { width: 90px; text-align: center; }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
    .ca-info-table th {
        width: 100px;
        padding: 12px 12px;
    }
    .ca-info-table td {
        padding: 12px 12px;
    }
    .ca-checkbox-group {
        grid-template-columns: 1fr;
    }
    .ca-confirm-label {
        width: 110px;
    }
}

/* ===== 特徴バッジ ===== */
.ca-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}
.ca-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
}
