﻿/* ページ全体の基本設定 */
body {
    font-family: sans-serif;
    background-color: #e3f2fd;
    margin: 0;
    padding: 60px 20px 20px;
    display: flex;
    justify-content: center;
		flex-direction: column;
		overflow-x: hidden;
}

/* アプリ全体を囲むボックス */
.container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
		overflow-x: hidden;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* フォームエリア */
.add-task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#task-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#task-input:focus {
    outline: none;
    border-color: #4a90e2;
}

#add-task-btn {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#add-task-btn:hover {
    background-color: #357abd;
}

/* リストエリア */
#task-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #999;
}

.task-item input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-text {
    flex-grow: 1;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-item:hover .delete-btn {
    opacity: 1;
}