
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
.preview-box {
    height: 200px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    background-color: #ffffff;
    border-radius: 0.375rem;
    overflow-y: auto;
    overflow-wrap: break-word;
}
.output-area {
    white-space: pre;
    overflow-x: auto;
}
/* テーブルコンテナの基本設定 */
.table-container {
    max-height: 400px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: max-height 0.3s ease;
}
/* 高さ制限解除用クラス */
.table-container.no-limit {
    max-height: none;
}
thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f3f4f6 !important;
}
tbody td:first-child, thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #f9fafb !important;
    border-right: 2px solid #e5e7eb;
}
thead th:first-child {
    z-index: 30;
}
.selected-cell {
    background-color: #dbeafe !important;
}

/* トグルスイッチのスタイル */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #3b82f6;
}
input:checked + .slider:before {
    transform: translateX(14px);
}