/* body 배경에 JIN 글자 */
.background-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 750;
  font-family: 'Arial', sans-serif;
  font-size: 55vw;
  color: rgba(64, 1, 80, 0.05);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: -1; /* 배경용 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-text .letter {
  display: inline-block;
  /* 공통 스타일 필요하면 넣기 */
  letter-spacing: 0;
}

/* 각 글자별로 미세 위치 조정 */
.background-text .j {
  margin-right: 0.06em; /* J가 좌측에 돌출되어서 오른쪽으로 살짝 밀기 */
  position: relative;
  left: 0.05em;
}

.background-text .i {
  margin: 0 0.1em;
  position: relative;
  top: 0.02em; /* 살짝 위치 조정 가능 */
}

.background-text .n {
  margin-left: 0.05em;
}
@media (max-width: 768px) {
  .background-text span {
    font-size: 50vw;  /* 화면이 작으면 글자 크기 줄임 */
  }
}

/* 기본 스타일 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background: #f5f7fa;
  color: #3e3e3e;
  line-height: 1.6;
  position: relative;
  z-index: 1; /* 배경보다 위에 나오도록 */
}

/* 헤더 스타일 */
header {
  background: #003366;
  color: white;
  padding: 20px;
  text-align: center;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* 컨테이너 */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

/* 섹션 레이아웃 */
.section {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* 텍스트박스와 이미지박스 공통 */
.text-box,
.image-box {
  flex: 1 1 500px;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0; /* 초기 상태 투명 */
  position: relative;
}

/* 텍스트 스타일 */
.text-box h2 {
  color: #005b8f;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
}

.text-box p {
  font-size: 1rem;
  color: #444;
  text-align: left;
  margin-bottom: 12px;
}

/* 이미지 스타일 */
.image-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
  margin: auto;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.image-box img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 이미지 제목 오버레이 */
.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-title {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 12px;
  font-size: 1.1rem;
  border-radius: 4px;
  z-index: 2;
}

/* 애니메이션 키프레임 */
/* 왼쪽에서 슬라이드 인 */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-300px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 오른쪽에서 슬라이드 인 */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(300px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 애니메이션 클래스 */
.animate-left {
  animation: slideInLeft 1.5s ease forwards;
}

.animate-right {
  animation: slideInRight 1.5s ease forwards;
}

/* 위치에 따라 애니메이션 적용 */
/* 왼쪽에 있는 박스는 왼쪽에서 등장 */
.text-box.left.animate-left,
.image-box.left.animate-left {
  animation-name: slideInLeft;
}

/* 오른쪽에 있는 박스는 오른쪽에서 등장 */
.text-box.right.animate-right,
.image-box.right.animate-right {
  animation-name: slideInRight;
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
  }
  .text-box,
  .image-box {
    flex: 1 1 100%;
    padding: 10px;
    order: 0 !important;
  }
}

/* 메인으로 가기 버튼 */
.go-main-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 30px;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.go-main-btn:hover {
  background-color: #555;
}

@media (max-width: 768px) {
  .go-main-btn {
    padding: 10px 20px;
    font-size: 16px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .go-main-btn {
    padding: 8px 16px;
    font-size: 14px;
    bottom: 10px;
  }
}















