/* task-carousel.css */

#task-carousel{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:20px;
    box-sizing:border-box;
}

/* =========================
   上部ボタン
========================= */

.tc-top-buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.tc-btn{
    cursor:pointer;
    border:none;
    padding:12px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
    transition:.2s;
}

.tc-btn:hover{
    transform:translateY(-2px);
}

/* =========================
   入力フォーム
========================= */

.tc-panel{
    background:#fff;
    border:1px solid #ddd;
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;
}

.tc-field{
    margin-bottom:15px;
}

.tc-field label{
    display:block;
    font-weight:700;
    margin-bottom:5px;
}

.tc-field input[type=text],
.tc-field input[type=date],
.tc-field textarea{
    width:100%;
    box-sizing:border-box;
    padding:10px;
    border:1px solid #ccc;
    border-radius:8px;
}

.tc-field textarea{
    min-height:100px;
    resize:vertical;
}

#tc-save-task{
    border:none;
    padding:12px 20px;
    border-radius:10px;
    cursor:pointer;
}

/* =========================
   サブタスク
========================= */

#tc-subtasks{
    margin-top:20px;
}

.tc-subtask-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:10px;
}

.tc-subtask-row{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.tc-subtask-title{
    flex:1;
    min-width:200px;
}

.tc-remove-subtask{
    cursor:pointer;
    border:none;
    border-radius:8px;
    padding:0 12px;
}

/* =========================
   カラスエリア
========================= */

.tc-assistant{
    display:flex;
    align-items:center;
    gap:20px;
    margin:30px 0;
}

.tc-character img{
    width:100px;
    height:auto;
    display:block;
}

.tc-message{
    flex:1;
    position:relative;
    padding:15px;
    border-radius:12px;
    border:1px solid #ddd;
    background:#fff;
}

.tc-message::before{
    content:"";
    position:absolute;
    left:-10px;
    top:20px;
    width:20px;
    height:20px;
    transform:rotate(45deg);
    background:#fff;
    border-left:1px solid #ddd;
    border-bottom:1px solid #ddd;
}

/* =========================
   警告
========================= */

.tc-warning-area{
    margin-bottom:20px;
}

.tc-overdue{
    padding:12px;
    border-radius:10px;
    margin-bottom:10px;
    background:#ffe5e5;
    border:1px solid #ffbcbc;
}

.tc-deadline-warning{
    padding:12px;
    border-radius:10px;
    margin-bottom:10px;
    background:#fff4d9;
    border:1px solid #ffe29b;
}

/* =========================
   フィルタ
========================= */

.tc-filter{
    margin-bottom:20px;
}

#tc-filter{
    padding:10px;
    border-radius:8px;
}

/* =========================
   タスク一覧
========================= */

#tc-task-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.tc-task-card{
    background:#fff;
    border-radius:12px;
    padding:15px;
    border:1px solid #ddd;
}

.tc-task-header{
    margin-bottom:10px;
}

.tc-task-header h3{
    margin:0;
}

.tc-task-body{
    display:grid;
    gap:8px;
}

.tc-task-actions{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.tc-task-actions button{
    cursor:pointer;
    border:none;
    border-radius:8px;
    padding:8px 12px;
}

/* =========================
   ガントチャート
========================= */

#tc-gantt-chart{
    margin:30px 0;
    border:1px solid #ddd;
    border-radius:12px;
    padding:15px;
    overflow-x:auto;
}

.tc-gantt-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.tc-gantt-title{
    width:220px;
    flex-shrink:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.tc-gantt-bar-wrap{
    flex:1;
    height:30px;
    background:#f3f3f3;
    border-radius:30px;
    overflow:hidden;
}

.tc-gantt-bar{
    height:100%;
    min-width:20px;
    border-radius:30px;
}

/* =========================
   成績表
========================= */

#tc-score-board{
    margin-top:30px;
}

.tc-score-card{
    padding:20px;
    border-radius:12px;
    border:1px solid #ddd;
    background:#fff;
}

/* =========================
   お気に入り
========================= */

.tc-favorite{
    font-size:20px;
    line-height:1;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width:768px){

    .tc-assistant{
        flex-direction:column;
        align-items:flex-start;
    }

    .tc-character img{
        width:80px;
    }

    .tc-gantt-title{
        width:120px;
    }

    .tc-task-actions{
        flex-wrap:wrap;
    }

    .tc-subtask-row{
        flex-direction:column;
    }

}