/* 全体 */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #ece9e6, #ffffff);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* タイトル */
h1 {
  font-size: 2.5rem;
  color: #ff6f61;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

/* 入力フォーム */
#todo-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 600px;
}

#todo-input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ff6f61;
  border-radius: 8px;
  transition: 0.3s;
}

#todo-input:focus {
  border-color: #ff4081;
  outline: none;
}

/* Todo追加ボタン */
#add-button {
  background: linear-gradient(135deg, #ff6f61, #ff4081);
  color: white;
  font-weight: bold;
}

/* Todoリスト */
ul {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 600px;
}

li {
  background: #fff;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-left: 6px solid #ff6f61;
  transition: transform 0.2s, box-shadow 0.2s;
}

li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ボタン共通 */
button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* ボタン配置 */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}

/* メイン操作ボタン */
#hide-completed, #show-completed, #add-button,#toggle-button, #back-button {
  background: linear-gradient(135deg, #ff6f61, #ff4081);
  color: white;
}

#hide-completed:hover, #show-completed:hover, #add-button:hover, #toggle-button:hover, #back-button:hover {
  background: linear-gradient(135deg, #ff4081, #e91e63);
}

/* トグルON状態 */
#show-completed.active {
  background: linear-gradient(135deg, #42a5f5, #1976d2);
}

/* JSONボタン */
#save-button {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
}

#save-button:hover {
  background: linear-gradient(135deg, #43a047, #388e3c);
}

#load-button {
  background: linear-gradient(135deg, #2196f3, #42a5f5);
  color: white;
}

#load-button:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
}

/* メモ入力 */
#memo-input {
  width: 100%;
  max-width: 600px;
  height: 200px;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #ff6f61;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}