@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Bebas+Neue&family=Carrois+Gothic&family=DM+Serif+Text:ital@0;1&family=Lilita+One&family=Noto+Sans+KR:wght@597&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@media (max-width: 480px) {
  .class-b .title {
    font-size: 18px !important;
  }
  .class-b img {
    height: 400px !important;
  }
  .class-item .description {
    font-size: 17px !important;
  }
  .class-a h5 {
    font-size: 20px !important;
    margin: 10px !important;
  }
  .class-a p {
    font-size: 16px !important;
    padding-left: 25px !important;
    padding-bottom: 0 !important;
  }
  .class-a blockquote {
    padding: 15px !important;
    font-size: 16px !important;
    margin: 20px;
  }

  .class-a button {
    font-size: 1rem !important;
  }
}
@media (max-width: 950px) {
  body {
    display: block;
  }
  .head video {
    margin-top: 70px !important;
  }
  .name {
    display: none;
  }
  .second {
    padding: 40px !important;
  }
  .second .grid {
    display: grid;
    grid-template-columns: 1fr; /* 작은 화면에서는 한 열로 표시 */
  }
  .second .grid img {
    width: 95%; /* 너비를 컨테이너에 맞춤 */
    height: 100%; /* 높이도 맞춤 */
    object-fit: cover; /* 이미지가 잘리지 않고 꽉 차게 조정 */
    display: block;
    margin: 0 auto;
  }
  .second .grid .g1 {
    order: 0; /* 순서를 앞쪽으로 설정 */
    max-height: 650px; /* 원하는 높이로 설정 */
    overflow: hidden; /* 초과 부분 숨기기 */
  }
  .second .grid .g2 {
    order: 1;
  }
  .grid p {
    font-size: clamp(12px, 1.7vw, 24px) !important;
  }
  .second .grid .g3 {
    order: 4; /* 순서를 앞쪽으로 설정 */
  }

  .second .grid .g4 {
    order: 3; /* 기본 순서 */
  }
  .class-intro {
    padding: 40px !important;
  }
  .class-intro h4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .class-intro .class-b {
    padding: 0;
    align-items: center;
    display: flex; /* grid 대신 flex 사용 */
    flex-direction: column; /* 수직 정렬 */
    justify-content: center; /* 세로축 중앙 정렬 */
    align-items: center; /* 가로축 중앙 정렬 */
    padding-left: 0; /* 기존 여백 제거 */
    padding-right: 0;
  }

  .class-intro .class-item {
    margin-bottom: 30px;
    text-align: center;
  }
  .class-intro .class-a {
    margin: 0;
    padding: 20px;
    margin-top: 70px;
  }
  .class-a p {
    padding: 20px;
  }
  .class-item {
    width: 85%; /* 100%로 확장하여 가운데 정렬 */
    text-align: center;
  }
  .class-b img {
    margin: 0 auto; /* 이미지를 수평 중앙 정렬 */
  }
  .reserve {
    padding: 50px !important;
  }
}
.dm-serif-text-regular {
  font-family: "DM Serif Text", serif;
  font-style: normal;
}

.head {
  position: relative;
  height: auto;
  overflow: hidden;
}
body {
  margin: 0;
}
/* 비디오 스타일 */
.head video {
  width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
}
.navbar .nav-item.active a {
  color: rgb(139, 130, 130);
}
/* 로고 스타일 */
.logo {
  z-index: 10; /* 비디오보다 위에 나타나게 설정 */
  height: 50px;
  width: 100%;
  display: flex;
  position: fixed;
  align-items: center;
  animation: fadeIn 3s ease-out; /* 애니메이션 효과 */
  height: 60px;
  justify-content: center;
  background-color: rgb(49, 83, 83, 0.5);
  padding: 5px;
}
.icon {
  display: flex; /* 또는 display: grid; */
  gap: 10px;
  right: 50px;
  position: absolute;
}

@keyframes fadeIn {
  0% {
    opacity: 0; /* 처음에는 투명 */
  }
  100% {
    opacity: 1; /* 완전히 보임 */
  }
}
.navbar {
  width: auto;
  position: absolute;
  z-index: 10;
}
.name {
  font-size: 35px; /* 텍스트 크기를 로고 크기에 맞게 설정 */
  color: white;
  margin-left: 10px; /* 로고와 텍스트 사이 간격 */
  font-weight: bold;
  font-family: "Oswald", serif;
}

.nav-list {
  position: absolute;
  justify-items: flex-start;
  line-height: 1.3;
  margin-top: 25vw;
  margin-left: 6vw;
}

.nav-item a {
  text-decoration: none;
  color: whitesmoke;
  font-weight: bold;
  font-size: clamp(25px, 4.5vw, 70px);
  margin-bottom: 0px;
  display: inline-block;
  position: relative;
  font-family: "DM Serif Text", serif;
}
.nav-item a:hover {
  transform: scale(1.1);
}

.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: whitesmoke;
  transition: width 0.5s ease-in-out;
}

.nav-item a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
}

