:root {
  --color-bg: #f9f9f9;
  --color-bg-2: #fbfbfb;

  --color-text: #222222;
  --color-text-soft: #393a45;
  --color-gray-1: #4d4d4d;
  --color-gray-2: #888888;
  --color-gray-3: #d9d9d9;

  --color-primary: #6a8da6;
  --color-secondary: #e8ddd0;
  --color-secondary-dark: #cbbba0;
  --color-success: #81a75a;
  --color-error: #a53737;

  --font-size-3xl: 2.25rem;
  --font-size-2xl: 1.75rem;
  --font-size-xl: 1.5rem;
  --font-size-l: 1.25rem;
  --font-size-m: 1.125rem;

  --style-transition: all 0.24s ease-in-out;
  --style-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);

  --block-px: 20px;
  --block-py: 5%;
  --block-py-s: 3%;
  --block-max-w: 85%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans TC", "Helvetica", "Arial", "LiHei Pro", "黑體-繁",
    "微軟正黑體", sans-serif;
  font-size: var(--font-size-m);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
}

h2 {
  font-size: 2.25rem;
  font-weight: 500;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea {
  font-size: var(--font-size-m);
}

input,
textarea,
button {
  border: none;
}

input,
textarea {
  outline: none;
}

strong {
  font-weight: 600;
}

.block {
  max-width: var(--block-max-w);
  margin: 0 auto;
  padding: var(--block-py) var(--block-px);
}

.block--s {
  max-width: var(--block-max-w);
  margin: 0 auto;
  padding: var(--block-py-s) var(--block-px);
}

.block-header {
  position: relative;
  height: clamp(150px, 31.25vw, 400px);
  overflow: hidden;
}

.block-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 70%;
}

.block-header__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.block-header__title {
  color: var(--color-text-soft);
}

.block-header__subtitle {
  margin-top: 0.25em;
  color: var(--color-gray-2);
}

.block-header {
  position: relative;
  height: clamp(150px, 31.25vw, 400px);
  overflow: hidden;
}

.block-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 70%;
}

.block-intro {
  line-height: 2;
  text-align: center;
}

.block-intro::after {
  content: "";
  display: block;
  width: 85%;
  margin: 3.5rem auto;
  border-bottom: 3px dashed var(--color-gray-3);
}

.block-nav {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 6rem 0 8rem;
}

.block-nav__link {
  padding: 0.5rem 2rem;
  border-radius: 0 10px 0 10px;
  background: var(--color-secondary);
  color: var(--color-gray-2);
  font-size: var(--font-size-l);
  font-weight: 500;
  box-shadow: var(--style-shadow);
}

.block-nav__link.--active {
  background: var(--color-primary);
  color: var(--color-bg-2);
}

.block-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
  padding: 2% 0;
  color: var(--color-gray-1);
  text-align: center;
}

.block-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/static/assets/images/background-3.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

.block-cta__text {
  line-height: 1.8;
  font-size: var(--font-size-xl);
}

.block-cta__btns {
  display: flex;
  gap: 2.5rem;
}

.article-breadcrumb,
.article-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-breadcrumb {
  color: var(--color-gray-2);
  font-size: var(--font-size-l);
}

.article-breadcrumb img {
  width: 1.875rem;
  height: 1.875rem;
}

.article-breadcrumb__link,
.article-return__text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-breadcrumb__current {
  color: var(--color-primary);
}

.article-heading,
.article-wrap {
  padding: 3rem;
}

.article-heading {
  border-bottom: 3px dashed var(--color-gray-3);
}

