@import url('colors.css');

@font-face {
  font-family: 'NanumSquareRound';
  src: url('../fonts/NanumSquareRoundB.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'NanumSquareRound', Arial, sans-serif;
  color: var(--color-text);
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: #fbe8ee; 
  top: 0;
  z-index: 1000;
}

.hero {
  position: relative;
  text-align: center;
  padding: 120px 20px;
  background: #fff;
  overflow: hidden;
}

.blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 350px;   /* 조금 줄임 */
  height: 350px;
  background: #ff3776;
  opacity: 0.15;
  border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%;
  animation: blob 18s infinite linear;
}

/* 왼쪽 위 */
.blob:nth-child(1) {
  top: -80px;   /* 기존 -100px → 조금 내려서 자연스럽게 */
  left: -50px;  /* 화면 안쪽으로 */
  background: #ff6b9d;
  animation-duration: 25s;
}

/* 오른쪽 중간 */
.blob:nth-child(2) {
  top: 50px;   /* 기존 200px → 위로 올림 */
  right: -100px; 
  background: #ff3776;
  animation-duration: 30s;
}

/* 중앙 아래 */
.blob:nth-child(3) {
  bottom: 0px;  /* 기존 -150px → 덜 잘리게 */
  left: 40%;      /* 조금 오른쪽으로 */
  background: #ff9fbd;
  animation-duration: 35s;
}


@keyframes blob {
  0% {
    transform: scale(1) translate(0,0) rotate(0deg);
  }
  33% {
    transform: scale(1.2) translate(50px, -30px) rotate(45deg);
  }
  66% {
    transform: scale(0.9) translate(-40px, 20px) rotate(90deg);
  }
  100% {
    transform: scale(1) translate(0,0) rotate(0deg);
  }
}


.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #ff3776;
  margin-bottom: 3%;
}

.hero p {
  font-size: 18px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 3%;
}

.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff3776, #ff6b9d);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative; /* z-index를 적용하려면 필요 */
  z-index: 9999; /* 충분히 크게 줘서 위로 올림 */
}

.hero-btn:hover {
  background: linear-gradient(135deg, #e62f68, #ff3776);
}

.hero-logo {
  width: 80px;   /* 로고 크기 */
  height: auto;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
}


section {
  padding: 8% 10%;
  margin: 0;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-in-out;
}

section.show {
  opacity: 1;
  transform: translateX(0);
}

footer {
  background-color: var(--color-dark-background);
  color: var(--color-white);
  text-align: center;
  padding: 1vh;
  font-size: 0.9rem;
  box-sizing: border-box;
  text-align: center;
}

h1 {
  font-size: 2.3rem;
  margin-top: 0;
  margin-bottom: 30px;
}

h2 {
  font-size: 2.3rem;
  margin-top: 0;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
}

a {
  text-decoration: none;
}

.bg {
  background-color: var(--color-light-background);
}
.bg2 {
  background-color: #f57ba2;
}

.hilight1 {
  color: var(--color-red)
}

.hilight2 {
  color: var(--color-blue)
}

.button1 {
  background-color: var(--color-light-background);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin-top: 20%;
}

.button1:hover {
  background-color: var(--color-text);
  transform: scale(1.05);
}


.container1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container1 .content-container {
  display: flex;
  justify-content: space-between;
  gap: 10%;
  max-width: 1000px;
  align-items: center;
}

.container1 .text-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container1 .text-container p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.container1 .img-container {
  width: 50%;
  max-height: 100%;
}

.container1 .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 2px 5px var(--color-shadow);
}

.container2, .container3, .container4 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container5 {
  max-width: 800px;
  margin: 0 auto; /* 좌우 중앙 정렬 */
  text-align: center;
}

.container5 h2 {
  color: #fff
}

.loan-list {
  list-style: none;
  padding: 0;
  margin-top: 5%;
}

