@import url(reset.css);

html {
  scroll-behavior: smooth;
}

body {
  font-family: "NotoSansTC", sans-serif;
  box-sizing: border-box;
}

/* ----------------------- header ------------------------------- */
.top {
  display: flex;
  width: 100%;
  align-items: center;
}

.top.active > ul {
  display: block;
}

.top img {
  margin: 8px 0px 8px 30px;
}

.top ul {
  display: flex;
  margin-left: auto;
  /* align-items: center; */
  line-height: 100px;
}

.top ul li a {
  text-decoration: none;
  display: block;
  color: #333;
  text-align: center;
  padding: 0 30px;
}

.top li:hover {
  background-color: rgba(193, 123, 58, 0.2);
}

.hamburger {
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: none;
}

.hamburger_line {
  width: 50px;
  height: 6px;
  background-color: #c17b3a;
  position: relative;
  border-radius: 5px;
  cursor: pointer;
}

.hamburger_line::before,
.hamburger_line::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 6px;
  border-radius: 5px;
  background-color: #c17b3a;
  transition: 0.5s;
}

.hamburger_line::before {
  top: -16px;
}

.hamburger_line::after {
  top: 16px;
}

/* 快速開始、精選商家、品牌故事、美味城市 標題 */

.title {
  position: relative;
}

h2 {
  font-size: 39px;
  color: #5e5e5e;
  margin: 50px;
  letter-spacing: 5px;
  text-align: center;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.title > h2::before {
  content: "";
  /* width: 270px; */
  height: 2px;
  background-color: #c17b3a;
  /* position: absolute;
  top: 30px;
  left: -250px; */
  margin: 0 30px 0 0;
  flex: 1 0 auto;
}

.title > h2::after {
  content: "";
  /* width: 270px; */
  height: 2px;
  background-color: #c17b3a;
  /* position: absolute;
  top: 30px;
  right: -250px; */
  margin-left: 30px;
  flex: 1 0 auto;
}

/* ---------------------------- footer ---------------------------- */
.foot {
  display: flex;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.foot > img {
  width: 207px;
  margin-left: 50px;
}

nav {
  display: flex;
  /* flex-direction: column; */
}

nav ul {
  display: flex;
  flex-direction: column;
  /* width: 100%; */
}

nav ul li {
  flex-grow: 1;
  text-align: center;
  padding-top: 20px;
}

nav p {
  color: #333;
}

nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

.rthings {
  box-sizing: border-box;
  padding-top: 20px;
  margin-right: 100px;
}

.rthings h6 {
  font-size: 16px;
  /* width: 235px; */
  line-height: 20px;
  color: #333;
  padding-bottom: 10px;
}

.links img {
  width: 20px;
  height: 20px;
  margin-top: 20px;
  padding-right: 30px;
}

.link img:last-child {
  width: 30px;
  height: 20px;
}

/* --------------------------------- TibaMe --------------------------------------- */
.TibaMe {
  text-align: center;
  background-color: #c17b3a;
  line-height: 50px;
  color: #333;
  letter-spacing: 2px;
  font-weight: bold;
}
/* ---------------------------------- progress ----------------------------------- */
#progress {
  position: fixed;
  bottom: 20px;
  right: 10px;
  width: 50px;
  height: 50px;
  display: none;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 5;
}

#progress-value {
  display: block;
  height: calc(100% - 15px);
  width: calc(100% - 15px);
  background-color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  /* text-align: center; */
  /* font-weight: bold; */
  color: #001a2e;
}

/* RWD */
@media screen and (max-width: 1000px) {
  /* ============================ header ================================ */
  .top > ul {
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: rgba(249, 249, 249, 0.958);
    z-index: 3;
    top: 99px;
    width: 100%;
    font-size: 20px;
    letter-spacing: 3px;
  }

  .top > ul li {
    border-bottom: 1px solid rgb(193, 128, 53);
  }

  .top {
    justify-content: space-between;
  }

  .hamburger {
    display: block;
    margin-right: 20px;
  }

  .hamburger_line {
    display: block;
    top: 20px;
  }
}

@media screen and (max-width: 768px) {
  /* ======================== footer ===================================== */
  nav {
    display: none;
  }

  .rthings {
    margin-right: 20px;
  }
}

@media screen and (max-width: 440px) {
  /* ======================== 中間大圖 ===================================== */
  .homebig {
    padding: 0 10px;
    box-sizing: border-box;
  }
  /* ======================== footer ===================================== */
  .foot img {
    margin-left: 20px;
  }

  .rthings {
    padding: 0;
    margin-right: 0;
  }

  .rthings h6 {
    display: none;
  }

  .foot {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
  }

  .links a img {
    width: 40px;
    height: 40px;
  }

  .title > h2::before,
  .title > h2::after {
    display: none;
  }

  .title {
    background-color: #fff2e5;
    border-radius: 8px;
    width: 100%;
  }

  .title > h2 {
    /* text-align: center; */
    display: block;
    padding: 20px;
  }
}
