body {
  margin: 0;
  /* display: flex; */
  height: 100vh;
  overflow: hidden;
}
/* menu樣式 */
/*.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 0;
  margin: 0;
  list-style: none;
  height: 75px;
  line-height: 45px;
  z-index: 900;
  transition: all 0.5s ease-out;
  box-shadow: 0 5px 10px 0 rgba(50, 50, 50, 0.06);
  display: none; 
}*/
.menu .logo {
  margin-right: 40px;
  height: 40px; /* 可調整 logo 大小 */
}
.menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menua {
  display: block;
  padding: 15px 25px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.menu li:hover .menua,
.menua:hover {
  background-color: #106146;
  color: #fff;
}

.allweb {
  display: flex;
  padding-top: 50px;
}

/* 地圖區 */
#map {
  width: 50%;
  height: 840px;
  z-index: 800;
}

/* 專案列表區 */
.projects {
  width: 50%;
  /* overflow-y: auto; */
  padding: 20px 10px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  height: 840px;
}

.project-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.project-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  padding-bottom: 10px;
}

.project-card h3 {
  font-size: 1rem;
  margin-top: 8px;
}

.project-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 8px;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: #106146;
  color: #fff;
  border-radius: 8px;
}

.project-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-height: 715px; /* 超過高度出現滾輪 */
  overflow-y: auto;
  /* padding-right: 8px; */
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}
.project-group::-webkit-scrollbar {
  width: 6px;
}
.project-group::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 3px;
}
.project-group::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.project-card {
  width: 290px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* --- Modal 彈出視窗 --- */
.modal {
  display: none;
  position: fixed;
  top: 5vh;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  width: 80%;
  /* max-width: 880px; */
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
}

/* --- Footer --- */
.content {
  flex: 1;
  padding: 40px;
}

.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 25px 0;
  font-size: 16px;
  font-weight: 700;
  z-index: 900;
  position: relative;
  margin: 0px;
}

/* --- 內容區塊 --- */
.about-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #f7f7f7;
}

.about-section {
  max-width: 1200px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.51);
  color: #232323;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #fff;
}

.about-text {
  flex: 1 1 55%;
  padding: 20px 30px;
  font-weight: 400;
}
.about-title {
  position: relative;
  margin: 20px 0;
  border-left: 6px solid #b57d41 !important;
  padding: 0px 15px;
  height: 50px;
}

.about-text h3 {
  padding-top: 20px;
  color: #b57d41;
  font-weight: 700;
  font-size: 1.5rem;
}

.about-img {
  flex: 1 1 45%;
  text-align: center;
  padding: 20px;
}

.about-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .about-row {
    flex-direction: column;
  }
  .about-title {
    border-left: none !important;
    margin-bottom: 30px;
  }
  .about-text,
  .about-img {
    flex: 1 1 100%;
    text-align: center;
  }
  .about-text h3 {
    text-align: center;
    border-left: none;
    border-bottom: 4px solid #b57d41;
    display: inline-block;
  }
}

/* 團隊介紹 */
.about-box {
  padding: 50px;
  background: #efefef;
  position: relative;
  width: 100%;
}
.about-box::before {
  background: #debd99;
  content: "";
  position: absolute;
  width: 1px;
  height: 50%;
  left: 90px;
  bottom: 128px;
}

.team-section {
  padding: 60px 0;
  background-color: #fff;
}

.team-desc {
  text-align: center;
  color: #666;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  font-weight: 600;
}

.team-member {
  text-align: center;
  margin-bottom: 40px;
  cursor: pointer;
}
.team-member img {
  width: 100%;
  max-width: 220px;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: 0.3s;
}
.team-member img:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.member-name {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}
.member-role {
  color: #777;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .col-6.col-md-4.col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .allweb {
    padding-top: 28px;
  }
  #map {
    position: absolute !important;
    width: 100%;
    z-index: -100;
  }
  .project-group {
    max-height: 500px;
  }
  .modal-content {
    top: 45px;
    font-size: 1.5rem;
    line-height: 2rem;
    max-height: 80vh;
  }
  .modal-content h2 {
    font-size: 2rem !important;
  }
  .modal-content img {
    width: 100% !important;
  }
  .projects {
    width: 100%;
    background: #ffffff;
  }
  .tabpp {
    margin-top: -5px !important;
    font-size: 1.3rem;
  }
  .title_img {
    width: 40% !important;
  }
  .project-tabs {
    .tab-btn {
      font-size: 17px;
      padding: 10px 15px;
    }
    .title_p {
      font-size: 1.2rem;
      margin-bottom: 10px;
    }
    .subtitle {
      font-size: 0.9rem;
    }
    .ptop10 {
      font-size: 1rem;
      line-height: 1.2rem;
    }
  }
  .project-card {
    font-size: 1.7rem;
  }
  .projecte {
    font-size: 1.2rem;
    line-height: 1.5rem;
  }
}

.member-sidebar {
  position: fixed;
  top: 0%;
  right: -12px;
  width: 640px;
  max-width: 90%;
  max-height: 100vh;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  transition: opacity 0.3s ease;
  z-index: 1050;
  display: none;
}

.member-sidebar:target {
  right: -12px;
}

.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 26px;
  text-decoration: none;
  color: #fff;
  background: #c4a25e;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-btn:hover {
  background: #000;
  color: #fff;
}

.photo-wrapper {
  position: relative;
  width: 100%;
}

.photo-wrapper img {
  width: 100%;
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.member-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  background: #c4a25e;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
  padding: 6px 0;
}

.member-detail {
  padding: 40px 40px 60px;
}

.member-title {
  font-weight: 700;
  color: #000;
}
.member-text {
  font-weight: 500;
}

/* 服務 */
.services-part {
  width: 800px;
  margin: 60px 40px 50px 40px;
  position: relative;
  left: 15%;
}

.services-title {
  animation: fade-in-move-from-right 0.7s;
}

.title-text {
  color: #0a0809;
  text-align: left;
  font-weight: 500;
  font-size: 1.2rem;
  display: block;
}

.services-text {
  animation: fade-in-move-from-left 0.7s;
}

.service-desc {
  padding-left: 15px;
  color: #0a0809;
  font-weight: 300;
  text-align: left;
  font-size: 1.1rem;
  display: block;
  border-left: 5px solid #b57d41 !important;
}

.title_p {
  font-size: 2rem;
  color: #1c1c1c;
}
.subtitle {
  color: #1c1c1c;
}
.title_img {
  width: 60% !important;
}
.sppb-section {
  margin-top: -30px !important;
}

.projecte {
  font-size: 1.6rem;
  line-height: 2rem;
}
.tabpp {
  margin: 0;
}
.ttext {
  font-weight: 700;
  color: #006446;
  font-size: 1em;
  font-family: math;
}
.ptop10 {
  padding-top: 18px;
  line-height: 2.5rem;
  font-size: 1.8rem;
}
.ptop_e {
  font-size: 1.5rem;
  line-height: 2rem;
}