.article-heading__wrap {
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.article-heading__wrap,
.article-heading__wrap-2 {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.article-heading__tag {
  padding: 0 0.75rem;
  border-radius: 5px;
  background: var(--color-secondary);
}

.article-heading__deco {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0 5px 0 5px;
}

.article-heading__author,
.article-heading__date {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-heading__author {
  color: var(--color-primary);
}

.article-heading__author .article-heading__deco {
  background: var(--color-primary);
}

.article-heading__date {
  color: var(--color-gray-2);
}

.article-heading__date .article-heading__deco {
  background: var(--color-gray-3);
}

.article-heading__social {
  display: flex;
  gap: 1.75rem;
}

.article-heading__social img {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
}

.article-return {
  display: flex;
  gap: 1rem;
  color: var(--color-primary);
}

.article-return__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--color-primary);
  border-radius: 50%;
}

.article-return__icon img {
  width: 1rem;
  height: 1rem;
}

.btn {
  display: block;
  width: fit-content;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: var(--font-size-l);
  font-weight: 500;
  box-shadow: var(--style-shadow);
  cursor: pointer;
}

.btn--primary {
  color: var(--color-bg-2);
  background: var(--color-primary);
}

.btn--secondary {
  color: var(--color-bg-2);
  background: var(--color-secondary-dark);
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 0.25em;
}

.btn-icon img {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
  border-radius: 0 50px 0 50px;
  background: var(--color-bg-2);
  color: var(--color-gray-2);
  box-shadow: var(--style-shadow);
}

.contact-form select {
  width: 100%;
  border: none;
  text-align: center;
  text-align-last: center;
  font-size: inherit;
  color: var(--color-gray-3);
  background: transparent;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.contact-form select:valid,
.contact-form select option {
  color: var(--color-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  width: 100%;
  background: transparent;
  box-shadow: 0 0 0px 1000px var(--color-bg-2) inset;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder {
  color: transparent;
  text-align: center;
}

.contact-form input[type="radio"] {
  position: relative;
  width: 1.11rem;
  height: 1.11rem;
  border: 2px solid var(--color-gray-3);
  border-radius: 50%;
  appearance: none;
}

.contact-form input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin: auto;
  border-radius: 50%;
  background: var(--color-primary);
}

.contact-form textarea {
  width: 100%;
  background: transparent;
  resize: vertical;
}

.contact-form textarea::placeholder {
  color: var(--color-gray-2);
}

.contact-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-form__radio {
  display: flex;
  align-items: center;
  gap: 0.375em;
}

.contact-form__radio * {
  cursor: pointer;
}

.contact-form__item-group {
  display: flex;
  gap: 24px;
}

.contact-form__item-group .contact-form__item {
  width: 60%;
}

.contact-form__item {
  display: flex;
  border: 2px solid var(--color-gray-3);
  border-radius: 0 15px 0 15px;
  overflow: hidden;
}

.contact-form__item.--mobile {
  display: none;
}

.contact-form__item > * {
  padding: 12px 16px;
}

.contact-form__title {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 125px;
  border-right: 2px solid var(--color-gray-3);
}

.contact-form__btn {
  min-width: 120px;
  margin: 0 auto;
  border-radius: 0 15px 0 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.pagination__prev,
.pagination__next {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-3);
}

.pagination__page {
  padding: 0.5rem;
  cursor: pointer;
}

.pagination__page--active {
  color: var(--color-primary);
}

.pagination--disabled {
  opacity: 30%;
  cursor: auto;
}

.header {
  position: sticky;
  z-index: 998;
  top: 0;
  left: 0;
  background: var(--color-primary);
  transition: all 0.3s ease-out;
}

.header--hidden {
  top: -100%;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  width: var(--block-max-w);
  margin: 0 auto;
  padding: 0 var(--block-px);
}

.header__logo-wrap {
  display: flex;
  align-items: center;
  gap: 1.25vw;
}

.header__logo {
  width: 4.375rem;
  height: 4.375rem;
}

.header__text-wrap,
.header__nav {
  font-weight: 500;
}

.header__text-wrap {
  padding: 24px 0;
}

.header__title {
  color: var(--color-bg-2);
  font-size: var(--font-size-3xl);
}

.header__subtitle {
  color: var(--color-gray-3);
  font-size: var(--font-size-xl);
}

.header__nav {
  display: flex;
  gap: 2vw;
  color: var(--color-bg-2);
}

.header__link {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  padding: 1rem;
}

.header__link--active::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: calc(1em + 24px);
  border-radius: 0 8px 0 8px;
  background: var(--color-secondary);
  opacity: 50%;
}

.header-service__menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 70px;
  position: absolute;
  z-index: 999;
  top: 100%;
  left: 0;
  height: 0;
  overflow: hidden;
  border-radius: 0 20px 20px 0;
  background: var(--color-gray-3);
  color: var(--color-primary);
  transition: var(--style-transition);
  opacity: 0;
}

.header-service__menu a {
  display: block;
  padding: 1.5rem;
  text-align: center;
  white-space: nowrap;
}

.header-service:hover .header-service__menu {
  height: auto;
  opacity: 90%;
}

.header__menu {
  display: none;
  margin: auto 0;
}

.header__menu-open,
.header__menu-close {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.header__nav-mobile {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  position: absolute;
  top: 100%;
  right: 0;
  border-radius: 0 0 0 25px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 500;
  transition: var(--style-transition);
}

.header__link-mobile {
  display: block;
  padding: 2rem;
}

.footer {
  width: 100%;
  background: var(--color-primary);
}

.footer__body-inner,
.footer__copyright-inner {
  max-width: var(--block-max-w);
  margin: 0 auto;
}

.footer__body {
  padding: 24px var(--block-px);
}

.footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer__logo {
  width: 4.375rem;
  height: 4.375rem;
}

.footer__title {
  color: var(--color-bg-2);
  font-size: var(--font-size-3xl);
}

.footer__subtitle {
  color: var(--color-gray-3);
  font-size: var(--font-size-l);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: var(--font-size-l);
}

.footer__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer__menu-list a:not(:last-child) {
  margin-right: 1rem;
}

.footer__menu-social {
  display: flex;
  gap: 1.25rem;
}

.footer__menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--color-secondary-dark);
}

.footer__menu-social img {
  width: auto;
  height: 2.5rem;
}

