/*
 * 메인(index.html) 휴대폰·작은 화면용 (2026-11-28).
 * PC(폭 1024px 이상)는 style.css·fullPage 그대로. 이 파일은 <link media="(max-width:1023px)"> 로만 읽힌다.
 * 폭 1024px 미만에서는 fullPage 가 한 화면씩 넘기기를 끄고(responsiveWidth) 일반 스크롤로 바뀐다 → 섹션 높이를 내용에 맞춘다.
 */
html, body { overflow-x: hidden !important; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }

/* 위쪽 로고·메뉴 */
h1 { top: 12px; left: 16px; }
h1 img { width: 118px; }
#topMenuCover { height: 92px !important; opacity: 0 !important; transition: opacity .3s; }   /* PC 처럼 맨 위에서는 투명 */
body.hdr-scrolled #topMenuCover { opacity: .6 !important; }                               /* 내려가면 PC 디자인·견적문의 화면과 같은 60% */
#topMenu { width: auto !important; left: 0 !important; right: 0 !important; top: 56px !important; height: auto; text-align: center; }
#topMenu > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 2px; }
#topMenu > ul > li { float: none !important; width: auto !important; }
#topMenu > ul > li:not(.topMenuLi) { display: none; }
#topMenu .menuLink { width: auto !important; padding: 0 9px !important; font-size: 12px !important; line-height: 28px !important; height: 28px !important; }
#topMenu .submenu { display: none !important; }
.nav_border { top: 92px; }
#fp-nav { display: none !important; }

/* 섹션: 화면 높이 고정 → 내용 높이 */
.fp-responsive .section, .fp-responsive .fp-tableCell, section { height: auto !important; min-height: 0 !important; }
.section { padding: 110px 0 50px !important; box-sizing: border-box; }
#section1 { min-height: 100vh !important; padding: 0 !important; }
article { position: static !important; margin: 0 !important; padding: 0 18px; width: auto !important; box-sizing: border-box; }
article p { font-size: 34px !important; margin: 10px 0 10px !important; }
article span { font-size: 15px !important; letter-spacing: 0 !important; }
article br { display: none; }
article ul, article ul li { float: none !important; width: auto !important; margin-left: 0 !important; position: static !important; }

/* 1. 첫 화면 */
#section1 .main_box { position: absolute !important; top: 30% !important; left: 10% !important; right: 10% !important; width: auto !important; box-sizing: border-box; }   /* 빨간 테두리를 좌우 10%씩 안쪽으로 */
#section1 .main_box p { font-size: 34px !important; line-height: 1.6 !important; letter-spacing: 8px !important; }
#section1 .main_box br { display: inline; }
#section1 .main_img { width: 90px; }
.main_since { font-size: 14px !important; }

/* 2. COMPANY */
section:nth-child(2) ul .txt1 { font-size: 22px !important; margin-top: 14px !important; }
section:nth-child(2) ul li { font-size: 14px !important; line-height: 1.7; }
.company_img { position: static !important; margin-top: 16px; display: block; }

/* 3. HISTORY: 좌우 번갈아 → 한 줄로 */
.side_wrapper, section:nth-child(3) .history_wrap, section:nth-child(3) .history { width: auto !important; height: auto !important; float: none !important; margin: 0 !important; padding: 10px 0 0 !important; overflow: visible !important; }
section:nth-child(3) .history_wrap:after { display: none; }
section:nth-child(3) .h_box .img_box, section:nth-child(3) .h_box .txt_box { float: none !important; width: auto !important; height: auto !important; }
section:nth-child(3) .h_box { margin-bottom: 26px !important; }
section:nth-child(3) .h_box .tit6 { padding: 0 !important; text-align: left !important; margin: 10px 0 8px !important; }
section:nth-child(3) .h_box .tit6 span { position: static !important; font-size: 24px !important; }
section:nth-child(3) .h_box .tit6:after { display: none !important; }
section:nth-child(3) .h_box .history_list li { padding-left: 46px !important; text-align: left !important; font-size: 14px !important; line-height: 1.6 !important; margin-bottom: 4px; }
section:nth-child(3) .h_box .history_list li span { left: 0 !important; right: auto !important; font-size: 14px !important; }
section:nth-child(3) img { margin-top: 8px; }
.mCSB_container, .mCustomScrollBox, .mCSB_inside > .mCSB_container { margin: 0 !important; overflow: visible !important; height: auto !important; max-height: none !important; }
.mCSB_scrollTools { display: none !important; }

