/* responsive.css — style.css 다음에 로드 (top.php에 이미 추가됨) */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* 고정폭 컨테이너를 유동폭으로 */
.inner_box2 { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
#header .logo img { max-width: 100%; height: auto; }

/* 태블릿 이하: 가로 메뉴 숨기고 햄버거 사용 */
@media (max-width: 1024px) {
  #header .inner_box2 { position: relative; display: flex; align-items: center; justify-content: space-between; }
  #gnb { display: none; }                 /* PC 메뉴 숨김 */
  #toggle { display: block; }             /* 모바일 햄버거 표시 */
  .allBtn.PC { display: none; }
  .allBtn.PHONE { display: block; }
  .subBg { display: none; }               /* 상단 배경 문구 숨김(필요 시 제거) */
}

/* 모바일 */
@media (max-width: 720px) {
  .inner_box2 { padding: 0 15px; }
  #header .logo { max-width: 55%; }
  .subBg .inner_box2 span { font-size: 14px; line-height: 1.4; }
  .siteMap_wrap .scroll { width: 100%; }
  .siteMap_wrap .siteMap .gnb > li { width: 100%; float: none; }
}

/* PC에서는 모바일 전용 요소 숨김 */
@media (min-width: 1025px) {
  #toggle, .allBtn.PHONE { display: none; }
}

/* 모바일 슬라이드 메뉴(#totalMenu): top_menu.js가 right:-400 ↔ 0 으로 애니메이션함 */
#totalMenu { width: 85%; max-width: 400px; }
#totalMenu nav, #totalMenu nav > ul { width: 100%; }
#totalMenu nav > ul > li { float: none; width: 100%; }
#totalMenu nav .submenu { position: static; width: 100%; }

/* ===== 푸터(tail.php): 검은 배경 / 가운데 정렬 / 상단 이동 버튼 ===== */
#ft {
  position: relative; clear: both;
  background: #000; color: #9a9a9a;
  padding: 40px 0 32px;
  font-size: 14px;
}
#ft .ft_inner {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  text-align: center;
}
#ft .ft_logo { margin: 0 0 28px; text-align: center; }   /* 로고와 메뉴 사이 간격 */
#ft .ft_logo img { display: inline-block; max-width: 100%; height: auto; }
#ft #ft_copy { float: none; width: 100%; text-align: center; }
#ft #ft_copy #ft_company {
  float: none; width: 100%;
  margin: 0 auto 24px;                 /* 메뉴와 아래 정보 사이 간격 */
  color: #555;                         /* 구분선(|) 색 */
}
#ft #ft_copy #ft_company a {
  display: inline-block; padding: 0 14px;
  color: #fff; font-weight: 500; text-decoration: none;
}
#ft #ft_copy #ft_company a:hover { text-decoration: underline; }

#ft .ft_cnt {
  clear: both; float: none; width: 100%;
  margin: 0 auto; line-height: 1.8;
}
#ft .ft_cnt span { display: inline-block; margin: 0 10px; }
#ft .ft_cnt .ft_addr { font-size: 13px; }

#ft .copyright {
  margin: 4px 0 0; padding: 0;          /* 주소 바로 아래에 붙임 */
  border: 0;
  color: #777; font-size: 13px; text-align: center;
}

/* Logout / 관리자 버튼: 푸터 오른쪽 위 */
#ft #ft_admin_wrap {
  position: absolute; top: 0; right: 20px;
  display: flex; gap: 6px;
}
#ft #ft_admin_wrap .ft_btn {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid transparent; border-radius: 4px;
  color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6;
  text-decoration: none; white-space: nowrap;
  transition: filter .2s;
}
#ft #ft_admin_wrap .ft_btn:hover { filter: brightness(1.15); }
#ft #ft_admin_wrap .ft_logout { background: #6b6b6b; border-color: #8c8c8c; }  /* 회색 */
#ft #ft_admin_wrap .ft_adm    { background: #b30000; border-color: #d84a4a; }  /* 빨강 + 자물쇠 */
#ft #ft_admin_wrap .ft_adm .fa { margin-right: 2px; }

/* 최상단으로 가기 버튼: 화면 오른쪽 아래에 고정 */
#ft #top_btn {
  position: fixed; right: 20px; bottom: 24px; top: auto; left: auto; z-index: 100;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid #777; border-radius: 50%;
  background: rgba(0,0,0,.75); color: #fff;
  font-size: 16px; line-height: 42px; text-align: center;
  cursor: pointer; transition: background .2s, color .2s;
}
#ft #top_btn:hover { background: #fff; color: #000; }

#ft #device_change { display: inline-block; margin-top: 16px; color: #ccc; text-decoration: underline; }

@media (max-width: 720px) {
  #ft { padding: 28px 0 24px; }
  #ft .ft_cnt span { display: block; margin: 0; }
  #ft #ft_copy #ft_company a { padding: 0 8px; }
  #ft .ft_cnt .ft_addr { font-size: 12px; }
  /* 모바일: 버튼을 맨 아래 가운데로 */
  #ft #ft_admin_wrap { position: static; justify-content: center; margin-top: 18px; }
  #ft #top_btn { right: 14px; bottom: 16px; }
}

/* ===== 메인(index.php) CUSTOMER CENTER: 공지사항 글자 축소 + 새소식과 간격 ===== */
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice,
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li,
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li a { font-size: 14px; }
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice span,
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice .lt_date { font-size: 12px; }

/* 공지사항 박스와 아래 새소식 박스 사이 간격 */
.mainBox .box_in5 .cus_ul > li.box1 { margin-bottom: 24px; }

@media (max-width: 720px) {
  .mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li,
  .mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li a { font-size: 13px; }
}

/* ===== 공지사항: 줄 간격 / 제목 왼쪽 · 날짜 오른쪽 정렬 ===== */
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li {
  display: flex; align-items: center; justify-content: space-between;
  height: auto; line-height: 2;               /* 줄 간격 */
  padding: 2px 0;
}
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li > a {
  flex: 1 1 auto; min-width: 0;
  text-align: left;                           /* 제목 왼쪽 */
  line-height: 2;
}
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li > span,
.mainBox .box_in5 .cus_ul > li.box1 .notice_box .notice li .lt_date {
  flex: 0 0 auto; margin-left: 12px;
  float: none; position: static;
  text-align: right;                          /* 날짜 오른쪽 */
  white-space: nowrap;
}
