/* テーブル関連の共通スタイル */

/* 基本的なテーブルスタイル */
.basic-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.basic-table thead {
    background-color: #f5f5f5;
}

.basic-table th,
.basic-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.basic-table th {
    font-weight: bold;
    background-color: #f5f5f5;
}

.basic-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* コンパクトテーブル */
.compact-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.compact-table td {
    padding: 5px;
}

.compact-table .col-33 {
    width: 33%;
}

.compact-table .col-34 {
    width: 34%;
}

/* 比較表スタイル */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table thead tr {
    background-color: #f5f5f5;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.comparison-table th {
    font-weight: bold;
}

.comparison-table tbody td:first-child {
    font-weight: bold;
}

/* ステップ番号のスタイル */
.step-number {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.step-number-inline {
    display: inline-flex;
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* インラインスタイルの置き換え用クラス */
.hide-element {
    display: none;
    visibility: hidden;
}

.full-width {
    width: 100%;
}

.no-border {
    border: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* パディング調整クラス */
.p-5 {
    padding: 5px;
}

.p-10 {
    padding: 10px;
}

.p-12 {
    padding: 12px;
}

.p-20 {
    padding: 20px;
}

/* マージン調整クラス */
.m-0 {
    margin: 0;
}

.m-10 {
    margin: 10px;
}

.m-20 {
    margin: 20px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* リスク評価マトリックス */
.risk-matrix {
    overflow-x: auto;
    margin: 20px 0;
}

.matrix-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.matrix-table thead {
    background: linear-gradient(135deg, #2d7a2d 0%, #4a9b4a 100%);
    color: white;
}

.matrix-table th,
.matrix-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    min-width: 80px;
}

.matrix-table thead th {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.matrix-table tbody th {
    background: #f8f9fa;
    color: #2d3436;
    font-weight: bold;
}

/* リスクレベルの色分け */
.risk-low {
    background-color: #d4edda;
    color: #155724;
}

.risk-medium {
    background-color: #fff3cd;
    color: #856404;
}

.risk-high {
    background-color: #f8d7da;
    color: #721c24;
}

.risk-critical {
    background-color: #721c24;
    color: white;
    font-weight: bold;
}