@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

:root {
  --gap: 1.2rem;
  --scroll-start: 0;
  --scroll-end: calc(-100% - var(--gap));
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  /* outline: 1px solid #00000050; */
}

html {
  font-size: 1vw !important;
  font-family: "Inter", sans-serif !important;
  overflow-x: hidden;
  width: 100%;
  overscroll-behavior: none;
}

/* ------------------------------------------------------------ */
/* 預設 */
body {
  width: 100%;
  height: 100vh;
  background-image: url(../images/full_bg.jpg);
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  font-weight: 600;
}

a {
  display: inline-block;
  text-decoration: none;
}

span {
  display: inline-block;
}

img {
  width: 100%;
  display: inline-block;
  vertical-align: middle !important;
}

body.menu-opened {
  overflow: hidden;
  position: fixed;
  width: 100%;
}



/* ------------------------------------------------------------ */
/* wrapper */
.wrapper {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ------------------------------------------------------------ */
/* header */
.main-header {
  width: 100rem !important;
}

.header-group {
  width: 95.27rem !important;
  margin-top: 1.94rem !important;
}


/* ------------------------------------------------------------ */
/* svg 跑馬燈背景 */
.marqueeBg {
  overflow: hidden;
  position: absolute;
  top: -82.2rem;
  left: 38.5%;
  transform: translateX(-50%);
  width: 123%;
  z-index: 0;
  opacity: 47%;
}

svg {
  overflow: hidden;
  width: 139%;
  height: 140rem;
}

.curve-path {
  fill: none;
  stroke: #F45B22;
  stroke-width: 2rem;
}

text {
  font-size: 0.65rem;
  fill: white;
  font-family: "Noto Sans CJK TC";
  letter-spacing: 0.01rem;
  font-weight: 200;
}

/* ------------------------------------------------------------ */
/* 主內容 共用設定 */
.container {
  position: relative;
  display: block !important;
  width: 100%;
  height: auto;
}

.main {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  scroll-margin-top: 5.55rem;
}

.scene {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.scene-max {
  max-width: 100rem;
  margin: 0 auto;
}

/* ------------------------------------------------------------ */
/* works-list */
.main-works-list .title {
  font-size: 11.11rem;
  text-align: center;
  font-family: 'Poppins' !important;
  margin-top: 9.65rem;
  font-weight: bold;
  color: #2f2a29;
}

/* ------------------------------------------------------------ */
/* 作品manu */
.main-works-list .works-menu-wrapper {
  margin-bottom: 2.77rem;
}

.main-works-list .works-menu {
  display: flex;
  justify-content: center;
  margin-top: 2.77rem;
  font-family: 'Noto Sans CJK TC' !important;
  font-size: 2.22rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.1rem;
}

.main-works-list .works-menu li {
  text-align: center;
}

.main-works-list .works-menu li:nth-child(1) {
  width: 22rem;
}

.main-works-list .works-menu li:nth-child(2),
.main-works-list .works-menu li:nth-child(3) {
  width: 17.5rem;
}

.main-works-list .works-menu li:nth-child(4) {
  width: 23rem;
}

.main-works-list .works-menu li a {
  margin: 0 auto;
  padding: 1.59rem 2.43rem;
  background: #2f2a29;
  border-radius: 3rem;
  outline: 1px;
  transition:
    padding 0.3s ease-in-out,
    background-color 0.15s ease-in-out;
}

.main-works-list .works-menu li a:hover,
.main-works-list .works-menu li a.active {
  padding: 1.59rem 4.9rem 1.59rem 2.43rem;
  background: #f45b22;
  background-image: url(../images/works/work_menu_arrow.png);
  background-repeat: no-repeat;
  background-size: 2.3rem;
  background-position: calc(100% - 2rem) center;
}

/* ------------------------------------------------------------ */
/* 分類選單 */
.main-works-list .works-label {
  display: flex;
  justify-content: center;
  font-family: 'Noto Sans CJK TC' !important;
  font-size: 1.52rem;
  letter-spacing: 0.15rem;


}

.main-works-list .line {
  border: 0.5px solid #423e3d50;
  margin: 0 1.5rem;
}

.main-works-list .works-label li.cursor-hover-target {
  color: #2f2a29;
  transition: color 0.3s ease;
}

.main-works-list .works-label li.cursor-hover-target:hover,
.main-works-list .works-label li.cursor-hover-target.active {
  color: #f45b22;
}

/* ------------------------------------------------------------ */
/* 作品呈現 */
.main-works-list .list {
  margin: 0 auto;
  width: 87.5rem;
  padding: 0.5rem 0 10rem 0;
  gap: 5.55rem 2.08rem;
  margin-top: 3.81rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.main-works-list .list.fade-out {
  opacity: 0;
  pointer-events: none;
}

.main-works-list .list.fade-in {
  opacity: 1;
  pointer-events: auto;
}

.main-works-list .work-item {
  text-align: center;
}

.main-works-list .work-img {
  width: 27.77rem;
}

.main-works-list .work-title {
  font-size: 1.87rem;
  color: #2f2a29;
  font-weight: 500;
  padding: 1.73rem 0 0.69rem 0;
}

.main-works-list .work-desc {
  font-size: 1.25rem;
  color: #5c5a59;
  font-weight: 500;
  padding: 0.5rem;
}

/* ------------------------------------------------------------ */
/* background */
.background {
  width: 100%;
  height: 5rem;
  position: relative;
  background-image: url(../images/full_bg.jpg);
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  border-radius: 0 0 3.47rem 3.47rem;
  top: -1rem;
  z-index: 4;
}




@media(min-width: 1440px) {
  html {
    font-size: 14.4px !important;
  }
}

/* 專門For PC設定 */
@media(min-width: 641px) {
  .pc {
    display: block;
  }

  .mobile {
    display: none !important;
  }
}

/* 專門For Ｍobile設定 */
@media(max-width: 640px) {
  .mobile {
    display: block;
  }

  .pc {
    display: none !important;
  }

  /* ------------------------------------------------------------ */
  /* header */
  .header-group {
    width: 89rem !important;
    margin-top: 4.68rem !important;
  }

  .header-logo,
  .menu-logo {
    width: 60.15rem !important;
  }

  /* ------------------------------------------------------------ */
  /* svg 跑馬燈背景 */
  .marqueeBg {
    top: -70.5rem;
    left: -3.5%;
    width: 207%;
  }

  svg {
    width: 155%;
    height: 90rem;
  }

  .curve-path {
    fill: none;
    stroke: #F45B22;
    stroke-width: 4.5rem;
  }

  text {
    font-size: 1.5rem;
  }

  /* ------------------------------------------------------------ */
  /* works-list */
  .main-works-list .title {
    font-size: 18.90rem;
    margin-top: 25.78rem;
  }

  /* ------------------------------------------------------------ */
  /* 作品manu */
  .main-works-list .works-menu-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 5.38rem;
    touch-action: pan-x;
  }

  .main-works-list .works-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
    list-style: none;
    justify-content: start;
    gap: 3rem;
    margin-top: 7rem;
    font-size: 3.9rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    padding-right: 5rem;
    padding-left: rem;
  }

  .main-works-list .works-menu {
    flex: 0 0 auto;
    width: 150rem;
    padding: 0 10rem;
  }

  .main-works-list .works-menu li {
    width: auto !important;
  }

  .main-works-list .works-menu li a {
    display: inline-block;
    padding: 2.34rem 4.68rem;
    background: #2f2a29;
    border-radius: 4.79rem;
  }

  .main-works-list .works-menu li a:hover,
  .main-works-list .works-menu li a.active {
    padding: 2.34rem 10rem 2.34rem 4.68rem;
    background-size: 4.68rem;
    background-position: calc(100% - 3.8rem) center;
  }

  /* 左右遮罩 */
  .main-works-list .menu-gradient-left,
  .main-works-list .menu-gradient-right {
    position: absolute;
    top: 25rem;
    width: 10rem;
    height: 15rem;
    pointer-events: none;
    z-index: 1;
  }

  .main-works-list .menu-gradient-left {
    left: 0;
    mask: linear-gradient(270deg, transparent 0%, rgba(0, 0, 0, 1) 80%);
    pointer-events: none;
  }

  .main-works-list .menu-gradient-right {
    right: 0;
    mask: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 80%);
    pointer-events: none;
  }

  /* ------------------------------------------------------------ */
  /* 分類選單 */
  .main-works-list .works-menu-wrapper {
    margin-bottom: 5.38rem;
  }

  .main-works-list .works-label {
    flex-wrap: wrap;
    margin: 0 auto;
    width: 75rem;
    font-size: 4.06rem;
    letter-spacing: 0.2rem;
  }

  .main-works-list .works-label li {
    margin-bottom: 5rem;
  }

  .main-works-list .works-label li:nth-child(15) {
    margin-right: 5rem;
  }

  .main-works-list .line {
    margin: 0 3.43rem;
  }

  /* ------------------------------------------------------------ */
  /* 作品呈現 */
  .main-works-list .list {
    margin: 0 auto;
    width: 86.71rem;
    padding: 0.5rem 0 20rem 0;
    gap: 18.75rem 0rem;
    flex-direction: column;
    margin-top: 11.71rem;
  }

  .main-works-list .work-img {
    width: 84.37rem;
  }

  .main-works-list .work-title {
    font-size: 5.78rem;
    padding: 5.8rem 0 3.12rem 0;
  }

  .main-works-list .work-desc {
    font-size: 3.9rem;
    padding: 0.5rem;
  }

  /* ------------------------------------------------------------ */
  /* background */
  .background {
    width: 100%;
    height: 8rem;
    border-radius: 0 0 9rem 9rem;
    top: -9rem;

  }

  /* ------------------------------------------------------------ */
  /* contact */
  .main.main-contact {
    margin-top: -17rem !important;
  }

  .main-contact .contact-group {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.3s ease;
  }

  .main-contact .contact-group.active {
    max-height: 367.18rem;
    opacity: 1;
  }



}