@charset "utf-8";

@import url('https://fonts.googleapis.com/css?family=Black+Han+Sans:400');
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@import url('//fonts.googleapis.com/earlyaccess/notosanskr.css');


/* ✅ 브라우저 높이에 맞게 고정 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* 스크롤 완전히 제거 */
}




div li {
    font-family: 'Noto Sans KR', sans-serif; 
}

main {
  display: flex;                /* 옆으로 나열 */
  justify-content: center;      /* 중앙 정렬 */
  align-items: flex-start;      /* 위쪽 정렬 */
  gap: 20px;                    /* 박스 간 간격 */
  flex-wrap: wrap;              /* 화면 줄어들면 줄바꿈 */
  margin-top: 8=100px;
}
.box {
  width: 15%;
  height: 550px;
  margin: 30px auto;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
    color: #dbdbdb;
    border:1px solid #dbdbdb; 
  position:relative;
}

.box img {
  width: 60%;
  object-fit: contain;
  margin-bottom: 50px;
  margin-top: 50px;
  opacity: 0.9;
}

.box:hover {
  background-color: #f0f0f0;
    color: #333;
}

.box li {
  list-style: none;
  font-size: 50px;
  font-weight: 500;
  
}

.box li:hover {
    color: #333;
}

.box a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.box a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    z-index: 1; /* 내부 텍스트/이미지 위로 올리고 싶으면 2 이상 */
}

.box > * { /* 내부 콘텐츠 */
    position: relative;
    z-index: 2; /* 텍스트/이미지 클릭 가능하게 */
}


/* 기본적으로 PC에서만 보이도록 설정 (모바일에서는 숨김) */
.box{
    display: block; /* PC에서 보이도록 */
}

.mobibox {
    display: none; /* 모바일에서는 숨기기 */
}







@media screen and (max-width: 768px) {
  html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* 세로 스크롤이 필요할 경우 자동으로 스크롤바가 나타납니다 */
}

  .mobibox .box {
    display: block; /* 세로로 배치되도록 수정 */
    width: 90%; /* 모바일 화면 좌우 여백 */
    margin: 10px auto; /* 박스 간 간격 */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    height: auto;
    overflow: hidden; /* 내용이 넘치지 않도록 설정 */
    
  }

    .mobibox .box:first-child {
    margin-top: 20px; /* 상단 여백 추가 (필요한 만큼 조정) */
  }


  .mobibox .box li {
    list-style: none;
    font-size: 26px;
    font-weight: 500;
    width: 100%; /* 텍스트 영역을 세로로 꽉 차게 */
    text-align: center;
    margin-bottom: 8px; /* 텍스트와 다른 요소들 간 간격 */
  }

  .mobibox .box img {
    width: 15%;
    object-fit: contain;
    margin: 10px auto;
  }

  .mobibox .box p {
    width: 100%;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    line-height: 0.4;
  }

  .mobibox .box04 {
    height: auto;
  }

  /* 박스 간의 간격 줄이기 */
  .box + .box {
    margin-top: 10px;
  }

  /* hover 효과 제거 (터치 디바이스 대비) */
  .mobibox .box:hover {
    background-color: transparent;
    color: inherit;
  }


/* 기본적으로 PC에서만 보이도록 설정 (모바일에서는 숨김) */
.mobibox{
    display: block; /* PC에서 보이도록 */
}

.box {
    display: none; /* 모바일에서는 숨기기 */
}




}

