#contact {
  background: url(../image/bg.png) no-repeat 0 0/cover;
}

#contact #header {
  background: #513a5e;
  height: 65px;
  padding-top: .5rem;
  border-bottom: 2px solid white;
}

#contact #header h1 a{ margin: 0 10px;}
#contact #header h1 a + a img{ padding-top: 3px;}

#contact #page-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
}

#contact #contents {
  background: #978a9c;
  padding-top: 5rem;
  margin-bottom: 30px;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

#contact #contents h2, #contact #contents h3 {
  background-color: #978a9c;
}

#contact #contents form.contact {
  background-color: rgba(255, 255, 255, 0.8);
}

#contact #contents form.contact select[name="subject"]:checked {
  border: 1px solid #513a5e !important;
  -webkit-box-shadow: 0 0 3px 1px #513a5e !important;
          box-shadow: 0 0 3px 1px #513a5e !important;
}

#contact #contents form.contact > div input:focus,
#contact #contents form.contact > div select:focus,
#contact #contents form.contact > div textarea:focus {
  -webkit-box-shadow: 0 0 3px 1px #513a5e;
          box-shadow: 0 0 3px 1px #513a5e;
}

#contact #contents form.contact > div input[type=checkbox] + label:before {
  background-color: #978a9c;
}

#contact #contents form.contact > div input[type=checkbox]:checked + label:hover:before {
  background-color: #978a9c;
}

#contact #contents form.contact > div button,
#contact #contents form.contact > div .btn-send {
  background-color: #978a9c;
}

#contact #contents > div .btn-send, #contact #contents > div button {
  background-color: #978a9c;
}

#contact #contents.sendmail {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  min-height: calc((100vh + 3rem) - (60px + 50px));
}

#contact #contents.sendmail .form-center {
  text-align: center;
  padding-top: 1rem;
}

#contact #contents.sendmail .form-center a {
  display: inline-block;
  font-weight: 700;
  padding: .5rem 2rem;
  color: white;
  border: 2px solid white;
  border-radius: .5rem;
  text-decoration: none;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

#contact #contents.sendmail .form-center a:hover {
  background: white;
  color: #978a9c;
}

#contact #footer {
  background: #513a5e;
}
