.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

* {
  user-select: none;
  -webkit-user-drag: none;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;  /* 수평 가운데 정렬 */
  background-color: #ffffff;
}

.desktop-wrapper {
  width: 100%;
  max-width: 1200px;         /* 원하는 최대 너비 (예: 960px, 1080px 등) */
  padding: 80px 20px 100px;  /* 위아래 패딩 + 좌우 여백 */
  box-sizing: border-box;
}

header {
  display: flex;
  text-align: left; /* 로고 가운데 정렬 */
  margin-bottom: 20px;
  width: 800px;
  margin: 0 auto;          /* 가운데 정렬 */
}

.lasttxt {
  margin: 2px 0; /* 위아래 4px 정도만 */
}

.logo {
  margin-right: 50px;
  height: 150px;
  width: 300px;
  vertical-align: middle;
}

.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #D2D0A0;
  color: #000;
  text-align: center;
  padding: 0;
  font-weight: bold;
  font-size: 16px;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-banner {
  margin: 0 auto;          /* 가운데 정렬 */
  position: relative;
  width: 800px;
  height: 250px;
  overflow: hidden;
  margin-bottom: 10px;
}

.main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 또는 contain, fill 등 */
  display: block;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* 화살표 기본 상태: 숨김 */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 위치 조정 */
.arrow.left {
  left: 10px;
}
.arrow.right {
  right: 10px;
}

/* 마우스 오버시 화살표 표시 */
.main-banner:hover .arrow {
  opacity: 1;
}

.main-nav {
  display: flex;
  align-items: center; /* 필요 시 생략 가능 (ul에 적용됨) */
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 23px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 24px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #007bff;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 1;       /* 중요: 항상 보이게 설정 */
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}

.content-section {
  margin: 0 auto;          /* 가운데 정렬 */
  width: 800px;
  display: flex;
  justify-content: center;
  padding: 30px 0 10px 0;
}

#applyForm, .homes, .guides {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: white;
  padding: 30px 0 30px 0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

textarea {
  resize: none; /* 크기 조절 막기 */
}

.row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

#applyForm button {
  padding: 12px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#applyForm button:hover {
  background-color: #0056b3;
}

hr {
  border: none;
  border-top: 2px solid #aaa6a6;
  margin: 20px 0;
}

.form-group-box {
  margin-bottom: 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box-options {
  display: flex;
  gap: 20px;
}

.box-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.box-option img {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border 0.3s, transform 0.2s;
}

.box-option input[type="radio"] {
  accent-color: #007bff;
  cursor: pointer;
}

.box-option input[type="radio"]:checked ~ img {
  border: 2px solid #007bff;
  transform: scale(1.05);
}

.form-group-box > label {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 16px;
}

/* 라디오 버튼 스타일 (기본 보여주되 깔끔하게) */
.form-group-box input[type="radio"] {
  accent-color: #007bff;
  cursor: pointer;
}

/* 이미지 스타일 */
.form-group-box img {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border 0.3s, transform 0.2s;
}

/* 선택된 이미지에 파란 테두리 강조 */
.form-group-box input[type="radio"]:checked + img {
  border: 2px solid #007bff;
  transform: scale(1.05);
}

.txt {
  font-weight: bold;
}

.form-group select {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  max-width: 150px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
}

.date-bar {
  width: 800px;           /* 고정 크기 지정 */
  margin: 0 auto;          /* 가운데 정렬 */
  text-align: center;
  padding: 10px 0;
  font-weight: bold;
  background-color: #f0f0f0;
  font-size: 15px;
  border-top: 1px solid #ddd;
}

.ticker-wrap {
  width: 800px;           /* 고정 크기 지정 */
  margin: 0 auto;          /* 가운데 정렬 */
  overflow: hidden;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  height: 35px;
  display: flex;
  align-items: center;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.ticker span {
  display: inline-block;
  padding: 0 20px;
  font-size: 14px;
  color: #333;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);    /* ← 완전 오른쪽 바깥 */
  }
  1% {
    transform: translateX(70%);     /* ← 바로 움직이기 시작하게 조정 */
  }
  100% {
    transform: translateX(-100%);
  }
}

.form-group.wide {
  flex: 9;
}
.form-group.medium {
  flex: 3;
}

/* 모달 배경 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 30px 20px 70px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 2; /* 오버레이 위에 표시 */
}

.modal-buttons {
  position: absolute;
  right: 20px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-buttons button {
  padding: 6px 12px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-buttons button:hover {
  background-color: #000;
}

.remember-today {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 15px 10px;
  text-align: center;
  font-size: 14px;
  z-index: 1000;
}

.footer-inner p {
  margin: 2px 0;
}

.footer-inner a {
  color: #f2f2f2;
  text-decoration: underline;
}

.footer-inner a:hover {
  color: #ffcc00;
}
