/* CMS 프론트엔드 공통 스타일 — 빌드 도구(Vite/Sass) 불필요, 순수 CSS */

:root {
    --color-main: #005ba9;
    --color-main-dark: #013b79;
    --main-gradient: linear-gradient(120deg, #015BA9 0%, #02A4E3 100%);
    

	--color-text: #222222;
	--color-text-sub: #555555;
	--color-text-sub2: #888888;
	--color-text-sub3: #BEC1CC;

	--color-border: #ccc;
    --color-bg-alt: #f9fafb;
    --color-danger: #ed4342;
	--bg-layer-gray: #f6f7f8;



	/* 페이지 기본너비 */
	--index-maxWidth: 1500px;
	--sub-maxWidth: var(--index-maxWidth);
	--header-height: 100px;

	--pretendard: "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
	--poppins: 'poppins', '돋움', '굴림', arial, sans-serif;

    --color-status-success: #22c064;
    --color-status-warning: #f1970d;
    --color-status-danger: #ed4342;
    --color-status-info: #00a3e2;

    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-inverse: #ffffff;

    --color-bg-subtle: #f9fafb;
    --color-bg-inverse: #1f2937;

    /* 조직도 2단계(부서) 박스 전용 — kaomc(#3D4754 다크그레이 사각 박스) 컨벤션을 기본 테마의
       중립 다크 톤으로 반영. 브랜드 컬러와 별개로 항상 다크 뉴트럴을 유지한다(사이트마다 바뀌는
       값이 아님 — 관리자 설정 대상 아님). */
    --color-dark-surface: #22252b;

    --color-border-strong: #d1d5db;

    --color-overlay: rgba(0, 0, 0, .55);

    --color-focus-ring: rgba(37, 99, 235, .35);

    --radius-control: 6px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html { 
    line-height: 1.4;
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
    font-size: 62.5%;
}

body {
    font-size: 16px;
	color: var(--color-text);
	margin: 0;
	padding: 0;
	font-family: var(--pretendard);
}

a {
	text-decoration: none;
	background-color: transparent;
	color: inherit;
}
/* a:hover, a:focus-visible { text-decoration: underline; } */

img,
picture,
video,
canvas,
svg { max-width: 100%; height: auto; display: block;}

p,
h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
a,
span {
	letter-spacing: -5%;
}

ul,
ol, li {
	list-style: none;
}

table {
	border-color: currentcolor;
}

/* 테이블 기본 스타일 초기화 */
table {
  width: 100%;                  /* 기본 너비를 100%로 설정 (필요에 따라 조절) */
  border-collapse: collapse;    /* 셀과 셀 사이의 테두리를 하나로 합침 */
  border-spacing: 0;           /* 셀 간격 제거 (border-collapse 미지원 대비) */
}

/* 테이블 셀 및 헤더 초기화 */
th, td {
  padding: 0;                  /* 여백 초기화 */
  vertical-align: middle;       /* 세로 정렬 중앙 (필요에 따라 top/bottom으로 변경) */
}

/* Caption(제목/설명) 초기화 */
caption {
  caption-side: top;           /* 캡션 위치 (기본값 top) */
  text-align: left;            /* 캡션 정렬 */
}

/* 접근성: 키보드 포커스 표시, 스킵 링크 */
:focus-visible {
    outline: 3px solid var(--color-main);
    outline-offset: 2px;
}

button {background: transparent; border: none;}

button,
input,
optgroup,
select,
textarea {
	font-family: var(--pretendard);
	/* 1 */
	font-size: 100%;
	/* 1 */
	line-height: 1.15;
	/* 1 */
	margin: 0;
	/* 2 */
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-main);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
    border-radius: 0 0 6px 0;
}
.skip-link:focus {
    left: 0;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 1760px) {
	html {
		font-size: 50%;
		/* 8px */
	}
}


@media (max-width: 1024px) {

	:root {
		--header-height: 60px;
	}

	html {
		font-size: 43.75%;
		/* 7px */
	}
}

@media (max-width: 680px) {
	html {
		font-size: 37.5%;
		/* 6px */
	}
}


.container {
    width: 100%;
    max-width: var(--index-maxWidth);
    margin: 0 auto;
}


@media (max-width: 1750px) {
   .container {
      max-width: 100%;
      padding: 0 20px;
   }
}

/* 
    스크롤 애니메이션 
    - 애니메이션 개별 조정 외에 클래스 추가할 시 frontend.js에 가서
    animationElements에 추가하는 클래스 넣어주세요. 
*/
.fade-top {opacity: 0; transform: translateY(20%);}
.box-fade-top {opacity: 0; transform: translateY(5%);}
.fade-down {opacity: 0; transform: translateY(-20%);}
.fade-left {opacity: 0; transform: translateX(10%);}
.fade-right {opacity: 0; transform: translateX(-10%);}

.fade-top.trigger {animation: fade-animate 0.7s 0.2s forwards;}
.box-fade-top.trigger {animation: fade-animate 0.5s 0.2s forwards;}
.fade-down.trigger {animation: fade-animate 0.7s 0.2s forwards;}
.fade-left.trigger {animation: fade-animate 0.7s 0.2s forwards;}
.fade-right.trigger {animation: fade-animate 0.7s 0.2s forwards;}


/* 애니메이션 개별 조정 */
.office.fade-top {transform: translateY(10%);}

/* 애니메이션 개별 조정 end */

@keyframes fade-animate {
  to {opacity: 1; transform: translateY(0);}
}

/* 스크롤 애니메이션 end */



/* ...처리 텍스트 */
.ellipsis {
   display: -webkit-inline-box;
   overflow: hidden;
   text-overflow: ellipsis;
   -webkit-box-orient: vertical;
   /* lineclamp랑 white-space는 1줄, 2줄 다 다르니 따로 기입 */
}


/* 로딩 스피너 스타일 */
.loader {
  /* --color-1: inherit; */
  --size: 0.5px;
  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border: calc(5 * var(--size)) solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}





.language-switcher { display: flex; align-items: center; gap: 2px; border: 1px solid var(--color-border); border-radius: 6px; padding: 2px; }
.language-switcher-item { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 15px; color: var(--color-gray); }
.language-switcher-item:hover { background: var(--color-bg-alt); text-decoration: none; }
.language-switcher-item.is-active { background: var(--color-main); color: #fff; font-weight: 600; }
.language-switcher-item.is-active:hover { background: var(--color-main); }

.btn-auth { display: inline-block; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--color-border); font-size: 15px; color: var(--color-black); background: none; cursor: pointer; }
.btn-auth:hover { background: var(--color-bg-alt); text-decoration: none; }
.btn-auth-primary { background: var(--color-main); border-color: var(--color-main); color: #fff; }
.btn-auth-primary:hover { opacity: .9; }
.logout-form { display: inline-block; margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-control);
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: background var(--control-transition), border-color var(--control-transition), color var(--control-transition);
    min-width: 100px;
    font-weight: 500;
}
.btn:hover { background: var(--color-bg-alt); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-main-ring); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--color-main); border-color: var(--color-main); color: #fff; }
.btn-primary:hover { background: var(--color-main-dark); border-color: var(--color-main-dark); }