.footer__copyright {
  padding: 0.5em var(--block-px);
  background: var(--color-gray-3);
  color: var(--color-gray-2);
  opacity: 50%;
}

.footer__copyright-inner {
  display: flex;
  justify-content: space-between;
}

.social-fixed {
  z-index: 999;
  position: fixed;
  bottom: 2%;
  right: 2%;
}

.social-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-gray-3);
}

.social-fixed a:not(:last-child) {
  margin-bottom: 2rem;
}

.social-fixed img {
  width: 2.8rem;
  height: 2.8rem;
}

.carousel__btns {
  display: none;
}

@media only screen and (max-width: 1536px) {
  :root {
    --font-size-3xl: 1.875rem;
    --font-size-2xl: 1.5rem;
    --font-size-xl: 1.125rem;
    --font-size-l: 1.125rem;
    --font-size-m: 1rem;

    --block-max-w: 95%;
  }

  h1 {
    font-size: clamp(1.75rem, 3.9vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1rem, 3.125vw, 2rem);
  }

  h3 {
    font-size: clamp(1rem, 2.7vw, 1.75rem);
  }

  .header__nav {
    gap: 0.75vw;
  }
}

@media only screen and (max-width: 1280px) {
  .footer__logo-wrap {
    justify-content: center;
    margin-bottom: 2rem;
    text-align: center;
  }

  .footer__content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  .footer__menu {
    align-items: center;
  }

  .block-cta {
    padding: 3rem var(--block-px);
  }
}

@media only screen and (max-width: 1024px) {
  :root {
    --block-max-w: 100%;
  }

  .main--overlay::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 50;
    pointer-events: none;
  }

  .header__logo {
    width: max(6.8vw, 3rem);
    height: max(6.8vw, 3rem);
  }

  .header__nav,
  .header__menu-close,
  .header__menu.--active .header__menu-open {
    display: none;
  }

  .header__menu {
    display: block;
  }

  .header__nav-mobile {
    display: grid;
    height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .header__menu.--active .header__menu-close {
    display: block;
  }

  .header__menu.--active .header__nav-mobile {
    height: auto;
    opacity: 1;
  }

  .footer__copyright-inner {
    flex-direction: column;
    text-align: center;
  }

  .block-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2.5rem;
    margin: 4rem 0 6rem;
    text-align: center;
  }

  .article-breadcrumb img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .article-heading,
  .article-wrap {
    padding: 1.75rem;
  }

  .article-heading__wrap,
  .article-heading__wrap-2 {
    gap: 2rem;
  }

  .article-heading__author,
  .article-heading__date {
    gap: 0.5rem;
  }

  .social-fixed a:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  .social-fixed a {
    width: 70px;
    height: 70px;
  }

  .social-fixed img {
    width: 50%;
    height: auto;
  }
}

@media only screen and (max-width: 768px) {
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --font-size-l: 1rem;
    --font-size-m: 1rem;

    --block-py: 48px;
    --block-py-s: 36px;
  }

  .btn-icon img {
    width: 1.25rem;
    height: 1.25rem;
  }

  .carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .carousel__btns {
    display: block;
  }

  .carousel__next,
  .carousel__prev {
    position: absolute;
    z-index: 1;
    bottom: calc(48px + 3rem - 0.625rem);
    height: 1.25rem;
    width: auto;
    cursor: pointer;
  }

  .carousel__next {
    right: 15vw;
  }

  .carousel__prev {
    left: 15vw;
  }

  .carousel__list {
    display: flex !important;
    gap: 1rem !important;
    width: 100%;
    transition: transform 0.24s ease;
  }

  .carousel__item {
    min-width: calc(100% - 1rem);
  }

  .carousel__btns + .carousel__list .carousel__item {
    margin: 0 16px;
    min-width: calc(100% - 1rem - 32px);
  }

  .carousel__btns + .carousel__list .carousel__item:nth-child(1) {
    margin: 0 16px 0 20px;
  }

  .carousel__btns + .carousel__list .carousel__item:last-child {
    margin: 0 16px 0 20px;
  }

  .carousel__dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 1.5rem;
  }

  .carousel__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-gray-3);
    box-shadow: inset var(--style-shadow);
    cursor: pointer;
    transition: var(--style-transition);
  }

  .carousel__dot.carousel__dot--active {
    background-color: var(--color-primary);
    box-shadow: var(--style-shadow);
  }

  .contact-form {
    border-radius: 0 25px 0 25px;
  }

  .contact-form__item-group {
    flex-direction: column;
  }

  .contact-form__item-group .contact-form__item {
    width: 100%;
  }

  .contact-form__item-group .contact-form__radios {
    justify-content: center;
  }

  .footer__logo,
  .footer__info,
  .footer__menu-list {
    display: none;
  }

  .footer__menu-social a {
    width: 3.125rem;
    height: 3.125rem;
  }

  .footer__menu-social img {
    height: 2rem;
  }

  .block-nav {
    position: relative;
    margin-bottom: 10rem;
  }

  .block-nav::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5rem;
    width: 85%;
    border-bottom: 3px dashed var(--color-gray-3);
  }

  .block-intro::after {
    margin: 2.5rem auto;
  }

  .article-breadcrumb {
    flex-direction: column;
    align-items: start;
  }

  .article-breadcrumb__current {
    margin-left: 1.75rem;
  }
}

