/***主顏色***/
:root {
  --bgColor: #f2e2de;
  --mainColor: #965e39;
  --mainBgColor: rgba(255, 247, 233, 0.7);
}

body {
  color: #965e39;
}

header>ul {
  width: 200px;
}

header>ul li a {
  font-size: 24px;
}

.listBg {
  background-color: rgba(255, 233, 233, 0.95);
  filter: drop-shadow(2px 4px 6px black)hue-rotate(45deg);
}

.title {
  font-weight: 900;
}

.fadeInTitle {
  color: #fcfcfc;
}

/***********/
.home {
  background: url(img/banner1.jpg) center no-repeat;
  background-size: cover;
  animation-name: banner;
  animation-duration: 20s;
  animation-iteration-count: infinite;
}

.home .cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  background: linear-gradient(to bottom, rgba(219, 218, 218, 0.322) 0%, rgba(121, 84, 84, 0.5) 50%, rgba(231, 228, 228, 0.438) 100%);
}

/* about */

.about .cover {
  background-color: var(--mainBgColor);
}

.cover {
  margin: auto;
}

.about {
  background: url(img/aboutBg.jpg) center no-repeat fixed;
  background-size: cover;
}

.about img {
  width: 70%;
  margin: auto;
}

.cover1 {
  width: 100%;
  height: 100%;
  background-color: var(--mainBgColor);
  padding: 0px 0;
}

.cover2 {
  margin: auto;
  display: flex;
  width: 75%;
  height: 100%;
}

.cover2 img {
  margin: auto;
  width: 90%;
}

/* news */
.newsArea {
  display: flex;
  flex-wrap: wrap;
}

.news .item h4 {
  text-align: center;
}

.news .item>div,
.news .item>img {
  width: 93%;
  margin: auto;
}

.news .item {
  width: 45%;
  display: block;
  color: #ae4d5c;
}

/* btn */
.btn_a {
  margin: 20px auto;
  width: 35%;
  text-align: center;
}

.btn_a a {
  color: var(--mainColor);
  border: 2px solid var(--mainColor);
  padding: 10px;
  margin: 20px auto;
  width: 35%;
  text-align: center;
}

.btn_a a:hover {
  background-color: var(--mainColor);
  color: #fcfcfc;
}

/* 聯絡我們 */
.fadeIn>.pstyle p,
h4 {
  text-align: center;
}

.fadeIn p {
  text-align: left;
}

.pstyle {
  font-size: 24px;
}

/* .pstyle a {
  border-style: solid;
  border-width: 3px;
  border-color: var(--mainColor);
  padding: 8px;
} */

.boxwidth {
  margin-bottom: 500px;
}

.gallery .box a.cross {
  width: calc(100% * 1 / 3 - 20px);
}


header nav {
  filter: brightness(0);
}

header {
  height: 150px;
}

header h1 img {
  height: 130px;
}

#copyright {
  color: var(--mainColor);
}

@keyframes banner {
  0% {
    background: url(img/banner1.jpg) center no-repeat;
    background-size: cover;
  }

  28% {
    background: url(img/banner1.jpg) center no-repeat;
    background-size: cover;
  }

  33% {
    background: url(img/banner2.jpg) center no-repeat;
    background-size: cover;
  }

  61% {
    background: url(img/banner2.jpg) center no-repeat;
    background-size: cover;
  }

  66% {
    background: url(img/banner3.jpg) center no-repeat;
    background-size: cover;
  }

  95% {
    background: url(img/banner3.jpg) center no-repeat;
    background-size: cover;
  }

  100% {
    background: url(img/banner1.jpg) center no-repeat;
    background-size: cover;
  }
}


@media screen and (max-width:770px) {
  .about img {
    width: 100%;
  }

  .home {
    height: calc(60vh - 142px);
  }

  .cover2 {
    width: 100%;
  }


  header {
    height: 100px;
  }

  header h1 img {
    height: 80px;
  }

  .cover2 {
    display: grid;
  }

  .cover2 img {
    margin-top: 20px;
  }

  .gallery .box a.cross {
    width: calc(100% * 3 / 3 - 20px);
  }

  .news .item {
    width: 100%;
  }
}