@charset "utf-8";
/*------------ about-editor ------------*/

.history-layout {
  display: block;
  width: 100%;
  min-width: 0;
}

/* 每筆沿革必須上下排列 */
.history-layout > ol.history-list {
  display: block !important;
  width: 100% !important;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
  list-style: none;
}

.history-layout > ol.history-list > li.history-item {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  clear: both;
  margin: 0;
  list-style: none;
}

/* 讓文字與圖片可以在欄位內縮放 */
.history-layout .history-text,
.history-layout .history-photo {
  min-width: 0;
}

.history-layout .history-text p {
  writing-mode: horizontal-tb;
  word-break: normal;
  overflow-wrap: break-word;
}

.history-layout .history-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
/**/
.history-layout {
  --history-teal: #00a5a5;
  --history-blue: #2563ff;
  --history-line: #dfe5ec;
  --history-gap: 70px;

  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 60px;

  color: #0b1f39;
  font-family: Verdana, sans-serif;
}

.history-layout,
.history-layout * {
  box-sizing: border-box;
}

.history-layout .history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== 每一筆沿革 ===== */

.history-layout .history-item {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    calc(var(--history-gap) * 2)
    minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 54px;

  padding: 0 0 64px;
  margin: 0;
  isolation: isolate;
}

/* 中央直線 */
.history-layout .history-item::before {
  content: "";
  position: absolute;
  top: 82px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--history-line);
  transform-origin: top center;
  z-index: -1;
}

/* 藍色圓點 */
.history-layout .history-item::after {
  content: "";
  position: absolute;
  top: 82px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--history-blue);
  transform: translate(-50%, -50%);
}

/* ===== 年份 ===== */

.history-layout .history-year {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;

  display: flex;
  align-items: baseline;
  gap: 3px;

  margin: 0;
  color: var(--history-teal);
  line-height: 1.2;
}

.history-layout .history-year time {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
}

.history-layout .history-year span {
  color: #263340;
  font-size: 16px;
  font-weight: 700;
}

/* ===== 圖片 ===== */

.history-layout .history-photo {
  grid-column: 1;
  grid-row: 2;

  min-width: 0;
  padding: 12px;

  /* 四個角的細框線 */
  background:
    linear-gradient(var(--history-blue), var(--history-blue)) left top / 30px
      1px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) left top / 1px
      30px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) right top / 30px
      1px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) right top / 1px
      30px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) left bottom / 30px
      1px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) left bottom / 1px
      30px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) right bottom /
      30px 1px no-repeat,
    linear-gradient(var(--history-blue), var(--history-blue)) right bottom / 1px
      30px no-repeat;
}

.history-layout .history-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== 文字 ===== */

.history-layout .history-text {
  position: relative;
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
}

/* 從中央直線延伸到文字的橫線 */
.history-layout .history-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(0px - var(--history-gap));
  width: calc(var(--history-gap) - 18px);
  height: 1px;
  background: var(--history-line);
}