@media only screen and (max-width: 576px) {
  .contact-form input[type="text"]::placeholder,
  .contact-form input[type="email"]::placeholder {
    color: var(--color-gray-3);
  }

  .contact-form textarea::placeholder {
    color: var(--color-gray-3);
    text-align: center;
  }

  .contact-form__item.--mobile {
    display: block;
  }

  .contact-form__item.--desktop {
    display: none;
  }

  .contact-form__item {
    border-radius: 0 5px 0 5px;
  }

  .contact-form__title {
    display: none;
  }

  .block-cta {
    gap: 1.5rem;
  }

  .block-cta__btns {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer__copyright {
    font-size: 0.75rem;
  }

  .article-heading,
  .article-wrap {
    padding: 1.75rem 0;
  }

  .article-heading h2 {
    font-size: 1.25rem;
  }

  .article-heading__social img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .article-heading__social {
    gap: 3rem;
  }

  .article-heading__deco {
    width: 1.25rem;
    height: 1.25rem;
  }

  .social-fixed a {
    width: 50px;
    height: 50px;
  }
}

@media only screen and (max-width: 420px) {
  :root {
    --font-size-2xl: 1rem;
    --font-size-xl: 1rem;
    --font-size-m: 0.875rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .header__logo,
  .header__subtitle {
    display: none;
  }

  .block-nav {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
}

/* 首頁 */

.h-bg {
  position: relative;
}

.h-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 200px 0 200px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
  z-index: -1;
}

.h-title {
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
}

.h-title__deco {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 24px;
  border-radius: 0 10px 0 10px;
  background: var(--color-gray-3);
}

.h-title__main {
  color: var(--color-text-soft);
}

.h-title__sub {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.h-hero {
  display: flex;
  align-items: center;
  gap: 48px;
}

.h-hero__content {
  flex-grow: 1;
  flex-shrink: 0;
}

.h-hero__subtitle {
  margin: 52px 0 48px 0;
  color: var(--color-primary);
}

.h-hero__btns {
  display: flex;
  gap: 2.5rem;
}

.h-hero__cover {
  display: flex;
  align-items: center;
  width: 75%;
  aspect-ratio: 12 / 9;
  border-radius: 100px;
  overflow: hidden;
}

.h-hero__cover img {
  width: 100%;
  height: 100%;
}

.h-slideshow {
  position: relative;
  width: 75%;
  aspect-ratio: 12 / 9;
  border-radius: 100px;
  overflow: hidden;
}

.h-slideshow__slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.h-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-slideshow__slide.--active {
  opacity: 1;
  z-index: 1;
}

.h-service::before {
  background-image: url("/static/assets/images/background-2.webp");
}

.h-service__list {
  display: flex;
  gap: 10%;
}

.h-service__list.--bottom {
  justify-content: flex-end;
  margin-top: 5rem;
}

.h-service__item {
  display: block;
  position: relative;
  width: 22.2%;
  min-height: 350px;
  padding: 40px 28px;
  margin-bottom: calc(var(--font-size-l) + 4px);
  border-radius: 0 25px 0 25px;
  background: var(--color-bg-2);
  box-shadow: var(--style-shadow);
}

.h-service__item.--mobile {
  display: none;
}

.h-service__item-img {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.h-service__item-title {
  border-bottom: 3px dashed var(--color-primary);
  padding: 16px 0;
  margin-bottom: 16px;
  font-size: var(--font-size-xl);
  font-weight: 500;
  text-align: center;
}

.h-service__item-desc {
  line-height: 2.25em;
  text-align: center;
}

.h-service__item-tag {
  position: absolute;
  left: 50%;
  bottom: calc(-1em - 4px);
  transform: translateX(-50%);
  width: fit-content;
  padding: 8px 16px;
  border-radius: 5px;
  background: var(--color-primary);
  color: var(--color-bg-2);
  font-size: var(--font-size-l);
  font-weight: 500;
  box-shadow: var(--style-shadow);
}

.h-news__item {
  display: flex;
  align-items: start;
  gap: 24px;
  margin-left: 96px;
}

.h-news__item.--top {
  padding-bottom: 3rem;
}

.h-news__item.--bottom {
  padding-top: 3rem;
}

.h-news__title {
  padding: 4px 3rem;
  background: var(--color-secondary);
  font-size: var(--font-size-2xl);
  font-weight: 500;
}

.h-news__title,
.h-news__btn {
  border-radius: 0 20px 0 20px;
}

.h-news__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 2.5rem;
}

.h-news__list {
  width: 100%;
}

.h-news__list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1em 0;
  border-bottom: 1px solid var(--color-gray-1);
}

.h-news__date {
  color: var(--color-gray-1);
}

.h-contact::before {
  background-image: url("/static/assets/images/background.webp");
}

.h-contact__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.h-contact__content {
  width: 70%;
}

.h-contact__subtitle {
  margin: 0.5em 0 2em 0;
  color: var(--color-gray-1);
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.h-contact__btns {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
}

@media only screen and (max-width: 1536px) {
  .h-service__item {
    width: 24%;
  }

  .h-service__item-title {
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 1366px) {
  .h-contact__inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .h-contact__inner > * {
    width: 100%;
  }

  .h-contact__content {
    text-align: center;
  }

  .h-contact__btns {
    white-space: wrap;
    justify-content: center;
  }
}

@media only screen and (max-width: 1280px) {
  .h-slideshow {
    border-radius: 50px;
  }

  .h-bg::before {
    border-radius: 0 50px 0 50px;
  }

  .h-service__list {
    gap: 3%;
  }

  .h-service__item {
    width: 33.3%;
  }

  .h-news__title {
    padding: 0.75rem 2rem;
  }

  .h-news__item {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
  }

  .h-news__item.--top {
    border-bottom: 3px dashed var(--color-primary);
  }

  .h-news__content {
    align-items: center;
    gap: 1.5rem;
    width: 100%;
  }

  .h-news__list a {
    padding: 1.25em 0;
    border-bottom: 2px dashed var(--color-gray-2);
  }

  .h-news__date {
    color: var(--color-gray-2);
  }
}

@media only screen and (max-width: 1024px) {
  .h-hero__subtitle {
    margin: 2rem 0;
  }

  .h-hero__btns {
    gap: 1.5rem;
  }

  .h-title__deco,
  .h-title__seperate {
    display: none;
  }

  .h-title {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .h-title__sub {
    text-align: center;
  }
}

@media only screen and (max-width: 768px) {
  .h-hero {
    position: relative;
    height: 400px;
    padding: 0;
    overflow: hidden;
  }

  .h-hero__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
  }

  .h-hero__content h1 {
    color: #fff;
  }

  .h-hero__btns {
    justify-content: center;
  }

  .h-slideshow {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .h-service__list.--bottom {
    display: none;
  }

  .h-service__item.--mobile {
    display: block;
  }

  .h-news__list a {
    flex-direction: column-reverse;
    gap: 0.5rem;
    line-height: 1.8;
  }
}

@media only screen and (max-width: 576px) {
  .h-contact__btns {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

/* 關於我們 */

.ab__title {
  display: flex;
  justify-content: center;
  width: 80%;
  margin: 0 auto 1.5rem auto;
  padding: 1.25rem;
  border-bottom: 3px dashed var(--color-gray-3);
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

.ab__intro {
  text-align: center;
}

.ab__intro p:not(:last-child) {
  margin-bottom: 2.5em;
}

.ab-lawyer {
  display: flex;
  align-items: center;
  gap: 5%;
  position: relative;
  padding: 3rem 5%;
}

.ab-lawyer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 50px 0 50px;
  background-image: url("/static/assets/images/background-2.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
  box-shadow: var(--style-shadow);
}

.ab-lawyer__img {
  width: 40%;
  aspect-ratio: 3 / 4;
  border-radius: 0 50px 0 30px;
  overflow: hidden;
}

.ab-lawyer__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-lawyer__content > div:not(:last-child) {
  padding-bottom: 3rem;
  border-bottom: 3px dashed var(--color-primary);
}

.ab-lawyer__content > div:not(:first-child) {
  padding-top: 3rem;
}

.ab-lawyer__content ul {
  margin-left: 2em;
  line-height: 1.8;
}

.ab-lawyer__title {
  color: var(--color-text-soft);
}

.ab-lawyer__title .ab-lawyer__deco {
  opacity: 0;
}

.ab-lawyer__degree {
  display: flex;
  margin-top: 0.5em;
  color: var(--color-gray-1);
}

.ab-lawyer__subtitle {
  width: fit-content;
  padding: 0.25em 0.5em;
  margin-bottom: 2rem;
  border-radius: 0 15px 0 15px;
  background: var(--color-secondary);
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.ab-lawyer__exp {
  display: flex;
  justify-content: space-between;
}

.ab__btn {
  margin: 3rem auto 0 auto;
}

@media only screen and (max-width: 1280px) {
  .ab-lawyer {
    flex-direction: column;
    gap: 2.5rem;
  }

  .ab-lawyer__heading {
    text-align: center;
  }

  .ab-lawyer__title .ab-lawyer__deco {
    opacity: 1;
  }

  .ab-lawyer__degree .ab-lawyer__deco {
    display: none;
  }

  .ab-lawyer__degree {
    flex-direction: column;
    font-weight: 500;
  }

  .ab-lawyer__subtitle {
    width: 100%;
    text-align: center;
    font-size: 1.25rem;
  }
}

@media only screen and (max-width: 768px) {
  .ab-lawyer::before {
    border-radius: 0 25px 0 25px;
  }

  .ab-lawyer__img {
    width: 70%;
  }

  .ab-lawyer__exp {
    flex-direction: column;
  }
}

@media only screen and (max-width: 576px) {
  .ab__title {
    flex-direction: column;
    align-items: center;
  }

  .ab__title-seperate {
    display: none;
  }

  .ab-lawyer {
    padding: 2rem 5%;
  }

  .ab-lawyer__content > div:not(:last-child) {
    padding-bottom: 2rem;
  }

  .ab-lawyer__content > div:not(:first-child) {
    padding-top: 2rem;
  }
}

/* 服務項目 */

.s-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3%;
  padding: 3rem 0;
}

.s-item,
.s-item__title {
  border: 5px solid var(--color-secondary);
}

.s-item {
  position: relative;
  padding: 4.5rem 1rem;
  margin-bottom: 5rem;
  border-radius: 50px;
}

.s-item__title,
.s-item__btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.s-item__title {
  top: calc(-1em - 0.25em);
  min-width: 22.5rem;
  padding: 0.25em 2rem;
  border-radius: 20px;
  background: var(--color-bg);
  text-align: center;
}

.s-item__img {
  display: block;
  width: min(100%, 150px);
  height: auto;
  margin: 0 auto 1.5rem auto;
}

.s-item__content {
  text-align: center;
  line-height: 2;
}

.s-item__btn {
  bottom: calc(-1em - 0.75rem);
  white-space: nowrap;
}

@media only screen and (max-width: 1280px) {
  .s-list {
    row-gap: 2rem;
    padding-bottom: 0;
  }

  .s-item {
    border-radius: 20px;
  }

  .s-item__title {
    white-space: nowrap;
    min-width: 9.375rem;
    border-radius: 10px;
  }
}

@media only screen and (max-width: 768px) {
  .s-list {
    padding-bottom: 6rem;
  }

  .s-item {
    padding-bottom: 3rem;
  }

  .s-item__title {
    font-size: 1.25rem;
  }

  .s-item__btn {
    bottom: calc(-2em - 1.5rem - 1.5rem);
  }
}

/* 服務項目 - 內頁 */

.si-intro,
.si__title {
  border: 5px solid var(--color-secondary);
}

.si__title {
  padding: 0.25em 2em;
  border-radius: 20px;
  background: var(--color-bg);
  text-align: center;
}

.si-intro {
  position: relative;
  padding: 4rem 1rem 2rem 1rem;
  margin-top: 4rem;
  border-radius: 50px;
}

.si-intro .si__title {
  position: absolute;
  left: 50%;
  top: calc(-1em - 0.25em);
  transform: translateX(-50%);
  white-space: nowrap;
}

.si-intro__img {
  display: block;
  width: min(100%, 150px);
  height: min(100%, 150px);
  margin: 0 auto 1.5rem auto;
}

.si-intro__content {
  text-align: center;
  line-height: 2;
}

.si-faq li {
  list-style-position: inside;
}

.si-faq .si__title {
  width: fit-content;
  margin: 0 auto 3rem auto;
}

.si-faq__list {
  padding: 0 8%;
}

.si-faq__item {
  border-bottom: 3px solid var(--color-gray-3);
}

.si-faq__heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  cursor: pointer;
}

.si-faq__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.25rem;
  height: 6.25rem;
  background: var(--color-primary);
  border-radius: 50%;
}

.si-faq__icon img {
  width: 3.125rem;
  height: 3.125rem;
}

.si-faq__question,
.si-faq__sign {
  color: var(--color-text-soft);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  transition: var(--style-transition);
}

.si-faq__question {
  position: relative;
  flex-grow: 1;
}

.si-faq__question::after {
  content: "";
  display: block;
  position: absolute;
  width: 95%;
  bottom: -1.5rem;
  border-bottom: 3px dashed transparent;
  transition: var(--style-transition);
}

.si-faq__answer {
  max-height: 0;
  margin-left: calc(6.25rem + 1rem);
  text-align: justify;
  line-height: 2;
  overflow: hidden;
  transition: var(--style-transition);
}

.si-faq__heading.--active + .si-faq__answer {
  height: fit-content;
  max-height: 100rem;
  padding: 0.5rem 0 1.5rem 0;
}

.si-faq__heading.--active .si-faq__question,
.si-faq__heading.--active .si-faq__sign {
  color: var(--color-primary);
}

.si-faq__heading.--active .si-faq__question::after {
  border-bottom: 3px dashed var(--color-gray-2);
}

.si__btn {
  margin: 3rem auto 0 auto;
}

@media only screen and (max-width: 1024px) {
  .si-faq__icon {
    width: clamp(2.25rem, 7.8vw, 5rem);
    height: clamp(2.25rem, 7.8vw, 5rem);
  }

  .si-faq__icon img {
    width: 45%;
    height: auto;
  }

  .si-faq__answer {
    margin-left: calc(clamp(2.25rem, 7.8vw, 5rem) + 1rem);
  }
}

@media only screen and (max-width: 768px) {
  .si-intro {
    border-radius: 20px;
  }

  .si__title {
    border-radius: 10px;
  }
}

@media only screen and (max-width: 576px) {
  .si__title {
    font-size: 1.25rem;
  }

  .si-faq .si__title {
    width: 100%;
  }
}

@media only screen and (max-width: 420px) {
  .si__title {
    padding: 0.25em 1em;
  }
}

/* 收費標準 */

.fee__content {
  line-height: 2;
}

.fee__note {
  margin-bottom: 0.5rem;
  color: var(--color-error);
  font-weight: 500;
  text-align: end;
}

.fee-table ol {
  margin-left: 2em;
  text-align: justify;
}

.fee-table {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-weight: 500;
  overflow: hidden;
}

.fee-table__inner {
  width: 100%;
  border-collapse: collapse;
}

.fee-table thead {
  background: var(--color-secondary);
}

.fee-table thead,
.fee-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.fee-table thead th:not(:last-child),
.fee-table tbody tr td:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.fee-table thead th {
  padding: 1.5rem 1.5rem;
}

.fee-table tbody td {
  padding: 1.5rem;
}

.fee-table__sc {
  color: var(--color-gray-1);
}

@media only screen and (max-width: 768px) {
  .fee__note {
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .fee-table thead th,
  .fee-table tbody td {
    padding: 1.5rem 1rem;
  }
}

@media only screen and (max-width: 420px) {
  .fee-table thead th,
  .fee-table tbody td {
    padding: 1.5rem 0.5rem;
  }
}

/* 聯絡我們 */

.contact {
  display: flex;
  gap: 2%;
}

.contact__content {
  flex-shrink: 0;
  width: 46%;
}

.contact__text {
  margin: 1rem 0 2rem 0;
  line-height: 2;
}

.contact__list .contact__item:not(:last-child) {
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background: var(--color-secondary);
}

.contact__icon img {
  width: 1.875rem;
  height: 1.875rem;
}

@media only screen and (max-width: 1280px) {
  .contact {
    flex-direction: column;
    gap: 3rem;
  }

  .contact__content {
    width: 100%;
  }
}

/* 案例實績 */

.c .pagination {
  margin-top: 6rem;
}

.c__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 12rem;
  column-gap: 3rem;
}

.c-item {
  position: relative;
}

.c-item:not(:nth-last-child(-n + 3))::after {
  content: "";
  position: absolute;
  bottom: -6rem;
  display: block;
  border-bottom: 3px dashed var(--color-gray-3);
}

.c-item:nth-child(3n - 2)::after {
  right: calc(-3rem + 3px);
  width: 70%;
}

.c-item:nth-child(3n - 1)::after {
  width: 100%;
}

.c-item:nth-child(3n)::after {
  left: calc(-3rem + 3px);
  width: 70%;
}

.c-item__inner {
  position: relative;
  height: 100%;
  border: 5px solid var(--color-secondary);
  border-radius: 20px;
  padding: 2.5rem 2rem;
}

.c-item__tag,
.c-item__btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.c-item__tag {
  top: calc(-1em - 0.5rem);
  min-width: 12.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  background: var(--color-success);
  text-align: center;
  color: var(--color-bg-2);
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.c-item__img {
  border-radius: 20px;
  aspect-ratio: 5 / 7;
  overflow: hidden;
}

.c-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-item__category {
  width: fit-content;
  margin: 1.5rem auto 1rem;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  background: var(--color-secondary);
  font-size: var(--font-size-l);
  font-weight: 500;
}

.c-item__title,
.c-item__desc {
  text-align: center;
  line-height: 1.8;
}

.c-item__title {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-xl);
  font-weight: 500;
}

.c-item__btn {
  bottom: calc(-1em - 0.75rem);
}

@media only screen and (max-width: 1280px) {
  .c__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }

  .c-item:not(:nth-last-child(-n + 2))::after {
    content: "";
    position: absolute;
    bottom: -6rem;
    display: block;
    border-bottom: 3px dashed var(--color-gray-3);
  }

  .c-item:nth-child(3n)::after {
    left: unset;
  }

  .c-item:nth-child(2n-1)::after {
    right: calc(-1rem + 3px);
    width: 80%;
  }

  .c-item:nth-child(2n)::after {
    left: calc(-1rem + 3px);
    width: 80%;
  }
}

@media only screen and (max-width: 768px) {
  .c__list {
    grid-template-columns: 1fr;
  }

  .c-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: unset;
    right: unset;
    bottom: -6rem;
    display: block;
    width: 100%;
    border-bottom: 3px dashed var(--color-gray-3);
  }

  .c-item__tag {
    min-width: auto;
  }
}

@media only screen and (max-width: 576px) {
  .c .pagination {
    margin-top: 4rem;
  }

  .c-item__inner {
    padding: 2rem 1.5rem;
  }

  .c-item__category {
    padding: 0.25rem 1rem;
  }
}

/* 文章專欄 */

.a .pagination {
  margin-top: 5rem;
}

.a__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 12rem;
  column-gap: 3rem;
}

.a-item {
  position: relative;
}

.a-item:not(:nth-last-child(-n + 3))::after {
  content: "";
  position: absolute;
  bottom: -6rem;
  display: block;
  border-bottom: 3px dashed var(--color-gray-3);
}

.a-item:nth-child(3n - 2)::after {
  right: calc(-3rem + 3px);
  width: 70%;
}

.a-item:nth-child(3n - 1)::after {
  width: 100%;
}

.a-item:nth-child(3n)::after {
  left: calc(-3rem + 3px);
  width: 70%;
}

.a-item__heading,
.a-item__title,
.a-item__desc {
  width: 90%;
  margin: 0 auto;
}

.a-item__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-l);
  font-weight: 500;
}

.a-item__tag {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  background: var(--color-secondary);
}

.a-item__date {
  color: var(--color-gray-2);
}

.a-item__cover {
  margin: 1.25rem 0;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.a-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a-item__title {
  margin-bottom: 1.25rem;
  font-size: var(--font-size-xl);
  font-weight: 500;
}

@media only screen and (max-width: 1536px) {
  .a-item__title {
    font-size: var(--font-size-2xl);
  }
}

@media only screen and (max-width: 1280px) {
  .a__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }

  .a-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -6rem;
    display: block;
    border-bottom: 3px dashed var(--color-gray-3);
  }

  .a-item:nth-child(3n)::after {
    left: unset;
  }

  .a-item:nth-child(2n-1)::after {
    right: calc(-1rem + 3px);
    width: 80%;
  }

  .a-item:nth-child(2n)::after {
    left: calc(-1rem + 3px);
    width: 80%;
  }

  .a-item__heading,
  .a-item__title,
  .a-item__desc {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .a__list {
    grid-template-columns: 1fr;
    row-gap: 8rem;
  }

  .a-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: unset;
    right: unset;
    bottom: -4rem;
    display: block;
    width: 100%;
    border-bottom: 3px dashed var(--color-gray-3);
  }
}

