@charset "utf-8";

/* =============================================
   푸터 공통
   ============================================= */
.one-footer {
  background-color: #252525;
  color: rgba(255, 255, 255, 0.45);
}

/* =============================================
   2컬럼 레이아웃
   좌: 로고 / 우: 정보 + SNS
   ============================================= */
.one-ft-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 36px var(--typeB-space-safe);
}

/* ── 좌: 로고 */
.one-ft-lf {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.one-ft-logo-link {
  display: block;
}

.one-ft-logo-link img {
  display: block;
  width: 120px;
  height: auto;
}

/* ── 우: 정보 + SNS */
.one-ft-rg {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── 텍스트 정보 묶음 */
.one-ft-info-wrap {
  flex: 1;
  min-width: 0;
}

/* 사업자 정보 */
.one-ft-info {
  margin: 0 0 8px;
}

.one-ft-info dd {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  word-break: keep-all;
  margin: 0;
}

/* 카피라이트 */
.one-ft-copy {
  font-size: 12px;
  color: #6b6b6b;
  margin: 0;
}

/* ── SNS 아이콘 */
.one-ft-sns {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.one-ft-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s;
}

.one-ft-sns a:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.one-ft-sns a img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.one-ft-family {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  font-size: 13px;
}
 
/* ── 토글 버튼 (pill) ───────────────────────── */
.one-ft-family__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;              /* 터치 영역 확보 */
  padding: 0 6px 0 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50em;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  list-style: none;              /* 기본 삼각형 마커 제거 */
  transition: border-color 0.2s, color 0.2s;
}
 
/* 사파리 기본 마커 제거 */
.one-ft-family__btn::-webkit-details-marker { display: none; }
 
.one-ft-family__btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
 
.one-ft-family__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
 
.one-ft-family__label {
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
 
/* ── + / − 아이콘 (CSS 로만 그림) ────────────── */
.one-ft-family__icon {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}
 
.one-ft-family__icon::before,
.one-ft-family__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}
 
.one-ft-family__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
 
/* 열리면 + 가 − 로 */
.one-ft-family[open] .one-ft-family__icon { background: rgba(255, 255, 255, 0.2); }
.one-ft-family[open] .one-ft-family__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
 
/* ── 드롭다운 목록 (위로 열림) ───────────────── */
.one-ft-family__list {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);      /* 푸터 최하단이라 위로 폅니다 */
  z-index: 5;
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  list-style: none;
  background: #333;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
 
.one-ft-family__list li { margin: 0; }
 
.one-ft-family__list a {
  display: flex;
  align-items: center;
  min-height: 44px;              /* 터치 영역 확보 */
  padding: 0 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
 
.one-ft-family__list a:hover,
.one-ft-family__list a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
 
/* 현재 보고 있는 언어 */
.one-ft-family__list a.is-current {
  color: #fff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
}
 
.one-ft-family__list a.is-current::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: currentColor;
}
 
 
/* =============================================
   모바일 (≤ 639px)
   ============================================= */
@media (max-width: 639px) {
 
  .one-ft-family {
    width: 100%;
    order: -1;                   /* 푸터 세로 배치에서 맨 위로 */
  }
 
  /* absolute 를 풀어 아래 내용을 밀어냅니다.
     푸터 하단에서 위로 펼치면 주소·카피라이트를 덮어버립니다. */
  .one-ft-family__list {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
}
 
 
/* =============================================
   모션 최소화 설정 존중
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .one-ft-family__icon,
  .one-ft-family__icon::before,
  .one-ft-family__icon::after { transition: none; }
}

/* =============================================
   Astra 스크롤 탑 버튼
   ============================================= */
#ast-scroll-top {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--main-color);
  border: none;
  border-radius: 50%;
  position: fixed;
  right: 28px;
  bottom: 2em;
  z-index: 998;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

#ast-scroll-top span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ast-scroll-top.ast-visible {
  display: flex !important;
}

#ast-scroll-top:hover {
  opacity: 0.5;
}

#ast-scroll-top .ast-arrow-svg {
  width: 12px;
  fill: #fff;
  color: #fff;
  transform: rotate(180deg) scale(1.2);
}

/* =============================================
   태블릿 이하 (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .one-ft-inner {
    gap: 28px;
    padding: 28px var(--typeB-space-safe);
  }

  .one-ft-logo-link img {
    width: 100px;
  }

  .one-ft-sns {
    flex-direction: row;
    gap: 8px;
  }

  .one-ft-sns a {
    width: 38px;
    height: 38px;
  }

  .one-ft-sns a img {
    width: 18px;
    height: 18px;
  }
}

/* =============================================
   모바일 (≤ 639px)
   ============================================= */
@media (max-width: 639px) {

  /* 전체: 1컬럼 세로 정렬 */
  .one-ft-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* 로고 */
  .one-ft-lf {
    width: 100%;
  }

  .one-ft-logo-link img {
    width: 100px;
  }

  /* 우측 영역: 세로 정렬 */
  .one-ft-rg {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* 텍스트 */
  .one-ft-info dd {
    font-size: 12px;
    line-height: 1.8;
  }

  .one-ft-copy {
    font-size: 11px;
  }

  /* SNS: 가로 정렬 */
  .one-ft-sns {
    flex-direction: row;
    gap: 8px;
  }

  .one-ft-sns a,
  .one-ft-sns a img {
    width: 42px;
    height: 42px;
  }

  /* 스크롤 탑 버튼 */
  #ast-scroll-top {
    width: 42px;
    height: 42px;
    right: var(--typeB-space-safe);
    bottom: 5em;
  }
}