@charset "utf-8";
@import url(normalize.css);

:root {
  --color-base: #f4f4f4;
  --color-button: #007bff;
  --color-border: #bbbbbb;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-weight: 400;
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  font-size: 1.6rem;
  background-color: var(--color-base);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

input[type="text"] {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

#app_container {
  padding: 40px 10px;
  container-type: inline-size;
}
#app {
  color: #333;
  background: #fff;
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 80px;
  border-radius: 20px;
  -webkit-box-shadow: 2px 4px 8px rgb(0 0 0 / .1);
          box-shadow: 2px 4px 8px rgb(0 0 0 / .1);
  container-type: inline-size;
}
.app_ttl {
  text-align: center;
  margin: 0 0 40px;
}
.app_menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin: 30px 0;
}
.app_menu_txt {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.app_sort {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  gap: 10px;
  margin: 30px 0;
}
.app_list {
  margin: 30px 0;
}
.app_list ul:not(:has(*))::before {
  content: "なにもないよ・・・(´・ω・｀)";
  text-align: center;
  color: #999;
  display: block;
  margin: 1em 0;
}
.app_list ul li {
  font-size: 2rem;
  line-height: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
}
.app_list ul li + li {
  margin-top: 20px;
}
.app_list ul li label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.app_list ul li label * {
  cursor: pointer;
}
.app_list ul li.is_completed {
  opacity: .5;
}
.app_list ul li.is_completed *:not(.app_list_del) {
  text-decoration: line-through;
}
.app_list_del {
  margin-left: auto;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.app_copy {
  color: #999;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  margin: 40px 0 0;
}
@media screen and (max-width: 768px) {
  #app {
    padding-inline: 20px;
  }
}

/* ----------------------------------------
element
---------------------------------------- */
input.el_ipt {
  font-size: 1.6rem;
  line-height: 2rem;
  width: min(100%, 360px);
  padding: 9px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
input.el_edt {
  border: 1px solid var(--color-border);
  border-radius: 5px;
}
button.el_btn {
  font-size: 1.6rem;
  line-height: 2rem;
  color: #fff;
  background: var(--color-button);
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
}
button.el_btn.el_btn__clr {
  color: #333;
  background-color: #ffd700;
}
button.el_btn.el_btn__sort {
  color: #333;
  background-color: #eee;
}
button.el_btn.el_btn__sort.is_selected {
  color: #fff;
  background-color: var(--color-button);
}
button.el_btn.el_btn__del {
  font-size: 1.4rem;
  background-color: #c00;
  padding: 5px 10px;
}
@media screen and (max-width: 480px) {
  button.el_btn {
    font-size: 1.5rem;
    padding-inline: 10px;
  }
}

/* ----------------------------------------
animation
---------------------------------------- */
.todo-list-enter {
  opacity: 0;
  translate: 0 -20px;
}
.todo-list-enter-active {
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}
.todo-list-enter-to {
  opacity: 1;
  translate: 0 0;
}
/* .todo-list-leave-active {
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  position: absolute;
  width: 100%; 
}
.todo-list-leave-to {
  opacity: 0;
  translate: 0 -20px;
}
.todo-list-move {
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
} */
.app_list ul {
  position: relative;
}