@charset "UTF-8";

/*--------------------------------------------------------------------------------------------
모바일 반응형 (PC 화면은 그대로 — 900px 이하에서만 적용)
 front_top.php 에서 all.css 다음에 불러옴
--------------------------------------------------------------------------------------------*/
.nav-toggle { display: none; }

@media (max-width: 900px) {
	html { -webkit-text-size-adjust: 100%; }
	body { overflow-x: hidden; }
	img, video, iframe { max-width: 100%; }
	img { height: auto; }

	#wrap, #Wrap { min-width: 0; width: 100%; }
	.box { width: auto; max-width: 100%; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

	/* ---- 머리말 + 햄버거 메뉴 ---- */
	.head_top { height: 60px; }
	.head_top .box { justify-content: flex-start; }
	h1.logo img { height: 38px; width: auto; display: block; }
	a.site_add { display: none; }
	.gnb { top: 50%; right: 62px; transform: translateY(-50%); }
	.gnb ul li { margin-left: 10px; }
	.gnb ul li a { font-size: 12px; }
	.gnb ul li a i { font-size: 17px; }
	.nav-toggle {
		display: block; position: absolute; right: 12px; top: 50%; width: 42px; height: 42px; margin-top: -21px;
		border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; padding: 0;
	}
	.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
		content: ""; display: block; position: absolute; left: 11px; width: 18px; height: 2px; background: #de045b; transition: transform .2s, opacity .2s;
	}
	.nav-toggle span { top: 20px; }
	.nav-toggle span::before { left: 0; top: -6px; }
	.nav-toggle span::after { left: 0; top: 6px; }
	body.nav-open .nav-toggle span { background: transparent; }
	body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
	body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

	.head_btm { display: none; border-bottom: 0; }
	body.nav-open .head_btm { display: block; border-bottom: 1px solid #de045b; }
	.head_btm .Lnb.box { padding: 0; }
	.Lnb > ul { display: block; }
	.Lnb > ul > li { width: auto; text-align: left; border-bottom: 1px solid #eee; }
	.Lnb > ul > li > a { position: relative; padding: 15px 18px; font-size: 17px; }
	.Lnb > ul > li > a::after { content: "+"; position: absolute; right: 18px; top: 13px; font-weight: 400; color: #999; }
	.Lnb > ul > li.open > a::after { content: "\2212"; }
	.Lnb > ul > li .menu_box,
	.Lnb > ul > li .menu_box.none {
		display: none; position: static; width: auto; margin: 0; border: 0; box-shadow: none; background: #fbf3f7;
	}
	.Lnb > ul > li.open .menu_box,
	.Lnb > ul > li.open .menu_box.none { display: block; }
	.Lnb > ul > li .menu_box ul { padding: 4px 0; }
	.Lnb > ul > li .menu_box ul li a { padding: 12px 28px; font-size: 15px; }

	/* ---- 하위 화면 공통 ---- */
	.title_area { margin: 24px auto 32px; }
	.title_area .sub_title { font-size: 24px; }
	#location { padding-top: 10px; }
	.section { margin-bottom: 40px; }
	.section.line { padding-bottom: 30px; margin-bottom: 30px; }
	.section, .right-con .section { display: block; }
	.section .stit_line, .right-con .section .stit_line,
	.section-con, .right-con .section .section-con,
	.right-con, .Lnb-3step, .Lnb-3step ul { float: none; width: auto; max-width: 100%; margin-right: 0; }
	.section .stit_line { margin-bottom: 16px; font-size: 19px; }
	.flex-center-top { flex-wrap: wrap; }
	.Lnb-2step .box { margin-bottom: 30px; }
	.Lnb-2step ul { flex-wrap: wrap; gap: 6px; }
	.Lnb-2step ul li { flex: 1 1 40%; }
	.Lnb-2step ul li a { width: auto; margin: 0; font-size: 15px; }
	p.basic { font-size: 15px; line-height: 24px; }
	ul.dot li { font-size: 15px; }
	.book-img { width: 100px; margin-right: 16px; }
	.book-info2 ul.dot { width: auto; }

	.d-flex { flex-wrap: wrap; }
	.d-flex.box { flex-direction: column; }
	.d-flex > * { max-width: 100%; box-sizing: border-box; }
	.line.d-flex .stit_line, .line.d-flex .section-con { width: 100%; margin-right: 0; }

	/* 입력 양식 표(b-line): 제목 위 / 입력칸 아래로 쌓기 */
	table.b-line, table.b-line > tbody, table.b-line > tbody > tr, table.b-line > tbody > tr > th, table.b-line > tbody > tr > td { display: block; width: auto !important; box-sizing: border-box; }
	table.b-line colgroup, table.b-line col { display: none; }
	table.b-line > tbody > tr > th { height: auto; text-align: left; border-bottom: 0; padding-bottom: 4px; }
	table.b-line > tbody > tr > td { height: auto; }
	table.b-line textarea { width: 100%; }

	/* 수강료 표 → 카드 한 장씩 (제목줄 숨김, 수강신청 버튼은 크게) */
	table.pg-table, table.pg-table > tbody { display: block; width: auto !important; border: 0; }
	table.pg-table tr.pg-head { display: none; }
	table.pg-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 14px 16px; margin: 0 0 12px; border: 1px solid #e3e8f7 !important; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(43, 49, 80, .06); }
	table.pg-table tr.pg-sep { margin-top: 20px; }
	table.pg-table td { display: block; width: auto !important; padding: 0; border: 0 !important; font-size: 13px; text-align: left; }
	table.pg-table.basic td.pg-week { flex: 0 0 100%; margin-bottom: 4px; font-size: 18px; font-weight: 700; color: #1d3fb0; }
	table.pg-table td.pg-time, table.pg-table td.pg-way, table.pg-table td.pg-term { padding: 4px 10px; border-radius: 999px; background: #f1f4fc; color: #3f4a7a; font-weight: 700; }
	table.pg-table td.pg-pay { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed #dfe5fa !important; }
	table.pg-table td.pg-pay > b { font-size: 21px; color: #222; }
	.pg-arrow { display: none; }
	a.pg-btn { display: inline-block; flex: 0 0 auto; min-width: 140px; padding: 15px 22px; border-radius: 12px; background: #de045b; text-align: center; text-decoration: none; }
	a.pg-btn, a.pg-btn font, a.pg-btn b { color: #fff !important; font-size: 17px; font-weight: 700; }

	/* 수강료 표(기타 칸 안의 신청 링크)도 같은 큰 버튼 */
	table.basic.border.center td:last-child a.pg-btn { white-space: nowrap; }
	table.basic.border.center td { padding: 8px 4px; font-size: 13px; word-break: keep-all; }

	/* 수강신청 작성: 항목 이름을 입력칸 위로 */
	.sw-row > label, .sw-row > .sw-l { flex: 0 0 100%; }
	.sw-row > .sw-l2 { flex: 0 0 100%; margin-left: 0; }
	.sw-row input[type=text], .sw-row select { max-width: 100%; }

	/* 표·입력칸·고정폭 (JS 가 화면보다 넓은 표에 tbl-scroll 을 붙임) */
	#contents table { max-width: 100%; }
	#contents table.tbl-scroll, #contents .tbl-scroll table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], input[type=date], select, textarea { max-width: 100%; box-sizing: border-box; font-size: 16px; }
	.textarea_x { width: 100%; }
	[class^="w"][class$="0"], .w115, .w135, .w205, .w212 { max-width: 100% !important; }

	/* ---- 홈 ---- */
	.main .topimg .box { height: 160px; background-size: cover; }
	.m-section { margin-bottom: 30px; }
	.ms1 { padding-bottom: 30px; }
	.ms1 br { display: none; }
	.ms1 .box, .ms2 .box, .ms3 .box { display: block; }
	.sje, .sje ul li { width: auto; }
	.sje ul { display: block; }
	.login-box { width: auto; max-width: 420px; }
	ul.login-field { height: auto; }
	ul.login-field li input[type=text], ul.login-field li input[type=password] { width: 100%; height: 46px; padding: 0 12px; box-sizing: border-box; }
	ul.login-field li.btn-area { position: static; }
	a.btn-login { width: 100%; height: 48px; line-height: 48px; }
	.login-door a { padding: 14px 0; }
	.ms2::after { display: none; }
	.m-level { margin-bottom: 20px; }
	.ms2 ul { width: auto; margin-left: 0; display: flex; }
	.ms2 ul li { float: none; flex: 1; width: auto; height: 150px; }
	.ms2 ul li i { font-size: 40px; margin-bottom: 10px; }
	.ms2 ul li p { font-size: 15px; }
	.ms3 .m-notice, .ms3 .m-customer, .ms3 .m-icon { width: auto; padding: 0 0 20px; }
	.ms3 .m-notice::after, .ms3 .m-customer::after { display: none; }

	/* ---- 마이페이지: 수업 정보 카드 (라벨 위 / 값 아래 타일) ---- */
	.outline { padding: 18px 0; }
	.outline .box > .flex-center-top { display: block; }
	.outline .card { width: auto; margin: 0 0 14px; padding: 18px 16px; border-radius: 14px; box-shadow: 0 2px 10px rgba(43, 49, 80, .08); }
	.outline h4 { padding: 0 0 10px; margin-bottom: 14px; font-size: 17px; line-height: 1.5; border-bottom: 2px solid #de045b; }
	.outline h4 .normal { display: block; margin: 4px 0 0; font-size: 14px; font-weight: 500; }
	.outline ul.class-info, .outline ul.col2.class-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
	.outline ul.class-info + ul.class-info { margin-top: 8px; }
	.outline ul.class-info li, .outline ul.col2.class-info li { width: auto !important; margin: 0; padding: 10px 12px; border-radius: 10px; background: #f6f7fb; font-size: 15px; font-weight: 700; color: #2b3150; word-break: keep-all; overflow-wrap: anywhere; }
	.outline ul.class-info li.w100p { grid-column: 1 / -1; }
	.outline ul.class-info:not(.col2) li { grid-column: 1 / -1; }
	.outline ul.class-info li .left { display: block; width: auto; margin: 0 0 3px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 500; color: #7a82a3; text-align: left; }

	/* ---- 마이페이지 달력: 날짜를 2026-11-04(수) 형식으로 ---- */
	#calendar li.day.blank { display: none; }
	#calendar .date { font-size: 0; line-height: 1.4; margin-bottom: 6px; }
	#calendar .date::before { content: attr(data-full); font-family: inherit; font-size: 16px; font-weight: 700; }
	/* 한 날짜 = 2줄: 1줄 날짜(요일) + Today / 2줄 상태·시간·강사·버튼 한 줄 */
	#calendar li.day { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; row-gap: 8px; padding: 12px 10px; font-size: 12px; }
	#calendar .date { grid-column: 1; grid-row: 1; margin: 0; }
	#calendar .date::before { font-size: 15px; }
	#calendar .tday { display: inline-block; position: static; grid-column: 3; grid-row: 1; justify-self: end; padding: 2px 10px; border-radius: 999px; background: #de045b; color: #fff; font-size: 12px; font-weight: 700; }
	#calendar .holiday { grid-column: 2 / 4; grid-row: 1; justify-self: end; font-size: 11px; }
	#calendar .event, #calendar .today .event, #calendar .event.defe { display: flex; grid-column: 1; grid-row: 2; gap: 6px; margin: 0; padding: 0; border: 0; background: none !important; font-size: 15px; line-height: 1.2; text-align: left; white-space: nowrap; }
	#calendar .event-desc, #calendar .event-time { margin: 0; font-size: 15px; }
	#calendar .tc-name { grid-column: 2; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 15px; }
	#calendar .event-btn { grid-column: 3; grid-row: 2; margin: 0; }
	#calendar .event-btn a, #calendar .event-btn > div { width: auto; margin: 0; padding: 6px 9px; font-size: 12px; white-space: nowrap; }
	#calendar .bb-no-defer { margin: 0; font-size: 11px; white-space: nowrap; }
	#calendar .bb-cell-enter { margin: 0; padding: 6px 10px; font-size: 12px; gap: 4px; }
	#calendar .date.sat { color: #1f4fd8; }
	#calendar .date.sun { color: #e02020; }

	/* ---- 수업연기 신청 모달: 높이를 절반으로 (내용은 안에서 스크롤) ---- */
	.bbm.bbm-defer { max-height: 47vh; }

	/* ---- 아이디/비번 찾기·로그인 ---- */
	.idpw { display: block; }
	.idpw fieldset { width: auto; padding: 20px; margin-bottom: 16px; box-sizing: border-box; }
	.idpw fieldset label { display: block; width: auto; margin-bottom: 4px; }

	/* ---- 꼬리말 ---- */
	.footer-top { display: block; padding: 24px 0 10px; }
	.footer-top .info, .footer-top .contact-us { margin-bottom: 10px; }
	.footer-top .text-list li { margin-bottom: 6px; word-break: keep-all; }
	.footer-sns { margin: 10px 0; }
	.footer-sns ul li { padding: 0 14px 0 0; }
	.footer-btm { display: block; padding: 16px 0 26px; }
	.footer-btm ul { flex-wrap: wrap; margin: 10px 0 0; }
	.footer-btm ul li { padding: 0 14px 6px 0; }
}

@media (max-width: 480px) {
	.gnb ul li:last-child { display: none; }
	.gnb ul li a i { display: none; }
	.Lnb-2step ul li { flex-basis: 100%; }
}
