@media screen and (max-width: 1600px) {
  #headerIn {
    width: 90%;
    gap: 60px;
  }

  .gnb ul {
    gap: 70px;
  }
  .sub-bg {
    width: 1400px;
  }
  .depth_title {
    width: 30%;
  }
  .depth2-wrap {
    width: 70%;
  }
  .depth2-wrap ul {
    gap: 40px;
  }
}

@media screen and (max-width: 1400px) {
  #headerIn {
    width: 95%;
    gap: 40px;
  }

  .logo img {
    width: 260px;
  }

  .gnb ul {
    gap: 60px;
  }
  .gnb {
    margin-left: 40px;
  }

  .utill {
    right: 20px;
  }
  /* 하위메뉴 배경 - 핵심: top을 header 높이 변수로 정확히 맞춤 */
  .sub-bg {
    width: 1200px;
  }
  .depth_title {
    width: 35%;
  }
  .depth2-wrap {
    width: 65%;
  }
  .depth2-wrap ul {
    gap: 35px;
  }
  .ex_list {
    padding: 0 125px;
  }
  .main_menu li {
    height: 120px;
  }
  .menu_img {
    top: 35px;
    left: 40px;
    width: 35px;
    height: 35px;
  }
  .menu_name {
    top: 40px;
    left: 120px;
    font-size: 18px;
  }
  .menu_more {
    top: 40px;
    right: 40px;
    width: 18px;
  }
  .expert_list_sub li {
    flex: 0 0 calc((100% - 60px) / 4); /* 4개씩 배치, gap 20px*3 */
  }
}
@media screen and (max-width: 1200px) {
  .ex_list {
    padding: 0 80px;
  }
  .ex_photo img {
    width: 100px;
    height: 100px;
    margin: 40px auto 15px;
  }
  .ex_name {
    font-size: 20px;
  }
  .ex_des {
    font-size: 14px;
  }
  .keyword {
    font-size: 13px;
    padding: 3px 12px;
  }
  .history_view {
    width: 150px;
    height: 32px;
    font-size: 14px;
  }
  .id_05::after {
    width: 40%;
  }
  .facility-view {
    flex: 0 0 calc((100% - 20px) / 2); /* 2개씩 배치 */
    max-width: none;
  }
  .big-img img {
    max-width: 300px;
  }
  .thumbs img {
    width: 80px;
  }
  .apply_step li {
    flex: 0 0 calc(25% - 15px);
  }
  .expert_list_sub li {
    flex: 0 0 calc((100% - 40px) / 3); /* 3개씩 배치, gap 20px*2 */
  }
  .pro_left {
    min-width: 400px;
  }
  .pro_right {
    flex: 0 0 320px;
  }

  .pro_name {
    font-size: 22px;
  }

  .pro_intro {
    padding: 30px 25px 40px;
  }
}
@media screen and (max-width: 1024px) {
  .scroll-indicator {
    display: none;
  }
  #headerIn {
    width: 90%;
    height: 80px;
    justify-content: space-between;
    gap: 0;
  }
  .gnb,
  .utill {
    display: none;
  }
  .sub-bg {
    display: none;
  }
  .m-menu-btn {
    display: block;
  }

  .notice h2 {
    font-size: 22px;
  }
  .b_tit {
    font-size: 23px;
  }
  .b_des {
    font-size: 14px;
  }

  .main_menu {
    flex-direction: column;
    margin: 50px 0 50px;
    border-radius: 10px;
    padding: 0;
  }
  .main_menu ul {
    flex-direction: column;
  }
  .main_menu li {
    flex: 1 1 auto;
    height: 100px;
    border-right: none;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 0;
  }
  .main_menu li:last-child {
    border-bottom: none;
  }
  .menu_img {
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
  }
  .menu_name {
    top: 20px;
    left: 70px;
    font-size: 16px;
  }
  .menu_more {
    top: 20px;
    right: 20px;
    width: 16px;
  }
  span.ip_1 {
    font-size: 32px !important;
    color: #0085ca;
  }
  .slides {
    width: 63% !important;
    height: 80% !important;
  }
  .id_01_txt {
    left: 30% !important;
  }
  .id_01_dt {
    font-size: 16px !important;
  }
  #footer .foot-head .link_site_box {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  #footer .foot-head > ul > li:last-child {
    width: 100% !important;
    float: left !important;
    padding: 0 !important;
    margin-bottom: 0;
    top: 15px;
  }
  .up {
    display: none;
  }
  .id_05 {
    padding: 30px;
  }
  .id_05::after {
    display: none;
  }
  .id_wrap {
    padding: 50px 0 !important;
  }
  .id_wrap1 {
    padding: 10px 0 !important;
  }
  .pro {
    flex-direction: column;
  }
  .pro_right {
    flex: 1 1 auto;
  }
  .ready-wrap {
    padding: 60px 0;
  }
  .ready-box {
    padding: 50px 35px;
  }
  .ready-title {
    font-size: 24px;
  }
  .ready-desc {
    font-size: 16px;
  }
  .center_intro ul {
    flex-direction: column;
    gap: 30px;
  }

  .center_intro .intro_img,
  .center_intro .intro_des {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
  }

  .center_intro .intro_des {
    margin-top: 10px;
  }
  .consult {
    display: block;
  }

  .consult h2 {
    width: 100%;
    margin-bottom: 20px;
  }

  .consult_area li {
    width: 100%; /* 1열 */
    float: none; /* float 제거 */
    height: auto; /* 고정 높이 제거 → 이미지 크기에 따라 자동 */
    margin-bottom: 30px;
  }

  .consult_area li img {
    width: 100%;
    max-width: 500px; /* 필요시 적당히 제한 */
  }
  .apply_step li {
    flex: 0 0 calc(33.33% - 10px);
  }
  .expert_list_sub li {
    flex: 0 0 calc((100% - 20px) / 2); /* 2개씩 배치, gap 20px */
  }
  .pro {
    flex-direction: column; /* 위아래 배치 */
  }

  .pro_left {
    min-width: 100%;
  }

  .pro_right {
    width: 100%;
    flex: none;
  }

  .profile {
    flex-direction: row;
    gap: 20px;
  }

  .pro_photo img {
    width: 100px;
    height: 100px;
  }
  .horizontal-sitemap .main-menu > li {
    flex: 0 0 100%; /* 1개씩 */
  }
}

