/* ===== Brand tokens ===== */
:root {
    --primary: #245FE5;
    /* メイン */
    --button: #EA7317;
    /* アクション */
    --card: #fff;
    --text: #1C2434;
    --muted: #6B7280;
    --border: #E6E8EE;
    --shadow: 0 8px 24px rgba(16, 24, 40, .06);
    --radius: 12px;
}

/* ===== ラッパー ===== */
.list_table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
    /* 角丸を生かす */
    overflow-x: auto;
    /* モバイルは横スクロール許可 */
    -webkit-overflow-scrolling: touch;
}

/* ===== テーブル本体 ===== */
.list_table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
    /* 列数的に必要な最小幅 */
}

/* 強制上書き：inline style の幅指定などを無効化 */
.list_table table th[style],
.list_table table td[style] {
    width: auto !important;
    padding: .9rem 1rem !important;
    line-height: 1.6 !important;
}

/* ヘッダ */
.list_table th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    white-space: nowrap;
    font-weight: 700;
    color: #3B3F4C;
    background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 10%, transparent) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
    padding: .9rem 1rem;
    font-size: .95em;
}

/* セル */
.list_table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    background: #fff;
    color: var(--text);
}

/* 交互色 */
.list_table tbody tr:nth-child(even) td {
    background: color-mix(in oklab, #ffffff 92%, var(--primary) 8%);
}

/* ホバー（マウス環境のみ） */
@media (hover:hover) and (pointer:fine) {
    .list_table tbody tr:hover td {
        background: color-mix(in oklab, var(--primary) 12%, #ffffff);
    }
}

/* 整列用クラスを尊重 */
td.center {
    text-align: center
}

td.right {
    text-align: right
}

/* ===== バッジ（本人確認） ===== */
td .att {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-right: .4rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 700;
    font-size: .9em;
    line-height: 1;
}

td .att:contains("★"),
td .att.verified {
    background: color-mix(in oklab, #10b981 18%, #fff);
    border-color: color-mix(in oklab, #10b981 35%, var(--border));
}

td .att:contains("☆") {
    background: color-mix(in oklab, #f59e0b 18%, #fff);
    border-color: color-mix(in oklab, #f59e0b 35%, var(--border));
}

/* ===== 操作ボタン ===== */
.operation {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.operation li a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    transition: background .2s ease, border-color .2s ease, transform .05s ease, box-shadow .2s ease;
    will-change: transform;
}

.operation li.more a {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(36, 95, 229, .20);
}

.operation li a:hover {
    border-color: color-mix(in oklab, var(--primary) 30%, var(--border));
    background: color-mix(in oklab, var(--primary) 8%, #fff);
}

.operation li.more a:hover {
    filter: brightness(1.05);
    color: var(--primary);

}

.operation li a:active {
    transform: translateY(1px)
}

/* ===== リンク色 ===== */
.list_table a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed transparent
}

.list_table a:hover {
    border-color: currentColor
}

/* ===== アクセシビリティ：フォーカス可視化 ===== */
:where(.list_table a, .list_table button, .list_table [tabindex]:not([tabindex="-1"])):focus {
    outline: 3px solid color-mix(in oklab, var(--primary) 45%, #fff);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ===== 印刷（任意） ===== */
@media print {
    .list_table {
        box-shadow: none;
        border-color: #ddd;
        overflow: visible
    }

    .list_table th {
        position: static;
        background: #f2f2f2;
        color: #000
    }

    .list_table a {
        color: #000;
        text-decoration: underline
    }
}