
nav {
	font-size: small;
  border-top: #ccc 1px solid;
  padding-top: 12px;
}
nav input {
 	display: none;
 }
 nav ul {
	display: flex;
	justify-content: space-around;
  list-style: none;
  margin-bottom: 6px;
}
nav li {
  text-align: center;
}
nav a {
  text-decoration: none;
  color: #222;
}
nav a:hover {
  text-decoration: none;
  color: #222;
  border-bottom: solid 5px #f9d349;
  transition: all 0.3s ease-in-out;
}


/* 画面サイズが768px以下の場合に適用 */
@media only screen and (max-width: 768px) {

  nav ul {
    flex-wrap: wrap;
    align-items: center;
  }
  nav li {
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 8px;
  }
}