h1 {
  color: #222222;
  text-align: center;
  font-weight: bolder;
}
.form {
  padding: 1em;
  border: solid 10px #33739b;
  border-radius: 5px;
  background-color: #fff;
  width: 960px;
  margin: 0 auto;
 }
 .item label {
  display: flex;
  flex-wrap: wrap;
  width: 320px;
 }
 .item label > * {
  display: block;
  width: 100%;
 }
 .item label > input {
  order: 2;
  border-radius: 3px;
  border: 1px solid #aaa;
  height: 25px;
 }
 .item label > span {
  order: 1;
  margin-bottom: 3px;
 }
 .notice {
  font-size: 12px;
  line-height: 1;
  display: inline-block;
  margin-left: 5px;
  padding: 2px;
  color: #666;
  border: 1px solid #666;
  border-radius: 3px;
 }
 input:invalid + span .notice {
  color: red;
  border-color: red;
 }
 input:valid + span .notice {
  color: green;
  border-color: green;
 }
 input:valid + span .notice:after {
  margin-left: .5em;
  content: '入力OK';
 }
img {
  display: block;
  margin: 0 auto;
}
select {
  width: 200px;
  height: 25px;
}
@media screen and (max-width: 450px) {
  body {
    margin: 0;
  }
  .form {
    width: 100%;
    border: solid 10px #33739b;
  }
  .form label {
    width: 95%;
  }
  textarea {
    width: 95%;
    height: 200px;
  }
  img {
    width: 80%;
  }