/*
body { font-family: sans-serif; margin: 0; overflow-x: hidden; }
*/

/* 一覧テーブル */
.list-table { width: 100%; border-collapse: collapse; }
.list-table td { padding: 10px; border-bottom: 1px solid #ddd; }

/* 背景オーバーレイ */
#overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 900;
}
#overlay.active { opacity: 1; visibility: visible; }

/* サイドパネル (右からスライド) */
#side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;         /* モバイルでは横幅100% */
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;  /* 縦方向に内容が溢れたらスクロールさせる */
    overflow-x: hidden; /* 横スクロールは禁止する */
}
@media screen and (min-width: 768px) {
    #side-panel {
        width: 50%;
        min-width: 500px;
    }
}

#side-panel.active { transform: translateX(0); }

.panel-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f0f0f0; margin-bottom: 20px; }
.close-btn { font-size: 28px; border: none; background: none; cursor: pointer; }

/* 詳細内の表とフォーム */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th { text-align: left; background: #f9f9f9; width: 30%; padding: 10px; border: 1px solid #ddd; }
.detail-table td { padding: 10px; border: 1px solid #ddd; }
.detail-table input, .detail-table select, .detail-table textarea { width: 100%; padding: 8px; box-sizing: border-box; }

.save-btn { background: #007bff; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }
