/* ダメUIのWEBサイト */
.header {
  padding: 0.3rem 1rem;
  color: #fff;
  background-color: darkorange;
}

.title {
  text-align: center;
  font-size: 1.3rem;
}

img {
  width: 100%;
  height: auto;
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-between;
}

.item {
  width: 40vw;
  margin: 1rem;
  padding: 1rem;
  box-shadow: 0.2rem 0.2rem 0.3rem 0 rgba(0, 0, 0, 0.5);
}

.img-container {
  height: 20vh;
}

.item-title {
  font-weight: bold;
  height: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  margin: 2rem;
}

.pagination div {
  padding: 0.25rem 1rem;
  border: 1px solid #ddd;
}

#nav-buttons {
  display: flex;
  justify-content: space-around;
}

/* ハンバーガーメニュー */
#nav-drawer {
  position: relative;
}

#nav-open {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.nav-unshown {
  display: none;
}

#nav-close {
  display: none;
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

#nav-content {
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 60%;
  max-width: 20rem;
  height: 100%;
  background: darkorange;
  transition: 0.3s ease-in-out;
  transform: translateX(-105%);

  padding: 1rem;
  font-size: 1.5rem;
}

#nav-input:checked ~ #nav-close {
  display: block;
  opacity: 0.5;
}

#nav-input:checked ~ #nav-content {
  transform: translateX(0%);
  box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
}
