@charset "UTF-8";
/* 2026 홈페이지 모바일 (2026-11-18) — 기존 디자인 그대로 태블릿·휴대폰 폭에 맞춘다.
   include/header.php 의 viewport 를 1280 고정에서 device-width 로 바꾸면서 켜지는 기존 반응형
   (responsive.css 1260·960·768·500 구간)의 고정 px 폭·최소 폭을 걷어 내고, 1260px 이하에서 숨겨지던 사이드바를
   본문 위 메뉴 칸으로 보인다.
   - 1261px 이상(PC) 화면은 바꾸지 않는다. 이 파일의 규칙은 모두 max-width 미디어쿼리 안에 있다.
   - 색·글꼴·선·모서리는 기존 값(주색 #0091db, hover #0277a5, 상자 선 2px #f0f0f0, 표 머리 위 3px 파란 선)만 쓴다.
   - 기존 CSS 파일(2023css·2023sub·sojin·responsive·2026*)은 고치지 않고 여기서 덮어쓴다. header.php 가 맨 마지막에 읽는다.
   - 페이지별 규칙(#course .content 등 id 선택자)을 이기도록 틀 규칙은 #wrap 을 앞에 붙인다. */


/* ================================================================
   1260px 이하 — 햄버거 메뉴 구간(태블릿·휴대폰) 공통
   ================================================================ */
