/***reset***/
* {
  margin: 0;
  padding: 0;
  position: relative;
  outline: none;
}

address {
  font-style: normal;
}

img {
  width: 100%;
  display: block;
}

a {
  transition: opacity 0.2s ease-in-out;
  text-decoration: none;
  color: #e45008;
}

a:hover {
  opacity: 0.7;
}

/***page***/
body {
  background: url(../img/texture.png) top left repeat fixed;
  background-size: 100px;
  background-color: rgb(13, 13, 13);
  color: #fff;
  overflow-x: hidden;
}

/***header***/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 100;
  background: url(../img/texture.png) top left repeat fixed;
  background-size: 100px;
  background-color: rgb(13, 13, 13);
}

header h1 {
  width: auto;
  height: 90px;
  text-align: center;
}

header h1 a {
  display: inline-block;
}

header h1 img {
  width: auto;
  height: 90px;
  margin: 5px auto;
}

header > ul {
  position: fixed;
  width: 350px;
  max-width: calc(100% - 50px);
  height: calc(100vh - 100px);
  top: 0;
  right: -401px;
  list-style: none;
  padding: 100px 0 0 50px;
  border-left: #e45008 solid 1px;
  transition: right 1s ease-in-out;
  overflow-y: auto;
}

header > ul.active {
  right: 0;
}

header > ul > li {
  margin: 40px auto;
}

header > ul li a {
  color: #e45008;
  font-size: 18px;
  transition: opacity 0.2s ease-in-out;
}

header > ul li a:hover {
  opacity: 0.5;
}

