html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

* {
  box-sizing: border-box;
}

html {
  overflow: auto;
}

body {
  height: 100%;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  background: #ddd;
}

img {
  max-width: 100%;
  height: auto;
}

.sp {
  display: none;
}

#wrapper {
  width: 1040px;
  margin: 0 auto;
  padding: 10px;
  min-height: 1000px;
  background: url(../images/bg.png) repeat-y;
  background-position: center;
}
#wrapper img {
  display: block;
  margin: 0 auto;
}

#form {
  width: 800px;
  padding: 30px 100px 5px;
  margin: 0 auto;
  border: #8b0000 dashed 8px;
  background: #fff7d4;
}
#form input {
  width: 600px;
  padding: 15px;
  text-align: center;
  font-size: 1.25em;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

footer {
  display: block;
  padding: 50px 0;
}
footer small {
  display: block;
  font-size: .75em;
  text-align: center;
}
footer .link {
  text-align: center;
  padding-top: 10px;
}
footer .link a {
  font-size: .75em;
  color: #08e;
}

.mt70 {
  margin-top: 70px !important;
}

@media all and (max-width: 768px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block;
  }

  body {
    min-width: auto;
    background: #fff;
  }

  #wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 5px;
    min-height: 500px;
    background: none;
    background-position: center;
  }
  #wrapper img {
    display: block;
    width: 99%;
    margin: 0 auto;
  }

  #form {
    width: 100%;
    padding: 10px 10px 0 10px;
    margin: 0 auto;
    border: #8b0000 dashed 8px;
    background: #fff7d4;
  }
  #form input {
    width: 100%;
    padding: 10px 5px;
    text-align: center;
    font-size: .75em;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
  }
  #form .btn {
    margin-top: 5px;
  }

  footer {
    display: block;
    padding: 20px 0;
  }
  footer small {
    display: block;
    font-size: .5em;
    text-align: center;
  }
  footer .link {
    text-align: center;
    padding-top: 10px;
  }
  footer .link a {
    font-size: .75em;
    color: #08e;
  }

  .mt70 {
    margin-top: 20px !important;
  }
}
