/* 공통 푸터(han-ft) + Family Site 모달 스타일 */
.han-ft {
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
}
.han-ft__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(40px, 5vw, 70px) clamp(20px, 8vw, 150px);
}
.han-ft__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.han-ft__logo { display: inline-flex; width: 150px; height: 33px; flex-shrink: 0; }
.han-ft__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.han-ft__family { flex-shrink: 0; }
.han-ft__family-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 189px;
  padding: 15px 20px;
  background: #f9f9f9;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #777;
  transition: background 0.16s ease-out, color 0.16s ease-out;
}
.han-ft__family-btn:hover { background: #eef1f5; color: #222; }
.han-ft__family-btn:focus-visible { outline: 2px solid var(--main, #0a58a5); outline-offset: 2px; }
.han-ft__family-plus { transition: transform 0.16s ease-out; }
.han-ft__family-btn[aria-expanded="true"] .han-ft__family-plus { transform: rotate(45deg); }

.han-ft__con { display: flex; flex-direction: column; gap: 30px; }
.han-ft__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(172,172,172,0.5);
}
.han-ft__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-family: 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: #777;
}
.han-ft__row strong { font-weight: 400; }
.han-ft__copy {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #777;
  text-align: right;
}

/* ── Family Site 모달 ── */
.han-fam[hidden] { display: none; }
.han-fam {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.han-fam__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.han-fam__panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
  animation: han-fam-in 0.2s ease-out;
}
@keyframes han-fam-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.han-fam__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.han-fam__title {
  margin: 0;
  font-family: 'SUIT', 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  color: #222;
}
.han-fam__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #222;
  border-radius: 8px;
}
.han-fam__close,
.han-fam__close:hover,
.han-fam__close:focus { background: #f2f2f2 !important; box-shadow: none !important; color: #222 !important; }
.han-fam__close:hover { background: #e6e6e6 !important; }
.han-fam__close:hover svg { color: #222 !important; }
.han-fam__close svg path { stroke: #222 !important; }

/* ── 맨 위로 이동 버튼 ── */
.han-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 40px);
  bottom: clamp(16px, 2.5vw, 40px);
  z-index: 900;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--main, #0a58a5);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10,88,165,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s cubic-bezier(.16,1,.3,1), transform 0.35s cubic-bezier(.16,1,.3,1), background 0.2s ease;
}
.han-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.han-top:hover { background: #084b8e; transform: translateY(-3px); }
.han-top svg { width: 30px; height: 30px; }
.han-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 480px) { .han-top { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .han-top { transition: opacity 0.2s ease; transform: none; } .han-top.is-visible { transform: none; } }
.han-fam__close:focus-visible { outline: 2px solid var(--main, #0a58a5); outline-offset: 2px; }
.han-fam__close svg { width: 26px; height: 26px; flex-shrink: 0; }

.han-fam__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 30px;
}
.han-fam__cat {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #222;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #222;
}
.han-fam__col a {
  display: block;
  padding: 9px 0;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #555;
  text-decoration: none;
  transition: color 0.14s ease-out;
}
.han-fam__col a:hover { color: var(--main, #0a58a5); }
.han-fam__col a:focus-visible { outline: 2px solid var(--main, #0a58a5); outline-offset: 2px; border-radius: 2px; }

/* ── Tablet 세로: ~768px ─────────────────── */
@media (max-width: 768px) {
  .han-ft__info { gap: 10px; }
  .han-ft__copy { text-align: left; }
}

/* ── Mobile 가로: ~480px ─────────────────── */
@media (max-width: 480px) {
  .han-ft__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .han-ft__family, .han-ft__family-btn { width: 100%; }
  .han-ft__row { font-size: 14px; }
  .han-ft__copy { font-size: 13px; }
  .han-fam { padding: 16px; }
  .han-fam__panel { max-height: 82vh; height: auto; border-radius: 14px; width: 100%; padding: 24px 22px; }
  .han-fam__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .han-fam__cat { font-size: 15px; }
  .han-fam__col a { font-size: 14px; }
}