.btn-outline { background: #fff; border-color: var(--color-main); color: var(--color-main); }
.btn-outline:hover { background: var(--color-main-soft); }

.btn-danger { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }
.btn-danger:hover { background: var(--color-main-dark); border-color: var(--color-main-dark); }
.btn-danger:focus-visible { box-shadow: 0 0 0 3px var(--color-danger-ring); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--color-main); }
.btn-ghost:hover { background: var(--color-main-soft); text-decoration: none; }

.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-list {
    padding: max(10px, 1.4rem) 5px;
    color: #fff;
    border-radius: 100px;
    font-size: max(16px, 2rem);
    background: var(--color-text);
    transition: background 0.3s;
}

.btn-list:hover {
    background: var(--color-main);
}

/* 폼 컨트롤 — input[type=text/email/password/tel/number/url/date/search]/textarea/select 공용 */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"],
input[type="date"], input[type="search"],
textarea, select {
    width: 100%;
    padding: 8px 15px;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    line-height: 1.5;
    transition: border-color var(--control-transition), box-shadow var(--control-transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px var(--color-main-ring);
}
input:disabled, textarea:disabled, select:disabled,
input[readonly], textarea[readonly] {
    background: var(--color-bg-alt);
    color: var(--color-text-sub);
    cursor: not-allowed;
}
textarea { min-height: 160px; resize: vertical; }
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* 유효성 에러 상태 — 서버 검증 실패 시에만 부여(네이티브 :invalid는 페이지 진입 즉시 걸려서 쓰지 않음).
   예: <input class="{{ $errors->has('email') ? 'is-invalid' : '' }}" ...> */
input.is-invalid, select.is-invalid, textarea.is-invalid,
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
    border-color: var(--color-danger);
}
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus,
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px var(--color-danger-ring);
}

/* 체크박스 / 라디오 */
input[type="checkbox"], input[type="radio"] {
    accent-color: var(--color-main);
    width: 16px;
    height: 16px;
    vertical-align: middle;
    cursor: pointer;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: .5;
}


/* input 스타일 */

