/* リセット */
* {
  margin: 0;
  padding: 0;
}
p {
  margin: 0;
}
ul {
  list-style-type: none;
  padding-left: 0;
}

/* スタイル */
.main {
  background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
  padding: 40px 20px;
  min-height: 100svh;
}
.page-wrapper {
  max-width: 800px;
  margin-inline: auto;
}
.section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.h1 {
  color: #f6f6f6;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  font-size: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}
.h2 {
  color: #5d5d8d;
  font-weight: bold;
  border-left: 5px solid #a6c1ee;
  padding-left: 1rem;
  font-size: 1.5rem;
}
.input {
  padding: 8px;
  margin-right: 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 500px;
}
.task-list {
}
.task-list li {
  position: relative;
  background-color: #fff;
  border: 1px solid #000;
  border-top: none;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  /* border-top: none; */
  border-radius: 0.5rem;
}
.task-list li + li {
  margin-top: 8px;
}
.task-list li:first-child {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
.task-list li .btn.btn-primary {
  background-color: #6a9eda;
  border-color: #6a9eda;
}
.task-list li .btn._complete {
  background-color: #4caf50;
  border-color: #4caf50;
  color: #fff;
}
.task-list li .btn._complete:hover,
.task-list li .btn._complete:focus {
  background-color: #3e8e41;
  border-color: #3e8e41;
}
.task-list li .btn._delete {
  background-color: #e53935;
  border-color: #e53935;
  color: #fff;
}
.task-list li .btn._delete:hover,
.task-list li .btn._delete:focus {
  background-color: #c62828;
  border-color: #c62828;
}
.task-list li.complete-task {
  background-color: #ccc;
}

@media screen and (min-width: 769px) {
  .task-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media screen and (max-width: 768px) {
  .task-list li {
    flex-direction: column;
  }
  .task-list li .task-name {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 320px) {
  .task-list li .btn {
    font-size: 14px;
  }
}
