/* ===== 共通 ===== */
.participant-status {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}

.status-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    border-left: 4px solid #d9534f;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* ===== 基本情報 ===== */
.basic-info-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.basic-info-left {
    display: flex;
    gap: 20px;
}

.user-photo,
.photo-placeholder {
    width: 120px;
    height: 120px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}

.user-photo img {
    max-width: 100%;
    max-height: 100%;
}

.basic-info-table {
    border-collapse: collapse;
    min-width: 320px;
}

.basic-info-table th,
.basic-info-table td {
    border: 1px solid #dcdcdc;
    padding: 6px 10px;
}

.basic-info-table th {
    background: #f5f6fa;
    width: 120px;
    text-align: left;
}

/* ===== ランク表示 ===== */
.basic-info-right {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rank-side-photo {
    flex: 0 0 120px;
}

.rank-box {
    /* border: 2px dashed #ccc; */
    width: 180px;
    height: 180px;
    text-align: center;
    padding-top: 40px;
}

.rank-label {
    font-size: 16px;
    color: #666;
}

.rank-value {
    font-size: 26px;
    font-weight: bold;
    color: #d9534f;
}

/* ===== テーブル共通 ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #dcdcdc;
    padding: 8px;
}

table th {
    background: #f5f6fa;
    text-align: center;
}

/* ===== テーブル スクロール ===== */
.scroll-table {
  width: 100%;
  border-collapse: collapse;
}

.scroll-table thead,
.scroll-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.scroll-table tbody {
  display: block;
  max-height: 240px;
  overflow-y: auto;
}

.scroll-table th,
.scroll-table td {
  border: 1px solid #ccc;
  padding: 8px;
}


/* ===== ステータスバッジ ===== */
.badge-success { background:#28a745; color:#fff; padding:3px 8px; border-radius:12px; }
.badge-warning { background:#ffc107; padding:3px 8px; border-radius:12px; }
.badge-danger  { background:#dc3545; color:#fff; padding:3px 8px; border-radius:12px; }
.badge-info    { background:#17a2b8; color:#fff; padding:3px 8px; border-radius:12px; }

/* ===== 昇格アラート ===== */
.promotion-alert {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #dc3545;
    text-align: center;
}

.promotion-alert .alert-text {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
}

/* ===== レスポンシブ ===== */
.table-responsive-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-wrap table {
    min-width: 640px;
}

@media (max-width: 991px) {
    .participant-status {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
    }

    .basic-info-layout {
        flex-direction: column;
        gap: 16px;
    }

    .basic-info-left {
        flex-direction: column;
        gap: 12px;
    }

    .basic-info-right {
        margin-left: 0;
        gap: 12px;
    }

    .rank-box {
        width: 100%;
        max-width: 220px;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .rank-value {
        font-size: 22px;
    }

    .basic-info-table {
        min-width: 560px;
    }

    .scroll-table tbody {
        max-height: 200px;
    }
}
