@charset "UTF-8";
/* ============================================================
   footer 樣式模組（由 nstyle.css 抽出）
   - 需要的字級變數一併帶入，讓本檔可獨立使用（不必載入 nstyle.css）
   - 對應結構：nfooter.php / nfooter.html
   ============================================================ */
:root {
  --font-title-sm: 24px;
  --font-body-lg: 20px;
  --font-body-md: 16px;
  --font-body-sm: 14px;
}

@media (max-width: 768px) {
  :root {
    --font-title-sm: 20px;
    --font-body-lg: 18px;
    --font-body-md: 16px;
    --font-body-sm: 14px;
  }
}

.nfooter {
  background: linear-gradient(to right top, #fff 0%, #f6f8fe 100%);
  padding: 72px 0 36px;
  box-shadow: 0 -10px 40px rgba(47, 60, 222, 0.15);
  border-top: 2px solid white;
}
.nfooter__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
.nfooter__main {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 767.98px) {
  .nfooter__main {
    justify-content: center;
  }
}
.nfooter__brand {
  flex: 0 0 auto;
}
.nfooter__brand img {
  width: 100px;
}
.nfooter__logo {
  display: block;
  width: 130px;
  height: auto;
}
@media (max-width: 767.98px) {
  .nfooter__logo {
    width: 80px;
  }
}
.nfooter__content {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: center;
  gap: 2rem;
}
@media (max-width: 767.98px) {
  .nfooter__content {
    flex-direction: column;
    align-items: center;
  }
}
.nfooter__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: -moz-fit-content;
  width: fit-content;
}
@media (max-width: 991.98px) {
  .nfooter__cols {
    width: 100%;
  }
}
.nfooter__col {
  flex: 0 1 auto;
}
.nfooter__col-title {
  margin: 0 0 18px;
  color: #1d4ec9;
  font-size: var(--font-body-lg);
  font-weight: 700;
}
.nfooter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nfooter__list a {
  color: #565656;
  font-size: var(--font-body-md);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nfooter__list a:hover {
  color: #1d4ec9;
}
.nfooter__info {
  flex: 0 0 auto;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nfooter__hours {
  margin: 0;
  color: #565656;
  font-size: var(--font-body-md);
  font-weight: 500;
  line-height: 1.8;
}
.nfooter__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #1d4ec9;
  font-size: var(--font-title-sm);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nfooter__phone:last-child {
  margin-bottom: 0;
}
.nfooter__phone:hover {
  color: #5a81f4;
}
.nfooter__social {
  display: flex;
  gap: 12px;
}
.nfooter__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f6f8fe;
  border: 1px solid #d3deff;
  transition: all 0.2s ease;
}
.nfooter__social-link:hover {
  transform: translateY(-2px);
  background: #d3deff;
}
.nfooter__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid #ebebeb;
}
.nfooter__copyright {
  margin: 0;
  color: #7d7d7d;
  font-size: var(--font-body-sm);
}
.nfooter__policy {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.nfooter__policy li:not(:last-child)::after {
  content: "｜";
  margin: 0 12px;
  color: #d9d9d9;
}
.nfooter__policy a {
  color: #1d4ec9;
  font-size: var(--font-body-sm);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nfooter__policy a:hover {
  color: #5a81f4;
}

@media (max-width: 991.98px) {
  .nfooter__main {
    flex-wrap: wrap;
    gap: 32px;
  }
  .nfooter__brand {
    flex: 1 1 100%;
    text-align: center;
  }
  .nfooter__logo {
    margin: 0 auto;
  }
  .nfooter__info {
    flex: 1 1 100%;
  }
}
@media (max-width: 767.98px) {
  .nfooter {
    padding: 48px 0 28px;
    text-align: center;
  }
  .nfooter__info {
    align-items: center;
  }
  .nfooter__phone {
    justify-content: center;
  }
  .nfooter__social {
    justify-content: center;
  }
  .nfooter__bottom {
    flex-direction: column;
    text-align: center;
  }
  .nfooter__policy {
    justify-content: center;
  }
  .nfooter__cols {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nfooter__col {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-bottom: 1px solid #ebebeb;
  }
  .nfooter__col .nfooter__col-title {
    position: relative;
    margin: 0;
    padding: 16px 28px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
  .nfooter__col .nfooter__col-title::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
  }
  .nfooter__col.is-open .nfooter__col-title::after {
    transform: translateY(-30%) rotate(225deg);
  }
  .nfooter__col .nfooter__list {
    align-items: center;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nfooter__col.is-open .nfooter__list {
    max-height: 420px;
    gap: 14px;
    padding: 4px 0 18px;
    opacity: 1;
  }
}