header ul.sns {
  position: absolute;
  right: 30px !important;
  bottom: 30px;
}
header ul.sns li {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  list-style: none;
}
header ul.sns li a {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0.5);
}
header ul.sns li.line a {
  background: url(https://www.shop1688.com.tw/sys/v2/img/icon/icon_line.svg) center no-repeat;
  background-size: cover;
}
header ul.sns li.fb a {
  background: url(https://www.shop1688.com.tw/sys/v2/img/icon/icon_fb.svg) center no-repeat;
  background-size: cover;
}
header ul.sns li.ig a {
  background: url(https://www.shop1688.com.tw/sys/v2/img/icon/icon_ig.svg) center no-repeat;
  background-size: cover;
}

header nav {
  position: absolute;
  top: calc(50% - 17.5px);
  right: 30px;
  width: 35px;
  height: 35px;
  background: url(../img/navIcon.svg) center no-repeat;
  background-size: cover;
  cursor: pointer;
}

/***main***/
main {
  padding-top: 100px;
}

article {
  width: 80%;
  margin: 0 auto;
  padding: 150px 0;
  overflow: hidden;
}

.title {
  width: 100%;
  font-size: 48px;
  text-align: center;
  font-weight: lighter;
  letter-spacing: 10px;
  margin-bottom: 80px;
}

.title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #e45008;
  margin: 5px auto 0 auto;
}

.menu .title span {
  display: block;
  font-size: 18px;
  font-weight: normal;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media only screen and (max-width: 770px) {
  article {
    padding: 75px 0;
  }

  .menu .title span {
    letter-spacing: 5px;
  }
}

@media only screen and (max-width: 500px) {
  .title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .menu .title span {
    font-size: 14px;
    letter-spacing: 1.5px;
  }
}

/***home***/
.home {
  display: flex;
  width: 100%;
  height: calc(100vh - 100px);
}

.home .word {
  width: 50%;
  height: 100%;
}

.home .pic {
  width: 50%;
  height: 100%;
  background: url(../img/banner.jpg) center no-repeat;
  background-size: cover;
}

.home .cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(121, 84, 84, 0.5) 50%, rgba(0, 0, 0, 1) 100%);
}

.home .cover h2 {
  width: 100%;
  font-size: 60px;
  text-align: center;
  letter-spacing: 20px;
}

.home .cover p {
  font-size: 24px;
  letter-spacing: 5px;
}

@media only screen and (max-width: 770px) {
  .home .cover h2 {
    font-size: 48px;
  }

  .home .cover p {
    font-size: 18px;
    letter-spacing: 2.5px;
  }
}

@media only screen and (max-width: 500px) {
  .anchor {
    position: relative;
    top: -60px;
  }

  .home .cover h2 {
    font-size: 36px;
    letter-spacing: 10px;
  }

  .home .cover p {
    font-size: 18px;
    letter-spacing: 2.5px;
  }
}

/***news***/
.news .item {
  width: 100%;
  min-height: 400px;
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  background: url(../img/texture.png) top left repeat fixed;
  background-size: 200px;
  background-color: rgba(254, 243, 235);
  color: rgb(13, 13, 13);
}

.news .item > img {
  width: 30%;
  object-fit: cover;
}

.news .item > div {
  width: 60%;
  padding: 60px 5%;
}

.news .item h4 {
  font-size: 24px;
}

.news .item p {
  color: rgba(13, 13, 13, 0.7);
}

@media only screen and (max-width: 770px) {
  .news .item > img,
  .news .item > div {
    width: 100%;
  }
}

@media only screen and (max-width: 500px) {
  .news .item > div {
    width: 90%;
    padding: 30px 5%;
  }
}

/***about***/
.about {
  width: 100%;
  background: url(../img/aboutBg.jpg) center no-repeat fixed;
  background-size: cover;
  padding: 0;
}

.about .cover {
  width: 100%;
  height: 100%;
  background-color: rgba(13, 13, 13, 0.5);
  padding: 150px 0;
}

.about .cover .text {
  width: 70%;
  padding: 80px 10%;
  margin: 0 auto;
  border: #e45008 2px solid;
  background: url(../img/texture.png) top left repeat fixed;
  background-size: 200px;
  background-color: rgba(254, 243, 235, 0.75);
  max-width: 800px;
  color: rgba(13, 13, 13, 1);
  text-align: center;
}

.about .cover .text h4 {
  font-size: 24px;
  border-bottom: 1px solid #e45008;
  margin: 100px auto 20px auto;
}

.about .cover .text h4:first-child {
  margin: 0 auto 20px auto;
}

/***menu***/
.menuSwitch {
}

.slick-prev,
.slick-next {
  position: absolute;
  bottom: 0;
  display: block;
  width: 28px;
  height: 48px;
  border: #e45008 1px solid;
  cursor: pointer;
}
.slick-prev {
  left: -50px;
}
.slick-next {
  right: -50px;
}
.slick-prev:before,
.slick-next:before {
  width: 100%;
  height: 100%;
  color: #e45008;
  font-size: 24px;
  line-height: 2;
  text-align: center;
  font-weight: bold;
}
.slick-prev:before {
  content: "❮";
}
.slick-next:before {
  content: "❯";
}

.menuList {
  width: calc(100% - 100px);
  margin: 0 auto;
}
.menuList a {
  display: block;
  color: #fff;
  font-size: 24px;
  text-align: center;
  margin: 0 80px;
  transition: color 0.2s ease-in-out;
  cursor: pointer;
}

.menuList a:hover {
  color: #e45008;
  opacity: 1;
}

.menuList a.active {
  color: #e45008;
}

.menuList a.active::after {
  content: "▲";
  display: block;
  color: #e45008;
  line-height: 1;
  margin-bottom: -5px;
}

.menu ol {
  width: 90%;
  padding: 100px 5%;
  flex-wrap: wrap;
  list-style: none;
  justify-content: space-between;
  background: url(../img/texture.png) top left repeat fixed;
  background-size: 200px;
  background-color: rgba(254, 243, 235);
  border-top: #e45008 5px solid;
  display: none;
}

.menu ol:nth-child(2) {
  display: flex;
}

.menu ol li {
  width: 45%;
  display: flex;
  justify-content: space-between;
  line-height: 1.5;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: #e45008 1px solid;
  font-size: 18px;
}

.menu ol li p {
  max-width: calc(100% - 80px);
  color: rgb(13, 13, 13);
}

.menu ol li:last-child,
.menu ol li:nth-last-child(2) {
  border: none;
}

@media only screen and (max-width: 770px) {
  .menu ol li {
    width: 100%;
  }
}

/***gallery***/
.gallery .box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
}

