/****************************************
入力
****************************************/
/**********パーツ**********/
input,
textarea,
button {
  font-family: 'Noto Sans Japanese', sans-serif;
  display: block;
  line-height: 1.6;
  color: #333;
  margin-top: 5px;
  font-size: 1.6rem;
}

input,
textarea {
  padding: 10px 15px !important;
  width: 100% !important;
  border: 1px solid #CCC;
  border-radius: 5px;
}

.inputShort {
  max-width: 30%;
}

.inputMiddle {
  max-width: 50%;
}

textarea {
  resize: vertical;
  min-height: 200px;
}

input:focus,
textarea:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

::placeholder {
  color: #BBB;
  letter-spacing: 1px;
}

button {
  user-select: none;
  border: none;
  cursor: pointer;
  outline: none;
  appearance: none;
  margin: 20px 5px;
  background-color: #003893;
  color: #FFF;
  font-size: 1.8rem;
  padding: 15px 40px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
  border-radius: 50px;
  transition: 0.2s linear;
  width: fit-content;
  font-weight: 600;

  &:hover {
    opacity: 0.6;
  }
}

/*-----削除しない-----*/
.memo {
  display: none !important;
}

/**********フォーム**********/
.contactTtl {
  margin-top: 120px;

  & > dt {
    position: relative;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    font-size: 3rem;
    line-height: 1;
    color: #003893;
  }

  & > dd {
    margin-top: 30px;
  }
}

.homeBtn {
  position: absolute;
  top: 10px;
  left: 0;
  background-color: #003893;
  color: #FFF;
  line-height: 1.2;
  padding: 5px 10px;
  font-size: 1.2rem;
  border-radius: 50px;

  & i {
    margin-right: 5px;
  }
}

.contactCtsTtl {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 30px;
  border-bottom: 1px solid #003893;
  padding-bottom: 5px;
  color: #003893;

  & i {
    margin-right: 5px;
  }

  &:not(:first-of-type) {
    margin-top: 60px;
  }

  & + p {
    margin-top: 15px;
  }
}

.formCts {
  font-weight: 600;
  font-size: 1.6rem;
  margin-top: 20px;

  & dt {
    user-select: none;

    &:before {
      content: "■";
    }

    &:not(:first-child) {
      margin-top: 30px;
    }

    & span {
      background-color: #E50000;
      font-size: 80%;
      color: #FFF;
      border-radius: 20px;
      padding: 0px 10px;
      margin-left: 5px;
    }
  }

  & + button {
    margin: 30px auto;
  }
}

.inputAddress {
  & input[type=text] {
    &:not(:first-child) {
      margin-top: 10px;
    }

    &:first-child {
      width: 120px !important;
      display: inline !important;
    }
  }
}

.toggleCts {
  white-space: nowrap;
  padding-top: 5px !important;
  padding-bottom: 5px !important;

  & input[type=text] {
    margin-top: 0;
    margin-left: 5px;
    display: inline;
    width: 95% !important;
    padding: 5px !important;
  }

  & .errorMsg {
    margin-left: 60px;
  }
}

.telLink {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 900;
  margin: 15px 0 80px;
}

@media only screen and (max-width: 768px) {
  .wrap {
    width: 90%;
  }

  .inputShort,
  .inputMiddle {
    max-width: 100% !important;
  }
}

/**********エラー**********/
.error {
  background-color: #FEE !important;
  border: solid 1px #E50000;
}

.errorMsg {
  color: #E50000;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 5px;

  &:before {
    content: "▲";
    margin-right: 5px;
  }
}

.formCts {
  & dd {
    &.error {
      margin-top: 5px;
      padding: 5px 10px 10px;
    }
  }
}

/****************************************
確認画面
****************************************/
.confirmTable {
  & caption {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
  }

  & tr {
    &:nth-child(odd) {
      background-color: #ECF1F9;
    }

    &:nth-child(even) {
      background-color: #FFF;
    }

    & th,
    td {
      padding: 10px 15px;
      vertical-align: top;
    }

    & th {
      width: 10px;
      white-space: nowrap;

      &:before {
        content: "■";
        color: #003893;
      }
    }
  }
}

.btnArea {
  display: flex;
  justify-content: center;
  border-top: 1px solid #CCC;

  & button {
    padding: 15px 20px;

    &:first-child {
      background-color: #BBB;
      font-weight: 400;

      & i {
        margin-right: 5px;
      }
    }

    &:last-child {
      padding-right: 20px;
      padding-left: 30px;
      background-color: #003893;
      font-weight: 600;

      & i {
        margin-left: 5px;
      }
    }
  }
}

/****************************************
送信完了
****************************************/
.finishText {
  margin-top: 120px;

  & dt {
    font-size: 2rem;
    font-weight: 600;
    color: #003893;
  }

  & dd {
    margin-top: 15px !important;
    line-height: 1.8;
  }
}

.goHome {
  display: block;
  margin-top: 30px;
  font-size: 1.6rem;
  width: 160px;
  text-align: center;
  border-radius: 50px;
  padding: 10px 0;
  line-height: 1.4;
  background-color: #FFF;
  font-weight: 500;

  & i {
    margin-right: 10px;
  }
}
