body {
  position: relative;
  width: 100%;
  font-family: "Noto Sans TC", "Roboto", sans-serif;
  color: #333;
  background-color: #FFFFFF;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  line-height: 1.8;
}

section {
  width: 100%;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hide {
  display: none !important;
}

:hover,
a:hover {
  transition: all .3s ease-in-out;
  text-decoration: none !important;
}

:focus {
  outline: none;
}

a {
  color: #333333;
  cursor: pointer;
}

a:hover {
  color: #493137;
}

h1,
h2 {
  margin: 0;
  padding: 0;
}

p {
  font-size: 1rem;
  line-height: 1.8;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

ul li {
  list-style: none;
  padding: 0;
}

ul li::marker {
  font-weight: bold;
}

em {
  font-style: normal;
}

button {
  border: none;
  cursor: pointer;
}

button.defult {
  cursor: default;
}

button:focus {
  outline: none;
}

input[type="text"],
input[type="password"],
textarea,
select {
  color: #000;
  outline: none;
  border: 0px solid #dddddd;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select {
  box-shadow: none;
  border: 0px solid #ffffff;
}

::placeholder {
  color: #6a6a6a;
  opacity: 1;
}

::-webkit-scrollbar {
  width: 5px;
  opacity: 0.4;
}

::-webkit-scrollbar-track {
  background: rgb(241, 241, 241, 0.1);
}

::-webkit-scrollbar-thumb {
  height: 1px;
  background: #cacaca;
}

::-webkit-scrollbar-thumb:hover {
  height: 1px;
  background: #cacaca;
}

/* banner */
section.banner {
  position: relative;
  z-index: 10;
}

section.content {
  position: relative;
}

section.content .titleA {
  position: relative;
  text-align: left;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 20px;
  margin-bottom: 28px;
}

section.content .titleA::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 60%;
  background: #f0e8a5;
}

section.content .titleA p {
  font-size: 1rem;
  color: #333333;
}

section.content .titleA h2 {
  font-size: 1.8rem;
  line-height: 1.8;
  font-weight: 700;
  color: #493137;
}

section.content .titleA h3 {
  font-size: 1.375rem;
  line-height: 1.8;
  font-weight: 400;
  color: #493137;
}

section.content.h-service .titleA {
  margin: 0;
  position: absolute;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 20px;
  bottom: 40px;
  padding-left: 0px;
  z-index: 10;
}

section.content.h-service .titleA h2 {
  font-size: 1.125rem;
  line-height: 1.8;
  font-weight: 700;
  color: #fff;
}

section.content.h-service .titleA::before {
  content: "";
  display: none;
}

section.content.h-service h3 {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: normal;
  color: #fff;
  font-weight: bold;
  padding: 4px 12px;
  background: #7b6369;
  background: linear-gradient(225deg, #7b6369 0%, #a0888e 100%);
  border-radius: 30vw;
}

section.content.h-service .item-box {
  width: 32.3333%;
}

section.content.h-service .item-box .pic a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

section.content.h-service .item-box .pic img {
  height: 18vw !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  display: block;
  object-fit: cover;
}

@media (max-width: 1024px) {
  section.content.h-service .item-box .pic img {
    height: auto !important;
    width: 100% !important;
  }
}

section.content.h-social {
  background: #f5f9fc;
}

section.content.h-social .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

section.content .wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 2.5vw 3.4vw;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.add_cnt section.content .wrapper {
  padding: 2.5vw 12.5vw 8.5vw;
}

section.content.c-page .wrapper {
  gap: 60px;
}

/* h-news */
section.h-news {
  background: #FBFDFA;
}

section.h-news .wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

section.h-news .block {
  display: grid;
  grid-template-columns: 1fr;
}

section.h-news .block.mainnewsblock {
  /* align-items: stretch; */
  align-items: flex-start;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

section.h-news .block ul {
  display: grid;
  grid-template-columns: 1fr;
}

section.h-news .news li .pic,
.news li .pic {
  width: 100%;
  max-width: 165px;
  height: 102px;
  display: flex;
  overflow: hidden;
}

section.h-news .news li .pic img {
  object-fit: cover;
  transform: scale(1);
  transition: all .3s ease-in-out;
}

section.h-news .news li .pic {
  display: none;
}

section.h-news .news li.main .pic {
  display: flex;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.news {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 2px dotted rgb(90, 82, 80, .5);
}

.news li:last-child {
  border-bottom: 0px
}

.news li.main {
  position: relative;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  align-items: flex-start;
  padding: 20px;
  border-radius: 6px;
}

.news li:hover .pic img {
  object-fit: cover;
  transform: scale(1.02);
}

.news li .txt {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

.news li.main .txt {
  align-items: flex-end;
  flex-direction: column;
  gap: 20px;
}

.news li .txt h2 {
  /* display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  */
  font-size: 1.25rem;
  font-weight: 600;
  word-break: break-word;
  color: #493137;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: normal;
}

.news li:hover .txt h2 {
  color: #333333;
}

.news li .txt p {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  color: #333333;
}

.news li .txt span {
  font-size: .875rem;
  color: #666666;
  line-height: normal;
}

.news li .txt .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.news li.main .txt .info {
  display: inline-flex;
  gap: 16px;
}

.news li .txt span.dot {
  width: 20px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center center;
  background-image: url("../images/icon-dot.svg");
  margin-top: 4px;
}

.btm-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
}

a.more {
  padding: 2px 6px;
  font-size: .875rem;
  transition: all .3s ease-in-out;
  color: #fff;
  background: #f3992b;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

a.more:hover {
  background: #f4ae58;
}

section.h-news li.main a.more {
  padding: 5px 6px;
  display: inline-flex;
}

section.h-news a.more img {
  width: 10px;
  min-width: 10px;
}

/* block */
.item-box {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: #F7F7F7;
  box-shadow: 0 2px 6px rgb(0 0 0 / 14%);
}

.item-box .top-info {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.item-box .titleA h3 {
  height: auto;
  line-height: 1.3125;
}

.item-box .btm-info {
  padding: 1.042vw;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 200px;
}

.item-box:last-child .btm-info {
  grid-template-columns: repeat(2, 1fr);
}

.item-box .btm-info ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-box .btm-info ul li a {
  font-size: 1rem;
  font-weight: 400;
  padding-left: 24px;
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: left center;
  background-image: url("../images/icon-link.svg");
  /* display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis; */
  word-break: break-word;
  line-height: 1.2;
}

.item-box .btm-info h2 {
  margin-bottom: 0;
}

.item-box .btm-info h2 a {
  font-size: 1.2rem;
  font-weight: bold;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* h-service */
.h-service .wrapper .block {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.item-box .top-info {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.item-box .btm-info p a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.left-menu {
  width: 100%;
  flex: 4;
  margin-right: 40px;
}

.left-menu ul li:last-child a {
  border-bottom: 0px solid #eaeaea;
}

.left-menu ul li a {
  width: 100%;
  display: flex;
  padding: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eaeaea;
  border-radius: 4px;
}

.left-menu ul li.on a,
.left-menu ul li:hover a {
  color: #d57607;
}

.page {
  width: 100%;
}

/* marquee */
.marquee {
  position: absolute;
  width: 100%;
  padding-top: 120px;
  overflow: hidden;
  white-space: nowrap;
  z-index: 12;
}

.add_cnt .marquee {
  position: relative;
  padding-top: 0;
}

.marquee .full_container {
  width: 100%;
  overflow: hidden;
  background: rgb(73, 49, 55, .85);
  box-sizing: border-box;
}

.marquee-content {
  display: flex;
  width: 100%;
  will-change: transform;
  margin: 0;
  padding: 0;
}

.marquee-content p {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 6px 2.667vw;
  text-align: left;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-all;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.marquee-content p a {
  color: #fff;
}

/* block word / tabs / list / info / teachers 等 */
.block-Btype {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.block-Ctype {
  display: grid !important;
  grid-template-columns: 1fr 4fr;
  gap: 40px;
  margin-top: 40px;
}

.block-Btype .group,
.block-Ctype .group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.block h2 {
  color: #493137;
  font-size: 1.5rem;
  margin-bottom: 0;
}

.block-Ctype .group h2 {
  color: #000;
}

.block h4 {
  color: #7b6369;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.block .word {
  width: 100%;
  display: flex;
  align-items: baseline;
  flex-direction: column;
  gap: 16px;
}

.block .word .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block .word .info span {
  color: #666;
}

.block .word .img {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.block .word .img a {
  flex: 1;
  min-width: 0;
  display: flex;
}

/* 設定圖片本體 */
.block .word .img a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  height: auto;
}

.block .word p {
  font-size: 1.06rem;
  line-height: 2;
}

.block .word p.hasimg,
.block .word .hasimg {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.block .word .hasimg.group {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}

.block .word p.hasimg img,
.block .word .hasimg img {
  width: 100%;
  min-width: 400px;
  max-width: 400px;
}

.block .word ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block .word ul li {
  list-style: disc;
  margin-left: 8px;
}

.block .word ul li ol {
  margin: 8px 0;
}

.block .word ul li ol li {
  list-style: square;
  margin-left: 16px;
  padding: 4px 0;
  color: #383838
}

.block .word table {
  border-collapse: collapse;
  width: 100%;
}

.block .word table,
.block .word table tr td,
.block .word table tr th {
  border: 1px solid #dcdcdc;
}

.block .word table tr td,
.block .word table tr th {
  padding: 4px 8px;
}

.block .word table tr th {
  background: #f9f9d7;
}

/* tabs */
.tabContainer {
  width: 100%;
}

.tabs {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s;
  border-radius: 8px 8px 0 0;
}

.tab-button:hover {
  background: #e0e0e0;
}

.tab-button.active {
  background: #493137;
  color: #fff;
}

.tab-content {
  display: none;
  padding: 16px;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.block .word .tab-content h2 {
  margin-bottom: 12px;
}

.block .word .tab-content ul {
  gap: 4px;
  margin: 12px 0;
}

.tab-content.active {
  display: block;
}

.tab-content table td {
  padding: 4px;
}

.tab-content table td b {
  white-space: nowrap;
}

/* list-type / info / teachers */
.list-type {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.list-type li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.list-type li span {
  color: #D6AE00;
}

.list-type li a {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.list-type li:last-child a {
  border-bottom: 0px solid #e8e8e8;
}

.info ul {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.info ul li {
  width: 100%;
  position: relative;
  padding: 0 0 20px 0;
  border-bottom: 1px solid #dcdcdc;
}

.info ul li:last-child {
  border-bottom: 0px solid #dcdcdc;
}

.info ul li a h4 {
  position: relative;
  color: #1c1c1c;
  transition: .3s linear;
}

.info ul li a h4:hover {
  color: #f3992b;
}

.info ul.list-type li a h4 {
  padding-left: 20px;
  font-size: 18px;
}

.info ul.list-type li a h4::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #f3992b;
}

.info ul h4 {
  font-size: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.info ul li p,
.info ul li .detail span {
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 6px 0;
}

.info ul li span {
  display: flex;
  color: #727272;
  font-size: 16px;
  margin-bottom: 6px;
}

.info.typeC {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.info.typeC .teacher_title {
  position: relative;
  font-size: 1.25rem;
  font-weight: bold;
  padding-left: 16px;
}

.info.typeC .teacher_title::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #f3992b;
}

.info ul.teachers li {
  display: grid;
  grid-template-columns: 150px 2fr;
  gap: 20px;
}

.info ul.teachers li a {
  display: grid;
  gap: 10px;
  text-align: center;
  align-items: stretch;
}

.info ul.teachers li a img {
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  object-position: top;
}

.info ul.teachers li .detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.info ul.teachers li .detail .txt p {
  display: flex;
  font-size: 14px;
}

.info ul.teachers li a.more {
  max-width: 100px;
}

.info.typeB ul li {
  border-bottom: 0px;
}

.info.typeB ul li p.activitiess {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  justify-content: flex-start;
}

.info ul li p.activitiess img {
  height: 100%;
  object-fit: cover;
}


/* footer */
footer {
  background: #493137;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

footer .wrapper {
  margin: 0 auto;
  padding: 1.667vw 2.5vw;
}

footer .foot.btm {
  text-align: center;
}

section.content.h-social .group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.video-container {
  width: 100%;
  flex: 1;
  background: #000;
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1280px) {
  section.h-news .wrapper {
    grid-template-columns: 1fr;
  }

  .block-Btype .group,
  .block-Ctype .group {
    gap: 24px;
  }

  section.content .titleA {
    margin-bottom: 24px;
    padding-left: 20px;
  }

  section.content .titleA h2 {
    font-size: 1.46rem;
  }

  section.content .titleA h3,
  .news li .txt h2 {
    font-size: 1.06rem;
  }

  section.content .titleA p {
    font-size: .93rem;
    color: #333333;
  }

  section.content .wrapper,
  .add_cnt section.content .wrapper {
    padding: 3.667vw;
  }

  section.content.h-social .wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1160px) {
  .marquee {
    position: relative;
    padding-top: 0;
  }
}

@media (max-width: 1024px) {
  .h-service .wrapper .block {
    grid-template-columns: 1fr;
  }


  section.content.h-social .wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 0px;
  }

  .block-Ctype {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 0;
  }

  .block-Ctype .left-menu {
    grid-row: 2;
  }

  .info.typeB ul li p.activitiess {
    grid-template-columns: repeat(3, 1fr);
  }

  section.content.h-service .block {
    flex-direction: column;
  }

  section.content.h-service .item-box {
    width: 100%;
  }
}

@media (max-width: 960px) {
  section.h-news .block {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {

  .left-menu {
    margin-right: 0;
    margin-bottom: 0px;
  }

  .marquee-content p {
    font-size: 14px;
  }

  .block .word p.hasimg {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .block .word p.hasimg img {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    margin: 0 auto;
  }

  .tab-button {
    width: 100%;
  }

  .item-box .btm-info {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .news li.main {
    padding: 12px;
  }

  .news li.main .txt .info {
    gap: 8px;
  }

  .block .word .hasimg.group {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  section.h-highlights .block {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news li {
    flex-direction: column;
  }

  .news li .pic {
    max-width: 100%;
    height: auto;
  }

  .item-box .btm-info ul li a {
    font-size: .875rem;
  }

  .item-box .btm-info ul {
    gap: 5px;
  }

  .block .word .img.two,
  .block .word .img.three {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .info ul.teachers li {
    grid-template-columns: 120px 2fr;
  }

  .block .word .img.two,
  .block .word .img.three {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}

input.goback {}