/*두번째 화면*/
.second {
  padding: 100px;
  padding-bottom: 20px;
  height: auto;
}
.second1 {
  font-weight: bold;
  font-family: "DM Serif Text", serif;
}
.second1 p {
  margin-bottom: 0;
  font-size: clamp(15px, 1.8vw, 20px);
}
.second1 h3 {
  font-size: clamp(20px, 4.5vw, 40px);
  text-align: center;
  line-height: 0.5;
}
.second1 h4 {
  font-size: 3.5vw;
  text-align: center;
  line-height: 0.5;
}
.hr1 {
  height: 5px;
  background-color: black;
  border: none;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding-top: 40px;
}

.second img {
  width: 100%;
  height: auto;
}

.w1 {
  margin-top: 0;
  font-size: clamp(17px, 2.5vw, 30px) !important;
  font-family: "DM Serif Text", serif;
}
.w2 {
  font-size: clamp(11px, 1.7vw, 18px) !important;
  font-family: "Noto Sans", serif;
}
.w2 h4 {
  margin: 0;
}
.w2 ul {
  margin: 0;
  padding: 15px;
}
.grid p {
  font-size: 1.7vw;
  font-family: "Noto Sans", serif;
}
.w3 {
  margin-top: 0;
  font-size: clamp(17px, 2.5vw, 30px) !important;
  font-family: "DM Serif Text", serif;
}
.w4 {
  font-size: clamp(11px, 1.5vw, 18px) !important;
  font-family: "Noto Sans", serif;
}
.w4 h4 {
  margin: 0;
}
.w4 ul {
  margin: 0;
  padding: 15px;
}

.hr2 {
  height: 2px;
  background-color: black;
  border: none;
  margin-top: 40px;
}

.class-intro {
  background-color: whitesmoke;
  padding: 50px 100px 100px 100px;
}
.class-intro h4 {
  font-size: clamp(15px, 2.5vw, 20px);
  padding-right: 100px;
  padding-left: 100px;
  text-align: center;
  font-family: "DM Serif Text", serif;
}
.class-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-around;
  gap: 50px;
  position: relative;
  padding-left: 100px;
  padding-right: 100px;
}
.class-b .title {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
  font-family: "Noto Sans", serif;
}
.class-b img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(60%);
  min-width: 200px;
}
.class-item {
  position: relative; /* 부모 요소에 relative 지정 */
}

.class-item .description {
  position: absolute;
  top: 45%;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
  font-family: "Noto Sans", serif;
}

.class-item:hover .description {
  opacity: 1;
}

/*class-a*/
.class-a {
  background-color: white;
  margin-left: 100px;
  margin-right: 100px;
  padding: 30px 100px 30px 100px;
  margin-top: 100px;
}
.class-a {
  border-radius: 12px; /* 부드러운 둥근 모서리 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 부드러운 그림자 */
  font-family: "Segoe UI", sans-serif; /* 모던한 글꼴 */
  color: #333; /* 짙은 텍스트 색상 */
  min-width: 200px;
}
.class-a h5 {
  font-size: 28px;
  text-align: center;
  font-family: "DM Serif Text", serif;
}
.class-a p {
  font-size: 20px;
  padding-left: 50px;
  padding-top: 20px;
  font-family: "Carrois Gothic", serif;
}
.class-a h4 {
  font-size: 35px; /* 제목 크기 */
  text-align: center; /* 중앙 정렬 */
  font-weight: 700; /* 굵은 폰트 */
}

.class-a blockquote {
  font-style: "Noto Sans", serif;
  font-size: 20px;
  background-color: rgb(49, 83, 83);
  padding: 15px 20px;
  border-left: 4px solid rgb(23, 24, 24);
  border-radius: 5px;
  color: white; /* 회색 텍스트 */
}
.class-a button {
  display: block; /* 블록 요소로 변경하여 중앙 정렬 가능 */
  margin: 50px auto; /* 자동 여백으로 수평 중앙 정렬 */
  padding: 20px; /* 버튼 패딩 */
  font-size: 1.3rem;
  color: rgb(49, 83, 83); /* 글자 색상 */
  background-color: whitesmoke; /* 버튼 배경 흰색 */
  border: 2px solid rgb(49, 83, 83); /* 버튼 테두리 */
  border-radius: 15px; /* 둥근 모서리 */
  cursor: pointer; /* 마우스 포인터 변경 */
  transition: all 0.3s ease; /* 부드러운 애니메이션 */
  font-weight: bold;
}

.class-a button:hover {
  background-color: rgb(49, 83, 83); /* 호버 시 배경색 변경 */
  color: #ffffff; /* 글자색을 흰색으로 변경 */
  font-weight: bold;
}
.class-a {
  opacity: 0;
  transform: translateY(50px); /* 살짝 아래에서 올라오는 애니메이션 효과 */
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.class-a.visible {
  opacity: 1;
  transform: translateY(0); /* 위치 복원 */
}
/*푸터*/
.reserve {
  background-color: whitesmoke;
  padding: 50px 100px 50px 100px;
  text-align: center;
  font-family: "Carrois Gothic", serif;
  color: rgb(145, 142, 142);
  font-size: clamp(10px, 1vw, 18px);
}
.footerhr {
  margin-bottom: 20px;
  background-color: rgb(145, 142, 142);
}
