@charset "utf-8";


.todo_body {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 30px 0 60px 0;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.title {
    text-align: center;
    color: #333;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* --- 入力エリア --- */
.input_area {
    display: flex;
    margin-bottom: 20px;
}

.task_input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.add_button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add_button:hover {
    background-color: #0056b3;
}

/* --- フィルターエリア --- */
.filter_area {
    text-align: center;
    margin-bottom: 20px;
}

.filter_btn {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter_btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* --- タスクリスト --- */
.todo_list {
    list-style: none;
    padding: 0;
}

.todo_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    transition: opacity 0.3s;
}

/* 完了したタスクのスタイル */
.todo_item.completed .task_text {
    text-decoration: line-through;
    color: #999;
    opacity: 0.7;
}

.task_text {
    flex-grow: 1;
    margin-left: 10px;
}

/* 削除ボタン */
.delete_btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    margin-left: 10px;
}

.delete_btn:hover {
    color: #b00000;
}

/* 完了チェックボックス */
.complete_checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* フッター情報 */
.footer_info {
    text-align: right;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.remaining_count {
    font-weight: bold;
    color: #007bff;
}

/* スマホ */
@media (max-width: 520px) {
    .container {
        padding: 20px;
    }
    .input_area {
        flex-direction: column;
    }
    .task_input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    .add_button {
        border-radius: 4px;
    }
}
