body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
  padding-bottom: 50px; /* 마퀴 높이만큼 여백 확보 */
}

header {
 background: #1A2A4A;
  color: white;
  padding: 20px;
  display: flex;               /* 가로 배치 */
  justify-content: center;     /* 제목 가운데 */
  align-items: center;         /* 수직 가운데 */
  position: relative;          /* 홈 버튼 위치 기준 */
}

/* 홈 버튼 스타일 */
.home-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: #4A90E2;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap; /* 줄바꿈 방지 */
}

.home-btn:hover {
  background: #357ABD;
}

.container {
  max-width: 800px;
  margin: 30px auto;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

input, select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: 100%;
  padding: 12px;
  background: #4A90E2;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background: #357ABD;
}

.result-box {
  margin-top: 20px;
  padding: 15px;
  background: #eef4ff;
  border-left: 4px solid #4A90E2;
  border-radius: 5px;
}

.notice {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}

/* ------------------------------
   계산기 선택 박스
------------------------------ */
.two-box {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.left-box, .right-box {
  flex: 1;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  min-height: 240px; /* 높이 증가 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 위·아래 행 분리 */
  align-items: center;
}
.box-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calc-img {
  width: 100%;
  max-width: 160px;
  margin-bottom: 15px;
}

.calc-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  background: #4A90E2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.calc-btn:hover {
  background: #357ABD;
}

.box-bottom {
  margin-top: 10px;
}

.calc-desc {
  font-size: 17px;
  font-weight: 500;
  color: #333;
}

/* ------------------------------
   상단 마퀴
------------------------------ */
.v-marquee {
  position: fixed !important;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: #1a2b4c;
  border-top: 1px solid #ddd;
  border-radius: 0;
  z-index: 99999;
} 
.v-marquee-inner {
  display: flex;
  flex-direction: column;
  animation: scrollUp 10s linear infinite;
}

.v-marquee:hover .v-marquee-inner {
  animation-play-state: paused;
}

.v-marquee-inner div {
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  text-align: center;
  color: #ffffff;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-240px); }
}

a.no-style {
  text-decoration: none;
  color: inherit;
}

/* ------------------------------
   배너 슬라이더
------------------------------ */
.banner-slider {
  width: 100%;
  max-width: 800px;
  height: 150px;
  margin: 40px auto 0;
  position: relative;
  overflow: hidden;
}

.banner-slider img.banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.banner-slider img.active {
  opacity: 1;
}

.banner-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slider .prev { left: 0; }
.banner-slider .next { right: 0; }

.banner-slider button:hover {
  background: rgba(0,0,0,0.85);
}

.btn-row {
  display: flex;
  gap: 15px; /* 버튼 사이 간격 */
  margin-top: 15px;
}

.btn-row button {
  flex: 1; /* 두 버튼을 동일한 너비로 */
}

/* ------------------------------
   🔥 모바일 반응형 최적화
------------------------------ */
@media (max-width: 768px) {

    .two-box {
    flex-direction: column;
  }

  .left-box, .right-box {
    min-height: 220px;
  }

  .calc-img {
    max-width: 140px;
  }

  .calc-desc {
    font-size: 16px;
  }


  /* 컨테이너 여백 축소 */
  .container {
    width: 92%;
    margin: 20px auto;
    padding: 20px;
  }

  /* 마퀴 텍스트 크기 축소 */
  .v-marquee-inner div {
    font-size: 14px;
    height: 36px;
    line-height: 36px;
  }

  /* 배너 높이 자동 조절 */
  .banner-slider {
    height: auto;
  }

  .banner-slider img.banner {
    height: auto;
    position: relative;
  }

  /* 배너 버튼 크기 축소 */
  .banner-slider button {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  /* 계산기 버튼 세로 배치 */

  .calc-btn {
    font-size: 17px;
    padding: 14px;
  }

  /* 텍스트 크기 조정 */
  body {
    font-size: 15px;
  }

  ul li a {
    font-size: 15px;
  }

   .left-box, .right-box {
    min-height: 200px;
  }

  .calc-img {
    max-width: 140px;
  }

}

/* ------------------------------
   초소형 모바일 (아이폰 SE 등)
------------------------------ */
@media (max-width: 480px) {

  .banner-slider button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .calc-btn {
    font-size: 16px;
    padding: 12px;
  }

  .v-marquee-inner div {
    font-size: 13px;
  }
 .btn-row {
    flex-direction: column;
  }
  
}
