/* 기본 스타일 */
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;
  }
}















