@font-face {
  font-family: 'KnuTruth';
  src: url('../font/KNUTRUTHTTF.woff2') format('woff2'),
    url('../font/KNUTRUTHTTF.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
}

.navbar {
  position: fixed;
  font-family: roboto, "Noto Sans KR", sans-serif;
  top: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-container .user-utils {
  display: flex;
  flex-direction: row;
}

.nav-container .login-box,
.nav-container .login-user-box,
.nav-container .logout-box {
  padding: 25px;
  color: #7b7b7b;
  border-left: 1px solid #d4d4d4;
  cursor: pointer;
}

.nav-container .login-box:hover,
.nav-container .logout-box:hover {
  color: #e60000;
}

.logo {
  display: flex;
  color: #797977;
  text-decoration: none;
  font-size: 1.5rem;
}

.logo img {
  height: 60px;
}

.menus {
  display: flex;
  align-items: center;
  gap: 16px
}

.mobile-menus {
  display: none;
}

.menu-toggle {
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: #666;
}

.menu-toggle line {
  transition: transform .25s ease, opacity .2s ease;
}

/* 햄버거 → X 변환 */
.menu-toggle[aria-pressed="true"] .top {
  transform: translate(10px, 0px) rotate(45deg);
}

.menu-toggle[aria-pressed="true"] .mid {
  opacity: 0;
}

.menu-toggle[aria-pressed="true"] .bot {
  transform: translate(-7px, 10px) rotate(-45deg);
}

.menu-overlay {
  position: fixed;
  top: 70px;
  right: 0;
  width: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding-right: 20px;
  padding-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.menu-overlay.active {
  transform: translateX(0);
}

.menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  /* 텍스트 오른쪽 정렬 */
}

.menu-overlay li {
  margin: 16px 0;
}

.menu-overlay a {
  color: #111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.menu-overlay a:hover {
  color: #e60000;
}

.menu-overlay a::after {
  content: "▾";
  font-size: 14px;
  margin-left: 8px;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.mobile-submenu a::after {
  content: ""
}

.menu-overlay li.open>a::after {
  transform: rotate(-180deg);
}

/* 모바일 서브메뉴 */
.mobile-submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  text-align: right;
}

.mobile-submenu li {
  margin: 8px 0;
}

.mobile-submenu a {
  font-size: 16px;
  font-weight: 400;
  color: #555;
}

.mobile-submenu a:hover {
  color: #2563eb;
}

.nav-menu {
  position: relative;
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #797977;
  text-decoration: none;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  transition: background 0.3s;
  padding: 40px 15px;
}

.nav-menu a:hover {
  color: #e60000;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 37px;
  padding: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 160px;
}

.submenu li {
  list-style: none;
  padding: 0 15px;
}

.submenu li a {
  text-decoration: none;
  color: #333;
  display: block;
  font-size: 14px;
  padding: 10px 5px;
}

main {
  padding-top: 80px;
  /* 네비게이션 바 높이만큼 위 여백 추가 */
}

.section {
  max-width: 1280px;
  padding: 40px 10px;
  margin: 0 auto;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
}

.section.wide {
  max-width: 100%;
  background: #c48b3a;
  font-size: 1.5em;
  line-height: 1.5;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 0;
}

.section-title-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.section h1 {
  color: #e60000;
  font-family: 'KnuTruth';
  font-size: 2rem;
  padding: 15px 0;
}

.section h2 {
  color: #222;
  font-family: 'KnuTruth';
  font-size: 1.5rem;
  padding-bottom: 25px;
}

.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.7);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1.5s ease-out;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.85;
  animation: fadeInUp 2s ease-out;
}

.fade-up {
  opacity: 0;
}

.fade-up.active {
  animation: fadeInUp 2s ease-out;
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slogan-fade-container {
  font-family: 'KnuTruth', sans-serif;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 1rem;
}

.slogan-slide {
  position: absolute;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  width: 100%;
  color: #fff;
}

.slogan-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.slogan-slide h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.slogan-slide p {
  font-size: 1.5rem;
  opacity: 0.85;
}

.contact-container {
  display: flex;
  font-family: 'Noto Sans KR', sans-serif;
  gap: 16px;
  flex-direction: column;
  align-items: center;
}

.contact {
  flex: 1;
}

.contact p {
  margin: 0;
  padding: 0;
  font-weight: 300;
  word-break: keep-all;
}

.contact iframe {
  width: 600px;
  height: 450px;
}

.footer-container {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  color: #fff;
  font-family: 'KnuTruth';
}

.btn {
  font-size: 13px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 2px;
  padding: 10px 25px;
  color: #222;
}

.btn.sm {
  font-size: 8px;
}

.btn-danger {
  border: 1px solid #f18181;
  color: #f18181;
}

.empty-data {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
  padding: 50px 0;
}

.empty-data img {
  width: 80px;
}

.empty-data {
  font-size: 15px;
  color: #c5c5c5;
}

.radio-group {
  width: 100%;
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.radio-btn {
  flex: 1;
  cursor: pointer;
}

.radio-btn input {
  display: none;
  /* 기본 라디오 숨기기 */
}

.radio-btn span {
  display: block;
  padding: 4px 5px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  color: #333;
  background: #fff;
  transition: all 0.3s;
}

.radio-btn input:checked+span {
  background: #ff6600;
  /* 선택된 배경색 */
  color: #fff;
  /* 선택된 글자색 */
}

.page-under-construct {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-under-construct img {
  width: 150px;
  margin-bottom: 15px;
}

.page-under-construct h3 {
  color: #e60000;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .disabled-in-mobile {
    display: none;
  }

  .btn {
    padding: 5px 15px;
    font-size: 13px;
  }

  .section h1 {
    font-size: 7vw;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .navbar {
    height: 70px;
  }

  .mobile-menus {
    display: block;
  }

  .menu-overlay {
    display: flex;
  }

  .menus {
    display: none;
  }

  .logo img {
    height: 4.5vh;
  }

  .slogan-slide h1 {
    font-size: 1.5rem;
  }

  .slogan-slide p {
    font-size: 0.9rem;
  }

  .contact iframe {
    width: 100%;
  }

  .contact p {
    padding: 0 15px;
    font-size: 15px;
  }

  .page-under-construct h3 {
    font-size: 18px;
  }

  .page-under-construct h4 {
    font-size: 15px;
    ;
  }
}

@media (max-width: 480px) {
  .slogan-slide h1 {
    font-size: 1.2rem;
  }

  .slogan-slide p {
    font-size: 0.8rem;
  }
}