.gantt .gantt-day{position:relative}.gantt .today-marker{position:relative;background:#eefaff!important}.gantt td.today-marker::after{content:"";position:absolute;z-index:3;top:0;bottom:0;left:50%;border-left:2px dashed #e66a44;pointer-events:none}.gantt th.today-marker{color:#ba4e30!important}.today-label{display:block;font-size:10px;font-weight:800;color:#d45e3e}.gantt .bar:not(.finished){background:var(--project-color,#3388d6)!important}.gantt .bar.finished{background:#4aaa82!important}.gantt .bar.overdue-bar{background:#e46a70!important}.gantt .overdue-row .gantt-task-name{background:#fff7f7;color:#9e3d4c}.overdue-badge{display:inline-block;margin-left:6px;padding:2px 5px;border-radius:4px;background:#ffe0e3;color:#ad3e4e;font-size:10px;font-weight:800}.project-color-dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:7px;vertical-align:middle}.legend-overdue{color:#e46a70}.gantt .group-row td{border-left:4px solid #b9d8f1}

.gantt .gantt-canvas{position:relative;width:max-content;min-width:100%}
.gantt .gantt-canvas table{width:100%}
.gantt .today-overlay{position:absolute;z-index:4;border-left:2px dashed #df694b;pointer-events:none;filter:drop-shadow(0 0 1px #ffffff);}
.gantt td.today-marker::after{display:none}
.gantt th.today-marker{background:#fff2ed!important;border-bottom:2px solid #df694b}
.gantt-alert{background:#fff4f5;border:1px solid #f3c7cf;border-radius:12px;padding:12px 14px;margin:0 0 12px;color:#9f3f52;font-size:13px}
.gantt-alert-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.gantt-alert-links button{background:white;border-color:#f0c6cd;color:#923a4b;max-width:100%;white-space:normal;text-align:left}
.gantt td{height:44px}
.gantt .group-row td{height:38px}
@media print{.gantt .today-overlay{print-color-adjust:exact}}

/* 進行中と完了済みを分離。旧ブラウザ保存との互換性を維持 */
.project-group-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#346b9e;padding:13px 3px 5px;list-style:none}
.project-group-count{padding:2px 9px;border-radius:99px;background:#e7f2ff;color:#306e9f;font-size:11px}
.completed-projects{border-top:1px solid #e4edf7;padding-top:5px;margin-top:8px}
.completed-projects summary{cursor:pointer;list-style:none;user-select:none;color:#64819a}
.completed-projects summary::-webkit-details-marker{display:none}
.completed-projects summary::before{content:'▾';color:#87a1b7;margin-right:3px}
.completed-projects:not([open]) summary::before{content:'▸'}
.completed-projects .project{color:#617b91;background:#f6f9fc}
.completed-projects .project.active{background:#ebf4f9;color:#316e99}
.completed-projects .project .project-icon{color:#4aaf8c}
.project{display:flex;gap:7px;align-items:center;width:100%;overflow-wrap:anywhere}
.project .project-name{flex:1;min-width:0}
.project .project-icon{flex:none}
.project-empty{padding:10px 5px;color:#95a7b9;font-size:12px}
.hero-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hero-title h2{margin:6px 0}
.status-pill{font-size:11px;padding:4px 10px;border-radius:99px;background:#ffffff2c;border:1px solid #ffffff65;white-space:nowrap}
.status-pill.completed{background:#d8f8e9;color:#216a50;border:0}
.gantt-include-completed{display:flex;align-items:center;gap:7px;cursor:pointer;color:#5b7692;font-size:12px;font-weight:700}
.gantt-include-completed input{width:16px;height:16px;accent-color:#2e88be}
.gantt .group-completed td{background:#f2f7f9!important;border-left:4px solid #80b6a9!important}
.gantt .group-completed button{color:#497d74}
.gantt .finished-group-row{opacity:.76}
.gantt-help{padding:8px 0 0;color:#7890a8;font-size:12px}
@media(max-width:560px){.gantt-controls{align-items:flex-start}.gantt-include-completed{width:100%}}