@media screen and (max-width: 768px) {
  #headerIn {
    width: 92%;
  }

  .logo img {
    width: 220px;
  }
  .scroll-indicator {
    display: none;
  }

  .notice {
    flex: 1 1 100%;
    width: 100%;
  }

  .ex_tit {
    height: 45px;
    padding: 0 25px;
  }
  .ex_text {
    font-size: 16px;
  }
  .ex_list {
    padding: 0 20px;
  }
  .ex_photo img {
    width: 90px;
    height: 90px;
    margin: 30px auto 15px;
  }
  .ex_name {
    font-size: 18px;
  }
  .ex_des {
    font-size: 13px;
  }
  .keyword {
    font-size: 12px;
    padding: 3px 10px;
  }
  .history_view {
    width: 140px;
    height: 30px;
    font-size: 13px;
  }
  .main_menu li {
    height: 50px;
    padding: 0 15px;
  }
  .menu_img {
    top: 15px;
    left: 15px;
    width: 25px;
    height: 25px;
  }
  .menu_name {
    top: 15px;
    left: 55px;
    font-size: 14px;
  }
  .menu_more {
    top: 15px;
    right: 15px;
    width: 14px;
  }
  .id_01_txt {
    left: 20% !important;
  }
  .id_wrap {
    padding: 50px 0 !important;
  }
  .id_wrap1 {
    padding: 10px 0 !important;
  }
  .id_05 {
    padding: 30px;
  }
  .id_05_tt {
    font-size: 28px !important;
  }
  .id_05_st {
    font-size: 18px !important;
  }
  .id_05_dt {
    font-size: 16px !important;
    width: 400px !important;
  }
  .id_05_bt a {
    padding: 10px 30px !important;
    font-size: 14px !important;
  }
  .id_05::after {
    display: none;
  }
  .id_06 {
    padding: 20px;
  }
  .up {
    display: none;
  }
  .id_01_tt {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }
  span.ip_1 {
    font-size: 28px !important;
    color: #0085ca;
  }
  span.ip_2 {
    font-size: 24px !important;
    margin-bottom: 20px;
  }
  .id_01_dt {
    font-size: 14px !important;
  }
  .slides {
    width: 63% !important;
    height: 80% !important;
  }
  .id_01 {
    height: auto !important;
    min-height: 600px;
  }
  #footer .contents_wrap {
    padding: 15px !important;
  }
  #footer .foot-head > ul {
    height: 45px !important;
  }
  #footer .foot-head > ul > li > a {
    font-size: 12px !important;
    padding: 10px 10px 5px 0 !important;
  }
  #footer .foot-head .link_site_box {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  #footer .foot-head > ul > li:last-child {
    width: 100% !important;
    float: left !important;
    padding: 0 !important;
    margin-bottom: 0;
    top: 15px;
  }
  #footer .foot-head .link_site_btn {
    padding: 10px !important;
    font-size: 13px !important;
  }
  #footer .foot-head .link_site_list > li a {
    font-size: 12px !important;
  }
  .sub_tab_menu ul {
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    height: 70px;
  }
  .sub_tab_menu li a {
    padding: 10px 0;
    font-size: 14px;
  }
  .sub_tab_menu li {
    flex: 0 0 auto;
  }
  .sub_tab_menu li.on a::after {
    bottom: 0px;
  }
  ready-wrap {
    padding: 50px 0 !important;
  }
  .ready-box {
    padding: 40px 25px !important;
    border-radius: 15px !important;
  }
  .ready-title {
    font-size: 22px !important;
  }
  .ready-desc {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  .facility-view {
    flex: 0 0 100%; /* 1개씩 배치 */
  }
  .img-area {
    flex-direction: column; /* 큰 이미지 위, 썸네일 아래 */
    align-items: center;
  }
  .big-img img {
    max-width: 100%;
  }
  .thumbs {
    flex-direction: row; /* 썸네일 가로 배열 */
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
  }
  .thumbs img {
    width: 60px;
  }
  .apply_step ul {
    flex-direction: column;
    align-items: center;
  }
  .step_arrow img {
    display: none;
  }
  .apply_step li {
    width: 80%;
    margin-bottom: 20px;
  }
  .expert_list_sub li {
    flex: 0 0 100%; /* 모바일에서 1개씩 배치 */
  }
  .profile {
    flex-direction: column; /* 사진 위, 이름 아래 */
    align-items: center;
    text-align: center;
  }

  .pro_des {
    align-items: center;
  }

  .pro_name {
    font-size: 20px;
  }

  .pro_keyword {
    font-size: 15px;
  }

  .line {
    margin: 25px 0;
  }

  .pro_intro {
    padding: 25px 20px;
  }

  .counsel_apply {
    height: 55px;
    font-size: 16px;
  }

  .similar_list li {
    padding: 20px;
  }

  .white-bt {
    width: 120px;
    height: 50px;
    font-size: 16px;
  }
  .reserve_content {
    flex-direction: column; /* 세로로 쌓이도록 변경 */
  }

  .cal {
    width: 100%;
    margin-bottom: 20px;
  }

  .rs_notice ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .reserve_step li {
    width: 100%; /* 100%로 확장 */
    height: 70px;
    line-height: 70px;
  }

  .reserve_step li:last-child {
    border-right: none;
  }
  .time {
    width: 100%;
  }
  .time_select li {
    width: 100%; /* 세로로 차지하도록 */
    margin: 0 0 10px 0;
  }

  .time_select .time_pos {
    width: 100%;
    text-align: center;
  }
  .list_01 th,
  .list_01 td {
    font-size: 16px; /* 글자 크기 줄이기 */
    padding: 12px; /* 패딩 줄이기 */
  }

  .list_01 th {
    font-size: 17px; /* 헤더 크기 약간 키움 */
    padding: 20px 15px; /* 헤더 패딩 조정 */
  }

  .list_01 td input,
  .list_01 .counsel_text textarea {
    font-size: 14px; /* 입력창 글자 크기 줄이기 */
  }

  .list_01 .counsel_text textarea {
    height: 300px; /* 텍스트 영역 높이 줄이기 */
  }
  .list_02 th {
    font-size: 16px !important;
  }

  .list_02 td {
    font-size: 12px;
  }
  .notice2 td {
    font-size: 14px;
    padding: 15px 0;
  }

  .notice2 .n_tit {
    font-size: 16px;
  }

  .n_lv {
    width: 60px;
    font-size: 12px;
    padding: 3px 15px;
  }

  .notice_view th,
  .notice_view td {
    font-size: 14px;
    padding: 15px;
  }

  .notice_view .file_tit {
    font-size: 14px;
  }

  .notice_view .write {
    font-size: 14px;
    padding: 15px 25px;
  }

  .notice_view .pre,
  .notice_view .nex {
    width: 100px;
  }
}
@media screen and (max-width: 480px) {
  #headerIn {
    height: 70px;
  }

  .logo img {
    width: 180px;
  }

  .m-menu-btn span {
    width: 24px;
    height: 2.5px;
  }
  .slides {
    position: absolute;
    width: 45%; /* 원하는 비율 */
    height: 50%;
  }
  .notice {
    flex: 1 1 100%; /* 리스트도 전체 너비로 */
  }
  .notice h2 {
    font-size: 18px;
  }

  .notice_list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .n_title {
    font-size: 14px;
    margin-right: 0;
  }
  .n_date {
    display: none;
  }

  .ex_tit {
    height: 45px;
    padding: 0 25px;
  }
  .ex_text {
    font-size: 16px;
  }
  .ex_list {
    padding: 0 10px;
  }
  .ex_photo img {
    width: 80px;
    height: 80px;
    margin: 20px auto 10px;
  }
  .ex_name {
    font-size: 16px;
  }
  .ex_des {
    font-size: 12px;
  }
  .keyword {
    font-size: 11px;
    padding: 2px 8px;
  }
  .history_view {
    width: 120px;
    height: 28px;
    font-size: 12px;
    margin-bottom: 20px;
  }
  .main_menu li {
    height: 45px;
  }
  .menu_img {
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
  }
  .menu_name {
    top: 10px;
    left: 45px;
    font-size: 13px;
  }
  .menu_more {
    top: 10px;
    right: 10px;
    width: 12px;
  }
  .ready-wrap {
    padding: 40px 0 !important;
  }
  .ready-box {
    padding: 30px 20px !important;
    border-radius: 12px !important;
  }
  .ready-title {
    font-size: 20px !important;
  }
  .ready-desc {
    font-size: 14px !important;
  }
  .pro_photo img {
    width: 80px;
    height: 80px;
  }

  .pro_name {
    font-size: 18px;
  }

  .c_des {
    font-size: 14px;
  }

  .pro_intro .intro_text {
    font-size: 14px;
  }
  .reserve_bt {
    margin-bottom: 40px; /* 버튼 아래 여백 줄이기 */
  }

  .blue-bt {
    width: 100%;
    height: 50px; /* 버튼 크기 조정 */
  }

  .counsel_tit {
    font-size: 18px;
  }

  .time_select li {
    font-size: 15px;
  }
  .list_01 th {
    font-size: 14px !important; /* 헤더 글자 크기 줄이기 */
    padding: 10px 10px; /* 헤더 패딩 줄이기 */
  }

  .list_01 td {
    font-size: 14px !important; /* 테이블 셀 글자 크기 줄이기 */
    padding: 10px; /* 셀 패딩 줄이기 */
  }

  .list_01 td input,
  .list_01 .counsel_text textarea {
    font-size: 12px; /* 입력창 글자 크기 줄이기 */
    height: 35px; /* 입력창 높이 줄이기 */
  }

  .list_01 .counsel_text textarea {
    height: 250px; /* 텍스트 영역 높이 줄이기 */
  }
  .list_02 th {
    font-size: 14px !important;
  }
  /* 글자 크기 더 줄이기 */
  .notice2 td {
    font-size: 13px;
    padding: 12px 0;
  }

  .notice2 .n_tit {
    font-size: 14px;
  }

  .n_lv {
    width: 50px;
    font-size: 11px;
    padding: 3px 10px;
  }

  .notice_view th,
  .notice_view td {
    font-size: 13px;
    padding: 12px;
  }

  .notice_view .file_tit {
    font-size: 13px;
  }

  .notice_view .write {
    font-size: 13px;
    padding: 10px 20px;
  }

  .notice_view .pre,
  .notice_view .nex {
    width: 80px;
  }
}
