/* 세무법인 셜록택스 홈페이지 — 공통(바탕 글자·머리글·휴대폰 메뉴·바로가기·하위 쪽 머리·바닥글)
   쪽마다 다른 것은 assets/css/<쪽>.css. 휴대폰은 850px 이하.
   2026-12 이전 업체 코드를 걷어 내고 새로 짬. */

:root {
	--main: #09122d;           /* 로고 남색 */
	--f-mont: 'Montserrat';
	--swiper-theme-color: #333 !important;   /* 뒤에 오는 Swiper CSS(#007aff)보다 앞서게 */
}

/* ---------- 바탕 ---------- */
* { margin: 0; padding: 0; }
html, body { -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
/* 글자는 요소마다 16px·#333 에서 시작한다(물려받지 않음 — 쪽 CSS 가 크기를 정한다). span·b·strong·em 만 물려받는다. */
html, body, div, span, p, h1, h2, h3, h4, h5, h6, sup, ul, ol, li, a, dt, dl, dd, table, th, td,
input, select, textarea, label, section, article, button, strong, b, figure, figcaption, address, small {
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue",
		"Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	color: #333; font-size: 16px; letter-spacing: -1.4px; line-height: 1.45;
}
span, b, strong, em, small { font-size: inherit; color: inherit; }
ol, ul { list-style: none; }
img { border: 0; }
table { border-collapse: separate; border: 0; }
address, em, cite, th { font-weight: normal; font-style: normal; }
a, a:hover, a:focus, a:link { color: inherit; text-decoration: none; }
button { border: none; padding: 0; outline: none; background-color: transparent; cursor: pointer; }
.wrap { width: 1200px; max-width: calc(100% - 40px); margin: 0 auto; }   /* 1240px 보다 좁은 PC 에서 잘리지 않게 */
.only-mo { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 머리글(PC) ---------- */
.hd-pc {
	position: fixed; top: 0; left: 0; z-index: 90; width: 100%; height: 110px; padding: 0 clamp(20px, 9.1vw, 175px); box-sizing: border-box; gap: clamp(12px, 2vw, 40px);
	display: flex; align-items: center; justify-content: space-between;
	box-shadow: inset 0 -1px rgba(221, 221, 221, 0.3); transition: background .3s ease, height .3s ease;
}
.hd-pc .hd-logo { display: block; flex: none; width: 235px; height: 24px; background: url(../img/main/hd_logo_off.png) center / cover no-repeat; }
.gnb { display: flex; height: 100%; justify-content: center; align-items: center; }
.gnb-1 { display: flex; height: 100%; align-items: center; width: 100%; }
.gnb-1 > li { position: relative; display: flex; height: 100%; align-items: center; width: 100%; padding: 0 clamp(8px, 1.35vw, 26px); }
.gnb-1 > li:first-child { padding-left: 0; }
.gnb-1 > li:last-child { padding-right: 0; }
.gnb a { display: block; white-space: pre; text-align: center; color: #333; }
.gnb-1 > li > a {
	position: relative; display: flex; height: 100%; width: fit-content; align-items: center; box-sizing: border-box;
	font-size: 20px; font-weight: bold; color: #fff;
}
.gnb-1 > li > a::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--main); transition: width .3s ease;
}
.gnb-1 > li:hover > a { color: var(--main) !important; }
.gnb-1 > li:hover > a::after { width: 100%; }
.gnb-2 {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: none; gap: 65px; align-items: flex-start;
	width: fit-content; padding-top: 40px; box-sizing: border-box;
}
.gnb-1 > li:first-child .gnb-2 { left: 0; transform: none; }
.gnb-1 > li:last-child .gnb-2 { left: auto; right: 0; transform: none; }
.gnb-1 > li:hover .gnb-2 { display: flex; }
.gnb-2 > li > a { font-size: 20px; font-weight: bold; }
.gnb-2 > li > a:hover { color: var(--main); }
/* 펼친 하위 메뉴 뒤의 흰 띠(화면 폭 전체) */
.gnb-2::after {
	content: ""; position: absolute; z-index: -1; top: 0; left: calc(-100% - 500vw); width: 1000vw; height: calc(100% + 40px); background: #fff;
}
.hd-cta { position: relative; z-index: 1; }
.hd-cta > a {
	display: flex; align-items: center; justify-content: center; width: 200px; height: 45px; margin-left: 35px; box-sizing: border-box;
	border: 1px solid #fff; border-radius: 100vw; font-size: 16px; color: #fff; text-align: center;
}
.hd-cta ul {
	position: absolute; top: 62px; left: 80px; width: 200px; padding: 20px 25px; box-sizing: border-box; background: #fff;
	border-top: 2px solid var(--main); opacity: 0; pointer-events: none; transition: all .3s ease;
}
.hd-cta ul::before { content: ""; position: absolute; z-index: -1; left: 0; top: -100%; width: 100%; height: 100px; }
.hd-cta li + li { margin-top: 10px; }
.hd-cta li a { font-size: 16px; font-weight: bold; }
.hd-cta li a:hover { color: var(--main); }
.hd-cta:hover ul { left: 35px; opacity: 1; pointer-events: auto; }
/* 내려 읽거나 머리글에 마우스를 올리면 흰 바탕 */
.site-header.is-scrolled .hd-pc, .site-header:hover .hd-pc { background: #fff; height: 80px; }
.site-header.is-scrolled .hd-pc .hd-logo, .site-header:hover .hd-pc .hd-logo { background-image: url(../img/main/hd_logo_on.png); }
.site-header.is-scrolled .gnb-1 > li > a, .site-header:hover .gnb-1 > li > a { color: #333; }
.site-header.is-scrolled .hd-cta > a, .site-header:hover .hd-cta > a { background: var(--main); color: #fff; }
.hd-mo, .mo-nav { display: none; }

/* ---------- PC 오른쪽 아래 바로가기 ---------- */
.quick { position: fixed; right: 50px; bottom: 50px; z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.quick img { display: block; }
.quick-tel {
	display: flex; flex-direction: column; width: 70px; padding: 15px 10px; box-sizing: border-box;
	background: #e6effe; border: 1px solid #b5cef7; border-radius: 10px;
}
.quick-tel span { display: block; text-align: center; font-size: 14px; font-weight: 600; color: #395fc9; }
.quick-tel i { display: block; width: 40px; height: 40px; margin: 8px auto; border-radius: 50%; background: #395fc9 url(../img/main/q-tel.png) center no-repeat; }
.quick-tel p { text-align: center; font-family: var(--f-mont); font-size: 20px; font-weight: bold; }
.quick-link { display: block; cursor: pointer; }

/* ---------- 하위 쪽 머리: 배경 그림 띠 + 휴대폰 경로 메뉴 + 쪽 제목 ---------- */
/* 화면 폭 전체(예전엔 1920px 에서 멈춰 4K·축소 화면에서 오른쪽이 비고 흰 메뉴 글자가 안 보였다) */
.page-hero {
	position: relative; width: 100%; height: 480px;
	background-image: var(--hero-pc); background-size: cover; background-repeat: no-repeat;
}
@media screen and (min-width: 1921px) { .page-hero { background-position: center; } }
.page-hero-name {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-size: 55px; font-weight: bold; color: #fff; text-align: center; white-space: nowrap;
}
.crumbs { display: none; }
.page-body { padding: 120px 0; }
.page-head { margin-bottom: 50px; }
.page-title { display: block; font-size: 60px; font-weight: bold; text-align: center; }
.page-lead { display: block; margin-top: 30px; font-size: 28px; text-align: center; }

/* ---------- 바닥글 ---------- */
.site-footer { padding: 60px 0; background: #f4f4f4; }
.ft-logo { display: block; width: 267px; height: 26px; background: url(../img/main/ft_logo.png) center no-repeat; }
.ft-info { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.ft-info p { display: flex; align-items: center; gap: 20px; font-size: 16px; }
.ft-copy { margin-top: 30px; padding-top: 30px; border-top: 1px solid #ddd; font-size: 16px; }
.ft-admin { margin-left: 20px; opacity: .4; }

/* ================= 휴대폰 ================= */
/* 좁은 PC(851~1280px): 로고가 메뉴에 밀려 잘리지 않게 로고·글자·버튼을 줄인다 */
@media screen and (min-width: 851px) and (max-width: 1280px) {
	.hd-pc .hd-logo { width: 176px; height: 18px; background-size: contain; }
	.gnb-1 > li > a { font-size: 16px; }
	.hd-pc .hd-cta { flex: none; }
	.hd-pc .hd-cta > a { width: 132px; }
}
@media screen and (min-width: 851px) and (max-width: 1000px) {
	.hd-pc .hd-logo { width: 140px; height: 15px; }
	.gnb-1 > li > a { font-size: 14.5px; }
	.hd-pc .hd-cta > a { width: 104px; font-size: 14px; }
}
@media screen and (max-width: 850px) {
	.only-pc { display: none !important; }
	.only-mo { display: block !important; }
	.wrap { width: auto; max-width: none; margin: 0 auto; padding-left: 5% !important; padding-right: 5% !important; }

	.hd-pc, .quick { display: none; }
	.site-header { position: fixed; top: 0; left: 0; z-index: 90; width: 100%; height: 12vw; border-bottom: 1px solid #fff; }
	.hd-mo { display: flex; align-items: center; justify-content: space-between; height: 12vw; padding: 0 4vw; }
	.hd-mo .hd-logo { display: block; width: 33.87vw; height: 3.47vw; background: url(../img/m_main/m_hd_logo_off.png) center / contain no-repeat; }
	.hd-burger { width: 6vw; height: 3.07vw; background: url(../img/m_main/m_hd_nav.png) center / cover no-repeat; }
	.site-header.is-scrolled .hd-mo { background: #fff; }
	.site-header.is-scrolled .hd-mo .hd-logo { background: url(../img/m_main/m_hd_logo_on.png) center / cover no-repeat; }
	.site-header.is-scrolled .hd-burger { background-image: url(../img/m_main/m_hd_nav_scroll.png); }

	.mo-nav {
		display: block; position: fixed; top: 0; right: -100%; z-index: 103; width: 100%; min-height: 100vh; box-sizing: border-box; background: #fff;
	}
	.mo-nav.is-open { right: 0; transition: all .45s ease; }
	.mo-nav-top { display: flex; align-items: center; justify-content: space-between; height: 12vw; padding: 0 4vw; }
	.mo-nav-top .hd-logo { display: block; width: 33.87vw; height: 3.47vw; background: url(../img/m_main/m_hd_logo_on.png) center / cover no-repeat; }
	.mo-nav-close { width: 4vw; height: 4vw; background: url(../img/m_main/m_hd_nav2.png) center / cover no-repeat; }
	.mo-nav nav { padding: 4vw 5.33vw; box-sizing: border-box; }
	.mo-nav li > a, .mo-nav li > button { position: relative; display: block; width: 100%; padding: 2.67vw 0; box-sizing: border-box; text-align: left; }
	.mo-nav-1 > li > a, .mo-nav-1 > li > button { font-size: 5.33vw; font-weight: 900; }
	.mo-nav-1 > li > button::after {
		content: "expand_more"; position: absolute; top: 50%; right: 0; transform: translateY(-50%);
		font-family: "Material Icons"; font-size: 8vw; font-weight: normal; letter-spacing: 0;
	}
	.mo-nav-1 > li.is-open > button { color: #001063; font-weight: 900; }
	.mo-nav-1 > li.is-open > button::after { content: "expand_less"; }
	.mo-nav-1 ul { display: none; overflow: hidden; }
	.mo-nav-1 li.is-open > ul { display: block; }
	.mo-nav-1 ul a { font-size: 4.3vw; padding: 2.67vw !important; }

	.page-hero { height: 60vw; background-image: var(--hero-mo); }
	.page-hero-name { font-size: 6.6667vw; font-weight: normal; }

	.crumbs { display: flex; align-items: center; position: relative; z-index: 9; height: 13.3333vw; border-bottom: 1px solid #f2f2f2; box-sizing: border-box; }
	/* 집 칸과 메뉴 칸이 함께 줄어드는 폭(메뉴 칸 100%) — 집 칸은 약 46px 이 된다 */
	.crumbs-home { display: flex; align-items: center; justify-content: center; width: 13.3333vw; height: 100%; background: #7b7b7b; }
	.crumbs-home img { display: block; width: 4vw; height: auto; }
	.crumbs-menu { position: relative; width: 100%; height: 100%; background: var(--main); cursor: pointer; }
	.crumbs-now {
		display: block; width: 100%; height: 100%; padding-left: 4vw; box-sizing: border-box; text-align: left;
		font-size: 3.7333vw; line-height: 13.3333vw; font-weight: 500; letter-spacing: -1px; color: #fff;
	}
	.crumbs-now {   /* 원본처럼 펼칠 목록이 없는 쪽에도 꺾쇠가 보인다 */
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='9' viewBox='0 0 17 9'%3E%3Cpath d='M1 1l7.5 6.5L16 1' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") right 4vw center / 2.533vw no-repeat;
	}
	.crumbs-menu.is-open .crumbs-now { transform: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='9' viewBox='0 0 17 9'%3E%3Cpath d='M1 8l7.5-6.5L16 8' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }
	.crumbs-menu ul { display: none; position: absolute; left: 0; top: 13.4667vw; z-index: 10; width: 100%; background: #f6f6f6; overflow: hidden; }
	.crumbs-menu.is-open ul { display: block; }
	.crumbs-menu li { height: 13.3333vw; }
	.crumbs-menu li a { display: block; padding-left: 4vw; line-height: 13.3333vw; font-size: 3.7333vw; color: #666; }
	.crumbs-menu li a:hover { background: var(--main); color: #fff; font-weight: bold; }

	.page-body { padding: 20vw 0; }
	.page-head { margin-bottom: 6.67vw; }
	.page-title { font-size: 8vw; }
	.page-lead { margin-top: 5.33vw; font-size: 4vw; }

	.site-footer { padding: 8vw 0 24vw; }
	.ft-logo { width: 35.6vw; height: 3.47vw; background: url(../img/m_main/m_ft_logo.png) center / 100% no-repeat; }
	.ft-info { gap: 2vw; margin-top: 6.67vw; }
	.ft-info p { flex-direction: row; flex-wrap: wrap; gap: 2vw 2.67vw; font-size: 3.2vw; }
	.ft-info p.only-mo { display: flex !important; }
	.ft-copy { margin-top: 6vw; padding-top: 6vw; border-top-width: .13vw; font-size: 2.93vw; }
	.ft-admin { display: inline-block; margin: 1.67vw 0 0; }
}