/* 4. MAJOR CLIENT: 분류 탭 3개씩, 로고 3개씩 */
#container { width: auto !important; }
#container .tab { display: flex !important; flex-wrap: wrap; width: auto !important; }
#container .tab li { width: 33.33% !important; float: none !important; box-sizing: border-box; }
#container .tab li a { font-size: 13px !important; padding: 0 !important; }
.tabcontent ul { display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: 0 4%; }
.tabcontent ul li { width: 30.6% !important; float: none !important; margin: 0 0 14px !important; font-size: 12px; text-align: center; color: #fff; border: 0 !important; }
.tabcontent ul li img { width: 100%; height: auto; }

/* 5. 오시는 길 */
section:nth-child(5) ul .form { position: static !important; margin: 16px 0 0 !important; width: auto !important; height: auto !important; padding: 20px 16px !important; }
section:nth-child(5) .main4_input1 { width: auto !important; float: none !important; }
section:nth-child(5) .main4_input1 .input1 li { float: none !important; display: inline; }
section:nth-child(5) .main4_input_txt { font-size: 13px !important; width: auto !important; }

/* 6. 문의·연락처 */
section:nth-child(6) ul, section:nth-child(7) ul, #section6 ul { padding-top: 24px !important; }
section:nth-child(6) ul li, section:nth-child(7) ul li, #section6 ul li { float: none !important; width: auto !important; margin: 0 0 16px !important; }
.p11, .p12, .p13, .p21, .p22, .p31, .p32, .p33, .p41, .p42 { display: none !important; }
#footer { height: auto !important; }
/* 연혁은 PC 처럼 상자 안에서 스크롤(전부 펼치면 화면 10장 넘게 길어짐) */
section:nth-child(3) .history { height: 70vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; padding-right: 6px !important; }
section:nth-child(3) .h_box .img_box img { width: 100%; }
#section1 .main_img { width: 64px !important; }
/* 6. ORDER·CONTACT US·아래 회사 정보 */
#section6 { padding: 0 !important; }
#order { height: auto !important; padding: 100px 0 40px; }
#contus { width: auto !important; padding: 0 18px; box-sizing: border-box; }
#contus p { font-size: 34px !important; padding-top: 10px !important; }
#contus span { font-size: 15px !important; display: block; }
#contus ul { padding-top: 22px !important; }
#contus ul li { float: none !important; margin: 0 0 22px !important; font-size: 14px !important; }
#contus ul li img { width: 46px; }
.order_bt { float: none !important; margin: 0 auto !important; display: block; }
#footer { height: auto !important; padding: 30px 0 10px; }
#copy { height: auto !important; margin-top: 0 !important; padding: 16px 12px !important; font-size: 11px !important; line-height: 1.6; word-break: keep-all; }
/* 고객사 로고: 묶음(ul)마다 줄이 끊겨 한 줄에 1개만 남던 것 → 한 분류의 로고를 모두 이어서 3개씩 */
.tabcontent > div[class^="tab_bn"] { display: flex; flex-wrap: wrap; gap: 0 4%; }
.tabcontent > div[class^="tab_bn"] > ul { display: contents !important; }
.tabcontent > div[class^="tab_bn"] > ul::after { display: none !important; content: none !important; }
.tabcontent > div[class^="tab_bn"] > div { display: none !important; }   /* 묶음 사이 빈 줄바꿈 칸이 자리를 차지해 틀어지던 것 */
/* 분류 탭 칸 선: 바깥 위·왼쪽은 목록이, 칸마다 오른쪽·아래 선 → 오른쪽 세로줄이 빠지지 않게 */
#container .tab { border-top: 1px solid #fff; border-left: 1px solid #fff; }
#container .tab li { border: 0 !important; border-right: 1px solid #fff !important; border-bottom: 1px solid #fff !important; }
/* 오시는 길 지도: 화면 폭에 꽉 차게 */
#section5 article > ul > li:first-child { display: block; width: 100% !important; }
#section5 article > ul > li:first-child img { width: 100% !important; max-width: none; height: auto; display: block; }
/* Since 1999: PC 폭(120px) 기준 가운데라 휴대폰에서 약간 왼쪽으로 치우치던 것 → 화면 가운데 */
.main_since { left: 0 !important; right: 0 !important; margin-left: 0 !important; width: auto !important; text-align: center !important; }
