@charset "UTF-8";
#wrapper {
  display: grid;
  /* 1列目から順番に230px、1frxの幅 */
  grid-template-columns: 230px 1fr;
  /* 1行目から順番にheader main-img main footer の高さ */
  grid-template-rows: 91px 113px 1fr 280px;
  text-align: center;
}

/*---------------
main
---------------*/
h1 {
  font-size: 1.6rem;
  margin: 20px 0 20px 0;
}
#top_contents {
  margin: 30px 0;
}
#top_contents img {
  display: block;
  margin: auto;
}
#formWrap {
  width: 700px;
  margin: 0 auto;
  color: #555;
  line-height: 300%;
  font-size: 90%;
}
table.formTable {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}
table.formTable td,
table.formTable th {
  border: 1px solid #ccc;
}
table.formTable th {
  width: 30%;
  font-weight: normal;
  background: #efefef;
  text-align: left;
  padding: 10px;
}
table.formTable td {
  padding: 10px 20px;
  text-align: left;
}
.text-center {
  text-align: center;
}

/*---------------
footer
---------------*/

/* -------------------- スマホ 390px以下 -------------------- */
@media screen and (max-width: 390px) {
  #wrapper {
    display: grid;
    /* 1列目から順番に230px、1frxの幅 */
    grid-template-columns: 0 1fr;
    /* 1行目から順番にheader main-img main footer の高さ */
    grid-template-rows: 52px auto 1fr auto;
  }
  /*---------------
main
---------------*/
  #formWrap {
    width: 95%;
    margin: 0 auto;
  }
  table.formTable th,
  table.formTable td {
    width: auto;
    display: block;
  }
  table.formTable th {
    margin-top: 5px;
    border-bottom: 0;
  }
  form input[type="text"],
  form textarea {
    width: 80%;
    padding: 5px;
    font-size: 110%;
    display: block;
  }
  form input[type="submit"],
  form input[type="reset"],
  form input[type="button"] {
    display: block;
    width: 100%;
    height: 40px;
  }
}