@media screen and (max-width: 1260px) {

  /* 가로 넘침 방지 — 본문 안 큰 이미지·표는 아래 규칙으로 폭 안에 넣는다 */
  html, body {overflow-x: hidden;}

  /***** 햄버거 메뉴(오른쪽 패널) *****/
  /* 로그인 줄·닫기 칸 아래 메뉴 목록이 화면 높이(100%)만큼 잡혀 맨 아래 150px 가 화면 밖으로 나가 스크롤로도 닿지 않았다 → 남은 높이만 쓴다 */
  .popup .wrap {display: flex; flex-direction: column;}
  .popup .wrap > .login, .popup .pop_top {flex: 0 0 auto;}
  .popup .pop_main {flex: 1 1 auto; height: auto; min-height: 0; padding-bottom: 30px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;}
  /* 닫기: 손가락에는 hover 가 없어 '>' 모양으로만 보였다 → 기존 hover 모양(X)을 기본으로 */
  .popup .pop_top .close {padding: 10px; cursor: pointer;}
  .popup .pop_top .close .close_1 {top: 5px; left: 1px;}
  .popup .pop_top .close .close_2 {top: -5px;}

  /***** 서브 페이지 틀 *****/
  /* 헤더(70px 고정) 바로 아래에서 시작 — #wrap 이 이미 70px 을 띄우므로 .container 의 100px 은 빈칸이었다 */
  #main, #wrap .container {margin-top: 0;}
  #wrap .container {display: block; width: 80vw; min-width: 0; max-width: none; min-height: 0; margin-left: auto; margin-right: auto; padding: 30px 0 0;}
  #wrap .container > .content {width: 100%; min-width: 0; margin-left: 0; padding-bottom: 80px;}
  h1.sub_title {margin-bottom: 30px;}

  /***** 사이드바 → 본문 위 메뉴 칸 *****/
  /* 기존 사이드바 상자(2px #f0f0f0 테두리, 선택 시 파란 테두리·글자)를 칸으로 나란히 놓는다.
     파란 구역 제목 칸은 페이지 제목(h1)과 겹치므로 숨긴다.
     학원안내·교육센터의 지점 목록(3단)은 선택된 항목 아래 줄 전체에 보인다(선택된 li 를 풀어 지점 목록을 칸 목록의 마지막 줄로 보낸다). */
  #wrap .container > .snb {display: block; width: 100%; min-width: 0; margin: 0 0 28px;}
  .snb > ul > li {height: auto; background: none;}
  .snb > ul > li > a {display: none;}
  /* 칸 폭: 기본 150px 에서 줄 폭을 나눠 채우고, 이름이 길면 글자만큼(글자 중간에서 끊지 않는다) */
  .snb > ul > li > ul {display: flex; flex-wrap: wrap; gap: 6px;}
  .snb > ul > li > ul > li,
  .snb > ul > li > ul > li:first-child,
  .snb > ul > li > ul > li.academyGuide,
  .snb > ul > li > ul > li.centerGuide {flex: 1 0 150px; min-width: max-content; height: auto; margin: 0; border: 0;}
  .snb > ul > li > ul > li > a {display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 12px; font-size: 15px; line-height: 1.3; text-align: center; white-space: nowrap; border: 2px solid #f0f0f0; box-sizing: border-box;}
  .snb > ul > li > ul > li > ul {display: none;}
  .snb > ul > li > ul > li.on {display: contents;}
  .snb > ul > li > ul > li.on > a {flex: 1 0 150px; min-width: max-content;}
  .snb > ul > li > ul > li.on > ul {display: flex; flex-wrap: wrap; flex: 0 0 100%; order: 1; gap: 4px 18px; margin: 6px 0 0; padding: 14px 4px 0; text-align-last: auto; border-top: 1px solid #eaeaea;}
  .snb ul li ul li ul li a {margin: 0; font-size: 15px; line-height: 28px; text-align: left; white-space: nowrap;}

  /***** 본문 안 이미지·표(게시글·과정 상세) — 폭 안에, 넓은 표는 가로로 밀어서 *****/
  #noticeView .txt_body img,
  #courseView .lectureInfo img {max-width: 100%; height: auto;}
  #noticeView .txt_body table,
  #courseView .lectureInfo table {display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;}
  #hrd .content img {width: 100%; max-width: 100%; height: auto; margin-left: 0;}

  /***** 수강신청 목록 — 카드 3칸 *****/
  #wrap #course .content {display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 16px;}
  #wrap #course .content > * {flex: 0 0 100%; min-width: 0;}
  #wrap #course .content > .lecture {flex: 0 0 calc((100% - 32px) / 3); margin: 0; padding: 0 0 36px;}
  #course .content .lecture a {display: block;}
  #course .content .lecture img,
  #course .content .lecture .lecture_text {width: 100%; min-width: 0; height: auto; max-height: none; aspect-ratio: 16 / 9;}
  #course .content .lecture h3 {width: 100%;}
  #course .search-container {min-width: 0;}

  /***** 과정 상세 *****/
  #courseView .content .lecture {display: flex; justify-content: flex-start; align-items: flex-start;}
  #courseView .content .lecture .courseLeft {flex: 0 1 50%; min-width: 0; margin-right: 3vw;}
  #courseView .content .lecture .courseLeft img,
  #courseView .content .lecture .courseLeft .lecture_text {width: 100%; height: auto; margin: 0;}
  #courseView .content .lecture .courseLeft .lecture_text {aspect-ratio: 500 / 284;}
  #courseView .content .lecture .courseRight {flex: 1 1 0; width: auto; min-width: 0;}
  #courseView .content .lecture .courseRight ul.info {flex-wrap: wrap;}
  #courseView .content .lectureInfo {margin-top: 70px;}

  /***** 학원안내·교육센터 *****/
  #academy .content .map {height: 380px;}
  #academy .content .traffic img {max-width: 100%; height: auto;}

  /***** 마이페이지 *****/
  #mypage .content .btn {float: none; margin-top: 40px; text-align: right;}
}


/* ================================================================
   1260px 이하 — 메인 수강신청 넘기기
   ================================================================ */
@media screen and (max-width: 1260px) {

  /***** 메인 수강신청 — 제목·더보기 한 줄, 지점 탭은 다음 줄(넘치면 줄바꿈), 카드는 그 아래 *****/
  /* 한 줄에 제목·탭 10개·더보기를 넣으면 '대구·경북지점'이 두 줄로 깨지고 뒤쪽 탭과 더보기가 오른쪽 가림막(.academyContainer2) 밑에 숨었다.
     카드 줄(dd)은 위치(absolute top) 대신 탭 아래 흐름으로 둔다. 카드 크기·가림막·넘김은 그대로. */
  #main #main2 .academy {height: auto;}
  #main #main2 .academy .academyList {flex-wrap: wrap; align-items: center; padding-right: 10vw; box-sizing: border-box;}
  #main #main2 .academy .academyList > h2 {position: static; flex: 1 1 auto; margin-right: 0;}
  #main #main2 .academy .academyList > .more {position: static; padding-left: 20px;}
  /* min-width 0: 카드 줄(ul.slider)은 스크립트가 카드 수만큼 넓혀 두므로(수천 px) 그 폭이 탭 줄 폭이 되지 않게 */
  #main #main2 .academy .academyList dl {order: 1; flex: 0 0 100%; width: auto; min-width: 0; flex-wrap: wrap; row-gap: 6px; margin-top: 14px; padding-left: 0;}
  #main #main2 .academy .academyList dl dd {position: static; order: 1; flex: 0 0 100%; min-width: 0; margin-top: 16px;}
}
@media screen and (max-width: 500px) {
  #main #main2 .academy .academyList {padding-right: 5vw;} /* 가림막 폭이 5vw 로 준다 */
}


/* ================================================================
   960px 이하
   ================================================================ */
@media screen and (max-width: 960px) {

  /***** 메인 수강신청 이전·다음 버튼 — 카드 세로 가운데에 (구역 아래 여백 7vh + 카드 높이 절반 − 버튼 절반) *****/
  #main #main2 .academy .btn .btnLeft,
  #main #main2 .academy .btn .btnRight {bottom: calc(7vh + 72px);}

  /***** 학원안내 — 교통 상자와 사진을 위아래로 *****/
  #academy .content .information,
  #academy .content .academy_btm {min-width: 0;}
  #academy .content .academy_btm {display: block;}
  #academy .content .academy_btm > .traffic {width: 100%; min-width: 0; height: auto; margin: 0 0 20px;}
  #academy .content .academy_btm > .bx-wrapper {margin: 0 auto;}
  #academy .content .academy_btm .photo img {width: 100%; height: auto;}
}


/* ================================================================
   768px 이하 — 휴대폰(가로)·작은 태블릿
   ================================================================ */
@media screen and (max-width: 768px) {

  /* 기존 70vw(좌우 15% 여백)는 폭이 좁아질수록 본문이 작아진다 → 좌우 20px */
  #wrap .container {width: auto; margin-left: 20px; margin-right: 20px; padding-top: 24px;}

  /***** 메인 배너 — 휴대폰용 배너(SETTING_BANNER_M, 770×450) 비율 그대로 *****/
  /* 기존은 높이 350px(768 이하)·200px(500 이하) 고정 + 꽉 채우기라 위아래가 잘렸다 */
  #main #main1 .mainSlide {height: auto; max-height: none; aspect-ratio: 770 / 450;}
  #main #main1 .mainSlide ul,
  #main #main1 .mainSlide ul li {height: 100%; max-height: none;}
  #main #main1 .mainSlide ul li img {height: 100%;}

  /***** 수강신청 목록 — 카드 2칸 *****/
  #wrap #course .content {gap: 0 12px;}
  #wrap #course .content > .lecture {flex-basis: calc((100% - 12px) / 2); padding-bottom: 28px;}
  #course .content .lecture h3,
  #course .content .lecture span {font-size: 1.05rem;}
  #course .content .lecture .lecture_text {padding: 0 12px;}
  #course .content .lecture .lecture_text p {font-size: 17px;}
  #course .search {padding: 10px 0;}

  /***** 과정 상세 — 사진 위, 정보 아래 *****/
  #courseView .content .lecture {display: block;}
  #courseView .content .lecture .courseLeft {margin: 0 0 20px;}
  #courseView .content .lecture .courseRight {width: 100%;}
  #courseView .content .lecture .courseRight h2 {font-size: 22px;}
  #courseView .content .lecture .courseRight ul.info li {font-size: 17px; white-space: normal;}
  #courseView .content .lecture .courseRight p.price {font-size: 20px;}
  /* 신청 버튼: 떠 있던 위치(absolute)를 풀고 폭 전체로 */
  #courseView .content .lecture .courseRight .btn {position: static; transform: none; width: 100%; padding-top: 16px;}
  #courseView .content .lecture .courseRight .btn a {line-height: 50px;}
  #courseView .btn_confirm, #courseView .btn_full {margin-top: 24px; line-height: 50px;}
  #courseView .content .lectureInfo {margin-top: 50px;}

  /***** 학원안내 *****/
  #academy .content .map {height: 300px;}
  .academy .content h4 {margin-bottom: 24px;}

  /***** 교육과정 표 — 머리칸 줄바꿈 간격 *****/
  #curriculum .content table tr th {padding: 10px 4px; line-height: 1.4;}

  /***** 로그인·회원정보 찾기 *****/
  #wrap #login .content {max-width: 450px; margin: 0 auto;}
  #login .content h1 img {width: 70%; min-width: 0; max-width: 300px; padding: 40px 0 50px;}
  #login .content input[type='text'],
  #login .content input[type='password'] {width: 100%;}
  #login .content .button {display: flex; gap: 10px;}
  #login .content .button > .btn,
  #login .content .button > a {flex: 1 1 0; margin-top: 40px;}
  #login .content .button .btn {width: 100%; height: 46px;}
  #login .content .button > a .btn {margin-top: 0;}

  /***** 약관 동의 *****/
  #joinStep .content {width: 100%;}
  #joinStep .main_title {font-size: 24px;}
  #joinStep .join_btn {margin: 40px auto 60px;}

  /***** 회원가입·회원정보 수정 *****/
  #wrap #joinMember .content {max-width: 580px; margin: 0 auto;}
  #joinMember .content h1 {font-size: 26px;}
  #joinMember .content form {margin-top: 36px;}
  #joinMember .content form p {margin-bottom: 26px;}
  #joinMember .content input:not(:nth-child(2)),
  #joinMember .content select {width: 100%;}
  #joinMember .content input.id {width: calc(100% - 110px);}
  #joinMember .content input[type='button'] {width: 100px; min-width: 0;}
  #joinMember .content button {width: 100%; height: 48px;}

  /***** 마이페이지 — 표를 신청 건마다 상자로 *****/
  #mypage .content h1 {font-size: 26px;}
  #mypage .content table,
  #mypage .content tbody,
  #mypage .content tr,
  #mypage .content td {display: block; width: auto;}
  #mypage .content table {margin-top: 30px; border: 0;}
  #mypage .content colgroup,
  #mypage .content thead {display: none;}
  #mypage .content tbody tr {display: flex; flex-direction: column; position: relative; margin-bottom: 12px; padding: 16px 16px 14px; border: 1px solid #ccc; border-top: 3px solid #0091db; cursor: pointer;}
  #mypage .content tbody td {padding: 2px 0; border: 0; text-align: left; line-height: 24px;}
  #mypage .content tbody td:nth-child(1) {display: none;}
  #mypage .content tbody td:nth-child(4) {order: -1; padding-right: 110px; margin-bottom: 8px; font-size: 17px; font-weight: 600;}
  #mypage .content tbody td:nth-child(3) {position: absolute; top: 16px; right: 16px; padding: 0;}
  #mypage .content tbody td:nth-child(2),
  #mypage .content tbody td:nth-child(5) {font-size: 15px; color: #333;}
  #mypage .content tbody td:nth-child(2)::before {content: '신청일자'; display: inline-block; width: 70px; color: #999;}
  #mypage .content tbody td:nth-child(5)::before {content: '모집기간'; display: inline-block; width: 70px; color: #999;}
  #mypage .content .btn {margin-top: 30px;}

  /***** 게시판 *****/
  /* 목록: 날짜는 한 줄(글자 수만큼), 제목이 남은 폭 */
  #notice .content .notice_txt dl dt {flex: 1 1 auto; width: auto; min-width: 0;}
  #notice .content .notice_txt dl dd:last-child {flex: 0 0 auto; width: auto; white-space: nowrap;}
  #notice .content h1.title, #noticeView h1.title, #noticeWrite h1.notice_title {font-size: 24px; padding: 15px;}
  #noticeView .content .txt_body {padding: 20px 4px;}
  #noticeWrite dl {padding: 15px 0;}
  #noticeWrite .btn_register {padding: 15px 0;}
  #noticeWrite .bnt_1, #noticeWrite .bnt_2 {margin-top: 40px;}

  /***** 점검 화면(parking.php) *****/
  #parking {min-height: 0;}
  #parking img {width: 100%; height: auto;}
}


/* ================================================================
   500px 이하 — 휴대폰(세로)
   ================================================================ */
@media screen and (max-width: 500px) {

  #wrap .container {margin-left: 16px; margin-right: 16px; padding-top: 20px;}
  h1.sub_title {margin-bottom: 24px; padding: 14px 10px;}

  /***** 메뉴 칸 3칸 *****/
  .snb > ul > li > ul > li,
  .snb > ul > li > ul > li:first-child,
  .snb > ul > li > ul > li.academyGuide,
  .snb > ul > li > ul > li.centerGuide,
  .snb > ul > li > ul > li.on > a {flex-basis: calc((100% - 12px) / 3);}
  .snb > ul > li > ul > li > a {height: 44px; padding: 0 8px; font-size: 14px;}
  .snb ul li ul li ul li a {font-size: 14px;}
  #wrap .container > .snb {margin-bottom: 22px;}

  /***** 수강신청 목록 *****/
  #course .content .lecture h3 {margin-top: 8px; font-size: 15px; line-height: 1.35;}
  #course .content .lecture span {margin-top: 3px; font-size: 15px;}
  #course .content .lecture .lecture_text {padding: 0 8px;}
  #course .content .lecture .lecture_text p {font-size: 15px;}
  #course .search-input {padding: 12px 18px;}

  /***** 과정 상세 *****/
  #courseView .content .lecture .courseRight h2 {font-size: 20px;}
  #courseView .content .lecture .courseRight ul.info li {font-size: 16px;}
  #courseView .content .lecture .courseRight ul.info li:first-child {margin-right: 8px;}
  #courseView .content .lecture .courseRight ul.info li:first-child::after {margin-left: 8px;}
  #courseView .content .lecture .courseRight p.price {font-size: 19px;}

  /***** 학원안내 *****/
  #academy .content .map {height: 240px;}
  #academy .content .academy_btm > .traffic {padding: 20px 16px;}
  .academy .content .information {padding: 10px 12px;}

  /***** 교육과정 표 *****/
  #curriculum .content table {min-width: 0;}
  #curriculum .content table tr td ul {padding: 0 8px 0 12px;}

  /***** 회원 화면 *****/
  #joinStep .main_title {font-size: 21px; padding-bottom: 18px;}
  #joinMember .content h1, #mypage .content h1 {font-size: 22px; padding-bottom: 18px;}

  /***** 마이페이지 *****/
  #mypage .content tbody td:nth-child(4) {padding-right: 0; margin-top: 30px;}
  #mypage .content tbody td:nth-child(3) {left: 16px; right: auto;}
}
