/* ===== FONT ===== */
@font-face {
  font-family: 'Paperlogy';
  src: url('../font/Paperlogy-4Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../font/Paperlogy-5Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../font/Paperlogy-7Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Paperlogy', sans-serif;
  font-weight: 400;
  color: #fff;
  background: #0a1628;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HEADER (PC·모바일 공통: 스크롤 시 상단 고정) ===== */
.header {
  background-color: #0A1F44;
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* 로고 영역: PC에서는 좌(korea) 우(hunmin) 공간만, 모바일에서는 전체 너비 */
.header-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .header-logos {
    width: 200px;
    min-width: 200px;
  }
}

.logo {
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
}

/* PC: 가로 6개, 세로 2줄 */
.nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem 1.5rem;
  flex: 1;
  justify-content: flex-end;
  align-content: center;
  min-width: 0;
}

.nav-item {
  font-family: 'Paperlogy', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
  text-align: center;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ===== HERO (PC: 1920×800, 이미지 안 잘리게) ===== */
.hero {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide .hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* 밝기·선명도 보정 (PC 히어로) */
  filter: brightness(1.15) contrast(1.1);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 31, 68, 0.2) 0%, rgba(10, 31, 68, 0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero .hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.hero-content {
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: 'Paperlogy', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== 모바일 전용: 카테고리와 1-m 이미지 사이 문구 섹션 ===== */
.mobile-tagline {
  display: none;
}

.mobile-tagline-text {
  font-family: 'Paperlogy', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* ===== 모바일 전용 히어로: 슬라이드 없이 1-m~4-m 세로 나열 ===== */
.hero-mobile {
  display: none;
}

.hero-mobile img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

/* ===== MOBILE: 헤더(로고 좌/우) + 청색 카테고리 3x4 + 이미지 세로 나열 ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-logos {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0.5rem;
    background-color: #0A1F44;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: stretch;
  }

  /* 각 줄(행) 수평 정렬: 셀 높이 통일 + 내용 가운데 */
  .nav-item {
    font-size: 0.8rem;
    padding: 0.6rem 0.35rem;
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    box-sizing: border-box;
  }

  /* 카테고리와 1-m 사이 문구 섹션 표시 */
  .mobile-tagline {
    display: block;
    background-color: #0A1F44;
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .mobile-tagline-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* PC 히어로(슬라이드) 숨김, 모바일 이미지 나열 표시 */
  .hero-pc {
    display: none !important;
  }

  .hero-mobile {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .hero-mobile img {
    margin: 0;
    padding: 0;
  }

  main {
    padding: 0;
    margin: 0;
  }
}

/* 작은 모바일에서도 3열 유지 */
@media (max-width: 480px) {
  .nav-item {
    font-size: 0.8rem;
  }
}

/* ===== FOOTER (헤더와 동일 배경·텍스트 색상, 중앙 정렬) ===== */
.footer {
  background-color: #0A1F44;
  color: #fff;
  padding: 1.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: inline-block;
  text-align: center;
}

.footer-inner p {
  font-family: 'Paperlogy', sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0 0 0.25rem 0;
  color: #fff;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}