.input-basic {
    border: 1px solid var(--color-border) !important;
    border-radius: 10px !important;
    background: #fff;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 15px 20px !important;
}

.datepicker {
    position: relative;
  /* Safari 등에서 기본 스타일을 커스텀하기 위해 설정 */
  appearance: none;
  -webkit-appearance: none;
}

.datepicker::before {
    content:'';
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('/images/icons/calendar_icon.svg') no-repeat center center / cover;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

/* checkbox, radio style */

label.checkbox-basic {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

label.checkbox-basic :is(input[type=checkbox], input[type=radio]) {
    display: none;
}

label.checkbox-basic .icon-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid var(--color-border);
}

/* checkbox일때 */
label.checkbox-basic input[type=checkbox] + .icon-action {
    border-radius: 5px;
}

label.checkbox-basic input[type=checkbox] + .icon-action::before {
    content:'';
    position: relative;
    width: 10px;
    height: 8px;
    background: url('/images/icons/input_check_icon.svg') no-repeat center center / cover;
}

label.checkbox-basic input[type=checkbox]:checked + .icon-action {
    background: var(--color-main);
    animation: y-action 0.3s forwards;
}

/* radio일때 */
label.checkbox-basic input[type=radio] + .icon-action {
    border-radius: 50%;
}

label.checkbox-basic input[type=radio] + .icon-action::before {
    content:'';
    position: relative;
    width: 12px;
    min-width: 12px;
    height: 12px;
    border-radius: inherit;
    background: var(--color-main);
    opacity: 0;
}

label.checkbox-basic input[type=radio]:checked + .icon-action {
    animation: y-action 0.3s forwards;
}

label.checkbox-basic input[type=radio]:checked + .icon-action::before {
    opacity: 1;
}


@keyframes y-action {
    0% {transform: translateY(0);}
    50% {transform: translateY(-5%);}
    100% {transform: translateY(0);}
}

/* checkbox, radio style end */




/* 폼에 필수입력 필요할 시 이 클래스 주면 표시됩니다. */
.required::before {
    content:'*';
    color: var(--color-main);
    font-size: 15px;
    margin-right: 10px;
}

.form-meta-txt {
    position: relative;
    color: var(--color-text-sub2);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-meta-txt::before {
    content:'';
    display: block;
    position: relative;
    width: 13px; height: 13px;
    min-width: 13px;
    background: url('/images/icons/meta-icon.svg') no-repeat center / cover;
}




/* 체크박스/라디오 전용 래퍼 — .form-group label(font-weight:600, 필드명용)과는 별개로,
   "이용약관에 동의합니다" 같은 체크박스 라벨이 헤딩처럼 보이지 않도록 분리한다 */
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-check label { font-weight: 400; margin-bottom: 0; font-size: 15px; cursor: pointer; }
.form-check:has(input:disabled) label { color: var(--color-text-sub); cursor: not-allowed; }

.social-login { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.social-login .btn { width: 100%; text-align: center; box-sizing: border-box; }
.btn-social-google { background: #fff; border-color: var(--color-border); color: #3c4043; }
.btn-social-kakao { background: #FEE500; border-color: #FEE500; color: #191919; }
.btn-social-naver { background: #03C75A; border-color: #03C75A; color: #fff; }


/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid #ccc;
    transition: background-color 0.2s;
}

.header .logo {
    width: 250px;
    position: relative;
}

.header .logo .black {
    display: none;  
}

.header .head-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

.header .menu-box {
    height: inherit;
    margin-left: auto;
    margin-right: 70px;
}

.header .outer-menu {
    display: flex;
    align-items: center;
    height: inherit;
    gap: 0 max(30px, 6rem);
}

.header .outer-menu > li {
    position: relative;
}

.header .outer-menu > li > a {
    font-size: max(18px, 2rem);
    font-weight: 600;
    text-align: center;
    color: #fff;
    padding: 3.8rem 0;
    transition: color 0.2s;
}

.header .outer-menu > li > .inner-menu {
    position: absolute;
    display: grid;
    place-items: center;
    top: 170%;
    left: 50%;
    transform: translateX(-50%);
    width: max(180px, 24rem);
    background: #fff;
    border-radius: 15px;
    /* border: 1px solid var(--color-border); */
    overflow: hidden;
    box-shadow: 0 4px 20px 0 rgba(0,0,0,0.1);

    max-height: 0;
    transition: max-height 0.3s;
}

.header .inner-menu > li > a {
    font-size: max(16px, 2rem);
    font-weight: 500;
    display: block;
    padding: 15px 10px;
}

.header .inner-menu > li:first-child {padding-top: 15px;}
.header .inner-menu > li:last-child {padding-bottom: 15px;}


.header .outer-menu > li:hover > .inner-menu {
    max-height: 500px;
    transition: max-height 0.7s 0.1s ease-out;
}

.header .outer-menu > li.active > a,
.header .inner-menu > li:hover > a {
    color: var(--color-main);
    font-weight: 700;
    text-decoration: underline;
}

@keyframes inner-show {
    to {
        opacity: 1; visibility: visible;
        top: 170%;
    }
} 


.header .menu-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
}

.header .menu-btn .menu_bar {
    --line-h: 3px;

    width: 36px;
    height: 26px;
    position: relative;
    --line-bg: var(--color-text); 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header .menu-btn .menu_bar::before,
.header .menu-btn .menu_bar::after {
    content: '';
    position: absolute;
    background: #fff;
    width: 100%;
    height: var(--line-h);
    transition: inherit;
    border-radius: 100px;
}

.header .menu-btn .menu_bar::before {
    top: 0; right: 0;
    background: #72CCDD;
    width: 65%;
}

.header .menu-btn .menu_bar::after {
    bottom: 0; left: 0;
}

.header .menu-btn .menu_bar > .line {
    width: 100%;
    height: var(--line-h);
    background: #fff;
    display: block;
    transition: inherit;
    border-radius: 100px;
}

.header .menu-btn.open .menu_bar::before {
    top: 50%; left: 50%; width: 100%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.header .menu-btn.open .menu_bar::after {
    bottom: unset; top: 50%; left: 50%; width: 100%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.header .menu-btn.open .menu_bar > .line {
    opacity: 0;
}


/* 
 header.scroll 
 header - 메인 벗어났을때
 두 스타일이 같아서 함께 기재.

 header는 메인에서는 position: fixed, 페이지에선 sticky로 변경.
*/

header.sub {position: sticky;}

body.scroll .header,
header.sub {
    background: #fff;
}

body.scroll .header .logo a > img:first-child,
header.sub .logo a > img:first-child {
    display: none;
}

body.scroll .header .logo .black,
header.sub .logo .black {
    display: block;
}

body.scroll .header .outer-menu > li > a,
.header.sub .outer-menu > li > a {
    color: var(--color-text);
}

body.scroll .header .outer-menu > li.active > a,
body.scroll .header .outer-menu > li:hover > a {
    color: var(--color-main);
}

.header.sub .outer-menu > li.active > a,
.header.sub .outer-menu > li:hover > a {
    color: var(--color-main);
}

body.scroll .header .menu-btn .menu_bar > .line,
body.scroll .header .menu-btn .menu_bar::after {
    background: var(--color-text);
}

.header.sub .menu-btn .menu_bar > .line,
.header.sub .menu-btn .menu_bar::after {
    background: var(--color-text);
}



@media (max-width: 1750px) {
    .header .head-wrap {padding: 0 20px;}
}

@media (max-width: 1024px) {
    .header .logo {
        width: 200px;
    }
    .header .logo > a {
        display: block;
    }

    .header .menu-box {
        display: none;
    }
}

/* 헤더 스타일 end */


/* 사이트맵 */

.sitemap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 101;
    background: #fff;
    display: none;
}

.sitemap .sitemap-wrap .logo {
    width: 135px;
}

.sitemap__header {
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}

.sitemap__header .container {
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
}

.sitemap__header .close-btn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    transition: transform 0.3s;
}

.sitemap__header .close-btn::before,
.sitemap__header .close-btn::after {
    content:'';
    position: absolute;
    width: 100%;
    height: 3px;
    border-radius: 100px;
    top: 47%;
}

.sitemap__header .close-btn::before {
    background: var(--color-text);
    transform: rotate(-45deg) translate(0%, 0);
    left: 0px;
}

.sitemap__header .close-btn::after {
    background: #72CCDD;
    transform: rotate(45deg) translate(0, 0);
    left: 0;
}

.sitemap__header .close-btn:hover {
    transform: rotate(90deg);
}


.sitemap .menu-box {
    width: 100%;
}

.sitemap .outer-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 100%;
}

.sitemap .outer-menu > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.sitemap .outer-menu > li > .linked {
    position: relative;
    display: block;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding-bottom: 40px;
}

.sitemap .inner-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: max(25px, 4rem) 0;
    width: 100%;
}

.sitemap .inner-menu > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    width: 100%;
    font-size: max(20px, 2.4rem);
    font-weight: 500;
    color: var(--color-text-sub2);
    transition: all 0.2s;
}

/* sitemap open */
.sitemap.open {display: block;}
.sitemap.is-breakpoint-changing {transition: none !important;}

@media (min-width: 1025px) {
    .sitemap {
        height: 0; transition: height 0.5s ease; 
        overflow: hidden; display: block;
        background: #ececec;
    }

    .sitemap_wrap {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .sitemap .outer-menu {flex: 1;}

    .sitemap .outer-menu > li {
        padding-top: max(120px, 1.6rem);
        border-right: 1px solid var(--color-border);
    }
    .sitemap .outer-menu > li:first-child {
        border-left: 1px solid var(--color-border);
    }

    .sitemap .outer-menu > li > .linked::before {
        content:'';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--color-main);
    }

    .sitemap.open {
        height: 100dvh;
    }

    .sitemap .inner-menu > li:hover > a,
    .sitemap .inner-menu > li.active > a {
        font-weight: 700;
        color: var(--color-main);
    }
}

/* mobile */
@media (max-width: 1024px) {
    .sitemap {
        width: 100%;
        max-width: 400px;
        left: unset;
        right: -400px;
        overflow-y: auto;
        border-left: 1px solid #ccc;
        transition: right 0.3s ease;
        display: block;
    }

    .sitemap.open {
        right: 0;
    }

    .sitemap .sitemap-wrap {padding: 0;}

    .sitemap__header {
        align-items: center;
        padding: 30px 0;
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 0;
    }

    .sitemap .sitemap-wrap .logo {width: 120px;}

    .sitemap__header .close-btn img {
        filter: brightness(100);
        width: 15px;
    }

    .sitemap .menu-box {
        height: 100%;
    }

    .sitemap .outer-menu {
        grid-template-columns: minmax(0, 1fr);
        padding: 0;
    }

    .sitemap .outer-menu > li {
        display: block;
    }

    .sitemap .outer-menu > li > .linked {
        color: var(--color-text);
        background: unset;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        border-bottom: 1px solid var(--color-border);
        padding: 28px 20px;
        color: #333;
        font-size: 20px;
        transition: all 0.2s;
        min-height: unset;
        position: relative;
    }

    .sitemap .outer-menu > li > .linked[aria-expanded="true"] {
        color: var(--color-main);
    }

    .sitemap .outer-menu > li > .linked::before {
        content:'';
        position: absolute;
        right: 0; bottom: 0;
        width: 0%; height: 3px;
        background: var(--main-gradient);
        transition: all 0.4s;
    }

    .sitemap .outer-menu > li > .linked::after {
        content:'';
        width: 17px; height: 11px;
        background: url('/images/icons/arrow-down.svg') no-repeat center center / cover;
        transition: all 0.4s;
        position: relative;
        right: 5px;
    }

    .sitemap .outer-menu > li > .linked[aria-expanded="true"]::before {
        left: 0; right: unset; width: 100%;
    }

    .sitemap .outer-menu > li > .linked[aria-expanded="true"]::after {
        /* filter: brightness(100); */
        transform: rotate(180deg);
    }

    .sitemap .inner-menu {
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
    }
    .sitemap .inner-menu > li > a {
        background: var(--bg-layer-gray);
        padding: 20px;
        font-size: 17px;
        font-weight: 400;
        justify-content: flex-start;
        color: var(--color-text);
    }

    .sitemap .inner-menu > li.active > a {
        background: var(--color-main);
        color: #fff;
        font-weight: 500;
    }

    .sitemap .outer-menu > li.active > .linked {
        color: var(--color-main);
    }

    .sitemap .inner-menu.open {
        max-height: 500px;
        transition: max-height 0.7s;
    }
}

@media (max-width: 680px) {
    .sitemap {max-width: 100%; right: -100%;}
}


/* 사이트맵 end */


/* 배경 딤(모바일 메뉴 열릴 때) */
.dim { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 998; }
.dim.show { opacity: 1; visibility: visible; }

/* 본문: 헤더가 fixed라 그만큼 위쪽 여백을 확보한다 */
.main-content { min-height: 60vh;}
.page-title { font-size: max(20px, 2.5rem); margin: 0 0 24px; }

/* 사전고지 배너도 fixed 헤더 아래로 내려온다 */
.policy-notice-banner { margin-top: var(--header-height); }

/* 레벨 미달 메뉴: "보이되 잠금" 모드 표시 */
a.is-locked { color: var(--color-text-sub); }
.menu-lock-icon { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; display: inline-block; }

/* 최신글 위젯 (components.latest-posts, 기본 "list" 스킨) — 어디서든 <x-latest-posts board="slug" /> 로 재사용 */
.latest-posts { margin-bottom: 32px; }
.latest-posts-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.latest-posts-title { font-size: 18px; margin: 0; }
.latest-posts-more { font-size: 13px; color: var(--color-text-sub); }
.latest-posts-empty { color: var(--color-text-sub); font-size: 14px; padding: 16px 0; }
.latest-posts-items { list-style: none; margin: 0; padding: 0; }
.latest-posts-items li { border-bottom: 1px solid var(--color-border); }
.latest-posts-items li:last-child { border-bottom: none; }
.latest-posts-items a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    color: var(--color-text);
}
.latest-posts-items a:hover { text-decoration: none; }
.latest-posts-items a:hover .latest-posts-item-title { text-decoration: underline; }
.latest-posts-item-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.latest-posts-item-date { flex-shrink: 0; font-size: 13px; color: var(--color-text-sub); }

/* 최신글 위젯 — "card" 스킨 (skin="card") */
.latest-posts-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.latest-posts-card-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
}
.latest-posts-card-item:hover { border-color: var(--color-main); text-decoration: none; }
.latest-posts-card-title { font-weight: 600; }
.latest-posts-card-item:hover .latest-posts-card-title { text-decoration: underline; }
.latest-posts-card-excerpt { font-size: 13px; color: var(--color-text-sub); flex: 1; }
.latest-posts-card-date { font-size: 12px; color: var(--color-text-sub); }