.loan-list li {
  display: flex;
  justify-content: center; /* span을 가운데로 모음 */
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* span 크기 조정 (필요하면) */
.loan-list li span {
  flex: none; /* span이 균등 너비 가지지 않게 */
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

.container7 {
  text-align: center;
}

.container7 h2 {
  font-weight: bold;
  color: #fff;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5개 고정 */
  gap: 40px 20px; /* 위아래/좌우 간격 */
  max-width: 1000px;
  margin: 0 auto;
}

.recommend-item {
  background: #fafafa;
  border-radius: 5%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 항상 위에서부터 배치 */
  transition: transform 0.3s;
}

.recommend-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  flex-shrink: 0;   /* 이미지 크기 안 줄어들게 */
}

.recommend-item p {
  font-size: 1rem;
  color: #000;
  text-align: center;
  margin: 0;
  line-height: 1.4;
  font-weight: bold;
}

.recommend-item:hover {
  transform: translateY(-5px);
}

.mobile-break {
  display: inline;
}

.container9 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  background: #fff;
  color: #000;
}

.container9 .marketing-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
  align-items: center;
}

.container9 .card {
  background: #f9f9f9;
  border: 2px solid #ff3776;
  border-radius: 12px;
  text-align: center;
  padding: 30px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.container9 .card:hover {
  background: #ff3776;
  color: #fff;
  transform: translateY(-5px);
}

.container9 .card .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.container9 .card h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.container9 .card p {
  font-size: 14px;
  color: #555;
}

.container9 .card:hover p {
  color: #fff;
}

/* 오른쪽 텍스트 구역 */
.container9 .marketing-right {
  flex: 1;
  display: flex;          /* flex 컨테이너로 만들어야 align-items 적용됨 */
  flex-direction: column; /* 세로로 정렬 */
  justify-content: center;/* 세로 중앙정렬 */
}

.container9 .text-block h4 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 3%;
  color: #000;
}

.container9 .text-block p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.divider {
  display: inline;
} 

.container9 .card .icon img {
  width: 50px;   /* 아이콘 크기 */
  height: 50px;
  object-fit: contain; /* 이미지 비율 유지 */
}

/* 모바일 대응 */
@media (max-width: 767px) {
  .divider {
    display: none; /* 모바일에서 | 숨김 */
  }

  .container1 .content-container {
    flex-direction: column;
    gap: 20px;
  }

  .container1 h1 {
    margin-bottom: 0;
  }

  .container1 .text-container,
  .container1 .img-container {
    width: 100%;
  }

  .container1 .text-container p {
    margin-bottom: 10px;
  }

  .container4 p {
    margin-top: 0;
    margin-bottom: 0;
  }

  .loan-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
  }

  .loan-list li span {
    width: 100%;
    text-align: left;
    margin-right: 0;
  }

  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    max-width: 100%;
    padding: 0 10px;
  }

  .recommend-item {
    padding: 15px;
  }

  .recommend-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .recommend-item p {
    line-height: 1.3;
  }

  .container9 .marketing-left {
    width: 100%;
  }

  .container9 .card {
    padding: 20px;
  }

  .container9 .text-block h4 {
    font-size: 18px;
  }

  .container9 .text-block p {
    font-size: 14px;
  }


  .mobile-break {
    display: block;
  }

  .header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero {
    padding: 80px 15px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 16px;
  }

  .hero-logo {
    width: 60px;
    margin-bottom: 15px;
  }

  .blob {
    width: 200px;
    height: 200px;
  }

  html, body {
    width: 100%;
    overflow-x: hidden; /* 절대적으로 좌우 스크롤 제거 */
  }
  /* 본문 공통 */
  h1, h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }
  
}

@media (max-width: 1023px) {
  .container9 {
    flex-direction: column;
    gap: 40px;
  }

  .container9 .marketing-left {
    grid-template-columns: 1fr 1fr; /* 태블릿에서는 2열 유지 */
  }
}

.container20 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3%;
}

/* 기본: PC에서 원본 크기 유지 */
.container20 img {
  width: auto;       /* 원본 너비 유지 */
  max-width: none;   /* 확대/축소 제한 없음 */
  height: auto;
  display: block;
}

/* 모바일(480px 이하): 반응형 + 여백 */
@media (max-width: 480px) {
  .container20 {
    padding: 0 16px; /* 모바일 양쪽 여백 */
  }

  .container20 img {
    width: 100%;      /* 화면에 맞게 줄어듦 */
    max-width: 100%;  /* 부모 범위 넘기지 않음 */
  }
}
