@import url("https://fonts.googleapis.com/css?family=Roboto");
@import url("https://fonts.googleapis.com/css?family=Source+Serif+Pro");
.top-slogn {
  margin-left: 0;
}
.top-slogn-small {
  margin-left: 5px;
}

.top-text {
  position: relative;
  top: 65%;
  left: 50%;
  text-align: center;
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 15;
}
.top-text .text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 10%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.top-text .tx-tw {
  font-size: 18px;
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -moz-transition: -moz-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -o-transition: -o-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  transition: transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}
.top-text .tx-tw.move-tw {
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.top-text .tx-en {
  font-size: 40px;
  line-height: 1em;
  margin: 20px 0;
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -moz-transition: -moz-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -o-transition: -o-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  transition: transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}
.top-text .tx-en.move-en {
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.top-text .ad {
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -moz-transition: -moz-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -o-transition: -o-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
  transition: transform 0.3s cubic-bezier(0.25, 0.25, 0.75, 0.75);
}
.top-text .ad.move-ad {
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.top-text .ad img {
  width: 45px;
  margin: 0 5px;
  display: inline-block;
}

.gallery {
  padding: 30px 0 80px;
}
.gallery-box {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}
.gallery a {
  display: block;
  width: 25%;
  position: relative;
}
.gallery a:hover .gallery-content {
  background: rgba(245, 237, 210, 0.75);
  border: 0px;
  border-radius: 50%;
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -webkit-transform: scale(0.8);
  transform: scale(0.8);
}
.gallery a:hover .gallery-pic {
  background: #decd9c;
  padding: 0;
}
.gallery a:hover .gallery-title-tw {
  opacity: 1;
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
.gallery a:hover .gallery-line {
  width: 50px;
  opacity: 1;
  margin: 0 auto 10px;
  -moz-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}
.gallery a:hover .gallery-explore {
  opacity: 1;
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
.gallery-list {
  display: flex;
  align-items: stretch;
}
.gallery-pic, .gallery-content {
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #decd9c;
  margin: 10px;
}
.gallery-pic {
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.gallery-pic img {
  width: 100%;
}
.gallery-content {
  position: absolute;
  top: 0;
  height: calc(100% - 20px);
  width: calc(100% - 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.gallery-title-tw {
  font-size: 16px;
  padding: 10px;
  color: #523608;
  opacity: 0;
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -webkit-transform: scale(0);
  transform: scale(0);
  -moz-transition: -moz-transform 0.5s, opacity 0.3s;
  -o-transition: -o-transform 0.5s, opacity 0.3s;
  -webkit-transition: -webkit-transform 0.5s, opacity 0.3s;
  transition: transform 0.5s, opacity 0.3s;
}
.gallery-explore {
  color: #a07e3e;
  opacity: 0;
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -webkit-transform: scale(0);
  transform: scale(0);
  -moz-transition: -moz-transform 0.8s, opacity 0.3s;
  -o-transition: -o-transform 0.8s, opacity 0.3s;
  -webkit-transition: -webkit-transform 0.8s, opacity 0.3s;
  transition: transform 0.8s, opacity 0.3s;
}

.gallery-list {
  opacity: 0;
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
  -moz-transition: opacity 1s, -moz-transform 0.8s;
  -o-transition: opacity 1s, -o-transform 0.8s;
  -webkit-transition: opacity 1s, -webkit-transform 0.8s;
  transition: opacity 1s, transform 0.8s;
}
.gallery-list.show {
  opacity: 1;
  -moz-transform: translate(0px, 0px);
  -ms-transform: translate(0px, 0px);
  -webkit-transform: translate(0px, 0px);
  transform: translate(0px, 0px);
}

@media screen and (max-width: 1400px) {
  .gallery-box {
    width: 90%;
  }
}
@media screen and (max-width: 1100px) {
  .top-text .ad img {
    width: 40px;
    margin: 0 5px;
  }

  .gallery a {
    width: 33.3333%;
  }
  .gallery-title-tw {
    font-size: 15px;
  }
  .gallery-content {
    display: none;
  }
}
@media screen and (max-width: 860px) {
  .gallery a {
    width: 50%;
  }
}
@media screen and (max-width: 720px) {
  .top-text .tx-en {
    font-size: 30px;
    margin: 15px 0 20px;
  }
  .top-text .ad img {
    width: 40px;
  }
}
@media screen and (max-width: 640px) {
  .gallery a {
    width: 80%;
    margin: auto;
  }
}
@media screen and (max-width: 460px) {
  .top-text .ad img {
    width: 35px;
    margin: 0 2px;
  }

  .gallery a {
    width: 100%;
    margin: auto;
  }
}
@media screen and (max-height: 720px) {
  .top-text {
    top: 60%;
  }
  .top-text .tx-tw {
    font-size: 16px;
  }
  .top-text .tx-en {
    font-size: 30px;
    margin: 15px 0 20px;
  }
  .top-text .ad img {
    width: 35px;
    margin: 0 2px;
  }
}
@media screen and (max-height: 550px) {
  .top-text {
    top: 50%;
  }
  .top-text .tx-tw {
    font-size: 16px;
  }
  .top-text .tx-en {
    font-size: 30px;
    margin: 15px 0 20px;
  }
}
