@charset "UTF-8";

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
#bo_v > header {
  display: none;
}

/* 개인정보처리방침 모달 — privacy-modal 스킬 규격
   구조: .modal.prtd > .modal_iner > .modal_hd / .modal_body > .policy_text / .modal_close
   트리거: 아무 요소에나 .modal_open_btn 만 붙이면 동작 (footer.js 가 위임) */
/* --------------- PC modal start-------------- */
.modal_open_btn {
    cursor: pointer;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 스킬 규격의 .prtd 클래스는 프로젝트에 따라 없을 수 있어 여기서 직접 지정한다 */
    font-family: "Pretendard Variable", "Pretendard", -apple-system, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.7);

    z-index: 9999999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal_iner {
    /* box-sizing: 전역이 border-box 로 바뀐 뒤에도 폭을 보존한다 (reset.css 2026-08-18) */
    box-sizing: content-box;
    width: 60vw;
    background: #fff;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;

    border-radius: 2vw;
    padding: 2vw;
}

.modal.on_modal {
    opacity: 1;
    visibility: visible;
}

.modal_hd {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.4vw;
    font-weight: 600;
    margin-bottom: 2vw;

    width: 100%;
}

.modal_body {
    width: 100%;
    height: 60vh;
    overflow-y: scroll;
    font-size: 0.8vw;
}

.modal_close {
    width: 100%;
    height: 2vw;
    background: #000;
    color: #fff;
    font-size: 0.9vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1vw;
    cursor: pointer;
    margin-top: 2vw;
    font-weight: 500;
}

/* ---------------footer start-------------- */
.footer {
  width: 100%;
  background-color: #ffffff;
  /* 하단 고정 퀵바(76)가 푸터 글자를 가리지 않도록 퀵바 높이만큼 비운다 */
  padding-bottom: calc(var(--px) * 76);
  font-size: var(--bodyL);
  line-height: calc(var(--px) * 28);
  letter-spacing: -0.05em;
  color: #010101;
  font-family: "pretendard Variable";
}

.footer img {
  display: block;
  width: 100%;
}

.footer_top {
  display: flex;
  justify-content: center;
  padding: calc(var(--px) * 25) calc(var(--px) * 44) calc(var(--px) * 54) 0;
  border-bottom: 1px solid #999999;
}

.f_logo {
  width: calc(var(--px) * 235);
}

.footer_body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--px) * 39) calc(var(--px) * 82) calc(var(--px) * 50) calc(var(--px) * 163);
}

.footer_tt {
  display: flex;
  align-items: center;
}

.footer_bar {
  margin: 0 calc(var(--px) * 10);
}

.footer_right {
  margin-top: calc(var(--px) * 11);
  font-size: var(--bodyXS);
  letter-spacing: -0.025em;
  color: #666666;
}

.footer_gn {
  display: block;
  cursor: pointer;
}

.footer_policy {
  margin-top: calc(var(--px) * 11);
  font-size: var(--bodyXL);
  letter-spacing: -0.065em;
  text-decoration: underline;
  text-underline-offset: calc(var(--px) * 3);
  color: #050505;
}

/* ---------------footer end-------------- */
/* ---------------quick start-------------- */
/* 구조: aside.contact_service(grid) > a.quick_call(전화) + form.footer_form(입력 3)
         + .quick_agree(동의) + button.quick_submit_div — 하단 fixed 바
   그리드 3열 = 전화+입력 3칸(741) · 입력 3칸(615) · 버튼(206), 행 = 동의(33) · 입력·버튼(34) */
/* 퀵바 빨간 배경은 페이지 스크롤 진행도(0~1, js/footer.js 가 --quick-fill 로 넣음)만큼 퀵바 전체 폭(0~100%)에서 왼쪽부터 차오른다 */
@property --quick-fill {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.contact_service {
  --quick-fill: 0;
  transition: --quick-fill 0.25s ease-out;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1111;
  display: grid;
  grid-template-columns: calc(var(--px) * 703) calc(var(--px) * 615) calc(var(--px) * 206);
  grid-template-rows: calc(var(--px) * 33) calc(var(--px) * 34) 1fr;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: calc(var(--px) * 76);
  border-top: 1px solid #010101;
  border-bottom: 1px solid #010101;
  /* 빨강(--quick-fill 만큼 전체 폭에서 차오름) + 갈색 바탕 — 가운데를 가로지르던 구분선은 뺐다 */
  background-color: #322409;
  background-image: linear-gradient(90deg, #f44228 calc(100% * var(--quick-fill)), transparent calc(100% * var(--quick-fill)));
}

.quick_call {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  align-items: center;
  gap: calc(var(--px) * 10);
  margin-left: calc(var(--px) * 381);
  color: #ffffff;
}

.quick_call_icon {
  width: calc(var(--px) * 49);
}

.quick_call_num {
  font-size: calc(var(--px) * 52);
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 1;
  white-space: nowrap;
}

.footer_form {
  grid-column: 2;
  grid-row: 2;
  display: flex;
}

.footer_input {
  width: calc(var(--px) * 205);
  height: calc(var(--px) * 34);
  padding: calc(var(--px) * 2) 0 0;
  font-size: calc(var(--px) * 17);
  letter-spacing: -0.065em;
  color: #0a0a0a;
  text-align: center;
  background-color: #ffffff;
  border-style: solid;
  border-color: #010101;
  border-width: 1px 0 1px 1px;
  outline: none;
}

.footer_input::placeholder {
  color: #0a0a0a;
  opacity: 1;
}

.quick_agree {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: calc(var(--px) * 6);
  color: #ffffff;
}

.quickAgree_checkbox {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  width: calc(var(--px) * 21);
  height: calc(var(--px) * 21);
  border: 1px solid #ffffff;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.quickAgree_checkbox:checked {
  background-color: #ffffff;
}

/* 체크 표시 — border 2변을 -45도 돌려 만든 체크. 항상 존재하고 opacity·scale 로 켜진다 */
.quickAgree_checkbox::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  width: 64%;
  height: 34%;
  border-left: 3px solid #322409;
  border-bottom: 3px solid #322409;
  opacity: 0;
  transform: translate(-50%, -65%) rotate(-45deg) scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.quickAgree_checkbox:checked::after {
  opacity: 1;
  transform: translate(-50%, -65%) rotate(-45deg) scale(1);
}

.quickAgree_fornt {
  padding-top: calc(var(--px) * 2);
  font-size: calc(var(--px) * 17);
  font-weight: 500;
  letter-spacing: -0.065em;
  white-space: nowrap;
  cursor: pointer;
}

.quick_submit_div {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--px) * 206);
  height: calc(var(--px) * 34);
  background-color: #368318;
  border: 1px solid #010101;
  cursor: pointer;
}

