@media screen and (max-width: 600px){
  .wrap {
    margin-left: 2%;
    width: 96%;
    min-width: 300px;
  }
  header {
    min-width: 300px;
    height: auto;
  }
  header #search {
    display: none;
  }
  header nav {
    margin-bottom: 10px;
    width: 100%;
    height: auto;
    position: relative;
    top: initial;
    right: initial;
  }
  header nav ul {
    flex-direction: column;
  }
  header nav ul li a {
    line-height: 30px;
  }
  footer {
  }
  section {
    min-width: 300px;
  }
  section .wrap {
    min-height: calc(100vh - 245px);
  }
  section > div > div {
    flex-direction: column-reverse;
    justify-content: flex-end;
  }
  section > div > div > .menu {
    border-radius: 0 0 4px 4px;
  }
  section > div > div > .menu ul li a {
    height: 30px;
  }
  section > div > div > .contents {
    border-radius: 4px 4px 0 0;
  }
  section article.flex {
    flex-direction: column;
  }
  section article.flex pre code {
    width: 100%;
  }
  section article aside ul {
    flex-direction: column-reverse;
  }
  section article img {
    margin: 10px 10%;
    width: auto;
    max-width: 80%;
    min-width: auto;
  }
  section article button {
    margin-top: 20px;
  }
  footer {
    min-width: 300px;
  }
  .modal {
    width: 90%;
    height: 400px;
  }
}