/* Scss Document */
.main {
  overflow: visible;
}

.gallery {
  padding-top: 0;
  position: relative;
}

.gallery:after {
  content: "";
  position: absolute;
  display: block;
  top: 14rem;
  left: 0;
  width: 80%;
  height: calc(100% - 28rem);
  background: #f4f4f4;
  z-index: 0;
}

.gallery .inner {
  position: relative;
  z-index: 1;
}

.gallery-contents {
  margin: 0 auto;
  padding: 6rem 0;
  width: 100%;
  max-width: 134rem;
}

@media only screen and (max-width: 640px) {
  .gallery-contents {
    padding: 5vw;
    max-width: initial;
  }
}

.gallery-list {
  padding: 0 6rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.gallery-list::after {
  content: "";
  display: block;
  width: 30%;
}

@media only screen and (max-width: 640px) {
  .gallery-list {
    padding: 0;
  }
}

.gallery-item {
  margin-bottom: 5rem;
  width: 30%;
  position: relative;
}

@media only screen and (max-width: 640px) {
  .gallery-item {
    margin-bottom: 2rem;
    width: 100%;
  }

  .gallery-item:last-child {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 640px) {
  .gallery a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
}

@media only screen and (max-width: 640px) {
  .gallery-img {
    width: 35%;
  }
}

.gallery-body {
  margin-top: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

@media only screen and (max-width: 640px) {
  .gallery-body {
    display: block;
    width: 60%;
  }
}

.gallery-number {
  font-size: 2rem;
  color: #003166;
  line-height: 1;
  font-family: "Times New Roman", Times, serif;
  font-style: normal;
}

@media only screen and (max-width: 640px) {
  .gallery-number {
    font-size: 1.8rem;
  }
}

.gallery-number span {
  font-size: 4rem;
}

@media only screen and (max-width: 640px) {
  .gallery-number span {
    font-size: 3.2rem;
  }
}

.gallery-info {
  text-align: right;
  line-height: 1.3;
}

@media only screen and (max-width: 640px) {
  .gallery-info {
    text-align: left;
  }
}

.gallery-title {
  font-size: 2.4rem;
}

@media only screen and (max-width: 640px) {
  .gallery-title {
    font-size: 2rem;
  }
}

.gallery address {
  font-size: 1.6rem;
}

@media only screen and (max-width: 640px) {
  .gallery address {
    font-size: 1.4rem;
  }
}

.gallery-detail-head {
  background: #f4f4f4;
}

.gallery-detail-head .inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.gallery-detail-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.gallery-detail-item {
  padding: 1px;
  width: 20%;
}

@media only screen and (max-width: 640px) {
  .gallery-detail-item {
    width: 33.3333333333%;
  }
}

.gallery-detail-item a {
  display: block;
  position: relative;
}

.gallery-detail-item figure {
  margin: 0;
  position: relative;
  z-index: 0;
}

.gallery-detail-item span {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 3rem;
  font-family: "Times New Roman", Times, serif;
  font-style: normal;
  line-height: 0.8;
  font-weight: bold;
  z-index: 1;
}

.gallery-detail-item span.img-before {
  color: rgb(255, 255, 255);
}

.gallery-detail-item span.img-revive {
  color: #c6161d;
}

.gallery-detail-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.gallery-detail-number {
  margin-right: 4rem;
  font-size: 3.6rem;
  color: #003166;
  line-height: 1;
  font-family: "Times New Roman", Times, serif;
  font-style: normal;
}

.gallery-detail-number span {
  font-size: 6.4rem;
}

.gallery-detail-info {
  line-height: 1.3;
}

.gallery-detail-title {
  font-size: 4rem;
}

.gallery-detail address {
  font-size: 2rem;
}