body {
    font-family: sans-serif;
    padding: 20px;
    background: #fafafa;
}

h1 {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 250px;
}

input, select, button {
    padding: 8px;
    font-size: 16px;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #45a049;
}

#message {
    margin-top: 15px;
    color: blue;
}
.back-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #666;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.back-btn:hover {
    background: #444;
}
body {
    font-family: sans-serif;
    padding: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 5px;
    margin-left: 5px;
}

h2 {
    margin-top: 30px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

#foodList {
    list-style: none;
    padding: 0;
}

#foodList li {
    padding: 8px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 5px;
    border-left: 5px solid #4CAF50;
}

/* 登録済み食材一覧テーブルを見やすく */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.schedule-table th {
    background: #4CAF50;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 15px;
}

.schedule-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.schedule-table tr:hover {
    background: #f7fff7; /* うっすらグリーン */
}

.schedule-table td:last-child {
    text-align: center;
}

.action-btn {
    padding: 5px 8px;
    background: #ff6347;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-btn:hover {
    background: #e5533a;
}
