/* ---------------- 반응형 스타일 추가 ---------------- */

/* 1200px 이하 (태블릿 가로, 작은 데스크탑) */
@media screen and (max-width: 1200px) {
  h1 img {
    width: 200px; /* 로고 크기 줄임 */
  }
  #gnb>li>a {
    font-size: 16px;
    padding-right: 20px;
  }
  .tit {
    font-size: 120px;
  }
  .txt {
    font-size: 28px;
  }
  #side {
    width: 600px;
    right: -600px;
  }
  #side:hover {
    right: -400px;
  }
}

/* 992px 이하 (태블릿 세로) */
@media screen and (max-width: 992px) {
  header {
    width: 500px;
    left: -300px;
  }
  #gnb {
    width: 180px;
  }
  #gnb>li>a {
    font-size: 14px;
    height: 45px;
  }
  .tit {
    font-size: 80px;
  }
  .txt {
    font-size: 22px;
  }
  .txt b {
    font-size: 22px;
  }
  #side {
    width: 500px;
    right: -500px;
  }
  #side:hover {
    right: -350px;
  }
}

/* 768px 이하 (모바일 가로, 작은 태블릿) */
@media screen and (max-width: 768px) {
  h1 {
    top: 20px;
    left: 20px;
  }
  h1 img {
    width: 150px;
  }
  header {
    display: none; /* 좌측 헤더 감춤 */
  }
  #gnb {
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
  }
  #gnb>li>a {
    text-align: center;
    padding: 0;
    width: auto;
    background: none;
  }
  #side {
    display: none; /* 사이드 패널 모바일에서는 감춤 */
  }
  .txtBox {
    width: 100%;
    right: 0;
    top: 150px;
    text-align: center;
  }
  .tit {
    font-size: 60px;
  }
  .txt {
    font-size: 20px;
  }
}

/* 480px 이하 (모바일 세로) */
@media screen and (max-width: 480px) {
  h1 img {
    width: 120px;
  }
  .tit {
    font-size: 40px;
  }
  .txt {
    font-size: 16px;
  }
  .txt b {
    font-size: 16px;
  }
  #sns {
    top: auto;
    bottom: 20px;
    right: 20px;
  }
  #sns .fa {
    font-size: 20px;
    margin-right: 15px;
  }
}
