@import url('../css/fonts.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');
body {
  font-family: 'SWEISPRINGCJKJP', "Noto Sans TC", sans-serif;
  overflow-x: hidden;
  background-position: center center;
  width: 100%;
  color: #000;
  letter-spacing: 1px;
  background-image: url("../images/bg.jpg");
  background-repeat: repeat;
}
html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 至少填滿視窗高度 */
}
main {
  flex: 1; /* 自動撐開中間區域 */
  z-index: 0;
}
img {
  max-width: 100%;
  height: auto;
}
div:focus {
  outline: none;
}
a {
  text-decoration: none;
  color: #000;
}
a:hover {
  color: #75945d;
}
textarea {
  resize: none;
}
/*--------------------------------------------------------------
# font-size
--------------------------------------------------------------*/ :root {
  --fluid-min: 320; /* 最小螢幕寬度 */
  --fluid-max: 1920; /* 最大螢幕寬度 */
}
.fs {
  --font-size: calc((var(--min-size) * 1px) + (var(--max-size) - var(--min-size)) * ((100cqw - var(--fluid-min) * 1px) / (var(--fluid-max) - var(--fluid-min))));
  font-size: clamp(calc(var(--min-size) * 1px), var(--font-size), calc(var(--max-size) * 1px));
}
.fs_0 {
  font-size: clamp(45px, 4vw, 80px);
  line-height: 1.2;
} /* H1 */
.fs_1 {
  font-size: clamp(40px, 4vw, 50px);
  line-height: 1.2;
} /* H1 */
.fs_2 {
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.25;
} /* H2 */
.fs_3 {
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.3;
} /* H3 */
.fs_4 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
} /* H4 */
.fs_5 {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.4;
} /* H5 */
.fs_6 {
  font-size: clamp(11px, 1vw, 16px);
  line-height: 1.45;
} /* H6 */
.fs_p {
  font-size: clamp(15px, 1vw, 16px);
  line-height: 1.6;
} /* 內文 */
.fs_small {
  font-size: clamp(12px, 0.8vw, 14px);
  line-height: 1.6;
} /* 小字 */
/*--------------------------------------------------------------
# color
--------------------------------------------------------------*/
.gray_bg_color {
  background-color: #e5dddc;
}
.main_bg_color {
  background-color: #6e9657;
}
.main_color {
  color: #fffcf0;
}
.green_color {
  color: #5f8e44;
}
.footer_color {
  color: #fffdee;
}
/*--------------------------------------------------------------
# form style
--------------------------------------------------------------*/
.form-control {
  line-height: 28px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.20);
  color: #567743;
  border: 1px solid #567743;
  padding: 10px 15px;
}
.form-control::placeholder {
  color: #567743;
}
.form-control:focus {
  border-color: #567743;
  box-shadow: 0 0 0 0 transparent;
  color: #567743;
  background-color: rgba(255, 255, 255, 0.20);
  border: 1px solid #567743;
  padding: 10px 15px;
  border-radius: 10px;
}
.form-select {
  line-height: 28px;
  background-color: rgba(255, 255, 255, 0.20);
  color: #567743;
  border: 1px solid #567743;
  padding: 10px 15px;
  border-radius: 10px;
}
.form-select::placeholder {
  color: #567743;
}
.form-select:focus {
  border-color: #567743;
  box-shadow: 0 0 0 0 transparent;
  color: #567743;
  background-color: rgba(255, 255, 255, 0.20);
  border: 1px solid #567743;
  padding: 10px 15px;
  border-radius: 10px;
}
/*btn*/
.btn:focus {
  box-shadow: 0 0 0 0rem rgba(0, 140, 255, 1.00);
  -webkit-box-shadow: 0 0 0 0rem rgba(0, 140, 255, 1.00);
}
.main_btn {
  color: #fffdee;
  background-color: #6e9657;
  padding: 10px 30px;
  position: relative;
  border: 1px solid #425b33;
  border-radius: 8px;
}
.main_btn:hover, a:hover.main_btn {
  border: 1px solid #425b33;
  background-color: #fffdee;
  color: #6e9657;
}
.contact_btn {
  color: #fffdee;
  background-color: #6e9657;
  padding: 10px 30px;
  position: relative;
  border: 1px solid #fffdee;
  border-radius: 8px;
}
.contact_btn:hover, a:hover.contact_btn {
  border: 1px solid #425b33;
  background-color: #425b33;
  color: #fffdee;
}
.pjo_btn {
  border: 1px solid #000;
  border-radius: 50px;
  padding: 4px 15px;
  font-size: 13px;
}
.f_menu a {
  color: #fffcf0;
  line-height: 30px;
}
.f_menu a:hover {
  opacity: 0.8;
}
/*--------------------------------------------------------------
# navbar
--------------------------------------------------------------*/
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0;
}
.navbar-light .navbar-toggler {
  border: 1px solid #adb3a9;
  padding: 0;
  border-radius: 5px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  color: #6d9657;
}
.navbar-light .navbar-toggler:hover {
  background-color: #6d9657;
  color: #fff;
}
.navbar-light .navbar-nav .nav-link {
  color: #000;
}
.navbar-light .navbar-nav.show {
  color: #fff;
  background-color: #6d9657;
  border-radius: 0px;
}
.navbar-light .navbar-nav a:hover.nav-link {
  color: #6d9657;
  font-weight: 800;
}
.dropdown-menu a:hover {
  background-color: transparent;
  color: #6d9657;
}
.dropdown-toggle::after {
  position: absolute;
  right: 10px;
  top: 15px;
  font-size: 16px;
  font-family: "Font Awesome 6 Free";
  content: '\f107';
  font-weight: 700;
  border: 0;
}
.navbar-collapse {
  height: 100vh;
}
.navbar-nav .nav-link {
  padding: 15px 15px;
  border-bottom: 1px solid #adb3a9;
}
.dropdown-menu {
  border: 0;
  background-color: #fff;
  padding: 0;
}
.dropdown-item {
  padding: 10px 15px;
  border-bottom: 1px solid #adb3a9;
}
/*--------------------------------------------------------------
# img
--------------------------------------------------------------*/
.banner_pic {
  width: 100%;
  aspect-ratio: 2 / 1.5; /* 保持比例 */
  border-radius: 0px;
  position: relative;
  overflow: hidden; /* 限制內部內容超出範圍 */
  background-color: #fff;
  z-index: 0;
}
.banner_pic::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.6s ease-out;
}
.banner_pic:hover::before, a:hover .banner_pic::before {
  transform: scale(1.1); /* 放大但不超出邊框 */
}
.img_4x3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.img_4x3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}
.card:hover .img_4x3 img, a:hover .img_4x3 img, .img_4x3 img:hover{
  transform: scale(1.1);
}
.img_4x2 {
  width: 100%;
  aspect-ratio: 4 / 2.5;
  overflow: hidden;
  position: relative;
}
.img_4x2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}
.card:hover .img_4x2 img, a:hover .img_4x2 img, .img_4x2 img:hover{
  transform: scale(1.1);
}
.img_1x1 {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.img_1x1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}
.card:hover .img_1x1 img, a:hover .img_1x1 img, .img_1x1 img:hover{
  transform: scale(1.1);
}
/*--------------------------------------------------------------
# main
--------------------------------------------------------------*/
.w_pic {
  position: relative;
  overflow: hidden;
}
.w_pic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #567743;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.w_pic:hover::before {
  opacity: 0;
}
.rounded_10 {
  border-radius: 40px;
}
.rounded_9 {
  border-radius: 0px 40px 40px 0px;
}
.rounded_8 {
  border-radius: 40px 0px 0px 40px;
}
.logo_area img {
  max-height: 60px;
}
.banner_line {
  width: 1px;
  height: 30px;
  margin-right: 10px;
  background-color: #c2c1b6;
  display: inline-block;
}
.banner_pic {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex; /* 讓內容能用 flex 對齊 */
  align-items: center; /* 垂直置中 (如果需要) */
}
.banner_box {
  display: inline-block; /* 讓內容寬度隨內容變化 */
  z-index: 999;
}
.banner_box h4 {
  display: inline-block; /* 背景跟著文字跑 */
  background-color: #fefcee; /* 你要的背景色 */
  color: #6d9657;
  padding: 0.5rem 1rem;
}
.banner_sbox {
  display: inline-block; /* 背景跟著文字跑 */
  background-color: #fefcee; /* 你要的背景色 */
  color: #000000;
  padding: 0.5rem 2rem;
}
.contact_text {
  position: relative;
  height: 125px;
}
.contact_text::before {
  background-image: url("../images/contact_ifram.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100%;
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 155px;
}
.g_border_start {
  border-left: 1px solid #2e3f23;
}
.project_bg {
  background-image: url("../images/project_bg.png");
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 90% auto;
}
.nu_icon {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  background-color: #5c7649;
  color: #f3f1e2;
  font-size: 12px;
  padding: 5px;
}
.concept_text {
  position: relative;
  height: 50px;
  padding: 0 15px;
}
.concept_text::before {
  background-image: url("../images/concept_ifram.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100%;
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 65px;
}
.about_bg {
  background-image: url("../images/about_bg.png");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 90% auto;
}
/*--------------------------------------------------------------
# deco
--------------------------------------------------------------*/
.contact_deco1 {
  display: none;
}
.contact_deco2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20%;
  text-align: right;
  z-index: -1;
}
.case_deco1 {
  position: absolute;
  top: 0%;
  left: 0;
  width: 40%;
  text-align: right;
  z-index: -1;
}
.case_deco2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  text-align: right;
  z-index: -1;
}
.aw_deco1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  z-index: -1;
}
.concept_deco1 {
  position: absolute;
  bottom: -5%;
  right: 0;
  width: 80%;
  z-index: -1;
  text-align: end;
  max-width: 550px;
}
.concept_deco2 {
  position: absolute;
  top: 45%;
  left: 0;
  width: 80%;
  z-index: -1;
  max-width: 500px;
}
.about_deco1 {
  position: absolute;
  bottom: -5%;
  right: 0;
  width: 80%;
  z-index: -1;
  text-align: end;
  max-width: 400px;
}
.index_deco1 {
  position: absolute;
  bottom: 50%;
  left: 10%;
  width: 40%;
  z-index: -1;
  max-width: 330px;
}
.index_deco2 {
  position: absolute;
  bottom: 0%;
  right: 00%;
  width: 30%;
  z-index: -1;
  max-width: 185px;
}
.index_deco3 {
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 40%;
  z-index: -1;
  max-width: 400px;
}
/* 時間軸 */
.timeline-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
/* 左側時間軸 */
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #191817;
  left: 50%;
  transform: translateX(-50%);
}
.year {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #191817;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #191817;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: all 0.3s ease;
}
.year.active {
  background: #75945d;
  color: #d9e0c7;
  font-weight: bold;
  border: 1px solid #75945d;
}
/* 右側內容 */
.content {
  flex: 1;
}
.content img {
  max-width: 100%;
  display: block;
}
/* 淡入淡出動畫 */
#image {
  opacity: 1;
  transition: opacity 0.6s ease;
}
#image.fade-out {
  opacity: 0;
}
/* 圖片上的按鈕 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}
.nav-btn.left {
  left: -20px;
}
.nav-btn.right {
  right: -20px;
}
/*--------------------------------------------------------------
# index
--------------------------------------------------------------*/
.index_pic_bg {
  background-image: url("../images/index_a_bg.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}
.index_pic_box {
  width: 90%;
  margin-left: 5%;
}
.index_work_bg {
  background-image: url("../images/index_a_bg2.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}
.index_about_bg {
  background-image: url("../images/index_a_bg1.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}
@media (min-width:480px) {
  .contact_text {
    height: 100px;
  }
}
@media (min-width:533px) {
  .contact_text {
    height: 80px;
    max-width: 530px;
    margin: auto;
  }
}
@media (min-width:768px) {
  .a_mt {
    margin-top: -20%;
  }
  /*--------------------------------------------------------------
# deco
--------------------------------------------------------------*/
  .contact_deco1 {
    position: absolute;
    top: 5%;
    left: 4%;
    width: 10%;
    z-index: -1;
    display: inline-block;
  }
  .index_deco1 {
    bottom: 0%;
    left: 0;
  }
  /*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
  .f_ps {
    padding-left: 75px;
  }
  /*--------------------------------------------------------------
# 時間軸
--------------------------------------------------------------*/
  .year {
    width: 80px;
    height: 80px;
    font-size: 16px;
  }
  /*--------------------------------------------------------------
# index
--------------------------------------------------------------*/
  .index_pic_box {
    position: absolute;
    top: 10%;
    left: 7%;
    width: 86%;
    margin-left: 0;
  }
  .index_pic_bg {
    background-size: 80% auto;
  }
  .index_work_bg {
    background-size: 85% auto;
  }
  .index_about_bg {
    background-size: 85% auto;
  }
}
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%; /* 預設隱藏 */
    width: 100%; /* 滿版 */
    max-width: 300px; /* 右側固定寬度，可改成 none 變成真正滿版 */
    height: 100vh;
    background: #f9f7e8;
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    padding: 1rem;
    overflow-y: auto; /* 內容太多可滾動 */
  }
  .navbar-collapse.show {
    right: 0;
  }
  .btn_close {
    border: 1px solid #6d9657;
    padding: 0;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    color: #6d9657;
  }
  .btn_close:hover {
    background-color: #6d9657; /* 背景顏色 */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 0 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1em auto;
    opacity: 1; /* 保持白色不透明 */
  }
}
@media (min-width:992px) {
  /*--------------------------------------------------------------
# deco
--------------------------------------------------------------*/
  .contact_deco1 {
    top: 5%;
    left: 15%;
  }
  .logo_area img {
    max-height: 120px;
  }
  .case_deco1 {
    width: 20%;
    top: 5%;
  }
  .case_deco2 {
    width: 20%;
  }
  .aw_deco1 {
    width: 50%;
  }
  /*--------------------------------------------------------------
# img
--------------------------------------------------------------*/
  .banner_pic {
    aspect-ratio: 2 / 0.6; /* 保持比例 */
  }
  /*--------------------------------------------------------------
# navbar
--------------------------------------------------------------*/
  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 10px 0px 10px 20px;
  }
  .dropdown-toggle::after {
    display: none;
  }
  .navbar-nav .nav-link {
    border: 0;
  }
  .navbar-collapse {
    height: auto;
  }
  .nav-link {
    padding: 15px 0;
    border-bottom: 0;
  }
  .dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }
  .dropdown-menu {
    padding: 0;
  }
  .nav-item .nav-link {
    position: relative;
  }
  /*--------------------------------------------------------------
# index
--------------------------------------------------------------*/
  .index_pic_box {
    top: 15%;
    left: 15%;
    width: 80%;
    margin-left: 0;
  }
  .a_box {
    padding-left: 90px;
  }
}
@media (min-width:1200px) {
  /*--------------------------------------------------------------
# navbar
--------------------------------------------------------------*/
  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 10px 0px 10px 30px;
    font-size: 18px;
  }
  /*--------------------------------------------------------------
# index
--------------------------------------------------------------*/
  .index_pic_box {
    top: 20%;
  }
  .a_box {
    padding-left: 200px;
  }
}
@media (min-width:1400px) {
  /*--------------------------------------------------------------
# navbar
--------------------------------------------------------------*/
  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 10px 0px 10px 40px;
  }
  /*--------------------------------------------------------------
# img
--------------------------------------------------------------*/
  .banner_pic {
    aspect-ratio: 2 / 0.5; /* 保持比例 */
  }
  .index_deco3 {
    left: 5%;
  }
}
@media (min-width:1600px) {
  /*--------------------------------------------------------------
# deco
--------------------------------------------------------------*/
  .contact_deco1 {
    top: 5%;
    left: 25%;
  }
  .contact_deco2 {
    width: 40%;
  }
  .index_deco1 {
    max-width: 400px;
  }
  .index_deco2 {
    max-width: 215px;
  }
  /*--------------------------------------------------------------
# index
--------------------------------------------------------------*/
  .index_pic_box {
    top: 25%;
    left: 30%;
  }
  .a_box {
    padding-left: 300px;
      padding-top: 60px;
  }
}
@media (min-width:1920px) {
  .index_deco1 {
    max-width: 500px;
    bottom: -10%;
  }
  .a_box {
    padding-left: 450px;
  }
  .index_deco3 {
    left: 10%;
    max-width: 450px;
  }
}