@media only screen and (max-width: 576px) {
  .a-item__title {
    margin-bottom: 0.75rem;
  }
}

@media only screen and (max-width: 420px) {
  .a-item__tag {
    padding: 0.25rem 0.5rem;
  }
}

/* 文章專欄 - 內頁 */

.ai-content__cover {
  margin: 0 auto;
  width: 73%;
  aspect-ratio: 9 / 5;
  border-radius: 20px;
  overflow: hidden;
}

.ai-content__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-content__text {
  margin: 5rem 0 3rem;
  line-height: 2;
}

.ai-content__text li {
  list-style-position: inside;
}

.ai .article-return {
  justify-content: center;
}

@media only screen and (max-width: 1536px) {
  .ai-content__cover {
    width: min(100%, 950px);
  }

  .ai-content__text {
    margin: 2.5rem 0 0;
  }
}

/* 案例實績 - 內頁 */

.ci-content__inner {
  display: flex;
  align-items: start;
  gap: 2rem;
}

.ci-content__image {
  flex-shrink: 0;
  width: 40%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
}

.ci-content__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-content__info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.ci-content__info-row {
  display: flex;
  justify-content: space-between;
}

.ci-content__info-row > div {
  width: 50%;
}

.ci-item {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.ci-item.--col {
  align-items: start;
  flex-direction: column;
}

.ci-item__tag {
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-bg-2);
  font-size: var(--font-size-l);
  font-weight: 500;
}

