body { font-family: Arial, sans-serif; background-color: #f0f0f0; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; } .container { background-color: #fff; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 8px; width: 300px; } header { text-align: center; margin-bottom: 20px; } header h1 { font-size: 24px; margin: 0; } nav { margin-bottom: 20px; text-align: center; } nav a { margin: 0 10px; text-decoration: none; color: #007bff; } nav a:hover { text-decoration: underline; } form { display: flex; flex-direction: column; } form label { margin-bottom: 5px; } form input[type="text"], form textarea { margin-bottom: 10px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } form button { padding: 10px; color: #fff; border: none; border-radius: 4px; cursor: pointer; } form button.save { background-color: #007bff; } form button.save:hover { background-color: #0056b3; } form button.delete { background-color: #dc3545; } form button.delete:hover { background-color: #c82333; } form button.edit { background-color: #28a745; } form button.edit:hover { background-color: #218838; } form button.back { background-color: #6c757d; } form button.back:hover { background-color: #5a6268; } .memo-list { list-style: none; padding: 0; } .memo-list li { margin-bottom: 10px; } .memo-list a { text-decoration: none; color: #007bff; } .memo-list a:hover { text-decoration: underline; } .memo-actions { display: flex; justify-content: space-between; margin-bottom: 10px; /* 追加: 「戻る」ボタンの上に余白を追加 */ } .memo-actions form { display: inline; } .memo-actions button { padding: 10px; color: #fff; border: none; border-radius: 4px; cursor: pointer; } .memo-actions .edit { background-color: #28a745; /* 緑色に統一 */ } .memo-actions .edit:hover { background-color: #218838; } .memo-actions .back { background-color: #6c757d; }