.quick_submit_div span {
  font-size: calc(var(--px) * 20);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ffffff;
  white-space: nowrap;
}
/* ---------------quick end-------------- */
/* 로딩 */
.loading-overlay {
  position: fixed; /* 화면 전체를 덮도록 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은색 배경 */
  z-index: 9999; /* 다른 요소들보다 위에 표시 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* 회색 테두리 */
  /* 브랜드 메인색상. footer.css 가 library.css 보다 늦게 로드돼 var(--primary) 를 덮어쓰던 것을
     토큰 참조로 통일(2026-07-29). library.css 가 안 붙는 게시판 페이지 대비로 fallback 을 둔다. */
  border-top: 5px solid var(--primary, red);
  border-radius: 50%;
  animation: spin 1s linear infinite; /* 회전 애니메이션 */
}

/* ═══════════════ 모바일 (599px 이하) — 개인정보 모달 · 푸터 · 퀵바 ═══════════════
   푸터 순서: 로고 → 개인정보처리방침 → 회사정보 → 카피라이트 → Created By (정책 링크만 order 로 끌어올림)
   퀵바: 4열 2행 grid. 1행 = 전화(1~2) · 동의(3~4) / 2행 = 인풋 3(1~3) + 문의하기(4). .footer_form 은 display:contents 로 풀어 인풋을 같은 grid 의 직계 자식으로 만든다 */
@media screen and (max-width: 599px) {
  .modal_iner {
    box-sizing: content-box;   /* 전역 border-box 전환 시 폭 보존 (reset.css 2026-08-18) */
    width: 93vw;
    border-radius: 4vw;
    padding: 6vw;
  }

  .modal_hd {
    font-size: 5vw;
    margin-bottom: 6vw;
  }

  .modal_close {
    height: 8vw;
    font-size: 3.6vw;
    border-radius: 2.8vw;
    margin-top: 6vw;
  }

  .modal_body {
    font-size: 3.3vw;
  }

  .footer {
    padding-bottom: 26vw; /* 퀵바 실측 20.7vw + 여유 — 카피라이트가 고정 바에 안 가린다 */
    font-size: 3.3vw;
    line-height: 1.5;
    text-align: center;
  }

  .footer_top {
    padding: 6vw 0;
  }

  .f_logo {
    width: 39vw;
  }

  .footer_body {
    flex-direction: column;
    align-items: center;
    gap: 5vw;
    padding: 6vw 5vw 0;
  }

  .footer_policy {
    order: -1;
    margin-top: 0;
  }

  .footer_tt_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vw;
  }

  .footer_tt {
    flex-direction: column;
    gap: 1.2vw;
  }

  /* 구분자 "I" 는 PC 한 줄용 — 모바일은 줄바꿈이 구분한다 */
  .footer_bar {
    display: none;
  }

  .footer_right {
    margin-top: 4vw;
  }

  .footer_gn {
    margin-top: 1.4vw;
  }

  .contact_service {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 1fr 금지 — input 기본 폭이 최소값으로 잡혀 4칸이 불균등해진다 */
    grid-template-rows: auto auto;
    gap: 2vw 0;
    height: auto;
    padding: 2vw;
    font-size: 3.3vw;
    background: var(--primary); /* 모바일은 스크롤 채움 없음 — 색 변경 없음 */
  }

  .quick_call {
    grid-column: 1 / 3;
    grid-row: 1;
    justify-self: start;
    gap: 1.6vw;
    margin-left: 1vw;
  }

  .quick_call_icon {
    width: 5.2vw;
  }

  .quick_call_num {
    font-size: 5.2vw;
    line-height: 1.2;
  }

  .quick_agree {
    grid-column: 3 / 5;
    grid-row: 1;
    justify-self: end;
    gap: 1vw;
    margin-right: 1vw;
  }

  .quickAgree_checkbox {
    width: 4.4vw;
    height: 4.4vw;
  }

  .quickAgree_fornt {
    padding-top: 0;
    font-size: 3.3vw;
    line-height: 1.4;
  }

  .footer_form {
    display: contents;
  }

  #name_quick {
    grid-column: 1;
  }

  #tel1_quick {
    grid-column: 2;
  }

  #area_quick {
    grid-column: 3;
  }

  .footer_input {
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 7.9vw;
    padding: 0;
    font-family: inherit;
    font-size: 3.3vw;
  }

  .quick_submit_div {
    grid-column: 4;
    width: 100%;
    height: 7.9vw;
  }

  .quick_submit_div span {
    font-size: 3.4vw;
  }
}
