body{
  margin: 0;
  padding: 0;
}

a{
  text-decoration: none;
  color: #2c2c2c;
}

header{
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  position: relative;
  z-index: 1;
  height: 70px;
}

@media (max-width: 640px)  {
  header{
    position: fixed;
    height: 50px;
    top: 0;
  }
} 

header nav{
  list-style-type: none;
  max-width: 1084px;
  margin: auto;
  padding: 0;
}

header nav ul {
  margin-left: 15%;
  max-width: 80%;
}

header nav h1{
  margin: 0 1em 0 0.5em;
  padding: 0;
  float: left;
  left: 20%;
}
header nav ul li{
  list-style: none;
  position: relative;
  float: left;
  margin: 0.8em 0 0;
  vertical-align: middle;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  border-radius: 5px 5px 0 0;
}
header nav li a{
  display: block;
  color: #000;
}

li.gnav1, li.gnav2, li.gnav4{
  width: 10%;
}

li.gnav1{
  margin-left: 2.5em;
}

li.gnav3{
  width: 26%;
}

li.gnav5 {
    width: 13%;
}

li.gnav6{
  margin-top: 0px;
  right: -5%;
}

li.gnav6:hover {
  background: initial;
}

header nav>ul>li:hover, header nav>ul>li.active{
  background: #ffdf2c;
  -moz-transition: .3s;
  -webkit-transition: .3s;
  -o-transition: .3s;
  -ms-transition: .3s;
  transition: .3s;
}
nav ul li.gnav6 a:hover{
  background: initial;
}

nav ul li ul {
  list-style: none;
  position: absolute;
  margin-left: -2.5em;
  overflow: hidden;
  height: 0px;
  opacity: 0;
  transition: .2s ease-in-out;
  transform: translateY(-20px);
}
nav ul li ul li {
  width: 250px;
  margin-top: -0.5em;
  color: #000;
  background: #fff;
  -moz-transition: .3s;
  -webkit-transition: .3s;
  -o-transition: .3s;
  -ms-transition: .3s;
  transition: .3s;
}

nav ul li ul li a{
  padding-left: 20px;
  background: #fff;
  text-align: left;
  font-size: 13px;
  font-weight: normal;
}

nav ul li:hover ul{
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

nav ul li:hover ul li {
  margin: initial;
  height: 40px;
}

nav ul li.gnav1.active:hover ul li {
  overflow: hidden;
  height: 0px;
}

nav ul li ul li:hover a{
  color: #fff;
  background: #000;
}


@media (max-width: 1060px) and (min-width: 640px)  {
  header nav ul {
    margin-left: 15%;
    max-width: 80%;
    font-size: 1.5vw;
  }
  header ul li.gnav6 img{
    width: 15vw;
    margin: 0;
  }
}


@media (max-width: 640px)  {
  header nav h1{
    margin-top: 0.2em;
  }

  header nav h1 img {
    width: 60%;
  }
  #menu_btn {
    display: block;
    position: absolute;
    top: 0.5em;
    right: 30px;
    width: 25px;
    height: 25px;
    background-color:gray;
    border-top: 10px solid #fff;
    border-bottom: 10px solid #fff;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  #menu_btn:before {
    content: '';
    position: absolute;
    width: 25px;
    height: 5px;
    background-color:gray;
    top: -10px;
    right: 0;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  #menu_btn:after {
    content: '';
    position: absolute;
    width: 25px;
    height: 5px;
    background-color:gray;
    bottom: -10px;
    right: 0;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  #menu_btn.active {
    background:#FFF;
  }
  #menu_btn.active:before {
    -moz-transform:rotate(-135deg);
    -webkit-transform:rotate(-135deg);
    transform:rotate(-135deg);
    top: 5%;
    right:0;
  }
  #menu_btn.active:after {
    -moz-transform:rotate(135deg);
    -webkit-transform:rotate(135deg);
    transform:rotate(135deg);
    bottom: 5%;
    right:0;
  }
  ul#gnav{
    display:none;
    top: 35px;
    right: 0;
    height: auto;
    width: auto;
    position: fixed;
    background-color: rgb(84, 81, 81);
    border-radius: 5px 0 0 5px;
    list-style: none;
    z-index: 3;
  }
  ul#gnav>li:hover, header nav>ul>li.active{
    background-color:initial;
    -webkit-tap-highlight-color: transparent;
    color: #9E9E9E;
  }
  ul#gnav>li{
    margin:0;
    width: 100%;
    text-align: left;
    height: auto;
  }
  ul#gnav>li>a{
    margin:auto;
    color: #fff;
    background-color: initial;
    border-bottom: 1px solid;
  }
  ul#gnav>li.gnav1>ul{
    margin-top: 25px;
    clear:both;
    overflow: visible;
    opacity: 1;
    height: auto;
    position: relative;
  }
  ul#gnav>li.gnav1>ul>li{
    margin:auto;
    background-color:initial;
  }
  ul#gnav>li.gnav1>ul>li a{
    background-color: initial;
    color: #fff;
    border-bottom: 1px dotted;
  }
  ul#gnav>.gnav6{
    right: initial;
    margin: 10px 0px 0px 0px;
  }
  ul#gnav>.gnav6 a{
    border-bottom: none
  }
  ul#gnav>li>ul{
    display: none;
  }
}