/* 최신글 위젯 — "slider" 스킨 (skin="slider", <x-slider> 사용) */
.latest-posts-slider-item { display: block; color: var(--color-text); }
.latest-posts-slider-item:hover { text-decoration: none; }
.latest-posts-slider-item img,
.latest-posts-slider-noimage {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    object-fit: cover;
}
.latest-posts-slider-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    color: var(--color-text-sub);
    font-size: 13px;
}
.latest-posts-slider-title {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.latest-posts-slider-item:hover .latest-posts-slider-title { text-decoration: underline; }
.latest-posts-slider-date { display: block; font-size: 12px; color: var(--color-text-sub); margin-top: 2px; }

/* 범용 유틸리티 — 여러 컨텍스트(모바일 메뉴/댓글 답글창 등)에서 공통으로 쓰여 base에 남긴다 */
.is-hidden { display: none; }

/* 팝업 */
.site-popup {
    position: fixed;
    z-index: 300;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    overflow: hidden;
}
.site-popup-header { display: flex; justify-content: flex-end; padding: 6px; }
.site-popup-body { padding: 0 16px 12px; overflow: auto; }
.site-popup-footer { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--color-border); font-size: 13px; }
.site-popup[data-position="center"] { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.site-popup[data-position="top-left"] { top: 20px; left: 20px; }
.site-popup[data-position="top-right"] { top: 20px; right: 20px; }
.site-popup[data-position="bottom-left"] { bottom: 20px; left: 20px; }
.site-popup[data-position="bottom-right"] { bottom: 20px; right: 20px; }

/* 약관/방침 사전고지 배너 */
.policy-notice-banner { background: #fffbeb; border-bottom: 1px solid #fde68a; padding: 10px 20px; }
.policy-notice-message { margin: 0; font-size: 13px; color: #92400e; max-width: var(--sub-maxWidth); margin: 0 auto; }
.policy-notice-message a { color: #92400e; text-decoration: underline; }

/* 쿠키 동의 배너 */
.cookie-consent {
    position: fixed;
    z-index: 400;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1f2937;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.cookie-consent-message { margin: 0; font-size: 14px; flex: 1 1 320px; }
.cookie-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }



/* 퀵메뉴 */

.scroll-top-btn {
    --size: 80px;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 100;
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: var(--main-gradient);
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.scroll-top-btn img {
    width: 16px;
}

/* scroll event */
body.scroll .scroll-top-btn {
    opacity: 1;
    visibility: visible;
}


@media (max-width: 1024px) {
    .scroll-top-btn {
        --size: 50px;
        font-size: 12px;
        gap: 5px;
    }

    .scroll-top-btn img {
        width: 12px;
    }
}


/* select 스타일 */

.ui-select { 
    position:relative;
    width: fit-content;
    min-width: 120px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.ui-select::before {
    content:'';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%) rotate(180deg);
    width: 12px;
    height: 7px;
    background: url('/images/icons/arrow_icon_t1.svg') no-repeat center center / cover;
    transition: all 0.2s;
}

.ui-select select {display:none; width: 100% !important;}
.ui-select-list {
    position: absolute;
    top:100%; left:0;
    width:100%; display:none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 10px 3px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 10;
}

.ui-select-list > li {
    padding: 5px 10px;
    cursor: pointer;
}

.ui-select-list > li:hover {
    background: #f1f1f1;
}

.ui-select .ui-select-btn {
    width: 100%;
    font-size: 16px;
    background: inherit;
    border: none;
    text-align: left;
    padding: 15px 20px;
    border-radius: inherit;
    cursor: pointer;
    color: var(--color-txet-sub);
    font-weight: 500;
}


.ui-select.open .ui-select-list {
    display:block;
    animation: select-open-list 0.3s forwards;
}
.ui-select-list > li.active { font-weight:bold; color: var(--color-main);}
.ui-select-list > li.disabled { opacity:.4; pointer-events:none;}

@keyframes select-open-list {
    0% {top: 100%; opacity: 0;}
    100% {top: 110%; opacity: 1;}
}

.select-basic {min-width: 160px;}
.select-basic .ui-select-btn {
    padding: 11px 20px;
}

/* 매물데이터, 통합검색 셀렉트 */

.site-search__control {
    width: 100%;
}

@media (min-width: 1025px) {
    .site-search__control {
        max-width: 160px;
        border: none;
    }
}



/* 통합검색폼 */
.site-search {
    width: min(calc(100% - 4rem), 133rem);
    margin: 0 auto;
}

.site-search__form {
    position: relative;
    display: grid;
    grid-template-columns: 24rem 24rem 24rem minmax(0, 1fr);
    align-items: center;
    min-height: 8.4rem;
    padding: 0 8.9rem 0 2rem;
    border: 1px solid #e3e5e7;
    border-radius: 4.2rem;
    background: #fff;
    box-shadow: 0 0.4rem 1.8rem rgba(25, 43, 57, 0.05);
}

.site-search__field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 3.6rem;
    padding: 0 2.8rem;
    padding-right: 0;
}

.site-search__field::before,
.site-search__field + .site-search__field::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 2.4rem;
    background: #eceeef;
    transform: translateY(-50%);
}

.site-search__field:first-child::before {display: none;}

.site-search_input {
    width: 100%;
    min-width: 0;
    min-height: 3.6rem;
    padding: 0;
    border: 0;
    outline: 0;
    border: none !important;
    border-radius: unset !important;
    background: transparent;
    color: #777;
    font-size: max(14px, 1.7rem);
    border-bottom: 1px solid var(--color-border) !important;
}

/* select.site-search_input {
    padding-right: 2rem;
    appearance: none;
    cursor: pointer;
} */

.site-search__field--select  {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .site-search__field--select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2.8rem;
    width: 0.7rem;
    height: 0.7rem;
    border-right: 1px solid #a7aaac;
    border-bottom: 1px solid #a7aaac;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
} */

.site-search_input::placeholder { color: #8d8f91; opacity: 1; }

.site-search__submit {
    position: absolute;
    top: 50%;
    right: -0.1rem;
    display: grid;
    place-items: center;
    width: 9rem;
    height: 9rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--main-gradient);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
    will-change: transform;
    color: #fff;
}

.site-search__submit img {
    will-change: transform;
}

.site-search__submit:hover { transform: translateY(-50%) scale(1.035); }

.site-search__submit-icon {
    position: relative;
    width: 3.2rem;
    height: 3.2rem;
}

/* .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} */

@media (max-width: 1100px) {
    /* .site-search__form { grid-template-columns: repeat(3, minmax(15rem, 1fr)) minmax(22rem, 1.8fr); } */
    .site-search__field { padding: 0 1.8rem; }
    .site-search__field--select::after { right: 1.8rem; }
}

@media (max-width: 1024px) {

    .site-search {display: none;}

    .site-search__form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
        padding: 15px 15px 70px;
        border-radius: 2.6rem;
        /* background: #e9ecee; */
    }

    .site-search__field {
        height: auto;
        padding: 0 1.6rem;
        background: #fff;
    }

    .site-search__field:first-child { border-radius: 1.5rem 0 0 0; }
    .site-search__field:nth-child(3) { border-radius: 0 1.5rem 0 0; }
    .site-search__field--keyword { grid-column: 1 / -1; border-radius: 0 0 1.5rem 1.5rem; margin-top: 10px;}
    .site-search__field + .site-search__field::before { display: none; }
    .site-search__submit {
        top: auto;
        right: 1.2rem;
        bottom: 1.2rem;
        left: 1.2rem;
        width: auto;
        height: auto;
        padding: 10px;
        border-radius: 1.6rem;
        transform: none;
    }
    .site-search__submit:hover {transform: none;}
    .site-search__submit-icon { width: 2.8rem; height: 2.8rem; }
}

@media (max-width: 560px) {
    .site-search { width: min(calc(100% - 3rem), 133rem); }
    .site-search__form { grid-template-columns: 1fr; gap: 5px;}
    .site-search__field,
    .site-search__field:first-child,
    .site-search__field:nth-child(3),
    .site-search__field--keyword {
        grid-column: auto;
        border-radius: 0;
    }
    .site-search__field:first-child { border-radius: 1.5rem 1.5rem 0 0; }
    .site-search__field--keyword { border-radius: 0 0 1.5rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-search__submit { transition: none; }
}


/* 통합검색폼 end */




/* footer ---------------- */

/* 파트너사 추가해야 할 경우 사용 */
.footer .footer-top {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
    margin-bottom: 40px;
}

.footer .footer-top .container {
    display: flex;
    align-items: center;
    gap: max(10px, 4.5rem);
}

.footer .footer-top .swiper-slide {
    border: 1px solid #efefef;
}

.footer .footer-top .swiper-slide img {
    width: auto; height: 100%; object-fit: cover;
    margin: 0 auto;
}

.footer .footer-top .swiper-wrapper {
    max-width: 93.6% !important;
    margin-right: auto;
}

.footer-pagination_box {
    min-width: 64px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.footer-pagination_box button {
    width: 32px; height: 32px;
    min-width: 32px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    margin: 0;

    transition: all 0.2s;
}

.footer-pagination_box .swiper-button-prev svg {
    transform: rotate(180deg);
}

.footer-pagination_box .swiper-button-next {
    border-left: 1px solid var(--color-border);
}

.footer-pagination_box button svg {
    stroke: currentColor;
    fill: none;
    height: 40%;
}

.footer-pagination_box button:hover {
    background: #ededed;
}

/* 파트너사 추가해야 할 경우 사용 end */

.footer {
    min-height: 29.8rem;
    padding: 3rem 2.4rem 2.8rem;
    background: #242834;
}

.footer__inner {
    width: min(100%, 150rem);
    margin: 0 auto;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 8.1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
}

.footer__utility {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer__social-link {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    text-decoration: none;
}

.footer__family {
    position: relative;
    width: 30rem;
}

.footer__family select {
    width: 100%;
    height: 6rem;
    padding: 0 5.4rem 0 2.2rem;
    border: 0;
    border-radius: 3rem;
    outline: 0;
    appearance: none;
    background: #393e4c;
    color: #fff;
    font-size: max(14px, 1.6rem);
    cursor: pointer;
}

.footer__family::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2.2rem;
    width: 1rem;
    height: 1rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.footer__bottom { padding-top: 3rem; }

.footer__info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 0;
    margin: 0;
    color: #eceef3;
    font-size: max(14px, 1.6rem);
    line-height: 1.45;
}

.footer__info-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

.footer__info-group {
    display: flex;
    align-items: baseline;
}

.footer__info-group + .footer__info-group::before {
    content: "";
    width: 1px;
    height: 1.4rem;
    margin: 0 1.4rem;
    background: rgba(255, 255, 255, 0.25);
}

.footer__info dt {
    margin: 0 0.8rem 0 0;
    font-weight: 700;
    white-space: nowrap;
}

.footer__info dd { margin: 0; }

.footer__copyright {
    margin: 1.4rem 0 0;
    color: rgba(255, 255, 255, 0.43);
    font-size: max(13px, 1.5rem);
}

@media (max-width: 900px) {
    .footer__top {
    align-items: flex-start;
    flex-direction: column;
    }

    .footer__utility {
    justify-content: space-between;
    width: 100%;
    }
}

@media (max-width: 640px) {
    .footer { padding: 3rem 2rem; }

    .footer__inner {position: relative; padding-bottom: 100px;}
    .footer__socials {
        position: absolute;
        bottom: 40px; left: 50%;
        transform: translateX(-50%);
    }

    .footer__social-link {
        width: 30px; height: auto;
    }

    .footer__top { gap: 4rem; align-items: center;}

    .footer__utility {
        align-items: flex-start;
        flex-direction: column;
        gap: 2rem;
    }

    .footer__family { width: 100%; }

    .footer__family select {
        height: 50px;
        border-radius: 100px;
        padding: 0 20px;
    }

    .footer__bottom { padding-top: 2.4rem; }

    .footer__info,
    .footer__info-row,
    .footer__info-group {
        flex-wrap: wrap;
        align-items: center;
        /* flex-direction: column; */
    }

    .footer__info-group.adress {
        flex-wrap: unset;
        align-items: flex-start;
    }

    .footer__info { gap: 1rem; }
    .footer__info-row { gap: 1rem; }
    .footer__info-group { gap: 0.3rem; }

    .footer__info-group + .footer__info-group::before { 
        display: none; height: 2rem;
        margin-left: 0;
    }

    .footer__info-row:first-child .footer__info-group:nth-child(2):before {display: block;}

    .footer__copyright { line-height: 1.5; }
}
