/* CSS reset & all page default =================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
  font-size: 16px; letter-spacing: 1px; 
}
body {
  background-color: #efefe8; color: #333; 
  font-family: Arial, Verdana, 微軟正黑體, sans-serif; 
}

ul,li { list-style: none; }

.mlauto { margin-left: auto;  display: block; }
.mrauto { margin-right: auto; display: block; }


/* header area ==================================================================== */
header { 
  text-align: center; padding-bottom: 5px; 
  position: relative; overflow: hidden; 
}
header img { 
  width: 60%; height: auto; max-width: 450px; animation: zoomInDown 1.5s; 
}
header p { 
  font-size: 13px; letter-spacing: 8px; animation: fadeUp 2s; 
}
header .fa { display: none; }

@keyframes zoomInDown {
  0%  { opacity: 0; transform: scale(0) translateY(-100%); }
  30% { opacity: 1; transform: scale(0) translateY(-100%);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1); }
}
@keyframes fadeUp {
  0%  { transform: translateY(200%); }
  75% { transform: translateY(200%); }
}

/* nav area ======================================================================= */
nav { 
  background-color: #032859; height: 50px; text-align: center; display: block;
  box-shadow: 0 3px 3px rgba(0,0,0,.5); position: relative; z-index: 1; 
  -webkit-position: sticky; 
  position: sticky; 
  top: 0;  
}
nav .fa { display: none; }
nav a { 
  color: #ffffff; display: inline-block; width: 120px;
  padding-top: 5px; padding-bottom: 10px; position: relative;
  font-weight: bold; text-decoration: none;
}
nav a span { display: block; font-size: 14px; }

nav a.active { 
  color: #f5e1b5;
  background-image: url(images/btn_hover.png);
  background-repeat: no-repeat; background-position: center bottom; 
}

@media(min-width:701px){
  nav a::after { 
    content: ''; background-image: url(images/btn_hover.png);
    position: absolute; left: 0; bottom: 0; width: 100%; height: 10px; 
    transform: scale( 0, 1); transition: .5s;
  }
  nav a:not(.active):hover::after { transform: scale( 1, 1); }
}


/* .banner area ==================================================================== */
.banner { 
  background-color: #e6d9c3; padding-bottom: 10px;
  background-image: url(images/bg_line.png); text-align: center;
  background-repeat: repeat-x; background-position: center bottom; 
}
.banner img { max-width: 100%; height: auto; display: block; margin: 0 auto; }


/* .main area ====================================================================== */
.main { 
  max-width: 1200px; min-height: 500px; margin: 0 auto; overflow: hidden;
  background-image: url(images/main_bg.png);
  background-size: 100% auto; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
.main .content {
  /* background-color: rgba(65, 105, 225, 0.5); min-height: 100px; */
  float: left; width: 76.16%; margin: 1.5%;
}
.main .content h1 {
  background-image: url(images/h1bg.png);
  background-repeat: no-repeat; background-position: center;
  text-align: center; font-size: 1.5rem; margin-bottom: 30px;
}
.main aside {
  /* background-color: rgba(255, 105, 180, 0.5); min-height: 100px; */
  float: right; width: 17.83%; margin: 1.5%;
}
.main aside img { width: 100%; height: auto; }
.main aside h2 { 
  text-align: center; font-size: 14px; margin-bottom: 20px; white-space: nowrap; 
}
.main aside .ADimg {
  border: 5px solid #fff; box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); margin-bottom: 10px;
}

.TS-button { 
  display: inline-block; padding: .5em 2em; margin-bottom: 1em;
  background-color: #ddd; color: #333; border-radius: 5px; transition: .5s;
}
.TS-button .fa { font-size: 1.5em; }
.TS-button:hover { background-color: #333; color: #fff; }
.TS-button:hover .fa { 
  animation-name: buttonFaAni; animation-duration: 1s; animation-iteration-count: infinite; 
}

@keyframes buttonFaAni {
  70% { transform: translateX(50%); }
}

/* footer area ===================================================================== */
footer { 
  background-image: url(images/bg_line.png); 
  background-repeat: repeat-x;
  padding: 20px; text-align: center;
  font-size: 13px;
}


/* mobile design ==================================================================== */
@media(max-width: 700px){
  header { padding-top: 10px; }
  header p { letter-spacing: 1px; }
  header .fa { 
    position: absolute; top: 10px; right: 10px; padding: 3px 5px; 
    border: 2px solid #999; border-radius: 5px; display: flex; 
    flex-direction: column; justify-content: space-between; cursor: pointer;
    color: #999; font-size: 1.5em;
  }
  nav { 
    height: auto; width: 75%; padding: 50px 0; position: relative;
    position: fixed; top: 0; right: 0; display: none;
  }
  nav .fa { 
    position: absolute; top: 10px; right: 10px; 
    padding: 3px 5px; color: #999; font-size: 2em; display: block; 
  }
  nav a { 
    display: block; width: 15em; text-align: left; margin: 0 auto; padding-left: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    background-image: none!important;
  }
  nav a span { display: inline-block; padding: 0 20px; }

  .banner { overflow: hidden; }
  .banner img { max-width: 200%; }

  .main { background-image: none; }
  .main .content { float: none; width: 100%; margin: 0; padding: 20px; }
  .main .content h1 { background-image: none; }
  .main aside { display: none; }
  footer span { display: block; }
}