@charset "UTF-8";

body {
  font-family: "Yomogi", sans-serif;
  font-size: 24px;
  line-height: 1.6;
  color: #333;
  background-color: #D1DAFF;
}

img {
  max-width: 100%;
}

.wrap {
  width: 1000px;
  margin: 0 auto 30px;
}

h1 {
  margin-top: 20px;
  margin-bottom: 30px;
  font-family: "Sue Ellen Francisco";
  font-size: 64px;
  font-weight: bold;
  letter-spacing: 0.3em;
  text-align: center;
}

h1 span {
  position: relative;
}

h1 span::before {
  content: "";
  background: url(../images/deco-left.svg) no-repeat center/cover;
  width: 40px;
  height: 60px;
  position: absolute;
  bottom: 30px;
  left: -100px;
}

h1 span::after {
  content: "";
  background: url(../images/deco-right.svg) no-repeat center/cover;
  width: 38px;
  height: 50px;
  position: absolute;
  bottom: 30px;
  right: -80px;
}

.color {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
}

.color li {
  margin-left: 5px;
  margin-right: 5px;
  line-height: 0;
}

#date {
  text-align: right;
  font-size: 28px;
}

.input-area {
  width: 1000px;
  padding: 30px;
  border-radius: 20px;
  background-color: #9BAEFD;
  text-align: center;
}

.alert {
  color: red;
  font-weight: bold;
  display: none;
}

textarea {
  width: 810px;
  padding: 5px;
  background-color: #FFF;
  text-align: left;
}

button {
  margin-left: 20px;
  padding: 5px 15px;
  background-image: url(../images/button5.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.16);
  border: 1px solid #FFF;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 1px;
}

main {
  text-align: right;
}

.todo-list {
  width: 1000px;
  padding: 10px;
  margin: 0 auto;
  background-color: #9BAEFD;
  position: relative;
}

.pin {
  width: 40px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.todoarea {
  padding: 50px 30px;
  border: 3px solid #FFF;
}

.todoarea li {
  width: 900px;
  padding: 5px 20px 5px 50px;
  margin: 15px auto;
  border-radius: 50px;
  background-color: #FFF;
  text-align: left;
  position: relative;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border: 1px solid;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  appearance:none;
}

.check {
  color: #ADACAC;
  text-decoration: line-through;
  position: relative;
}

.check::before{
  content: "✓";
  position: absolute;
  top: 50%;
  left: 23px;
  transform: translateY(-55%);
  font-size: 16px;
}

.return {
  margin: 20px 20px 0 0;
  width: 50px;
  height: 50px;
  color: #FFF;
  border: 1px solid;
  display: inline-block;
  border-radius: 50%;
  text-align: center;
  background-color: #9BAEFD;
}

@media screen and (max-width:640px){

  body {
    font-size: 18px;
    line-height: 1.6;
  }

  h1 {
    font-size: 36px;
  }

  h1 span::before {
    width: 20px;
    height: 25px;
    bottom: 18px;
    left: -45px;
  }

  h1 span::after {
    width: 18px;
    height: 22px;
    bottom: 18px;
    right: -35px;
  }

  .wrap {
    width: 95%;
  }

  .color {
    margin-bottom: 30px;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }

  .color li {
    margin-left: 10px;
    margin-right: 10px;
  }

  #date {
    font-size: 18px;
  }

  .input-area {
    padding: 20px 0;
    width: 100%;
    margin: 0 auto;
  }

  button {
    margin-left: 0;
  }

  textarea {
    width: 90%;
    margin-bottom: 20px;
  }
 
  .todo-list {
    width: 100%;
  }

  .pin {
    width: 30px;
  }

  .todoarea {
    padding: 30px 0;
  }

  .todoarea li {
    width: 90%;
  }

  input[type="checkbox"] {
    width: 15px;
    height: 15px;
  }

  .return {
    padding-top: 2px;
    width: 40px;
    height: 40px;
  }
}