.history-layout .history-text p {
  margin: 0;
  font-size: 22px;
  color: #0b1f39;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

/* ===== 偶數筆：圖片右、文字左 ===== */

.history-layout .history-item:nth-child(even) .history-photo {
  grid-column: 3;
}

.history-layout .history-item:nth-child(even) .history-text {
  grid-column: 1;
}

.history-layout .history-item:nth-child(even) .history-text::before {
  left: auto;
  right: calc(0px - var(--history-gap));
}

/* ===== 捲動動畫 ===== */

.history-layout .history-item.is-visible .history-year {
  animation: historyFadeDown 0.7s both;
}

.history-layout .history-item.is-visible::before {
  animation: historyStretch 1.4s both;
}

.history-layout .history-item.is-visible .history-photo {
  animation: historyFadeLeft 0.8s 0.15s both;
}

.history-layout .history-item.is-visible .history-text {
  animation: historyFadeRight 0.8s 0.3s both;
}

.history-layout .history-item.is-visible:nth-child(even) .history-photo {
  animation-name: historyFadeRight;
}

.history-layout .history-item.is-visible:nth-child(even) .history-text {
  animation-name: historyFadeLeft;
}

@keyframes historyFadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes historyFadeLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes historyFadeRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes historyStretch {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
/* ===== 平板：左側年份，右側圖文 ===== */

@media screen and (max-width: 1000px) {
  .history-layout {
    max-width: 760px;
    padding: 30px 24px 50px;
  }

  .history-layout .history-item {
    grid-template-columns: 130px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 30px;
    row-gap: 28px;
    align-items: start;

    padding: 0 0 80px;
  }

  /* 年份固定在左側 */
  .history-layout .history-year {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }

  .history-layout .history-year time {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .history-layout .history-year span {
    font-size: 16px;
  }

  /* 直線與圓點移至年份下方 */
  .history-layout .history-item::before {
    top: 65px;
    bottom: -65px;
    left: 65px;
  }

  .history-layout .history-item::after {
    top: 65px;
    left: 65px;
  }

  .history-layout .history-item:last-child::before {
    bottom: 80px;
  }

  /* 所有項目統一：右側文字在上 */
  .history-layout .history-item:nth-child(n) .history-text {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    padding-top: 5px;
  }

  .history-layout .history-text p {
    font-size: 18px;
    line-height: 1.7;
  }

  /* 取消桌機版文字旁的橫線 */
  .history-layout .history-text::before {
    display: none;
  }

  /* 所有項目統一：右側圖片在下 */
  .history-layout .history-item:nth-child(n) .history-photo {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    margin: 0;
    padding: 10px;
  }

  .history-layout .history-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* ===== 手機：縮小年份欄位與間距 ===== */

@media screen and (max-width: 600px) {
  .history-layout {
    padding: 24px 16px 40px;
  }

  .history-layout .history-item {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 24px;
    padding-bottom: 60px;
  }

  .history-layout .history-year {
    display: block;
    width: 60px;
    text-align: center;
  }

  .history-layout .history-year time {
    display: block;
    font-size: 20px;
    letter-spacing: 0;
  }

  .history-layout .history-year span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
  }

  .history-layout .history-item::before {
    top: 70px;
    bottom: -70px;
    left: 30px;
  }

  .history-layout .history-item::after {
    top: 70px;
    left: 30px;
  }

  .history-layout .history-item:last-child::before {
    bottom: 60px;
  }

  .history-layout .history-item:nth-child(n) .history-text {
    padding-top: 0;
  }

  .history-layout .history-text p {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.5px;
  }

  .history-layout .history-item:nth-child(n) .history-photo {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .history-layout .history-item.is-visible::before,
  .history-layout .history-item.is-visible .history-year,
  .history-layout .history-item.is-visible .history-photo,
  .history-layout .history-item.is-visible .history-text {
    animation: none;
  }
}
/*------------ service-editor ------------*/
.s_layout {
  position: relative;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #dfe5ec;
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 0 90px;
  box-sizing: border-box;
}
.s_list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  position: relative;
  max-width: 950px;
}
.s_list .s_box {
  padding: 0 21px;
  position: relative;
}
.s_list .s_box + .s_box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -20px;
  width: 1px;
  height: 100%;
  background: #dfe5ec;
  display: block;
}

.s_list .s_box .s_num {
  position: absolute;
  top: 0;
  left: 20px;
  font-size: 18px;
  color: #145df1;
  letter-spacing: 0;
  line-height: 1;
  font-weight: bold;
  z-index: 1;
  transition: all 0.3s ease;
}
.s_list .s_box:hover .s_num {
  color: #0396ab;
}
.s_list .s_box .s_pic {
  width: 80px;
  height: 71px;
  background: transparent;

  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  margin-right: 0;
}
.s_list .s_box:hover .s_pic {
  transition: all 0.3s ease;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.s_list .s_box:hover img {
}
.s_list .s_box h4 {
  text-align: center;
  margin: 10px auto 0;
  color: #0b1f39;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 1.5px;
}
.s_list .s_box:hover h4 {
  color: #145df1;
}
@media screen and (max-width: 1000px) {
  .s_layout {
    max-width: 767px;
    padding: 60px 20px 60px;
  }
  .s_list {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    max-width: 484px;
    flex-wrap: wrap;
    gap: 40px;
  }
  .s_list .s_box {
    padding: 0;
    position: relative;
  }
  .s_list .s_box + .s_box::before {
    display: none;
  }
  .s_list .s_box .s_num {
    left: 0;
  }
}
@media screen and (max-width: 484px) {
}
/*------------ contact-editor ------------*/
.contact-editor .row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.contact-editor .col {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}
.contact-editor .col.add {
  flex: 1 1 0;
  min-width: 250px;
}
.contact-editor i {
  width: 30px;
  height: 30px;
  background: #00a5a5;
  border-radius: 10px;
  text-align: center;
  vertical-align: middle;
  color: #fff;
  line-height: 30px;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 16px;
  transform: rotate(45deg);
}
.contact-editor i:before {
  display: inline-block;
  font-family: "icon-font" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: rotate(-45deg);
}
.contact-editor .tel i:before {
  content: "\ff001";
}
.contact-editor .fax i:before {
  content: "\ff002";
}
.contact-editor .mail i:before {
  content: "\ff003";
}
.contact-editor .add i:before {
  content: "\ff004";
  font-size: 18px;
  position: relative;
}
/*------------ video-editor ------------*/
.video-editor .pic {
  float: left;
  margin-right: 25px;
}
/*------------ terms-editor ------------*/
.terms-editor {
  font-size: 15px;
  line-height: 2;
}
.terms-editor .title {
  font-size: 17px;
  color: #00a5a5;
  margin: 0;
}
.terms-editor p {
  text-indent: 0em;
  margin: 0 0 50px;
}
.terms-editor .row {
  margin: 0 -27px;
}
.terms-editor .col {
  padding: 0 27px;
  width: 50%;
  float: left;
  box-sizing: border-box;
}
/*------------ index-editor ------------*/
/*------------ rwd ------------*/
@media screen and (max-width: 1280px) {
  .about-editor .row_2 .txt_box {
    padding: 50px 90px 50px 50px;
  }
}
@media screen and (max-width: 1100px) {
  .row_ {
    display: block;
  }
  .about-editor .row_1 .col {
    margin-bottom: 20px;
  }
  .about-editor .row_1 {
    margin-bottom: 40px;
  }
  .about-editor .row_2 {
    margin-top: 20px;
  }
  .about-editor .row_2 .col1:after {
    display: none;
  }
  .about-editor .row_2 .col,
  .about-editor .row_3 .col {
    margin-bottom: 20px;
  }
  .about-editor .row_2 .txt_box,
  .about-editor .row_3 .txt_box {
    padding: 0px;
    border: none;
    margin-right: 0px;
    margin-left: 0;
    margin-top: 0;
  }
  .about-editor .row_2 .col2 {
    text-align: left;
  }
  .index-about-editor {
    padding: 0;
    height: auto;
  }
  .service-editor .row_ .col2,
  .service-editor .row_ .col1 {
    width: 100%;
    margin-bottom: 20px;
  }
  .service-editor .row_ .col2 {
    padding: 0;
  }
  .contact-editor i {
    text-indent: 0px;
    line-height: 30px;
  }
}
@media screen and (max-width: 767px) {
  .terms-editor .row {
    margin: 0;
  }
  .terms-editor .col {
    padding: 0;
    width: 100%;
  }
}
