.flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}
@media screen and (max-width: 1280px) {
  .flex {
    width: 95vw;
  }
}
@media screen and (max-width: 768px) {
  .flex {
    flex-wrap: wrap;
    grid-template-columns: unset;
  }
}

.word {
  padding: 0 15px;
}

@media screen and (max-width: 980px) {
  .ft {
    padding: 0 10px;
  }
}

.md .hd h4 {
  padding: 0;
}

body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img {
  width: 100%;
  display: block;
}

* {
  font-family: "Microsoft JhengHei", sans-serif;
}

.md.kanban {
  height: auto;
  min-width: unset;
}
.md.kanban .figure {
  min-height: 390px;
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.md.kanban .word {
  position: relative;
}
.md.kanban .word .word_inner {
  width: 70%;
  margin: 0 auto;
  background: url(../images/mask.png) repeat;
  padding: 40px 20px;
}
@media screen and (max-width: 980px) {
  .md.kanban .word {
    top: 0;
  }
}

@media screen and (max-width: 1280px) {
  .md .hd .des .text_box {
    width: 90%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    row-gap: 20px;
  }
  .md .hd .des .text_box .text_content.left,
  .md .hd .des .text_box .text_content.right {
    padding: 0;
    width: 48%;
  }
}
@media screen and (max-width: 1280px) and (max-width: 768px) {
  .md .hd .des .text_box .text_content.left,
  .md .hd .des .text_box .text_content.right {
    width: 100%;
  }
}

.photo_idea {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.photo_idea img {
  width: 390px;
}

.office-gallery {
  padding: 30px 0;
}
.office-gallery .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  overflow: hidden;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  row-gap: 20px;
  justify-content: center;
}

.gallery-item {
  width: 32%;
}
@media (max-width: 992px) {
  .gallery-item {
    width: 33.333%;
  }
}
@media (max-width: 768px) {
  .gallery-item {
    width: 50%;
  }
}
@media (max-width: 576px) {
  .gallery-item {
    width: 100%;
  }
}
.gallery-item .text {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-item .text p {
  text-align: center;
  line-height: 2;
  font-size: 15px;
}

.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.gallery-image::before {
  content: "";
  display: block;
  padding-top: 75%;
}
.gallery-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-image:hover img {
  transform: scale(1.05);
}

.gallery-content {
  padding: 15px 0;
}
.gallery-content p {
  margin-bottom: 1px;
  font-size: 15px;
}
.gallery-content p:last-child {
  margin-bottom: 0;
}

.gallery-text {
  width: 45%;
  margin-bottom: 24px;
}
.gallery-text .text h3 {
  font-size: 18px;
}

@media (max-width: 992px) {
  .office-gallery {
    padding: 20px 0 0;
  }
}
@media (max-width: 768px) {
  .gallery-content p {
    font-size: 13px;
  }
}
.system .bd .photo {
  margin: 0 auto;
  max-width: 840px;
  width: 100%;
}