#price {
  display: flex;
  justify-content: center;
  /* min-height: 100%; */
  padding: 81px 36px 36px;
  box-sizing: border-box;
}

/* sub */
#sub {
  display: grid;
  margin: 0 18px 0 0;
  width: 72px;
  border-top: 1px solid var(--c-iron);
}

#sub .lbl {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1.8rem;
  color: var(--c-gray);
  border-bottom: 1px solid var(--c-iron);
}

/* main */
#main {
  display: grid;
  gap: 2px;
  width: 90%;
}

#main .block {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

#main .item {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-gray);
  box-sizing: border-box;
  user-select: none;
  cursor: pointer;
  transition:
    background-color 180ms var(--timing-function);
}

#main .item.hide {
  border: 0;
}

#main .item[img="#"] {
  pointer-events: none
}

#main .txt {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 500;
  height: 100%;
}

#main .txt.other {
  color: var(--c-gray);
}

#main .lbl {
  font-size: 1.4rem;
}

#main .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  width: 100%;
  height: 27px;
  color: var(--c-white);
  background: var(--c-gray);
  box-sizing: border-box;
}

.s1,
.s2,
.s3 {
  pointer-events: none
}

.s1::after {
  content: "契約済";
  background: var(--c-black);
}

.s2::after {
  content: "商談中";
  background: var(--c-red);
}

.s3::after {
  content: "次期販売住戸";
  background: var(--c-green);
}

.s1::after,
.s2::after,
.s3::after {
  position: absolute;
  top: -1px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  text-align: center;
  font-size: 1.8rem;
  color: #fff;
}

/* .s1::before, */
.s2::before,
.s3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: calc(100% - 9px);
  height: calc(100% - 9px);
  border: 1px dashed #fff;
  z-index: 2;
}

/* zoom */
#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;
  }
}


@media(hover :hover) {
  #main .item:hover {
    background: rgb(132, 166, 230, .18);
  }
}