#gantt-chart,
#gantt-chart_vehiclelist {
/* width: 100%; */
border-collapse: collapse;
table-layout: fixed;
white-space: nowrap;
overflow: scroll;
max-height: 700px;
}

#gantt-chart th,
#gantt-chart td,
#gantt-chart_vehiclelist th,
#gantt-chart_vehiclelist td {
border: 1px solid #ddd;
text-align: center;
padding: 4px;
}

#gantt-chart th,
#gantt-chart_vehiclelist th {
background-color: #f2f2f2;
}

.task-bar {
height: 50px;
background: rgba(255, 255, 0, 0.5);
position: absolute;
top: 50%;
transform: translateY(-50%);
color: white;
}

.day-cell {
max-width: 40px;
min-width: 40px;
width: 40px;
position: relative;
}

/* Ensure the first row spans correctly across the header */
#gantt-chart thead tr:first-child th,
#gantt-chart tbody tr td:nth-child(1),
#gantt-chart tbody tr td:nth-child(2),
#gantt-chart_vehiclelist thead tr:first-child th,
#gantt-chart_vehiclelist tbody tr td:nth-child(1),
#gantt-chart_vehiclelist tbody tr td:nth-child(2) {
position: sticky;
/* top: 0; */
}

/* 先頭の要素にのみ幅を指定 */
#gantt-chart_vehiclelist thead tr .car_header_sticky,
#gantt-chart_vehiclelist tbody tr .car_body_sticky {
    max-width: 80px !important;
    min-width: 80px !important;
    width: 80px !important;
    white-space: normal;
    word-wrap: break-word;
    font-size: 13px !important;
    display: none;
}
#gantt-chart_vehiclelist thead tr .area_header_sticky,
#gantt-chart_vehiclelist tbody tr .area_body_sticky {
    max-width: 45px !important;
    min-width: 45px !important;
    width: 45px !important;
    white-space: normal;
    word-wrap: break-word;
    font-size: 12px !important;
    display: none;
}
#gantt-chart_vehiclelist thead tr .vehicle_header_sticky,
#gantt-chart_vehiclelist tbody tr .vehicle_body_sticky {
    max-width: 100px !important;
    min-width: 100px !important;
    width: 100px !important;
    white-space: normal;
    word-wrap: break-word;
    font-size: 13px !important;
}
.colorA {
    background: rgba(65, 105, 225, 0.5);
}
.colorB {
    background: rgba(43, 153, 62, 0.5);
}
.colorC {
    background: rgba(247, 230, 4, 0.671);
}
.colorD {
    background: rgba(0, 213, 255, 0.671);
}
.colorE {
    background: rgba(255, 170, 0, 0.671);
}
.colorF {
    background: rgba(134, 134, 133, 0.671);
}
.weekend1 {
    background: rgb(253, 153, 142) !important;
}
.weekend2 {
    background: rgb(120, 187, 254) !important;
}
.translation_date {
    background: #ff0 !important;
}

/* スケジュール表示領域 */
.task-space {
width: 100%;
height: 100%;
/* セルの高さに合わせるため */
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
/* オーバーフローを隠す */
}

/* タスクの色 - 赤 */
.task-color-red {
background-color: red;
/* その他のスタイル設定 */
}

.task-container {
position: relative;
}

.task-space {
position: relative;
text-align: center;
font-size: 12px;
}

.task-text-top,
.task-text-bottom {
position: absolute;
left: 50%;
transform: translateX(-50%);
text-align: center;
font-size: 12px;
}

.task-text-top {
top: -15px;
/* 上部の位置調整 */
}

.task-text-bottom {
bottom: -15px;
/* 下部の位置調整 */
}

.fixed {
    position: fixed;
    left: 0;
}