/* リセットCSS */
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ヘッダー */
header {
  background-color: #1abc9c;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

header h1 {
  font-size: 2rem;
  flex-basis: 100%;
  text-align: center;
  color: #000;
}

nav {
  flex-basis: 100%;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

nav li {
  margin: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

/* メインコンテンツ */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

section {
  margin-bottom: 2rem;
  text-align: center;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

section a {
  display: block;
  padding: 1rem;
  background-color: #1abc9c;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  width: 500px;
  
  margin: 0.5rem auto;
}

/* フッター */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

/* レスポンシブコード */
@media screen and (max-width: 480px) {
  /* ヘッダー */
  header h1 {
    flex-basis: auto;
    text-align: left;
  }

  nav {
    flex-basis: auto;
  }

  nav ul {
    justify-content: flex-end;
  }

  /* メインコンテンツ */
  main {
    padding: 3rem;
  }

section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  section h2 {
    font-size: 2rem;
    max-width: 50%;
　 text-align: center;
  }

  section a {
    max-width: 50%;
    margin: 1rem auto;
  }
}
