@charset "UTF-8";

/* 全体 */
body {
    font-family: "Noto Sans JP", sans-serif;
    background: #f5f5f5;
}

#app {
    text-align: center;
}

h1 {
    margin: 20px;
}

h2 {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
}

/* ボタン */
button {
    padding: 8px 18px;
    font-size: 16px;
    background: white;
    border: 1px solid #bbb;
    cursor: pointer;
    margin: 20px 0;
}

button:hover {
    background: #f0f0f0;
}

/* テーブル */
table {
    width: 80%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0 auto;
}

/* 曜日 */
th {
    height: 45px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-weight: normal;
}

/* 日付 */
td {
    height: 100px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: top;
    font-size: 18px;
    padding: 5px;
}

/* 日曜日 */
th:first-child,
td:first-child {
    color: red;
}

/* 土曜日 */
th:last-child,
td:last-child {
    color: blue;
}

/* 日付と天気を横並びにして端に寄せる */
.calendar-day-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.day-number {
    font-size: 14px;
    font-weight: bold;
}

.day-weather {
    font-size: 22px;
}

/* タスク全体のコンテナ */
.calendar-tasks {
    text-align: left;
}

/* タスク1つ1つのバッジ風デザイン */
.task-item {
    font-size: 11px;
    background: #e3f2fd;
    color: #1e88e5;
    padding: 2px 6px;
    margin-bottom: 3px;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 文字が長すぎたら「...」にする */
}

/* 完了したタスクはグレーにして打ち消し線 */
.task-item.is-completed {
    background: #e0e0e0;
    color: #888;
    text-decoration: line-through;
}


/* --- カレンダーのマス（td）への追記・変更 --- */
td.has-day {
    cursor: pointer;
}
td.has-day:hover {
    background: #edf7ff;
}
/* 選択されたマスを薄い青色にする */
td.is-selected {
    background: #d0e7ff !important;
    border: 2px solid #1e88e5;
}

/* --- 下部管理エリアのスタイル（末尾に追記） --- */
.task-management-area {
    width: 60%;
    margin: 0 auto 5px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.task-management-area h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.add-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.add-form button {
    margin: 0;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}
.add-form button:hover {
    background: #1565c0;
}

.detail-task-list {
    list-style: none;
    padding: 0;
}

.detail-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.detail-task-item span {
    flex: 1;
    margin-left: 10px;
    font-size: 15px;
}

.text-completed {
    text-decoration: line-through;
    color: #aaa;
}

.del-btn {
    margin: 0;
    padding: 4px 10px;
    font-size: 12px;
    background: #e57373;
    color: white;
    border: none;
    border-radius: 4px;
}
.del-btn:hover {
    background: #d32f2f;
}

.no-task {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}