#jibun {
  background: var(--c-whisper);
}

#jibun .ttl {
  padding: 27px 0 0;
  font-size: 2.1rem;
  font-weight: 500;
}

#jibun .block {
  display: grid;
  grid-gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
  padding: 27px 0;
}

#jibun .item {
  padding: 12px 12px 18px;
  background: #fff;
  cursor: pointer;
  transition:
    box-shadow 180ms var(--timing-function);
}

#jibun .tmb {
  margin: auto;
  width: 100%;
  height: 270px;
}

#jibun .lbl {
  margin: 18px 0 0;
  font-size: 1.8rem;
  text-align: center;
}

.hide {
  display: none;
}

/* modal */
#modal {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 360ms var(--timing-function);
}

#modal.show {
  pointer-events: all;
  opacity: 1;
}

#modal .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
  cursor: pointer;
  z-index: 1;
}

#modal .box {
  position: relative;
  max-width: 1440px;
  max-height: 90%;
  width: 90%;
  overflow-y: scroll;
  z-index: 3;
}

#modal .block {
  grid-gap: 27px;
  padding: 0;
}

#modal .card {
  height: 270px;
  background: #fff;
  box-sizing: border-box;
  cursor: zoom-in;
}

#zoom {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
  cursor: zoom-out;
  z-index: 3005;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 270ms var(--timing-function);
}

#zoom.show {
  pointer-events: all;
  opacity: 1;
}

#zoom img {
  display: block;
  margin: auto;
  width: auto;
  height: 90%;
  transform: scale(.9);
  opacity: 0;
  animation:
    show 234ms var(--timing-function) forwards;
}

@keyframes show {
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* hover */
@media (hover :hover) {
  #jibun .item:hover {
    box-shadow: var(--shadow);
  }
}