.ci-item__strong {
  font-size: var(--font-size-l);
  font-weight: 500;
}

.ci-item__para {
  margin-left: 1rem;
  text-align: justify;
  line-height: 2;
  word-wrap: break-word; /* 斷長字 */
  word-break: break-word; /* 支援更多瀏覽器，強制換行 */
  overflow-wrap: break-word; /* 標準寫法 */
}

.ci .article-return {
  justify-content: end;
}

@media only screen and (max-width: 1280px) {
  .ci-content__inner {
    flex-direction: column;
  }

  .ci-content__image {
    width: min(100%, 600px);
    margin: 0 auto;
  }

  .ci-item__para {
    margin: 0;
  }
}

@media only screen and (max-width: 1024px) {
  .ci-content__info-row {
    flex-direction: column;
  }

  .ci-content__info-row > div {
    width: 100%;
  }

  .ci-content__info-row,
  .ci-content__info {
    gap: 2rem;
  }

  .ci-item {
    gap: 1rem;
  }

  .ci-item.--col {
    gap: 1.25rem;
  }

  .ci .article-return {
    justify-content: center;
  }
}

.success-message {
  margin-top: 20px;
  color: green;
  font-weight: bold;
  font-size: 1.2rem;
}

/* 防止圖片拖拉 */
img {
  -webkit-user-drag: none; /* 支援 Chrome/Safari */
  user-select: none; /* 防止選取 */
  -webkit-user-select: none;
  pointer-events: auto;
}