.access{
  margin-top: -1em;
  /* -webkit-transform: skew(0deg, -3deg); */
  color: #fff;
  text-align: center;
  position: relative;
}
.inner-access{
  /* -webkit-transform: skew(0deg, 3deg); */
  margin: 0 auto;
}

.inner-access .access-info{
  position: absolute;
  top: 20%;
  left: 10%;
  /* margin: -25% 0 20% 15%; */
  background-color: #000;
  text-align: left;
  padding: 20px 40px 20px 20px;
  border-radius: 5px;
  color: #fff;
}

.access-info div.ipc-en, .access-info p.address{
  font-size: 0.8em;
}

/* 680px */
@media (max-width: 680px) {
 .inner-access .access-info{
   display: none;
 }
}


#map{
  margin: 0 auto;
  height: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.service{
  padding: 1em 0;
  background: url(../images/bg_service.png) no-repeat top center;
  background-size: cover;
  color: #000;
  text-align: center;
}

.inner-service{
  margin: 0 auto;
}

.inner-service h3{
  margin: auto;
  padding: 1em;
  font-size: 1.8em;
  font-weight: normal;
  line-height: 1;
}

.inner-service h3 span.mini-headline {
  display: inline-block;
  font-size: 0.5em;
  margin: 0 auto;
  padding: 0 0 0.5em 0;
  line-height: 1;
}

.banner-service a{
  padding: 0.5em;
  display: inline-block;
}

footer{
  color: #fff;
  margin: -2.5em 0 0;
  z-index: 1;
  overflow: hidden;
  background-color: #2c2a2a;
  width: 100%;
  text-align: center;
  margin: auto;
  position: absolute;
  color: #fff;
  display: block;
}

a.access-map{
  display: table;
  background-color: #606060;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9em;
  border-radius:3px;
  width: 160px;
  padding: 10px 0 10px 2em;
  position: relative;
}

a.access-map:before{
  content: url(../images/icon_access2.png);
  position: absolute;
  top: 20%;
  left: 18%;
}

footer h2{
  font-size: 1.1em;
  font-weight: normal;
  margin: 0;
}

footer ul li{
  list-style: none;
}

footer ul li span.sub-link{
  margin-left: 10px;
}

footer .fnav{
  width: 1080px;
  margin: auto;
  display: inline-block;
  height: 250px;
}

footer .fnav a{
  color: #fff;
}

footer .fnav .top{
  width: 35%;
  float: left;
  text-align: left;
}

footer .fnav .top h2{
  float: left;
  margin-top: 20px;
}

footer .fnav .top .access-info{
  margin: 25px 0 0 25px;
  text-align: left;
  float: left;
}

footer .fnav .list-1{
  width: 25%;
  float: left;
  text-align: left;
}

footer .fnav ul{
  margin: 0;
}

footer .fnav ul li{
  font-size: 0.8em;
  margin-left: -40px;
  line-height: 30px;
}

footer .fnav ul li:before{
  content: " - ";
}

footer .fnav .list-2 {
  width: 15%;
  float: left;
  text-align: left;
}

footer .fnav .list-2 .fnav-inquiry {
    margin-top: 23px;
}

footer .fnav .list-3 {
  width: 20%;
  float: left;
  text-align: left;
}

footer .fnav-footer{
  background-color: #000;
  margin-top: -2em;
  margin: auto;
}

footer .fnav-footer p{
  margin: auto;
  width: 80%;
  color: gray;
  font-size: 0.8em;
  display: block;
  text-align: left;
  padding: 1em;
}

footer .fnav-footer a{
  display: inline-block;
  color: gray;
}

footer .fnav-footer a:first-child:after{
  content: " | ";
}
footer .fnav-footer a:nth-child(2):after{
  content: " | ";
}
footer .fnav-footer a:nth-child(3):after{
  content: " | ";
}
footer .fnav-footer a:nth-child(4):after{
  content: url(/common/images/icon_window.png);
}

footer .fnav-footer p a:first-child{
  margin-left: 8%;
}

footer .fnav-footer p span{
  float: right;
  margin-right: 12%
}

@media (max-width: 640px) {
 footer .fnav .list-1, footer .fnav .list-2, footer .fnav .list-3{
   display: none;
 }
 footer .fnav .top{
   width: 100%;
   /*margin-left: 20vw;*/
 }
 footer .fnav .top > div{
   width: 90%;
   margin: 0 auto;
 }
 footer .fnav-footer p {
   text-align: center;
   margin: auto;
 }
 footer .fnav-footer p a:first-child{
   margin-left: 0;
 }
 footer .fnav-footer p a{
   margin: 0 auto;
   width: 100%;
   border-bottom: 1px solid;
 }
 footer .fnav-footer a:first-child:after{
   content: "";
 }
 footer .fnav-footer a:nth-child(2):after{
   content: "";
 }
 footer .fnav-footer a:nth-child(3):after{
   content: "";
 }
 footer .fnav-footer{
   height: 150px;
 }
}

#backToTop {
  right: 10px;
  bottom: 0;
  position: fixed;
}
@media (max-width: 640px) {
  #backToTop {
    right: 0;
  }
  #backToTop img {
    width: 50%;
    height: auto;
  }
}