.gallery .box .hide {
  display: none;
}

.gallery .box a {
  width: calc(100% / 3 - 20px);
  margin: 10px auto;
  height: 24vw;
}

.gallery .box a:hover {
  opacity: 1;
}

.gallery .box a.cross {
  width: calc(100% * 2 / 3 - 20px);
}

.gallery .box a img {
  height: 100%;
  object-fit: cover;
}

.gallery .box .clear {
  width: calc(100% / 3 - 20px);
  margin: 10px auto;
  height: 0;
  overflow: hidden;
}

.gallery .box .cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background-color: rgba(13, 13, 13, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.gallery .box .cover p {
  display: block;
  width: 90%;
  font-size: 36px;
  margin: 0 auto;
  border-top: #e45008 1px solid;
  transition: margin 0.5s ease-in-out;
}

.gallery .box .cover:hover {
  opacity: 1;
}

.gallery .box .cover:hover p {
  margin-top: 40px;
}

.gallery .box.coverActive .cover {
  opacity: 1;
}

.gallery .box.coverActive .cover p {
  margin-top: 40px;
}

.gallery .box.coverActive .cover:hover {
  opacity: 0;
}

.gallery .box.coverActive .cover:hover p {
  margin-top: 0;
}

@media only screen and (max-width: 1000px) {
  .gallery .box .cover p {
    font-size: 28px;
  }

  .gallery .box .cover:hover p {
    margin-top: 30px;
  }

  .gallery .box.coverActive .cover p {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 770px) {
  .gallery .box a {
    width: calc(50% - 10px);
    height: 40vw;
  }

  .gallery .box a.cross,
  .gallery .box a.phoneSolo {
    width: calc(100% - 10px);
    height: 40vw;
  }

  .gallery .box .clear {
    width: calc(50% - 10px);
  }
}

@media only screen and (max-width: 500px) {
  .gallery .box .cover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.6);
  }

  .gallery .box .cover p {
    color: rgba(13, 13, 13, 1);
    font-size: 18px;
  }

  .gallery .box .cover p {
    margin-top: 15px;
  }

  .gallery .box .cover:hover p {
    margin-top: 15px;
  }

  .gallery .box.coverActive .cover p {
    margin-top: 15px;
  }
}

/***contact***/
.contact {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
}

.contact address {
  width: 45%;
  font-size: 18px;
  letter-spacing: 1.2px;
}

.contact iframe {
  width: 45%;
  border: none;
  min-height: 350px;
}

@media only screen and (max-width: 770px) {
  .contact address,
  .contact iframe {
    width: 100%;
  }

  .contact address {
    margin-bottom: 40px;
  }
}

/***footer***/
#copyright {
  color: #fff;
  text-align: center;
  font-size: 12px;
}

/***特效***/
.fadeInTitle {
  opacity: 0;
  top: -30px;
  transition: opacity 1s ease-in-out, top 1s ease-in-out;
}
.fadeInTitle.active {
  opacity: 1;
  top: 0;
}

.fadeIn {
  top: -30px;
  opacity: 0;
  transition: opacity 1s ease-in-out, top 1s ease-in-out;
}
.fadeIn.active {
  top: 0;
  opacity: 1;
}

.toLeft {
  right: -100vw;
  opacity: 0;
  transition: opacity 1s ease-in-out, right 1s ease-in-out;
}
.toLeft.active {
  right: 0;
  opacity: 1;
}

.toRight {
  left: -100vw;
  opacity: 0;
  transition: opacity 1s ease-in-out, left 1s ease-in-out;
}
.toRight.active {
  left: 0;
  opacity: 1;
}
