/* 기본 초기화 */
body, h1, h2, h3, p, a, ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  color: inherit;
}

/* 기본 바디 설정 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-y: scroll; /* 항상 세로 스크롤바 확보 */
}

/* 헤더 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #007BFF; /* 기본 파란색, 본문 안 보이게 고정 */
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: background 0.3s, padding 0.3s; /* 부드러운 변화 효과 */
}

/* 스크롤 시 헤더 Shrink 효과 */
header.shrink {
  background: rgba(0, 123, 255, 0.95); /* 거의 불투명 */
  padding: 10px 20px; /* 높이 줄이기 */
}

/* 로고 */
header .logo {
  font-size: 24px;
  font-weight: bold;
}

/* 네비게이션 */
header nav {
  display: flex;
  align-items: center;
}

header nav a {
  margin: 0 10px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.3s, border-bottom 0.3s;
}

/* 메뉴 hover 효과 */
header nav a:hover {
  color: #ffe58a; /* 밝은 노란색 계열 */
}

/* 현재 페이지 active 표시 */
.nav-link.active {
  border-bottom: 2px solid #fff;
}

/* 검색창 (홈페이지 검색창) */
#searchInput {
  padding: 8px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
}

/* 폰트 리스트 */
.font-section {
  padding: 40px 20px;
}

.font-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.font-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.font-card img {
  width: 100%;
  height: auto;
  display: block;
}

.font-card h3 {
  font-size: 20px;
  margin: 15px 0 10px;
}

.font-card p {
  font-size: 14px;
  padding: 0 10px;
  margin-bottom: 10px;
  color: #666;
}

.download-button {
  background: #007BFF;
  color: #fff;
  padding: 10px 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  max-width: 120px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.download-button:hover {
  background: #0056b3;
}

/* 페이지 본문 공통 컨테이너 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 공통 뒤로가기 버튼 */
.back-button {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #007BFF;
}

.back-button:hover {
  text-decoration: underline;
}

/* 라이선스 링크 */
.license-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  text-decoration: none;
  color: #777;
}

.license-link:hover {
  text-decoration: underline;
}

//* 푸터 영역 */
footer {
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  padding: 40px 20px 20px;
  font-size: 14px;
  color: #666;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto 30px;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 14px;
  color: #007BFF;
  border: 1px solid #007BFF;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.footer-button:hover {
  background: #007BFF;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* 반응형 대응 */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-button {
    width: 100%;
    text-align: center;
  }
}

}
