@charset "UTF-8";
/*
 * 共用頁尾樣式
 *
 * 規則由 css/index_v3.css（廠商設計稿）中 .site-footer__* 抽出，內容未修改，
 * 僅補上元件自身需要的 reset 與變數，使其可獨立用於未載入 index_v3_reset.css 的頁面。
 *
 * 搭配：lib/_Footer.php（結構）
 */

/* 元件自身的 reset，以 :where() 歸零特異度 */
:where(.site-footer) *,
:where(.site-footer) *::before,
:where(.site-footer) *::after {
  box-sizing: border-box;
}

:where(.site-footer) a {
  color: inherit;
  text-decoration: none;
}

:where(.site-footer) h2,
:where(.site-footer) p,
:where(.site-footer) dl,
:where(.site-footer) dd {
  margin: 0;
}

:where(.site-footer) img {
  display: block;
  max-width: 100%;
  max-height: none;
}

/* ── 以下為設計稿原樣抽出 ────────────────────────────────── */

.site-footer {
  background: #fff;
  color: #646a7e;
}

.site-footer__main {
  display: flex;
  width: min(95%, 1400px);
  min-height: 450px;
  align-items: flex-start;
  /* justify-content: center; */
  margin: 0 auto;
  padding: 100px 0 70px;
}

.site-footer__brand {
  margin-right: 8%;
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 22px;
}

.site-footer__logo img {
  width: 184px;
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__socials a {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
}

.site-footer__socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__nav {
  margin-right: 13%;
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 34px;
  color: #646a7e;
}

.site-footer__nav h2,
.site-footer__contact h2 {
  color: #836c99;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.site-footer__nav a {
  color: #6c758b;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.5s ease;
}

.site-footer__nav a:hover {
  color: #8d6abc;
}

.site-footer__contact {
  flex: 0 0 330px;
  gap: 28px;
}

.site-footer__contact dl {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.site-footer__contact dt {
  margin-bottom: 4px;
  color: #646a7e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.site-footer__contact dd,
.site-footer__contact a {
  color: #646a7e;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-footer__copyright {
  min-height: 64px;
  padding: 22px max(24px, calc((100% - 1510px) / 2)) 20px;
  border-top: 1px solid #ececec;
  color: #afafaf;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

@media (max-width: 1280px) {
  .site-footer__main {
  justify-content: space-between;
  }

  .site-footer__brand {
  margin-right: 0;
  }

  .site-footer__nav {
  margin-right: 0;
  }

}

@media (max-width: 900px) {
  .site-footer__main {
  display: flex;
      width: 90%;
      min-height: 0;
      flex-wrap: wrap;
      gap: 0;
      padding: 36px 0 22px;
  }

  .site-footer__brand {
  display: flex;
      flex: 0 0 100%;
      align-items: flex-start;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 16px;
  }

  .site-footer__logo {
  margin-bottom: 0;
  }

  .site-footer__logo img {
  width: 124px;
  }

  .site-footer__socials {
  gap: 9px;
  }

  .site-footer__socials a {
  width: 34px;
      height: 34px;
  }

  .site-footer__nav {
  display: none;
  }

  .site-footer__contact {
  flex: 0 0 100%;
      gap: 18px;
  }

  .site-footer__contact h2 {
  font-size: 16px;
  }

  .site-footer__contact dl {
  gap: 16px;
  }

  .site-footer__contact dt {
  margin-bottom: 3px;
      font-size: 11px;
  }

  .site-footer__contact dd,
  .site-footer__contact a {
  font-size: 17px;
      line-height: 1.15;
  }

  .site-footer__copyright {
  min-height: 62px;
      padding: 16px 28px 18px;
      font-size: 9px;
  }

}

/* ── 站方整合：中和 mycss.css 的全域 a:hover（僅頁尾範圍） ──────────
   設計稿本來就要變色的 .site-footer__nav a:hover 以更高特異度保留。 */
.site-footer a:hover {
  color: inherit;
}

.site-footer .site-footer__nav a:hover {
  color: #8d6abc;
}
