.inline-img {
  height: 30px;
  opacity: 0.5;
}

.title-tw {
  display: block;
  letter-spacing: 10px;
}

.title-en {
  font-size: 0.5em;
  display: block;
  line-height: 1.5;
  margin: 10px 0 60px;
  color: #666;
}
.title-en:before {
  content: "";
  width: 3px;
  height: 15px;
  background: #333;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.contact-flex {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-direction: row-reverse;
  -webkit-flex-direction: row-reverse;
  flex-direction: row-reverse;
}
.contact-content {
  position: relative;
  width: 450px;
  margin: auto;
}
.contact-map {
  position: relative;
  width: calc(100% - 450px);
}
.contact-slogan {
  font-size: 2.5em;
  color: #333;
  line-height: 1.2;
  opacity: 0;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.show .contact-slogan {
  opacity: 1;
}
.contact-slogan-bar {
  width: 0px;
  height: 3px;
  background: #FFF;
  margin: 50px 0 50px 280px;
  -moz-transition: width 0.6s 0.6s;
  -o-transition: width 0.6s 0.6s;
  -webkit-transition: width 0.6s;
  -webkit-transition-delay: 0.6s;
  transition: width 0.6s 0.6s;
}
.show .contact-slogan-bar {
  width: 250px;
}
.contact-title {
  opacity: 0;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.show .contact-title {
  opacity: 1;
}

.add, .tel, .mail {
  opacity: 0;
  -moz-transform: translateY(20px);
  -ms-transform: translateY(20px);
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  -moz-transition: opacity 0.6s, -moz-transform 0.6s;
  -o-transition: opacity 0.6s, -o-transform 0.6s;
  -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
  transition: opacity 0.6s, transform 0.6s;
}
.show .add, .show .tel, .show .mail {
  opacity: 1;
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -webkit-transform: translateY(0px);
  transform: translateY(0px);
}

#map {
  position: relative;
}
#map:before {
  content: "";
  padding-bottom: 550px;
  display: block;
}
#map iframe {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.text {
  font-size: 0.875em;
  margin: 20px 0;
}

.add {
  margin-bottom: 20px;
}

.contact-mask1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #111;
  z-index: 5;
  -moz-transition: width 0.3s 0s;
  -o-transition: width 0.3s 0s;
  -webkit-transition: width 0.3s;
  -webkit-transition-delay: 0s;
  transition: width 0.3s 0s;
}
.show .contact-mask1 {
  width: 0;
  -moz-transition-delay: 0.6s;
  -o-transition-delay: 0.6s;
  -webkit-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
.contact-mask2 {
  position: absolute;
  top: 0;
  width: 8px;
  height: 0;
  z-index: 6;
  background: #333;
}
.show .contact-mask2 {
  -moz-animation: showimage 1s;
  -webkit-animation: showimage 1s;
  animation: showimage 1s;
}

@-moz-keyframes showimage {
  0% {
    width: 8px;
    height: 0;
    left: 0;
  }
  30% {
    width: 8px;
    height: 100%;
    left: 0;
  }
  59.9% {
    width: 100%;
    height: 100%;
    left: 0;
  }
  60% {
    width: 100%;
    height: 100%;
    right: 0;
    left: auto;
  }
  99.9% {
    width: 0;
    height: 100%;
    right: 0;
    left: auto;
  }
  100% {
    width: 8px;
    height: 0;
    left: 0;
  }
}
@-webkit-keyframes showimage {
  0% {
    width: 8px;
    height: 0;
    left: 0;
  }
  30% {
    width: 8px;
    height: 100%;
    left: 0;
  }
  59.9% {
    width: 100%;
    height: 100%;
    left: 0;
  }
  60% {
    width: 100%;
    height: 100%;
    right: 0;
    left: auto;
  }
  99.9% {
    width: 0;
    height: 100%;
    right: 0;
    left: auto;
  }
  100% {
    width: 8px;
    height: 0;
    left: 0;
  }
}
@keyframes showimage {
  0% {
    width: 8px;
    height: 0;
    left: 0;
  }
  30% {
    width: 8px;
    height: 100%;
    left: 0;
  }
  59.9% {
    width: 100%;
    height: 100%;
    left: 0;
  }
  60% {
    width: 100%;
    height: 100%;
    right: 0;
    left: auto;
  }
  99.9% {
    width: 0;
    height: 100%;
    right: 0;
    left: auto;
  }
  100% {
    width: 8px;
    height: 0;
    left: 0;
  }
}
@media screen and (max-width: 1000px) {
  .contact-flex {
    display: block;
  }
  .contact-map {
    width: auto;
    margin-bottom: 50px;
  }
  .contact-content {
    width: auto;
  }
  .contact-slogan {
    display: none;
  }

  #map:before {
    padding-bottom: 60vw;
  }
}
