@charset "UTF-8";

h1 {
  font-size: 2vw;
  padding: 1em 0 0 0;
  line-height: 2vw;
}

section::before, section::after {
    display: block;
    content: "";
    width: 20vw;
    height: 20vw;
    background-color: lightgreen;
    position: absolute;
    z-index: 0;
    transform: rotate(20deg);
    overflow: hidden;
    opacity: 0.4;
}

section::before {
  top: -15vw;
  left: -6vw;
}

section::after {
  display: none;
}

h1 + p {
  font-size: 1vw;
}

section {
  margin: 0em;
  background-color: rgba(255,255,255,0.8);
  width: 90%;
  box-shadow: 0px 5px 9px 2px rgba(102, 102, 102, 0.8);
  position: relative;
  overflow: hidden;
}

section > div, form {
    width: 80%;
    margin: 0 auto 3vw;
}

section > form {
    position: relative;
    z-index: 1;
}

section > div {
  margin-bottom: 2vw;
  z-index: 1;
  position: relative;
}

select {
  border-width: 0px;
  border-bottom: 1px solid deepskyblue;
  color: deepskyblue;
  height: 2vw;
  font-size: 1vw;
  width: 47%;
}

option {
  color: #000;
  font-size: 14px;
}

main {
  background-image: url(../images/contact_01_2.jpg);
  background-size: contain;
  background-repeat: no-repeat;
  margin: 100px auto 0px;
  width: 70%;
  padding-top: 3vw;
  padding-left: 25vw;
  overflow: hidden;
  padding-bottom: 100px;
  position: relative;
}

main > img {
  width: 40%;
  height: 100%;
}

table.formTable, tbody, tr, th, td {
    display: block;
}

th {
  text-align: left;
  font-size: 1vw;
}

td {
  margin-bottom: 1vw;
}

input {
  width: 100%;
  border-width: 0px;
  border-bottom: 1px solid #333;
  color: #333;
  height: 2vw;
}

textarea {
  width: 100%;
  height: 6vw;
  resize: none;
}

em {
    color: red;
    font-size: 65%;
    font-weight: normal;
    font-style: normal;
}

input[type=submit] {
  width: 200px;
  border: 0;
  border-radius: 1em;
  background-color: deepskyblue;
  margin-top: 1em;
  /* transition-duration: 1s; */
  color:#fff;
}

input[type=submit]:hover {
  cursor: pointer;
  /* transition-duration: 1s; */
  background: #03739C;
}

input::placeholder {
  color: #c6c7cc;
}

/* IE */
input:-ms-input-placeholder {
  color: #c6c7cc;
}

/* Edge */
input::-ms-input-placeholder {
  color: #c6c7cc;
}
select::-ms-expand {
	display: none;
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

select, input, textarea {
  background: transparent;
}

input::placeholder, textarea::placeholder, :-ms-input-placeholder, ::-ms-input-placeholder {
  color: #ADADAD;
  font-size: 1vw;
}

form > p {
  font-size: 1vw;
}

form a {
  color: deepskyblue;
}

.hide {
  display: none;
}

@media screen and (max-width:1024px) {
  main {
    width: 100%;
  }

  section::before {
    top: -11vw;
    left: -1vw;
    width: 22vw;
  }

  section::after {
    top: 117px;
    left: 28vw;
  }

  h1 {
    font-size: 3vw;
    line-height: 3vw;
  }

  h1 + p {
    font-size: 1.5vw;
  }

  th {
    font-size: 1.8vw;
  }

  input {
    height: 6vw;
  }

  td {
    margin-bottom: 3vw;
  }

  select {
    height: 4vw;
    font-size: 2vw;
    width: 56%;
  }

  input::placeholder, textarea::placeholder, :-ms-input-placeholder, ::-ms-input-placeholder {
    font-size: 2vw;
  }

  form > p {
    font-size: 1.5vw;
  }

  textarea {
    height: 9vw;
  }
}

@media screen and (max-width:768px) {
  main {
    padding: 0;
    background-size: cover;
    margin-bottom: 50px;
  }

  h1 {
    font-size: 5vw;
    line-height: 5vw;
  }

  h1 + p {
    font-size: 2vw;
  }

  section {
    width: 100%;
  }

  section::before {
    top: -7vw;
    left: 5vw;
    width: 26vw;
  }

  th {
    font-size: 3vw;
  }

  select {
    font-size: 2.5vw;
    width: 47%;
  }

  input::placeholder, textarea::placeholder, :-ms-input-placeholder, ::-ms-input-placeholder {
    font-size: 1.5vw;
  }

  form > p {
    font-size: 2vw;
  }

  textarea {
    height: 20vw;
  }
}

@media screen and (max-width:414px) {
  form > p {
    font-size: 3vw;
  }

  .hide {
    display: inline;
  }
  #formWrap {
    width:90vw;
  }

  input[type=submit]  {
    height: 10vw;
  }

}
