html, 
body{
  background-color: #FFF9CA;
}
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
  font-family: Arial, "メイリオ","ヒラギノ角ゴ Pro W3","MS PGothic","MS UI Gothic", sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}
h1 {font-size:3rem;}
h2 {font-size:2.5rem;}
h3 {font-size:2rem;}
h4 {font-size:1.5rem;}
h5 {font-size:1rem;}
h6 {font-size:0.8rem;}
.flex {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}
.row{
  -webkit-flex-flow: row wrap;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;  
}
.flex-start{
  -ms-flex-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}
.flex-center{
 -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.space-around {
  -ms-flex-pack: distribute;
  -webkit-justify-content: space-around;
  justify-content: space-around;
}
.space-between {
  -ms-flex-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.flex-end {
  -ms-flex-pack:end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
}
#wrapper {
  width: 98%;
}
header {
  width: 100%;
}
.logo {
  width: 10rem;
  margin: 0 0 0 1.5rem;
}
/* Bounce In */
.hvr-bounce-in {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  transition-duration: 0.5s;
}
.hvr-bounce-in:hover, .hvr-bounce-in:focus, .hvr-bounce-in:active {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}
.main {
  width:100%;
}
.mat{  
  margin: 0.3rem 0.8rem;
  border-radius: 1rem;
  background-color: #FFF397;
  width: 80%;
  box-shadow: 1px 7px 7px #ddc44a;
}
.contact-wrapper{
  width: 22rem;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}
.title{
  font-weight: bold;
  font-size: 1.5rem;
}
.mail-pic{
  margin-top: 1rem;
}
#form_wrap.hide:after, #form_wrap.hide:before {display:none; }

form{
  margin: 1rem 2rem 1rem 0;
  width: 25rem;
  padding: 1rem;
}
input, textarea {
  cursor: pointer;
}
textarea:focus, input:focus{
    outline: none;
}
input[type="text"], input[type="email"], textarea {
 font-size: 1rem;
 border-radius: 0.5rem;
 outline: none;
 border: 1px solid #ddc44a;
 background-color: ivory;
  } 
.form-group input,
.form-group textarea {
  padding: 1rem;
  margin: 0.4rem;
}

.form-group textarea.form-control {
    height: 10rem;
}
.form-control:focus {
    border-color: gold;
    box-shadow: 1px 3px 3px #ddc44a
}
.form-control {
  width: 100%;
}
::-webkit-input-placeholder {
    font-weight: 700;
    color: #bbb;
}

:-moz-placeholder {
    font-weight: 700;
    color: #bbb;
}

::-moz-placeholder {
    font-weight: 700;
    color: #bbb;
}

:-ms-input-placeholder {
    color: #bbb;
}
input[type="submit"] {
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  background-color: gold;
  border-radius: 0.5rem;
  box-shadow: 1px 3px 3px #ddc44a;
  padding: 0.5rem;
  outline: none;
  border: none;
  transition: 0.1s ease-in-out;
}
input[type="submit"]:hover {
  color: #cd5127;
}
.maillink-p {
  color: #cda327;
  font-size:0.8rem;
}
.maillink {
  color: #cda327;
  font-size: 1rem;
}
.maillink:hover, .maillink:focus, .maillink:active{
  color: #cd5127;
}
.formstatusok{
  color: #ED4B4E;
  font-size: 1rem;
  margin-left: 1rem;
  font-weight: bold;
}
.formstatuserror{
  color: #cd5127;
}
footer {
  margin-top: 0.8rem;
  width:98%;
  border-top-style: solid;
  border-width: 1px;
  border-color: #ddc44a;
  padding: 1.5rem 0;
}
.copyright {
  color: #cda327;
  font-size: 0.75rem;
}

/*medium&tablet -----------------2*/
@media all and (max-width: 1070px){
  .mat{
    width: 95%;
  }
}
@media all and (max-width: 490px){
 form {
  width: 75%;
 }
 .mail-pic{
  width: 80%;
  margin-top: 0.5rem;
 }
}
@media all and (max-width: 400px){
  .contact-wrapper{
    width: 90%;
  }
}

