@charset "UTF-8";
/* CSS Document */



figure, p {
  /* リセット用（場合によっては不要） */
  margin: 0;
}

.image_box {
  width: 350px;
  display: block;
}

.hover {
  position: relative;
}
.hover figure {
  overflow: hidden;
}
.hover figure img {
  display: block;
  width: 100%;
  transition: 0.3s;
}
.hover figure figcaption {
  opacity: 0;
  transition: 0.3s;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 30px);
  height: calc(100% - 30px);
  color: #fff;
  border: solid 1px #fff;
}
.hover figure figcaption .txt_box {
  position: relative;
  width: 100%;
  height: 100%;
}
.hover figure figcaption .txt_box > p {
  width: 100%;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hover:hover figure img {
  filter: brightness(50%);
  transform: scale(1.2);
}
.hover:hover figure figcaption {
  opacity: 1;
}