table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    table-layout: fixed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: background-color 0.2s ease;
}

table tr td:nth-of-type(2) {
    padding: 1rem 3rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

th {
    background: #5591af;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.025em;
}

tr:hover {
    background: rgba(85, 145, 175, 0.05);
}

/* トグル用のスタイル */
details {
    margin-bottom: 2rem;
}

details summary {
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: rgba(85, 145, 175, 0.08);
    color: #487a94;
    border-radius: 6px;
    border: 1px solid rgba(85, 145, 175, 0.2);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    list-style: none;
    display: inline-block;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::-moz-list-bullet {
    list-style-type: none;
}

details summary::marker {
    display: none;
    content: '';
}

details summary::before {
    content: "▶";
    margin-right: 0.6rem;
    transition: transform 0.2s ease;
    font-size: 0.75em;
    color: #5591af;
    display: inline-block;
}

details[open] summary::before {
    transform: rotate(90deg);
}

details summary:hover {
    background: rgba(85, 145, 175, 0.15);
    border-color: rgba(85, 145, 175, 0.35);
}

details[open] summary {
    margin-bottom: 1.5rem;
}

details table {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* プログラム委員用の2列レイアウト */
details table tr td:nth-of-type(1) {
    width: 40%;
    font-weight: 500;
}

details table tr td:nth-of-type(2) {
    width: 60%;
    padding-left: 2rem;
}

/* モバイル対応のレスポンシブスタイル */
@media screen and (max-width: 768px) {
    details summary {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    details summary::before {
        margin-right: 0.5rem;
    }
    
    table {
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    td {
        border: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.3);
        position: relative;
        padding: 0.75rem 0;
        margin: 0;
        text-align: left;
    }
    
    td:last-child {
        border-bottom: none;
    }
    
    /* プログラム委員用：2列のみ */
    details table tr td:nth-of-type(1) {
        width: 100%;
        padding: 0.75rem 0;
    }
    
    details table tr td:nth-of-type(2) {
        width: 100%;
        padding: 0.75rem 0;
        text-align: left;
    }
    
    details table tr td:nth-of-type(1):before {
        content: "氏名: ";
        font-weight: 600;
        color: #5591af;
        display: inline-block;
        min-width: 60px;
    }
    
    details table tr td:nth-of-type(2):before {
        content: "所属: ";
        font-weight: 600;
        color: #5591af;
        display: inline-block;
        min-width: 60px;
    }
    
    /* 通常のテーブル用：3列 */
    table:not(details table) tr td:nth-of-type(1):before {
        content: "役職: ";
        font-weight: 600;
        color: #5591af;
        display: inline-block;
        min-width: 60px;
    }
    
    table:not(details table) tr td:nth-of-type(2):before {
        content: "氏名: ";
        font-weight: 600;
        color: #5591af;
        display: inline-block;
        min-width: 60px;
    }
    
    table:not(details table) tr td:nth-of-type(3):before {
        content: "所属: ";
        font-weight: 600;
        color: #5591af;
        display: inline-block;
        min-width: 60px;
    }
    
    table:not(details table) tr td:nth-of-type(2) {
        padding: 0.75rem 0;
        text-align: left;
    }
}

/* タブレット対応 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    th, td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    table tr td:nth-of-type(2) {
        padding: 0.75rem 2rem;
    }
}