/*
 * Garam — 화면 스타일(헤더 · 사주팔자란 · 상담영역 · 후기 · 오시는 길 · 푸터 · 모바일 하단 막대).
 * 색·글꼴·종이 결은 tokens.css 의 변수를 쓴다. 히어로는 hero.css 가 따로 맡는다.
 *
 * 결: 종이 바탕 + 가는 먹선 격자(.g-frame 의 양옆 선, 구역 사이 눈금자) + 작은 고정폭 표기
 *     + 크고 촘촘한 굵은 제목 + 주홍 네모 포인트. (참고: heronaiapp.com)
 *
 *   1. 바탕          5. 사주팔자란      9. 푸터
 *   2. 격자 부품      6. 상담영역        10. 모바일 하단 막대
 *   3. 버튼          7. 후기            11. 움직임 줄이기
 *   4. 헤더 · 메뉴    8. 오시는 길
 */

:root {
	--frame-x: 8px;                 /* 화면 가장자리 ~ 격자 바깥선 */
	--pad: clamp(20px, 3vw, 40px);  /* 칸 안쪽 여백 */
	--sec-y: clamp(48px, 7vw, 112px);
	--label: "JetBrains Mono", "Garam Sans", "Pretendard Variable", Pretendard, ui-monospace, monospace; /* 영문·숫자는 고정폭, 한글은 Pretendard */
	--label-ws: -0.3em;             /* 고정폭 글꼴의 넓은 띄어쓰기를 한글 간격으로 줄인다 */
	--dash: 1px dashed var(--line-strong);
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) {
	:root { --frame-x: 12px; }
}

/* ───────────────────────── 1. 바탕 ───────────────────────── */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	background-color: var(--paper);
	background-image: var(--paper-grain);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	word-break: keep-all;
	overflow-wrap: anywhere;
	overflow-x: clip;
}

/* 종이 질감 — 섬유·얼룩·알갱이를 화면 위에 한 겹 덮는다. 사진·카드까지 같은 종이에 찍힌 것처럼 보인다.
   눌림은 통과시킨다. 그림은 .dev/paper-gen.mjs 가 만든다(이음매 없는 512px). */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	pointer-events: none;
	background-image: url("img/paper.webp");
	background-size: 512px 512px;
}
@media (min-resolution: 2dppx) {
	body::before { background-size: 384px 384px; }
}
@media print {
	body::before { display: none; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* 초점 테두리는 키보드로 움직일 때만(html.g-kbd — main.js). 손가락으로 누른 곳에는 남지 않는다(스크립트가 없으면 브라우저 판단대로).
   키보드일 때는 브라우저의 :focus-visible 판단(앞서 누른 적이 있으면 스크립트가 옮긴 초점을 빼는 등)에 기대지 않고 초점마다 그린다 */
:where(.g-kbd) :focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.g-js:not(.g-kbd) :focus { outline: none; }
.g-js:not(.g-kbd) :focus-visible { outline: none; }
[tabindex="-1"]:focus { outline: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	font-family: sans-serif;   /* 보이지 않는 글 — 웹 글꼴 조각을 받지 않게 */
}

.g-skip {
	position: fixed;
	top: 10px; left: 10px;
	z-index: 300;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--paper);
	font-size: 15px;
	font-weight: 600;
}
.g-skip:not(:focus) {
	width: 1px; height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.g-main { display: block; }
/* 히어로가 없을 때(아직 안 만들었거나 꺼 두었을 때) 첫 구역이 고정 헤더 밑에 깔리지 않게 */
.g-main > .g-sec:first-child { padding-top: var(--header-h); }

/* 고정폭(--label) 글꼴로 쓰는 한글 표기들 */
.g-eyebrow, .g-note, .g-logo__small, .g-burger__text, .g-menu__meta, .g-cell__label,
.g-sign, .g-pause, .g-rcard__meta, .g-ptile__cap, .g-spec dt, .g-footer__up, .g-footer__row dt, .g-footer__copy {
	word-spacing: var(--label-ws);
}

/* ───────────────────────── 2. 격자 부품 ───────────────────────── */

/* 내용 폭의 세로 격자선. 구역마다 이 틀 안에서 칸을 나눈다. */
.g-frame {
	position: relative;
	width: calc(100% - var(--frame-x) * 2);
	max-width: var(--wrap);
	margin-inline: auto;
	border-inline: 1px solid var(--line);
}

.g-sec { position: relative; }

/* 구역 사이 눈금자 — 위 선 + 잔 눈금(8px) + 큰 눈금(80px) + 양끝 '+'. */
.g-ruler {
	position: relative;
	height: 26px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background:
		repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 80px) 24px 50% / calc(100% - 48px) 11px no-repeat,
		repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px) 24px 50% / calc(100% - 48px) 5px no-repeat;
}
.g-ruler::before,
.g-ruler::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 11px; height: 11px;
	margin-top: -5.5px;
	background:
		linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat,
		linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat;
}
.g-ruler::before { left: 7px; }
.g-ruler::after { right: 7px; }

/* 격자 모서리 '+'. 부모가 position:relative 여야 한다. */
.g-cross {
	position: absolute;
	z-index: 2;
	width: 11px; height: 11px;
	pointer-events: none;
	background:
		linear-gradient(var(--ink-3), var(--ink-3)) center / 100% 1px no-repeat,
		linear-gradient(var(--ink-3), var(--ink-3)) center / 1px 100% no-repeat;
}
.g-cross--tl { top: -6px; left: -6px; }
.g-cross--tr { top: -6px; right: -6px; }
.g-cross--bl { bottom: -6px; left: -6px; }
.g-cross--br { bottom: -6px; right: -6px; }

/* 구역 머리줄: ■ 작은 제목 ……… [01] */
.g-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	padding: 12px var(--pad);
	border-bottom: var(--dash);
}

.g-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 500 15px/1.4 var(--label);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.g-sq {
	display: inline-block;
	flex: none;
	width: 8px; height: 8px;
	background: var(--accent);
}
.g-sq--ink { background: var(--ink); }

.g-title {
	font-size: clamp(1.875rem, 1.2rem + 3.2vw, 4.5rem);
	font-family: var(--font-title);
	font-weight: normal;
	line-height: 1.1;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.g-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font: 500 15px/1.6 var(--label);
	color: var(--ink-2);
}
.g-note .g-sq { margin-top: .5em; }

/* ───────────────────────── 3. 버튼 ───────────────────────── */

.g-btn {
	display: inline-flex;
	align-items: stretch;
	justify-content: space-between;
	min-height: 54px;
	border: 1px solid var(--ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.g-btn__label {
	display: flex;
	align-items: center;
	padding: 0 24px;
}
.g-btn__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 54px;
	border-left: 1px dashed rgba(255, 255, 255, .4);
	font-family: var(--font-mono);
	font-size: 16px;
	transition: transform .3s var(--ease);
}
.g-btn:hover .g-btn__arrow { transform: translateX(3px); }

.g-btn--dark { background: var(--ink); color: var(--paper); }
.g-btn--dark:hover { background: #000; border-color: #000; }

.g-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.g-btn--accent:hover { background: #c23820; border-color: #c23820; }

/* ───────────────────────── 4. 헤더 · 메뉴 ───────────────────────── */

.g-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
}
.admin-bar .g-header { top: var(--g-admin-top, var(--wp-admin--admin-bar--height, 32px)); }   /* 휴대폰에서 막대가 올라가면 따라 올라간다(main.js) */

/* 맨 위에서는 투명, 내려가면 종이 바탕 + 아래 선 */
.g-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--paper);
	background-image: var(--paper-grain);
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transition: opacity .3s var(--ease);
}
.g-header.is-scrolled::before,
.g-header.is-open::before { opacity: 1; }

.g-header__bar {
	position: relative;
	display: flex;
	align-items: stretch;
	height: 100%;
	width: calc(100% - var(--frame-x) * 2);
	max-width: var(--wrap);
	margin-inline: auto;
	border-inline: 1px solid var(--line);
}

.g-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin-right: auto;
	padding: 0 20px 0 14px;
}
.g-logo__seal {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px; height: 32px;
	background: var(--accent);
	color: var(--accent-ink);
}
.g-logo__seal svg { width: 26px; height: 26px; }
.g-logo__text { display: flex; flex-direction: column; min-width: 0; }
.g-logo__small {
	font: 500 15px/1.35 var(--label);
	letter-spacing: .02em;
	color: var(--ink-3);
	white-space: nowrap;
}
.g-logo__name {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.035em;
	white-space: nowrap;
}
.g-logo__img { width: auto; height: 40px; max-width: 200px; object-fit: contain; object-position: left center; }

.g-nav { display: none; }
.g-nav__list { display: flex; height: 100%; }
.g-nav__item { display: flex; }
.g-nav__link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: clamp(112px, 9.2vw, 140px);
	padding: 10px 14px;
	border-left: 1px solid var(--line);
	transition: background-color .25s var(--ease);
}
.g-nav__link::after {   /* 오른쪽 아래 꺾쇠 */
	content: "";
	position: absolute;
	right: 6px; bottom: 6px;
	width: 5px; height: 5px;
	border-right: 1px solid var(--ink-3);
	border-bottom: 1px solid var(--ink-3);
}
.g-nav__idx {
	display: flex;
	align-items: center;
	gap: 6px;
	font: 400 15px/1 var(--font-mono);
	letter-spacing: .06em;
	color: var(--ink-3);
}
.g-nav__idx::before {
	content: "";
	width: 6px; height: 6px;
	background: var(--accent);
	transform: scale(0);
	transition: transform .25s var(--ease);
}
.g-nav__label { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.g-nav__link:hover { background-color: rgba(35, 33, 28, .04); }
.g-nav__link.is-active .g-nav__idx { color: var(--accent); }
.g-nav__link.is-active .g-nav__idx::before { transform: scale(1); }

.g-header__cta { display: none; }
.g-hbtn {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 150px;
	padding: 10px 14px 8px;
	border-left: 1px solid var(--line);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
.g-hbtn__arrow { align-self: flex-end; font: 400 15px/1 var(--font-mono); transition: transform .3s var(--ease); }
.g-hbtn:hover { background-color: rgba(35, 33, 28, .04); }
.g-hbtn:hover .g-hbtn__arrow { transform: translate(2px, -2px); }
.g-hbtn--talk { color: var(--accent); }
.g-hbtn--talk:hover { background-color: var(--accent); color: var(--accent-ink); }

.g-burger {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	border: 0;
	border-left: 1px solid var(--line);
	background: none;
	cursor: pointer;
}
.g-burger__lines { position: relative; width: 20px; height: 9px; }
.g-burger__lines span {
	position: absolute;
	left: 0; right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform .3s var(--ease), top .3s var(--ease);
}
.g-burger__lines span:first-child { top: 0; }
.g-burger__lines span:last-child { top: 7.5px; }
.g-burger[aria-expanded="true"] .g-burger__lines span:first-child { top: 3.75px; transform: rotate(45deg); }
.g-burger[aria-expanded="true"] .g-burger__lines span:last-child { top: 3.75px; transform: rotate(-45deg); }
.g-burger__text { font: 500 15px/1 var(--label); letter-spacing: .04em; }

@media (min-width: 768px) {
	.g-header__cta { display: flex; }
}
@media (min-width: 1080px) {
	.g-nav { display: flex; }
	.g-burger { display: none; }
}

/* 모바일 전체 화면 메뉴 */
.g-menu {
	position: fixed;
	inset: 0;
	z-index: 98;
	padding-top: var(--header-h);
	overflow-y: auto;
	overscroll-behavior: contain;
	background-color: var(--paper);
	background-image: var(--paper-grain);
	opacity: 0;
	transition: opacity .3s var(--ease);
}
.g-menu[hidden] { display: none; }
.g-menu.is-open { opacity: 1; }
.admin-bar .g-menu { top: var(--g-admin-top, var(--wp-admin--admin-bar--height, 32px)); }

.g-menu__inner {
	display: flex;
	flex-direction: column;
	width: calc(100% - var(--frame-x) * 2);
	min-height: 100%;
	margin-inline: auto;
	border-inline: 1px solid var(--line);
}
.g-menu__item {   /* 메뉴 항목은 차례로 제자리에서 스며든다(위로 떠오르지 않는다) */
	opacity: 0;
	transition: opacity .45s var(--ease);
}
.g-menu.is-open .g-menu__item { opacity: 1; }
.g-menu.is-open .g-menu__item:nth-child(2) { transition-delay: .05s; }
.g-menu.is-open .g-menu__item:nth-child(3) { transition-delay: .1s; }
.g-menu.is-open .g-menu__item:nth-child(4) { transition-delay: .15s; }
.g-menu__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px var(--pad);
	border-bottom: var(--dash);
	font-size: clamp(1.75rem, 1.2rem + 3vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.04em;
}
.g-menu__idx { flex: none; width: 38px; font: 400 15px/1 var(--font-mono); color: var(--ink-3); letter-spacing: 0; }
.g-menu__arrow { margin-left: auto; font: 400 20px/1 var(--font-mono); color: var(--ink-3); letter-spacing: 0; }
.g-menu__link:active .g-menu__arrow, .g-menu__link:hover .g-menu__arrow { color: var(--accent); }
.g-menu__cta { display: grid; gap: 10px; margin-top: auto; padding: 32px var(--pad) 16px; }
.g-menu__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px var(--pad) 28px;
	font: 500 15px/1.4 var(--label);
	color: var(--ink-2);
}
html.g-menu-open { overflow: hidden; }

/* ───────────────────────── 5. 사주팔자란 ───────────────────────── */

.g-saju__intro { display: grid; }
.g-saju__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(18px, 2.4vw, 32px);
	padding: clamp(28px, 4vw, 56px) var(--pad) var(--sec-y);
	text-align: center;
}
/* 작은 제목(예전 큰 제목 자리) */
.g-saju__kicker {
	margin: 0;
	font-size: clamp(1.125rem, .95rem + .7vw, 1.625rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -0.03em;
	color: var(--ink-2);
}
/* 큰 두 줄(예전 설명 두 줄) — 붓글씨 제목체, 스크롤에 맞춰 먹이 칠해진다 */
.g-saju__leads { display: grid; gap: .2em; }
.g-saju__big {
	margin: 0;
	font-family: var(--font-title);
	font-weight: normal;
	font-size: clamp(1.25rem, .55rem + 3.3vw, 4rem);
	line-height: 1.22;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.g-statement {
	font-size: clamp(1.3125rem, 1rem + 1.35vw, 2.25rem);
	font-weight: 600;
	line-height: 1.32;
	letter-spacing: -0.03em;
}
/* 스크롤에 맞춰 회색 글씨가 먹으로 칠해진다(main.js 가 background-position 을 옮긴다). */
.g-anim .g-fill {
	background-image: linear-gradient(90deg, var(--ink) 0 50%, rgba(35, 33, 28, .2) 50% 100%);
	background-size: 200% 100%;
	background-position: 100% 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.g-saju__art {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 280px;
	padding: clamp(28px, 4vw, 56px) var(--pad);
	border-top: 1px solid var(--line);
	color: var(--ink);
}
.g-saju__art .g-cross--tl, .g-saju__art .g-cross--tr { top: -6px; }
.g-roots { position: relative; width: min(100%, 440px); height: auto; }
@media (max-width: 599.98px) {
	.g-saju__art { min-height: 0; padding-block: 24px; }
	.g-roots { width: min(86%, 320px); }
}
.g-roots__tips { fill: var(--accent); }

.g-saju__pair { display: grid; border-top: 1px solid var(--line); }

.g-cell { position: relative; display: flex; flex-direction: column; }
.g-cell + .g-cell { border-top: 1px solid var(--line); }
.g-cell__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	padding: 12px var(--pad);
	border-bottom: var(--dash);
}
.g-cell__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 15px/1.4 var(--label);
	letter-spacing: .02em;
}
.g-cell__art {
	display: grid;
	place-items: center;
	height: clamp(140px, 15vw, 200px);
	border-bottom: var(--dash);
	color: var(--ink-2);
}
.g-cell__art svg { width: min(56%, 220px); height: auto; }
.g-cell__body {
	padding: clamp(24px, 3vw, 40px) var(--pad) clamp(32px, 4vw, 52px);
	font-size: clamp(1.25rem, 1rem + .95vw, 1.875rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.03em;
}
.g-cell--fixed {
	background-image: repeating-linear-gradient(-45deg, rgba(35, 33, 28, .045) 0 1px, transparent 1px 9px);
}
.g-cell--change .g-cell__art { color: var(--ink); }
@media (max-width: 599.98px) {
	.g-cell__art { height: 112px; }
}

.g-saju__foot {
	display: flex;
	padding: clamp(24px, 3vw, 36px) var(--pad);
	border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
	.g-saju__pair { grid-template-columns: 1fr 1fr; }
	.g-cell + .g-cell { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 960px) {
}

/* ───────────────────────── 6. 상담영역 ───────────────────────── */

.g-service__top { padding: var(--sec-y) var(--pad) clamp(32px, 4vw, 64px); }

.g-service__intro { display: grid; border-top: 1px solid var(--line); }
.g-service__photo { position: relative; padding: clamp(14px, 2.2vw, 32px); }
.g-service__frame {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-2);
}
.g-service__frame img { width: 100%; height: 100%; object-fit: cover; }
.g-service__photo > .g-cross--tl { top: calc(clamp(14px, 2.2vw, 32px) - 6px); left: calc(clamp(14px, 2.2vw, 32px) - 6px); }
.g-service__photo > .g-cross--tr { top: calc(clamp(14px, 2.2vw, 32px) - 6px); right: calc(clamp(14px, 2.2vw, 32px) - 6px); }
.g-service__photo > .g-cross--bl { bottom: calc(clamp(14px, 2.2vw, 32px) - 6px); left: calc(clamp(14px, 2.2vw, 32px) - 6px); }
.g-service__photo > .g-cross--br { bottom: calc(clamp(14px, 2.2vw, 32px) - 6px); right: calc(clamp(14px, 2.2vw, 32px) - 6px); }

.g-service__words {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: clamp(32px, 4.5vw, 64px) var(--pad);
	border-top: 1px solid var(--line);
}
.g-quote p {
	font-family: var(--font-serif);
	font-size: clamp(1rem, .8rem + 1vw, 1.75rem);
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: -0.02em;
}
.g-sign {
	display: flex;
	align-items: center;
	gap: 12px;
	font: 500 15px/1.4 var(--label);
	color: var(--ink-2);
}
.g-sign__rule { width: 32px; height: 1px; background: var(--ink-3); }
.g-sign__seal { width: 18px; height: 18px; margin-left: 4px; background: var(--accent); }

@media (min-width: 960px) {
	.g-service__intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.g-service__words { border-top: 0; border-left: 1px solid var(--line); }
}

/* 상담 항목 카드 — 칸 안을 나누지 않고, 카드 사이만 손으로 그은 스케치 선으로 나눈다.
   선은 카드 오른쪽 · 아래 가장자리에 걸치고, 바깥 테두리에 닿는 선은 .g-cards 의 clip-path 가 잘라 낸다. */
.g-cards {
	display: grid;
	grid-template-columns: 1fr;
	clip-path: inset(0 5px 5px 0);
	margin-bottom: -5px;
}
.g-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: clamp(16px, 1.6vw, 24px);
	padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.2vw, 32px) clamp(28px, 3vw, 40px);
}
.g-card::after,
.g-card::before {
	content: "";
	position: absolute;
	pointer-events: none;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.g-card::after { top: 8px; bottom: 8px; right: -4px; width: 8px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 400' preserveAspectRatio='none'><g fill='none' stroke='%2334312b' stroke-linecap='round' vector-effect='non-scaling-stroke'><path vector-effect='non-scaling-stroke' stroke-width='1.3' d='M4 2 C4.6 60 3.3 110 4.2 170 S3.6 260 4.4 320 S3.8 380 4.1 398'/><path vector-effect='non-scaling-stroke' stroke-width='.8' stroke-opacity='.45' d='M5 10 C4.2 80 5.4 140 4.6 210 S5.3 300 4.4 390'/></g></svg>"); }
.g-card::before { left: 8px; right: 8px; bottom: -4px; height: 8px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><g fill='none' stroke='%2334312b' stroke-linecap='round'><path vector-effect='non-scaling-stroke' stroke-width='1.3' d='M2 4 C60 4.7 120 3.2 180 4.3 S290 3.5 340 4.4 S385 3.8 398 4.1'/><path vector-effect='non-scaling-stroke' stroke-width='.8' stroke-opacity='.45' d='M12 5 C90 4.1 150 5.5 220 4.6 S320 5.2 392 4.3'/></g></svg>"); }

/* 한자: 크게, 위에서 아래로(붓글씨) */
.g-card__hanja {
	writing-mode: vertical-rl;
	font-family: "Yuji Boku", var(--font-serif);
	font-size: clamp(3.25rem, 2.2rem + 2.6vw, 5.25rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: .04em;
	color: var(--ink);
	transition: transform .5s var(--ease);
	transform-origin: 50% 0;
}
.g-card:hover .g-card__hanja { transform: scale(1.04); }

.g-card__body { display: grid; align-content: start; gap: 10px; padding-top: 4px; }
.g-card__title {
	font-size: clamp(1.5rem, 1.15rem + .9vw, 2rem);
	font-family: var(--font-title);
	font-weight: normal;
	line-height: 1.2;
	letter-spacing: -0.035em;
}
.g-card__list { display: grid; gap: 4px; margin-top: 4px; }
.g-card__list li {
	position: relative;
	padding-left: 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-2);
}
.g-card__list li::before {
	content: "";
	position: absolute;
	left: 0; top: .8em;
	width: 7px; height: 1px;
	background: var(--ink-3);
}

.g-card--wide { grid-column: 1 / -1; }

@media (min-width: 600px) {
	.g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
	.g-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.g-card--wide .g-card__body {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: clamp(48px, 6vw, 96px);
	}
	.g-card--wide .g-card__title { grid-column: 1; }
	.g-card--wide .g-card__list { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(3, max-content); column-gap: clamp(28px, 3vw, 48px); }
}

.g-service .g-note { padding: 20px var(--pad) 24px; }

/* ───────────────────────── 7. 후기 ───────────────────────── */

.g-review__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: var(--sec-y) var(--pad) clamp(32px, 4vw, 56px);
}

.g-pause {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	background: transparent;
	font: 500 15px/1 var(--label);
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .25s, color .25s;
}
.g-pause:hover { background: var(--ink); color: var(--paper); }
.g-pause__icon {
	width: 9px; height: 10px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}
.g-pause[aria-pressed="true"] .g-pause__icon {
	width: 0; height: 0;
	border-style: solid;
	border-width: 5px 0 5px 9px;
	border-color: transparent transparent transparent currentColor;
}

.g-marquee {
	position: relative;
	overflow: hidden;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.g-marquee + .g-marquee { padding-top: 0; border-top: 0; }
.g-marquee:last-child { padding-bottom: clamp(32px, 4vw, 56px); }
.g-marquee__track {
	display: flex;
	width: max-content;
	animation: g-marquee var(--dur, 60s) linear infinite;
	will-change: transform;
}
.g-marquee--photos .g-marquee__track { animation-direction: reverse; }
/* 멈추는 것은 카드 · 사진 줄 위에 있을 때만 — 줄 아래 여백(마지막 줄은 아래 여백이 크다)까지 멈추면 커서가 사진 위에 없어도 서 있었다 */
.g-marquee__track:hover,
.g-review.is-paused .g-marquee__track,
.g-marquee.is-offscreen .g-marquee__track { animation-play-state: paused; }

@keyframes g-marquee {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

/* 칸 간격은 gap 대신 margin 으로 둔다 — 한 벌 너비가 정확히 절반이 되어야 이음매가 안 보인다. */
.g-rcard { flex: none; width: clamp(280px, 25vw, 380px); margin-right: 16px; }
.g-rcard__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 20px 22px 20px;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, .22);
	transition: border-color .25s, background-color .25s;
}
.g-rcard:hover .g-rcard__inner { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.g-rcard__head { display: flex; align-items: flex-start; justify-content: space-between; }
.g-rcard__mark { height: 22px; font-family: var(--font-serif); font-size: 52px; line-height: .9; color: var(--accent); }
.g-rcard__quote p {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.02em;
}
.g-rcard__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	border-top: var(--dash);
	font: 500 15px/1.4 var(--label);
	color: var(--ink-2);
}

.g-ptile { flex: none; width: clamp(260px, 27vw, 420px); margin-right: 16px; }
.g-ptile__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	background: var(--paper-2);
}
.g-ptile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-ptile:hover .g-ptile__media img { transform: scale(1.04); }
.g-ptile--empty .g-ptile__media {
	display: grid;
	place-items: center;
	background-image: repeating-linear-gradient(45deg, rgba(35, 33, 28, .055) 0 1px, transparent 1px 10px);
}
.g-ptile__media .g-cross--tl { top: 10px; left: 10px; }
.g-ptile__media .g-cross--tr { top: 10px; right: 10px; }
.g-ptile__media .g-cross--bl { bottom: 10px; left: 10px; }
.g-ptile__media .g-cross--br { bottom: 10px; right: 10px; }
.g-ptile__icon { width: 44px; height: auto; color: var(--ink-3); }
.g-ptile__cap {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 10px;
	font: 500 15px/1.4 var(--label);
	color: var(--ink-2);
}

/* ───────────────────────── 8. 오시는 길 ───────────────────────── */

.g-location__top {
	display: grid;
	gap: 20px;
	padding: var(--sec-y) var(--pad) clamp(32px, 4vw, 56px);
}
.g-location__lead {
	max-width: 30em;
	font-size: clamp(1.0625rem, .95rem + .4vw, 1.3125rem);
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: -0.02em;
	color: var(--ink-2);
}

.g-location__body { display: grid; border-top: 1px solid var(--line); }

.g-map {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	margin: clamp(14px, 2.2vw, 32px);
	overflow: hidden;
	border: 1px solid var(--line-strong);
	background-color: var(--paper-2);
	color: var(--ink);
}
.g-map__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.g-map:hover .g-map__img { transform: scale(1.03); }
.g-map .g-cross--tl { top: 10px; left: 10px; }
.g-map .g-cross--tr { top: 10px; right: 10px; }
.g-map .g-cross--bl { bottom: 10px; left: 10px; }
.g-map .g-cross--br { bottom: 10px; right: 10px; }

.g-map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-map__blocks path { stroke: var(--line-strong); stroke-width: 1; }
.g-map__lot { fill: rgba(217, 68, 43, .12); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; }
.g-map__road { stroke: rgba(35, 33, 28, .14); stroke-width: 26; }
.g-map__lane { stroke: var(--paper); stroke-width: 1.4; stroke-dasharray: 10 10; }
.g-map__walk { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 5; stroke-linecap: round; }
.g-map__exit { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.g-map__label { fill: var(--ink-2); font-family: var(--font-sans); font-size: 15px; letter-spacing: .04em; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.g-map__label--key { fill: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.g-map__label--road { font-size: 15px; letter-spacing: .3em; }

/* 핀 위치 = SVG 좌표(402, 214) / (640 × 480). 지도 칸이 늘 4:3 이라 % 로 맞는다. */
.g-map__pin {
	position: absolute;
	left: 62.81%;
	top: 44.58%;
	width: 16px; height: 16px;
	margin: -8px 0 0 -8px;
	background: var(--accent);
}
.g-map__pin::after {   /* 퍼지는 테두리 */
	content: "";
	position: absolute;
	inset: -8px;
	border: 1px solid var(--accent);
	animation: g-ping 2.4s var(--ease) infinite;
}
@keyframes g-ping {
	0% { transform: scale(.6); opacity: 1; }
	80%, 100% { transform: scale(1.8); opacity: 0; }
}
.g-map__place {
	position: absolute;
	left: calc(62.81% + 22px);
	top: 44.58%;
	transform: translateY(-50%);
	padding: 6px 10px;
	border: 1px solid var(--ink);
	background: var(--paper);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.g-map__cta {
	position: absolute;
	left: 0; bottom: 0;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--ink);
	color: var(--paper);
	font-size: 15px;
	font-weight: 600;
	transition: background-color .25s var(--ease);
}
.g-map__arrow { font-family: var(--font-mono); transition: transform .3s var(--ease); }
a.g-map:hover .g-map__cta { background: var(--accent); }
a.g-map:hover .g-map__arrow { transform: translate(2px, -2px); }
@media (max-width: 479.98px) {
	.g-map__place { left: 62.81%; top: calc(44.58% - 18px); transform: translate(-50%, -100%); font-size: 15px; padding: 4px 8px; }
	.g-map__cta { padding: 12px 14px; font-size: 15px; }
	/* 지도가 화면에 절반 크기로 줄어드므로 글자를 그림 단위로 키운다(실제 약 9~10px) */
	.g-map__label { font-size: 17px; stroke-width: 6px; }
	.g-map__label--key { font-size: 19px; }
	.g-map__label--road { font-size: 15px; }
}

.g-location__info {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: clamp(28px, 4vw, 56px) var(--pad) clamp(36px, 4.5vw, 64px);
	border-top: 1px solid var(--line);
}
.g-spec { border-top: var(--dash); }
.g-spec__row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-bottom: var(--dash);
}
.g-spec dt { font: 500 15px/1.9 var(--label); letter-spacing: .02em; color: var(--ink-3); }
.g-spec__lines { display: grid; gap: 8px; }
.g-spec__lines li { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.g-spec__lines li:first-child { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.g-spec__strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.g-location__btns { display: grid; gap: 10px; }

@media (min-width: 600px) {
	.g-location__btns { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
	.g-location__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
	.g-location__lead { padding-left: var(--pad); }
	.g-location__body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.g-location__info { justify-content: center; border-top: 0; border-left: 1px solid var(--line); }
	.g-location__btns { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
	.g-location__btns { grid-template-columns: 1fr 1fr; }
}

/* ───────────────────────── 9. 푸터 ───────────────────────── */

.g-footer .g-frame {
	margin-bottom: var(--frame-x);
	border-bottom: 1px solid var(--line);
	background-color: rgba(35, 33, 28, .025);
}
.g-footer__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(40px, 5vw, 72px) var(--pad) clamp(28px, 3vw, 40px);
}
.g-footer__company {
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
	font-family: var(--font-title);
	font-weight: normal;
	line-height: 1.15;
	letter-spacing: -0.04em;
}
.g-footer__up {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line-strong);
	font: 500 15px/1 var(--label);
	transition: background-color .25s, color .25s;
}
.g-footer__up:hover { background: var(--ink); color: var(--paper); }
.g-footer__arrow { font-family: var(--font-mono); }

.g-footer__info {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0 var(--pad);
	border-top: var(--dash);
}
.g-footer__row {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 12px;
	padding: 12px 24px 12px 0;
	border-bottom: var(--dash);
}
.g-footer__row dt { font: 500 15px/1.75 var(--label); letter-spacing: .02em; color: var(--ink-3); }
.g-footer__row dd { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.g-footer__row a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.g-footer__row a:hover { color: var(--ink); text-decoration-color: currentColor; }
.g-footer__row--phone a { text-decoration: none; }   /* 대표전화는 밑줄 없이(주인 요청) — 누르면 그대로 전화가 걸린다 */

.g-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px var(--pad) 32px;
}
.g-footer__copy { font: 400 15px/1.5 var(--label); color: var(--ink-3); }
.g-footer__seal { flex: none; width: 8px; height: 8px; background: var(--accent); }

@media (min-width: 768px) {
	.g-footer__info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-footer__row--address { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
	.g-footer__info { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.g-footer__row { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
	.g-footer__row--address { grid-column: span 2; }
}

/* ───────────────────────── 10. 모바일 하단 막대 ───────────────────────── */

.g-mbar { display: none; }

@media (max-width: 767.98px) {
	body.has-mbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.g-mbar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 95;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
		background-color: var(--paper);
		background-image: var(--paper-grain);
		border-top: 1px solid var(--line-strong);
	}
	.g-mbar--one { grid-template-columns: 1fr; }
	.g-mbar__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 48px;
		font-size: 15px;
		font-weight: 600;
		letter-spacing: -0.01em;
	}
	.g-mbar__btn--phone { background: var(--ink); color: var(--paper); }
	.g-mbar__btn--talk { background: var(--accent); color: var(--accent-ink); }
	.g-mbar__icon { width: 18px; height: 18px; flex: none; }
	html.g-menu-open .g-mbar { display: none; }
}

/* ───────────────────────── 11. 움직임 줄이기 ───────────────────────── */

/* 히어로(hero.css)는 건드리지 않도록 이 파일의 부품에만 건다. */
@media (prefers-reduced-motion: reduce) {
	.g-menu, .g-menu__item, .g-btn__arrow, .g-hbtn__arrow, .g-card__hanja, .g-ptile__media img, .g-map__img, .g-map__arrow, .g-burger__lines span {
		transition: none !important;
	}
	.g-menu__item { opacity: 1; transform: none; }
	.g-card:hover .g-card__hanja, .g-ptile:hover .g-ptile__media img, a.g-map:hover .g-map__img { transform: none; }
	/* 흐르는 줄 → 손으로 넘겨 보는 줄 */
	.g-marquee {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
	}
	.g-marquee__track { animation: none !important; padding-inline: var(--pad); }
	.g-marquee [data-clone] { display: none; }
	.g-rcard, .g-ptile { scroll-snap-align: start; }
	.g-pause { display: none; }
	.g-map__pin::after { display: none; }
}

/* 눈금자 · 십자 표시는 쓰지 않는다 */
.g-ruler, .g-cross { display: none; }

/* 머리글 메뉴: 글자만 — 칸 선 · 꺾쇠 · 화살표 · 바탕 없이, 글자는 칸 가운데 */
.g-header::before { border-bottom: 0; }
.g-header__bar { border-inline: 0; }
.g-nav__link,
.g-hbtn {
	justify-content: center;
	align-items: center;
	gap: 4px;
	border-left: 0;
	text-align: center;
}
.g-nav__link::after { display: none; }
.g-nav__idx::before { display: none; }
.g-hbtn { min-width: 0; padding: 10px 18px; }
/* 올렸을 때(hover)는 마우스 화면에서만 — iOS 는 누른 뒤에도 :hover 가 남아 붉은 글자 · 붓줄이 그대로 있었다 */
@media (hover: hover) and (pointer: fine) {
	.g-nav__link:hover,
	.g-hbtn:hover { background-color: transparent; color: var(--accent); }
	.g-hbtn--talk:hover { background-color: transparent; color: var(--ink); }
}

/* 로고: 오행 다섯 고리 + 회색 오각형(글자 없음) · 이름만 */
.g-logo__mark { flex: none; display: block; width: 40px; height: 40px; }
.g-logo__mark svg { display: block; width: 100%; height: 100%; }

/* 상담영역: 회색 구분선 없음 · 원장 사진은 연필 스케치(바탕 없이) */
.g-service__intro, .g-service__words { border-top: 0; }
@media (min-width: 960px) { .g-service__words { border-left: 0; } }
.g-service__frame--sketch { aspect-ratio: 1071 / 930; background: none; }
.g-service__frame--sketch img { object-fit: contain; }

/* 상담 카드: 위에도 손선 · 한자 오른쪽에 이름을 위→아래로 · 올리면 나무 잎빛으로 물든다 */
.g-cards { clip-path: inset(-5px 5px 5px 0); }
.g-card { grid-template-columns: auto auto minmax(0, 1fr); }
.g-card__body { display: contents; }
.g-card__title {
	writing-mode: vertical-rl;
	align-self: start;
	padding-top: .3em;
	font-size: clamp(1.5rem, 1.15rem + .9vw, 2rem);
	letter-spacing: .06em;
	transition: color .45s var(--ease);
}
.g-card__list { align-self: start; margin-top: 6px; }
.g-card .g-card__hanja { transition: color .45s var(--ease); }
.g-card:hover .g-card__hanja { transform: none; color: var(--leaf); }
.g-card:hover .g-card__title { color: var(--leaf); }
.g-cards::before {
	content: "";
	display: block;
	grid-column: 1 / -1;
	height: 8px;
	margin: 0 8px -4px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><g fill='none' stroke='%2334312b' stroke-linecap='round'><path vector-effect='non-scaling-stroke' stroke-width='1.3' d='M2 4 C60 4.7 120 3.2 180 4.3 S290 3.5 340 4.4 S385 3.8 398 4.1'/><path vector-effect='non-scaling-stroke' stroke-width='.8' stroke-opacity='.45' d='M12 5 C90 4.1 150 5.5 220 4.6 S320 5.2 392 4.3'/></g></svg>") 0 0 / 100% 100% no-repeat;
}
@media (min-width: 1080px) {
	.g-card--wide { grid-template-columns: auto auto minmax(0, 1fr); }
	.g-card--wide .g-card__title { grid-column: auto; grid-row: auto; }
	.g-card--wide .g-card__list { grid-column: auto; grid-row: auto; align-self: center; grid-template-columns: repeat(3, max-content); column-gap: clamp(28px, 3vw, 48px); margin-left: clamp(24px, 3vw, 56px); }
}

/* 양옆 틀선: 머리글 칸부터 모든 구역까지 같은 자리에서 이어진다 */
.g-frame, .g-header__bar { border-inline: 1px solid var(--line); }

/* 머리글 메뉴: 번호 없이 한글만, 오른쪽 버튼과 같은 줄 가운데 */
.g-nav__idx { display: none; }
.g-nav__link { justify-content: center; }

/* ───────── 버튼 — 모든 버튼을 하나로: 글자 + 화살표만, 제목체. 올리면 아래에 붓으로 쭉 그은 줄이 생긴다 ───────── */
.g-btn,
.ha .ha-btn,
.ha .ha-btn--line {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 0;
	padding: 6px 4px 10px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-title);
	font-weight: normal;
	font-size: 22px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.g-btn .g-btn__label,
.ha .ha-btn .g-btn__label { padding: 0; }
.g-btn .g-btn__arrow,
.ha .ha-btn .g-btn__arrow {
	width: auto;
	border: 0;
	font-family: var(--font-title);
	font-size: 22px;
}
.g-btn::after {
	content: "";
	position: absolute;
	left: -4px; right: -6px; bottom: 0;
	height: 9px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path fill='%2323211c' d='M1 6.4 C14 4.6 34 4.1 58 4.5 C90 5 118 3.9 146 4.3 C168 4.6 186 4.9 199 5.6 L198.5 7.4 C184 7.9 165 8.1 140 7.8 C112 7.5 84 8.6 56 8.4 C32 8.2 14 8.6 1.5 8.2 Z'/><path fill='%2323211c' fill-opacity='.35' d='M10 9.1 C40 9.6 80 9.2 120 9.6 C150 9.9 172 9.3 190 9.2 L189 10.2 C160 10.8 120 10.5 80 10.7 C50 10.9 26 10.4 11 10.1 Z'/></svg>") 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0);
	transition: clip-path .5s cubic-bezier(.3, .6, .2, 1);
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.g-btn:hover::after { clip-path: inset(0 0 0 0); }
}
:where(.g-kbd) .g-btn:focus::after { clip-path: inset(0 0 0 0); }
:where(html:not(.g-js)) .g-btn:focus-visible::after { clip-path: inset(0 0 0 0); }
.g-btn:hover,
.g-btn--dark:hover,
.g-btn--accent:hover,
.ha .ha-btn--line:hover { background: transparent; color: var(--ink); }
.g-btn:hover .g-btn__arrow { transform: translateX(3px); }
.ha-btns { gap: clamp(20px, 3vw, 40px); }
@media (max-width: 899.98px) {
	.ha-js .ha .ha-btn { flex: 0 0 auto; min-height: 0; font-size: 20px; }
}
/* 머리글 버튼도 같은 붓줄 */
.g-hbtn { position: relative; }
.g-hbtn::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 14px;
	height: 7px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path fill='%2323211c' d='M1 6.4 C14 4.6 34 4.1 58 4.5 C90 5 118 3.9 146 4.3 C168 4.6 186 4.9 199 5.6 L198.5 7.4 C184 7.9 165 8.1 140 7.8 C112 7.5 84 8.6 56 8.4 C32 8.2 14 8.6 1.5 8.2 Z'/><path fill='%2323211c' fill-opacity='.35' d='M10 9.1 C40 9.6 80 9.2 120 9.6 C150 9.9 172 9.3 190 9.2 L189 10.2 C160 10.8 120 10.5 80 10.7 C50 10.9 26 10.4 11 10.1 Z'/></svg>") 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0);
	transition: clip-path .5s cubic-bezier(.3, .6, .2, 1);
}
.g-hbtn:hover::after { clip-path: inset(0 0 0 0); }
/* 휴대폰 아래 막대도 글자 + 붓줄 */
@media (max-width: 767.98px) {
	.g-mbar { background: var(--paper); border-top: 1px solid var(--line); }
	.g-mbar .g-mbar__btn,
	.g-mbar .g-mbar__btn--phone,
	.g-mbar .g-mbar__btn--talk { position: relative; background: transparent; color: var(--ink); font-family: var(--font-title); font-weight: normal; font-size: 19px; }
	.g-mbar__btn::after {
		content: "";
		position: absolute;
		left: 22%; right: 22%; bottom: 10px;
		height: 7px;
		background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path fill='%2323211c' d='M1 6.4 C14 4.6 34 4.1 58 4.5 C90 5 118 3.9 146 4.3 C168 4.6 186 4.9 199 5.6 L198.5 7.4 C184 7.9 165 8.1 140 7.8 C112 7.5 84 8.6 56 8.4 C32 8.2 14 8.6 1.5 8.2 Z'/><path fill='%2323211c' fill-opacity='.35' d='M10 9.1 C40 9.6 80 9.2 120 9.6 C150 9.9 172 9.3 190 9.2 L189 10.2 C160 10.8 120 10.5 80 10.7 C50 10.9 26 10.4 11 10.1 Z'/></svg>") 0 0 / 100% 100% no-repeat;
		clip-path: inset(0 100% 0 0);
		transition: clip-path .5s cubic-bezier(.3, .6, .2, 1);
	}
	.g-mbar__btn:active::after { clip-path: inset(0 0 0 0); }
}

/* 상담 카드(넓은 화면): 한자 크게 · 오른쪽에 세로 이름 → 아래에 항목. 다섯 장이 한 줄에(넓게 표시 없이).
   휴대폰은 위의 가로 배치(한자 · 이름 · 항목)를 그대로 쓴다. */
@media (min-width: 600px) {
	.g-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.g-card,
	.g-card--wide {
		grid-column: auto;
		grid-template-columns: max-content max-content minmax(0, 1fr);   /* 셋째 칸이 남는 폭을 받는다(항목 폭이 한자 칸을 넓히지 않게) */
		grid-template-rows: auto 1fr;
		column-gap: clamp(10px, 1vw, 16px);
		row-gap: 18px;
	}
	.g-card__list,
	.g-card--wide .g-card__list {
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: none;
		margin: 0;
		align-self: start;
	}
}
/* 세 칸(600~1079px): 여섯 칸 격자에 한 장이 두 칸씩 — 마지막 줄이 두 장이면(택일 · 사업 컨설팅) 반씩 나눠 줄 전체를,
   한 장이면 혼자 줄 전체를 쓴다(빈 칸이 남지 않게 — 주인 요청) */
@media (min-width: 600px) and (max-width: 1079.98px) {
	.g-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.g-cards > .g-card { grid-column: span 2; }
	.g-cards > .g-card:nth-child(3n + 1):nth-last-child(2),
	.g-cards > .g-card:nth-child(3n + 1):nth-last-child(2) + .g-card { grid-column: span 3; }
	.g-cards > .g-card:nth-child(3n + 1):last-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
	.g-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.g-card__hanja { font-size: clamp(3.25rem, 1.6rem + 2.4vw, 4.75rem); }
}
/* 화살표는 제목체에 없는 글자라 시스템 글꼴로(글꼴을 기다리느라 폭이 0 이 되지 않게) */
.g-btn .g-btn__arrow,
.ha .ha-btn .g-btn__arrow { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400; font-size: 20px; }

/* 뿌리 아래 글과 사주팔자란 사이 — 붓으로 쭉 그은 먹선 하나 */
.g-saju__brush {
	display: block;
	width: clamp(140px, 16vw, 220px);
	height: clamp(12px, 1.3vw, 18px);
	margin-bottom: clamp(10px, 1.6vw, 22px);
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22' preserveAspectRatio='none'><path fill='%2323211c' d='M2 12.6 C20 9.4 46 8 78 8.6 C110 9.2 140 7.4 172 7.9 C196 8.3 220 9.1 237 10.6 C239 11.4 238.6 13 236.8 13.5 C214 15.1 190 15.6 162 15.3 C130 15 100 16.6 70 16.3 C44 16.1 22 16.8 4.5 16.2 C1.4 15.9 0.6 13.5 2 12.6 Z'/><path fill='%2323211c' fill-opacity='.45' d='M14 17.6 C50 18.3 96 17.6 140 18.2 C176 18.6 204 17.8 226 17.5 L225 19 C190 20 150 19.8 104 20.1 C66 20.3 34 19.6 15 19.1 Z'/><path fill='%2323211c' fill-opacity='.3' d='M30 7.2 C70 5.8 120 6.3 168 5.9 L167 6.8 C120 7.3 72 7.6 31 8.1 Z'/></svg>") 0 0 / 100% 100% no-repeat;
}

/* 머리글: 왼쪽 로고 · 가운데 메뉴 넷 · 오른쪽 상담예약 · 톡톡상담. 글자는 모두 제목체(신라문화체). */
.g-logo__name,
.g-nav__label,
.g-hbtn,
.g-hbtn__label,
.g-menu__label { font-family: var(--font-title); font-weight: normal; letter-spacing: 0; }
.g-logo__name { font-size: 22px; }
.g-nav__label { font-size: 19px; }
.g-hbtn { font-size: 19px; }
@media (min-width: 1080px) {
	.g-header__bar { position: relative; }
	.g-nav { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
	.g-nav__link { width: auto; padding: 10px clamp(14px, 1.6vw, 26px); }
	.g-header__cta { margin-left: auto; }
}

/* 화면 읽기 프로그램에만 */
.g-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; font-family: sans-serif; }

/* ───────── 두 문장 무대 — 히어로 밑에 깔려(100vh 위로 당김) 히어로가 올라가면 가운데 고정된 문장이 드러난다 ───────── */
.g-stage { position: relative; z-index: 1; }
.g-stage__pin { display: grid; place-items: center; gap: .3em; padding: var(--sec-y) var(--pad); text-align: center; }
.g-stage__line {
	margin: 0;
	font-family: var(--font-title);
	font-weight: normal;
	font-size: clamp(1.5rem, .55rem + 3.6vw, 4.25rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--ink);
	text-wrap: balance;
}
.g-w { display: inline-block; white-space: nowrap; }
.g-ch { display: inline-block; }
.g-anim .g-stage { height: 320vh; margin-top: -100vh; }   /* hero.js 가 잰 값으로 바꾼다(3.2배 + 히어로 고정 길이) */
.g-anim .g-stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 0; }
.g-anim .g-stage__line { grid-area: 1 / 1; }

/* 상담 카드(600px 이상): 한자 1.2배 · 이름 26px(자간 좁게)을 칸 오른쪽 위에, 항목은 모든 칸에서 같은 줄에서 시작.
   카드 아래 손선도 다시 보이게(바깥 테두리는 오른쪽만 자른다). */
.g-card__title { font-size: 26px; letter-spacing: -0.06em; line-height: 1.02; }
.g-cards { clip-path: inset(-6px 5px -6px 0); margin-bottom: 0; }
@media (min-width: 600px) {
	.g-card,
	.g-card--wide { grid-template-columns: minmax(0, 1fr) max-content max-content; align-items: start; }
	.g-card .g-card__hanja { grid-column: 2; grid-row: 1; font-size: clamp(3.9rem, 2.64rem + 3.12vw, 6.3rem); }
	.g-card .g-card__title { grid-column: 3; grid-row: 1; }
	.g-card .g-card__list,
	.g-card--wide .g-card__list { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1080px) {
	.g-card .g-card__hanja { font-size: clamp(3.9rem, 1.92rem + 2.88vw, 5.7rem); }
}
/* 같은 줄 카드들의 한자 칸 높이를 맞추고(subgrid) 항목은 아래 끝을 맞춘다 — 항목이 적은 카드(관상 두 줄)도 아래 줄에 붙는다(주인 요청) */
@media (min-width: 600px) {
	.g-card,
	.g-card--wide { grid-row: span 2; grid-template-rows: subgrid; row-gap: 18px; }
	.g-card .g-card__list,
	.g-card--wide .g-card__list { align-self: end; }
}

/* ───────── 버튼: 화살표 없이 ( 글자 ) — 올리면 주황 붓줄 ───────── */
.g-btn .g-btn__arrow,
.ha .ha-btn .g-btn__arrow { display: none; }
.g-btn .g-btn__label::before,
.g-hbtn .g-hbtn__label::before { content: "("; margin-right: .32em; }
.g-btn .g-btn__label::after,
.g-hbtn .g-hbtn__label::after { content: ")"; margin-left: .32em; }
.g-btn::after,
.g-hbtn::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path fill='%23d9442b' d='M1 6.4 C14 4.6 34 4.1 58 4.5 C90 5 118 3.9 146 4.3 C168 4.6 186 4.9 199 5.6 L198.5 7.4 C184 7.9 165 8.1 140 7.8 C112 7.5 84 8.6 56 8.4 C32 8.2 14 8.6 1.5 8.2 Z'/><path fill='%23d9442b' fill-opacity='.35' d='M10 9.1 C40 9.6 80 9.2 120 9.6 C150 9.9 172 9.3 190 9.2 L189 10.2 C160 10.8 120 10.5 80 10.7 C50 10.9 26 10.4 11 10.1 Z'/></svg>"); }

/* 머리글 글자 22px */
.g-logo__name, .g-nav__label, .g-hbtn { font-size: 22px; }
@media (min-width: 1080px) and (max-width: 1279.98px) {
	.g-nav__link { padding-inline: 10px; }
	.g-logo__name, .g-nav__label, .g-hbtn { font-size: 20px; }
}

/* ───────── 붓선: 머리글 아래 긴 선 · 양옆 세로 선(얇게) ───────── */
.g-header__bar::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -4px;
	height: 7px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 10' preserveAspectRatio='none'><path fill='%2334312b' d='M0 5.2 C60 4.4 140 4.2 240 4.6 C360 5 470 4.1 600 4.4 C720 4.7 840 4.3 1000 4.9 L1000 6.1 C860 6.3 740 6.6 610 6.3 C480 6 360 6.8 240 6.5 C140 6.3 60 6.7 0 6.4 Z'/><path fill='%2334312b' fill-opacity='.35' d='M40 7.4 C200 7.8 420 7.3 640 7.7 C800 8 900 7.6 980 7.5 L980 8.2 C880 8.6 760 8.5 620 8.6 C420 8.8 220 8.4 42 8.1 Z'/></svg>") 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}
.g-frame, .g-header__bar { border-inline: 0; }
.g-frame::before,
.g-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 6;
	pointer-events: none;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'><path fill='%2334312b' fill-opacity='.85' d='M2.4 0 C2.1 60 2.8 120 2.3 200 C1.9 270 2.7 330 2.4 400 L3.5 400 C3.7 330 3 270 3.4 200 C3.8 120 3.2 60 3.5 0 Z'/><path fill='%2334312b' fill-opacity='.3' d='M3.9 30 C4.2 110 3.7 190 4.1 260 C4.4 320 4 360 4.2 390 L4.6 390 C4.5 340 4.9 280 4.6 220 C4.3 150 4.7 90 4.5 30 Z'/></svg>") 0 0 / 5px 400px repeat-y,
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 400' preserveAspectRatio='none'><path fill='%2334312b' fill-opacity='.85' d='M2.4 0 C2.1 60 2.8 120 2.3 200 C1.9 270 2.7 330 2.4 400 L3.5 400 C3.7 330 3 270 3.4 200 C3.8 120 3.2 60 3.5 0 Z'/><path fill='%2334312b' fill-opacity='.3' d='M3.9 30 C4.2 110 3.7 190 4.1 260 C4.4 320 4 360 4.2 390 L4.6 390 C4.5 340 4.9 280 4.6 220 C4.3 150 4.7 90 4.5 30 Z'/></svg>") 100% 120px / 5px 400px repeat-y;
}

/* 원장 스케치 두 장: 펜 선(아래) · 세밀한 연필(위, 스크롤에 따라 위에서부터 드러난다) */
.g-service__frame--sketch { aspect-ratio: 1071 / 930; background: none; }
.g-service__frame--sketch .g-sketch { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@property --sk { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.g-anim .g-sketch--detail {
	-webkit-mask-image: linear-gradient(180deg, #000 calc(var(--sk) * 1.4 - 30%), transparent calc(var(--sk) * 1.4 - 2%));
	mask-image: linear-gradient(180deg, #000 calc(var(--sk) * 1.4 - 30%), transparent calc(var(--sk) * 1.4 - 2%));
}

/* ═════════ 붓선은 모두 양 끝이 날렵하게(assets/brush.css 의 --brush-*) ═════════ */
.g-btn::after,
.g-hbtn::after { background-image: var(--brush-thick-red); }
@media (max-width: 767.98px) {
	.g-mbar__btn::after { background-image: var(--brush-thick-red); }
}
.g-header__bar::after { background-image: var(--brush-thin); background-size: 100% 100%; }
/* 붓선 끝이 길게 빠져(꼬리 10%) 오른쪽 세로선 30px 앞에서 끊겨 보였다 — 60px 더 그은 뒤 틀 끝에서 자른다(세로선과 만난다) */
.g-header__bar::after { right: -60px; clip-path: inset(0 60px 0 0); }
.g-frame::before,
.g-header__bar::before {
	background:
		var(--brush-v) 0 0 / 5px 400px repeat-y,
		var(--brush-v) 100% 120px / 5px 400px repeat-y;
}
/* 세로 틀선의 처음(머리글 위)과 끝(푸터 아래)은 붓을 떼듯 뾰족하게 */
.g-header__bar::before {
	-webkit-mask: var(--brush-cap-top) 0 0 / 5px 56px no-repeat, var(--brush-cap-top) 100% 0 / 5px 56px no-repeat, linear-gradient(#000 0 0) 0 56px / 100% calc(100% - 56px) no-repeat;
	mask: var(--brush-cap-top) 0 0 / 5px 56px no-repeat, var(--brush-cap-top) 100% 0 / 5px 56px no-repeat, linear-gradient(#000 0 0) 0 56px / 100% calc(100% - 56px) no-repeat;
}
.g-footer .g-frame { border-bottom: 0; }
.g-footer .g-frame::before {
	-webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 140px) no-repeat, var(--brush-cap-bottom) 0 100% / 5px 140px no-repeat, var(--brush-cap-bottom) 100% 100% / 5px 140px no-repeat;
	mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 140px) no-repeat, var(--brush-cap-bottom) 0 100% / 5px 140px no-repeat, var(--brush-cap-bottom) 100% 100% / 5px 140px no-repeat;
}
.g-footer .g-frame::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -3px;
	height: 7px;
	background: var(--brush-thin-2) 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}

/* ═════════ 머리글: 좌우 여백을 푸터와 같게 ═════════ */
.g-logo { padding-left: var(--pad); }
.g-burger { padding-right: var(--pad); }
.g-hbtn { min-width: 0; }
.g-header__cta { padding-right: calc(var(--pad) - 14px); }

/* ═════════ 사주팔자란: 위 문장은 고정, 아래 두 문장만 바뀐다 ═════════ */
.g-stage__pin { place-content: center; gap: clamp(14px, 2vw, 30px); }
.g-stage__head {
	margin: 0;
	font-family: var(--font-title);
	font-weight: normal;
	font-size: clamp(1.15rem, .7rem + 1.55vw, 2.15rem);
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-align: center;
	text-wrap: balance;
	word-break: keep-all;
}
.g-stage__swap { display: grid; place-items: center; gap: .3em; }

/* 붓으로 그린 두 동그라미 — 살짝 겹친다 */
.g-venn {
	display: flex;
	justify-content: center;
	width: min(100% - var(--pad) * 2, 1080px);
	margin: clamp(56px, 8vw, 120px) auto 0;
}
.g-venn__set { position: relative; display: grid; place-items: center; flex: 0 0 53%; aspect-ratio: 1; }
.g-venn__set + .g-venn__set { margin-left: -6%; }
.g-venn__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--ink); pointer-events: none; }
.g-venn__in { position: relative; display: grid; justify-items: center; gap: clamp(10px, 1.3vw, 18px); width: 62%; text-align: center; }
.g-venn__set--fixed .g-venn__in { transform: translateX(-5%); }
.g-venn__set--change .g-venn__in { transform: translateX(5%); }
.g-venn__title { font-family: var(--font-title); font-weight: normal; font-size: clamp(1.15rem, .8rem + 1vw, 1.7rem); line-height: 1.3; color: var(--ink-2); }
.g-venn__set--change .g-venn__title { color: var(--accent); }
.g-venn__body { font-size: clamp(1.15rem, .8rem + 1.05vw, 1.9rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.03em; text-wrap: balance; word-break: keep-all; }
@media (max-width: 699.98px) {
	.g-venn { flex-direction: column; align-items: center; width: 100%; }
	.g-venn__set { flex: none; width: min(88%, 380px); }
	.g-venn__set + .g-venn__set { margin-left: 0; margin-top: -9%; }
	.g-venn__set--fixed .g-venn__in,
	.g-venn__set--change .g-venn__in { transform: none; }
}
.g-saju__foot { justify-content: center; border-top: 0; padding: clamp(36px, 5vw, 64px) var(--pad) var(--sec-y); }

/* ═════════ 상담영역: 제목은 오른쪽 문장 위(넓은 화면) ═════════ */
.g-service__head { padding: var(--sec-y) var(--pad) clamp(20px, 3vw, 40px); }
@media (min-width: 960px) {
	.g-service__intro { grid-template-rows: auto 1fr; padding-top: calc(var(--sec-y) - clamp(14px, 2.2vw, 32px)); }
	.g-service__photo { grid-column: 1; grid-row: 1 / span 2; }
	.g-service__head { grid-column: 2; grid-row: 1; padding: clamp(14px, 2.2vw, 32px) var(--pad) 0; }
	.g-service__head .g-title { font-size: clamp(2.6rem, 1.4rem + 2.2vw, 3.75rem); }
	.g-service__words { grid-column: 2; grid-row: 2; justify-content: flex-start; padding-top: clamp(28px, 3.4vw, 52px); }
	.g-service__words .g-sign { margin-top: auto; }
}

/* 상담 항목: 행간 살짝 좁게 · 앞 표시는 작은 동그라미 */
.g-card__list { gap: 1px; }
.g-card__list li { padding-left: 14px; line-height: 1.45; }
.g-card__list li::before {
	top: .725em;
	width: 6px; height: 6px;
	margin-top: -3px;
	border: 1px solid var(--ink-3);
	border-radius: 50%;
	background: none;
}
/* 올려도 글자색 · 자리는 그대로(주황 먹은 글자 안에만 든다 — 아래 '상담 카드: 올리면 한자 · 이름 글자 안에만 주황 먹') */
.g-card .g-card__hanja,
.g-card .g-card__title { transition: none; }
.g-card:hover .g-card__hanja,
.g-card:hover .g-card__title { color: var(--ink); transform: none; }
.g-card .g-card__hanja { position: relative; isolation: isolate; }

/* 안내 문구 앞은 ※ */
.g-note__mark { flex: none; font-family: var(--font-sans); font-weight: 500; color: var(--ink-2); }

/* ═════════ 후기: 칸은 얇은 붓선 · 멈춤은 글자 버튼 ═════════ */
.g-rcard__inner,
.g-rcard:hover .g-rcard__inner { position: relative; border: 0; background: transparent; }
.g-rcard__inner::before,
.g-ptile__inner::before {
	content: "";
	position: absolute;
	inset: -3px;
	pointer-events: none;
	background:
		var(--brush-thin) 0 0 / 100% 7px no-repeat,
		var(--brush-thin-2) 0 100% / 100% 7px no-repeat,
		var(--brush-thin-v) 0 0 / 7px 100% no-repeat,
		var(--brush-thin-v2) 100% 0 / 7px 100% no-repeat;
}
.g-rcard:nth-child(2n) .g-rcard__inner::before { transform: scale(-1, 1); }
.g-rcard:nth-child(3n) .g-rcard__inner::before { transform: scale(1, -1); }
.g-rcard__meta { border-top: 0; background: var(--brush-thin-faint) 0 0 / 100% 5px no-repeat; }
.g-ptile__inner { position: relative; }
.g-ptile__inner::before { bottom: auto; aspect-ratio: 16 / 9; height: auto; width: calc(100% + 6px); }
.g-ptile__media { border: 0; }

.g-pause.g-btn { height: auto; border: 0; padding: 6px 4px 10px; font-family: var(--font-title); font-size: 22px; letter-spacing: -0.01em; }
.g-pause.g-btn:hover { background: transparent; color: var(--ink); }
.g-pause .g-btn__label { display: inline-flex; align-items: center; }
.g-pause .g-pause__icon { flex: none; width: 11px; height: 13px; margin-right: .42em; border-left-width: 3px; border-right-width: 3px; }
.g-pause[aria-pressed="true"] .g-pause__icon { width: 0; height: 0; border-width: 7px 0 7px 11px; }
.g-rcard__inner::before,
.g-ptile__inner::before { z-index: 1; opacity: .78; background-size: 100% 6px, 100% 6px, 6px 100%, 6px 100%; }
.g-pause.g-btn { word-spacing: normal; }
.g-venn__set { flex-basis: 54%; }
.g-venn__set + .g-venn__set { margin-left: -12%; }
@media (max-width: 699.98px) {
	.g-venn__set + .g-venn__set { margin-left: 0; margin-top: -16%; }
}
.g-venn__in { width: 56%; }
.g-venn__set--fixed .g-venn__in { transform: translateX(-8%); }
.g-venn__set--change .g-venn__in { transform: translateX(8%); }
@media (max-width: 699.98px) {
	.g-venn__in { width: 66%; }
	.g-venn__set--fixed .g-venn__in,
	.g-venn__set--change .g-venn__in { transform: none; }
}

/* ═════════ 오시는 길 약도: 실제 거리·건물(OpenStreetMap) · 표시는 동그라미 ═════════ */
.g-map { background-color: #e9e4d6; }
.g-map__bld path { fill: rgba(35, 33, 28, .075); stroke: rgba(35, 33, 28, .26); stroke-width: .8; stroke-linejoin: round; }
.g-map__case path { stroke: rgba(35, 33, 28, .3); stroke-linecap: round; stroke-linejoin: round; }
.g-map__fill path { stroke: #f6f3eb; stroke-linecap: round; stroke-linejoin: round; }
.g-map__lane path { stroke: rgba(35, 33, 28, .28); stroke-width: 1; stroke-dasharray: 6 6; }
.g-map__key { fill: rgba(35, 33, 28, .2); stroke: rgba(35, 33, 28, .55); stroke-width: 1; stroke-linejoin: round; }
.g-map__goal { fill: rgba(217, 68, 43, .26); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.g-map__walk { stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 2 6; stroke-linecap: round; stroke-linejoin: round; }
.g-map__exit circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.g-map__exit text { fill: var(--ink); font: 700 10px/1 var(--font-sans); }
.g-map__exit--key circle { fill: var(--ink); }
.g-map__exit--key text { fill: var(--paper); font-size: 11px; }
.g-map__label { font-size: 13px; }
.g-map__label--road { font-size: 14px; font-weight: 600; letter-spacing: .4em; fill: var(--ink-2); }
.g-map__label--street { font-size: 11.5px; letter-spacing: .06em; fill: var(--ink-3); }
.g-map__label--key { font-size: 14px; }
.g-map__label--station { font-size: 15px; font-weight: 700; fill: var(--ink); }
.g-map__label--small { font-size: 11px; fill: var(--ink-3); }
.g-map__label--credit { font-size: 9px; fill: var(--ink-3); stroke-width: 3px; letter-spacing: 0; }
.g-map__pin {
	left: 28.44%;
	top: 33.75%;
	width: 18px; height: 18px;
	margin: -9px 0 0 -9px;
	border: 3px solid var(--paper);
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}
.g-map__pin::after { inset: -10px; border-radius: 50%; }
.g-map__place { left: 28.44%; top: calc(33.75% - 18px); transform: translate(-50%, -100%); }
@media (max-width: 479.98px) {
	.g-map__place { left: 28.44%; top: calc(33.75% - 16px); }
	.g-map__label { font-size: 17px; }
	.g-map__label--street { font-size: 13px; }
	.g-map__label--credit { font-size: 11px; }
}

/* ═════════ 머리글 버튼: 아이콘 + 글자(괄호 없이 · 흑백) — 올리면 주황 밑줄만 ═════════ */
.g-hbtn { flex-direction: row; align-items: center; gap: 8px; }
.g-hbtn .g-hbtn__label::before,
.g-hbtn .g-hbtn__label::after { content: none; }
.g-hbtn--talk,
.g-hbtn--talk:hover,
.g-hbtn:hover { color: var(--ink); background: transparent; }
.g-hbtn__icon { flex: none; width: 20px; height: 20px; }

/* ═════════ 휴대폰도 PC 와 같은 모양으로 ═════════ */
/* 머리글 '메뉴' 단추 왼쪽 회색 칸선 없음(넓은 화면 머리글처럼) */
.g-burger { border-left: 0; padding-left: 12px; }
.g-burger__text { font-family: var(--font-title); font-size: 20px; word-spacing: normal; }
/* 모바일 메뉴: 번호 · 화살표 · 점선 없이 글자만 가운데. 양옆은 얇은 붓선 */
.g-menu__inner { position: relative; border-inline: 0; }
.g-menu__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		var(--brush-v) 0 0 / 5px 400px repeat-y,
		var(--brush-v) 100% 120px / 5px 400px repeat-y;
}
.g-menu__list { padding-top: 24px; }
.g-menu__link { justify-content: center; border-bottom: 0; padding-block: 18px; font-weight: normal; }
.g-menu__label { position: relative; padding-bottom: 6px; }
.g-menu__label::after,
.g-menu__btn::after {
	content: "";
	position: absolute;
	left: -4px; right: -6px; bottom: 0;
	height: 8px;
	background: var(--brush-thick-red) 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0);
	pointer-events: none;   /* 긋는 움직임은 켜질 때만 — 떼면 머리글 메뉴처럼 바로 사라진다 */
}
.g-menu__link:active .g-menu__label::after,
.g-menu__btn:active::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
/* 초점으로 긋는 붓줄은 키보드일 때만(메뉴를 열면 스크립트가 첫 항목에 초점을 두는데, iOS 는 손가락으로 열어도 그었다) */
:where(.g-kbd) .g-menu__link:focus .g-menu__label::after,
:where(.g-kbd) .g-menu__btn:focus::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
:where(html:not(.g-js)) .g-menu__link:focus-visible .g-menu__label::after,
:where(html:not(.g-js)) .g-menu__btn:focus-visible::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
/* 메뉴 아래 상담 버튼: 머리글처럼 아이콘 + 글자(괄호 없이 · 흑백) */
.g-menu__cta { justify-items: center; gap: 18px; padding-top: 40px; }
.g-menu__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 4px 12px;
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 24px;
	line-height: 1.2;
}
.g-menu__icon { flex: none; width: 22px; height: 22px; }
.g-menu__meta { justify-content: center; word-spacing: normal; }
/* 휴대폰 아래 막대: 위 칸선을 얇은 붓선으로 */
@media (max-width: 767.98px) {
	.g-mbar { border-top: 0; }
	.g-mbar::before {
		content: "";
		position: absolute;
		left: 6px; right: 6px; top: -3px;
		height: 6px;
		background: var(--brush-thin) 0 0 / 100% 100% no-repeat;
		pointer-events: none;
	}
	.g-mbar__icon { width: 20px; height: 20px; }
}

/* ═════════ 버튼은 모두 하나로: ( 글자 ) · 신라문화체 32px · 올리면 괄호를 뺀 글자 밑에만 주황 붓줄 ═════════
   머리글 버튼(상담예약 · 톡톡상담)과 휴대폰 아래 막대는 크기만 따로이고, 밑줄은 같은 방식(글자 밑에만). */
.g-btn,
.g-pause.g-btn,
.g-footer__up.g-btn {
	display: inline-flex;
	align-items: center;
	gap: .28em;
	height: auto;
	min-height: 0;
	padding: 4px 2px 10px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-title);
	font-weight: normal;
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	word-spacing: normal;
	white-space: nowrap;
}
.g-btn:hover,
.g-btn:focus-visible { background: transparent; color: var(--ink); }
.g-btn::before { content: "("; }
.g-btn::after {
	content: ")";
	position: static;
	width: auto; height: auto;
	background: none;
	clip-path: none;
	transition: none;
}
.g-btn .g-btn__label { position: relative; padding: 0; }
.g-btn .g-btn__label::before { content: none; }
.g-btn .g-btn__label::after,
.g-pause .g-pause__text::after,
.g-hbtn .g-hbtn__label::after,
.g-menu__btn .g-menu__btnlabel::after,
.g-mbar__btn > span::after {
	content: "";
	position: absolute;
	left: -.06em; right: -.1em; bottom: -.16em;
	height: .26em;
	margin: 0;
	background: var(--brush-thick-red) 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 100% 0 0);
	pointer-events: none;
}
/* 붓줄: 누르는 동안(메뉴 · 아래 막대) · 마우스를 올렸을 때 · 키보드 초점일 때. 손가락으로 누른 뒤 남지 않는다.
   왼쪽부터 그어지는 움직임은 켜질 때만 있고, 떼면 머리글 메뉴처럼 되감기지 않고 바로 사라진다(꺼진 상태엔 transition 이 없다) */
.g-menu__btn:active .g-menu__btnlabel::after,
.g-mbar__btn:active > span::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
@media (hover: hover) and (pointer: fine) {
	.g-btn:hover .g-btn__label::after,
	.g-pause:hover .g-pause__text::after,
	.g-hbtn:hover .g-hbtn__label::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
}
:where(.g-kbd) .g-btn:focus .g-btn__label::after,
:where(.g-kbd) .g-pause:focus .g-pause__text::after,
:where(.g-kbd) .g-hbtn:focus .g-hbtn__label::after,
:where(.g-kbd) .g-menu__btn:focus .g-menu__btnlabel::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
:where(html:not(.g-js)) .g-btn:focus-visible .g-btn__label::after,
:where(html:not(.g-js)) .g-pause:focus-visible .g-pause__text::after,
:where(html:not(.g-js)) .g-hbtn:focus-visible .g-hbtn__label::after,
:where(html:not(.g-js)) .g-menu__btn:focus-visible .g-menu__btnlabel::after { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.3, .6, .2, 1); }
/* 잠시 멈추기: 아이콘은 빼고 글자 밑에만 */
.g-pause .g-btn__label::after { content: none; }
.g-pause .g-pause__text { position: relative; }
.g-pause .g-pause__icon { width: 14px; height: 17px; margin-right: .3em; border-left-width: 4px; border-right-width: 4px; }
.g-pause[aria-pressed="true"] .g-pause__icon { width: 0; height: 0; border-width: 9px 0 9px 14px; }
/* 머리글 · 메뉴 · 아래 막대: 버튼 전체가 아니라 글자에만 */
.g-hbtn::after,
.g-menu__btn::after { content: none; }
.g-hbtn .g-hbtn__label,
.g-menu__btn .g-menu__btnlabel,
.g-mbar__btn > span { position: relative; }
.g-hbtn .g-hbtn__label::after { bottom: -.3em; }
@media (max-width: 767.98px) {
	.g-mbar__btn::after { content: none; }
}
/* 자리 */
.ha-btns,
.g-location__btns { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 6px; }   /* 두 버튼 사이 40 → 20px(주인 요청) */
.g-location__btns { grid-template-columns: none; }
.g-location__map { display: flex; flex-direction: column; align-items: center; }
.g-location__map .g-map { align-self: stretch; }
.g-map__more { margin: -6px 0 clamp(18px, 2.4vw, 32px); }
.g-footer__up.g-btn { flex: none; }
.g-footer__up.g-btn:hover { background: transparent; color: var(--ink); }
@media (max-width: 599.98px) {
	.g-footer__top { flex-wrap: wrap; }
}

/* ═════════ 남은 곧은 선도 모두 붓선(한 획 · 양 끝 날렵하게, assets/brush.css 의 --brush-line*) ═════════ */
/* 구역 나눔 · 머리글 아래 · 뿌리 아래 · 아래 막대 · 푸터 끝 */
.g-header__bar::after,
.g-footer .g-frame::after,
.ha-brush { background-image: var(--brush-line); }
@media (max-width: 767.98px) {
	.g-mbar::before { background-image: var(--brush-line); }
}
.g-marquee { border-top: 0; background: var(--brush-line) 8px 0 / calc(100% - 16px) 6px no-repeat; }
.g-marquee + .g-marquee { background: none; }
.g-location__body { border-top: 0; background: var(--brush-line) 8px 0 / calc(100% - 16px) 6px no-repeat; }
.g-location__info { border-top: 0; background: var(--brush-line-2) 8px 0 / calc(100% - 16px) 6px no-repeat; }
@media (min-width: 960px) {
	.g-location__info { border-left: 0; background: var(--brush-line-v) 0 12px / 6px calc(100% - 24px) no-repeat; }
}
/* 지도 테두리 · 이름표 */
.g-map { border: 0; }
.g-map::after,
.g-map__place::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		var(--brush-line) 0 0 / 100% 6px no-repeat,
		var(--brush-line-2) 0 100% / 100% 6px no-repeat,
		var(--brush-line-v) 0 0 / 6px 100% no-repeat,
		var(--brush-line-v2) 100% 0 / 6px 100% no-repeat;
}
.g-map__place { border: 0; }
.g-map__place::before { inset: -2px; z-index: 0; background-size: 100% 5px, 100% 5px, 5px 100%, 5px 100%; }
/* 주소 · 시간 · 푸터 정보 줄(점선 → 옅은 붓선) */
.g-spec,
.g-footer__info { border-top: 0; background: var(--brush-line-faint) 0 0 / 100% 5px no-repeat; }
.g-spec__row,
.g-footer__row { border-bottom: 0; background: var(--brush-line-faint) 0 100% / 100% 5px no-repeat; }
/* 넓은 화면 바닥 정보: 한 줄에(주인 요청) — 항목을 양 끝까지 고르게 벌리고 위 · 아래 옅은 붓선 한 줄씩. 좁아지면 다음 줄로 넘어간다 */
@media (min-width: 1200px) {
	.g-footer__info {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		column-gap: 28px;   /* 가장 좁은 사이 — 남는 폭은 고르게 벌어진다 */
		background: var(--brush-line-faint) 0 0 / 100% 5px no-repeat, var(--brush-line-faint) 0 100% / 100% 5px no-repeat;
	}
	.g-footer__row { display: flex; gap: 12px; padding: 16px 0; background: none; }
	.g-footer__row dd { white-space: nowrap; }
}
.g-rcard__meta { background-image: var(--brush-line-faint); }
/* 서명 앞 짧은 선 */
.g-sign__rule { width: 40px; height: 5px; background: var(--brush-line) 0 0 / 100% 100% no-repeat; }
/* 상담 카드 사이 · 후기 · 사진 칸 */
.g-card::after { width: 6px; right: -3px; background-image: var(--brush-line-v); }
.g-card::before { height: 6px; bottom: -3px; background-image: var(--brush-line); }
.g-cards::before { height: 6px; margin-bottom: -3px; background: var(--brush-line-2) 0 0 / 100% 100% no-repeat; }
.g-rcard__inner::before,
.g-ptile__inner::before {
	background:
		var(--brush-line) 0 0 / 100% 5px no-repeat,
		var(--brush-line-2) 0 100% / 100% 5px no-repeat,
		var(--brush-line-v) 0 0 / 5px 100% no-repeat,
		var(--brush-line-v2) 100% 0 / 5px 100% no-repeat;
}
/* 휴대폰: 오시는 길 정보 칸 위 선은 주소 줄 위 선과 겹치므로 하나만 */
@media (max-width: 959.98px) {
	.g-location__info { background: none; }
}

/* 머리글 메뉴: 올리면 글자 색이 부드럽게 바뀐다(되돌아갈 때도) */
.g-nav__link,
.g-nav__label,
.g-hbtn { transition: color .45s ease, background-color .45s ease; }

/* 휴대폰: 양옆 세로 붓선 없이, 선 바깥 여백도 없이 화면 끝까지(글 안쪽 여백 --pad 는 그대로) */
@media (max-width: 767.98px) {
	:root { --frame-x: 0px; }
	.g-frame,
	.g-header__bar,
	.g-menu__inner { width: 100%; border-inline: 0; }
	.g-frame::before,
	.g-header__bar::before,
	.g-menu__inner::before,
	.g-footer .g-frame::before { content: none; }
	.g-footer .g-frame { margin-bottom: 0; }
}

/* 양옆 세로 붓선: 머리글 아래 가로 붓선과 같은 굵기(약 2.5px) — 선 가운데는 그대로(가장자리에서 2.5px) */
@media (min-width: 768px) {
	.g-frame::before,
	.g-header__bar::before {
		background:
			var(--brush-v) -3.5px 0 / 12px 400px repeat-y,
			var(--brush-v) calc(100% + 3.5px) 120px / 12px 400px repeat-y;
	}
}
/* 모바일 메뉴의 상담 버튼도 32px */
.g-menu__btn { font-size: 32px; }
.g-menu__icon { width: 26px; height: 26px; }

/* ═════════ 상담 카드: 올리면 한자 · 이름 글자 안에만 색 먹(main.js 가 겹 글자 .g-inkt 에 먹 마스크를 씌운다) ═════════
   먹 색은 카드마다 로고 심볼의 다섯 색을 차례로(빨강 · 노랑 · 파랑 · 갈색 · 초록 — inc/options.php garam_logo_mark).
   파랑 · 갈색 · 초록은 검은 글자와 차이가 작아 심볼보다 조금 밝게, 노랑은 종이 위에서 읽히게 조금 짙게. */
.g-card { position: relative; isolation: isolate; --card-ink: #df5149; --card-ink-2: #c23a33; }
.g-cards > .g-card:nth-child(5n + 2) { --card-ink: #e6c632; --card-ink-2: #cba51b; }   /* 노랑(#e5cc2e) */
.g-cards > .g-card:nth-child(5n + 3) { --card-ink: #5b6dd6; --card-ink-2: #3f52c0; }   /* 파랑(#2f3fa8) */
.g-cards > .g-card:nth-child(5n + 4) { --card-ink: #bd875b; --card-ink-2: #a06d44; }   /* 갈색(#8a5a37) */
.g-cards > .g-card:nth-child(5n + 5) { --card-ink: #3f9a6a; --card-ink-2: #2b7d52; }   /* 초록(#1f5a3a) */
.g-card .g-card__hanja,
.g-card .g-card__title,
.g-card .g-card__list { position: relative; z-index: 1; }
.g-inkt {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	padding: inherit;
	color: transparent;
	-webkit-text-fill-color: transparent;
	background: linear-gradient(170deg, var(--card-ink, #e2582f), var(--card-ink-2, #c93a22));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	pointer-events: none;
	user-select: none;
	visibility: hidden;
}
.g-inkt.is-on { visibility: visible; }

/* ═════════ 잠시 멈추기: 누른 뒤 테두리 상자 없이 · 아이콘은 붓으로 그은 모양 ═════════ */
.g-btn:focus,
.g-pause:focus { outline: none; }
.g-pause.g-btn .g-pause__icon,
.g-pause.g-btn[aria-pressed="true"] .g-pause__icon { display: inline-flex; width: auto; height: auto; margin-right: .28em; border: 0; }
.g-pause__i { display: block; width: .66em; height: .78em; fill: currentColor; }
.g-pause__i--play,
.g-pause[aria-pressed="true"] .g-pause__i--pause { display: none; }
.g-pause[aria-pressed="true"] .g-pause__i--play { display: block; }

/* ═════════ 원장 사진: 주인이 준 붓 자국 그림 그대로의 모양 안에(.dev/ink-swipe.py ← .dev/ink-src/portrait-brush.png) — 사진은 100% ═════════ */
.g-service__frame--ink {
	aspect-ratio: 1102 / 963;
	overflow: visible;
	background: none;
	-webkit-mask: url("img/ink-swipe.png?v=2") center / 100% 100% no-repeat;   /* 모양을 바꾸면 v 를 올린다(예전 그림 캐시) */
	mask: url("img/ink-swipe.png?v=2") center / 100% 100% no-repeat;
}
.g-service__frame--ink img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.g-service .g-frame { position: relative; }
.g-service .g-cards { position: relative; z-index: 1; }
.g-service__intro, .g-service .g-note { position: relative; z-index: 1; }

/* ═════════ 푸터: 배경은 다른 구역과 같게 · 붓선은 푸터 위(구역이 바뀌는 자리) ═════════ */
.g-footer .g-frame { background-color: transparent; }
.g-footer .g-frame::after { top: -3px; bottom: auto; }
.g-footer__bottom { align-items: flex-end; padding-bottom: clamp(22px, 2.6vw, 34px); }
/* 오른쪽 세로선 옆 아래: 붓 화살표 위 · 맨 위로 아래 */
.g-footer__totop {
	position: relative;
	display: inline-flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-right: calc(16px - var(--pad));
	color: var(--ink);
	font-family: var(--font-title);
	font-size: 22px;
	line-height: 1.2;
}
.g-footer__arrow-i { display: block; width: 24px; height: 38px; fill: currentColor; transition: transform .45s cubic-bezier(.3, .6, .2, 1); }
.g-footer__totop-label { position: relative; padding-bottom: 4px; }
/* 올리면 화살표만 살짝 올라간다(밑줄 붓선은 없다) */
@media (hover: hover) and (pointer: fine) {
	.g-footer__totop:hover .g-footer__arrow-i { transform: translateY(-4px); }
}
:where(.g-kbd) .g-footer__totop:focus .g-footer__arrow-i { transform: translateY(-4px); }
:where(html:not(.g-js)) .g-footer__totop:focus-visible .g-footer__arrow-i { transform: translateY(-4px); }
.g-footer__totop:focus { outline: none; }
@media (max-width: 767.98px) {
	.g-footer__totop { margin-right: 0; }
}

/* ═════════ 오시는 길: 주소 위 붓선 없이 · 내용은 위로 붙여서 · 버튼 아래 ※ 안내 두 줄 ═════════ */
.g-spec { border-top: 0; background: none; }
.g-location__info { justify-content: flex-start; }
@media (min-width: 960px) {
	.g-location__info { justify-content: flex-start; padding-top: clamp(14px, 2.2vw, 32px); }
}
.g-location__notes { display: grid; gap: 0; }   /* ※ 안내 두 줄은 행간 좁게(모든 화면) */
.g-location__notes .g-note { line-height: 1.45; }

/* ═════════ 양옆 세로 붓선: 화면에 고정된 한 획(스크롤해도 그대로) · 위 · 아래 끝은 뾰족하게 ═════════
   구역마다 이어 붙이던 토막 선은 쓰지 않는다(스크롤하면 무늬가 바뀌어 보였다). 휴대폰은 세로선 없음. */
.g-frame::before,
.g-header__bar::before,
.ha__frame::before { content: none !important; }
.g-sidelines { display: none; }
@media (min-width: 768px) {
	.g-sidelines {
		position: fixed;
		top: 0; bottom: 0; left: 0; right: 0;
		z-index: 101;   /* 헤더(100) 위 — 내려가서 헤더에 종이 바탕이 깔려도 세로선이 가려지지 않는다 */
		display: block;
		width: min(calc(100% - var(--frame-x) * 2), var(--wrap));
		margin-inline: auto;
		pointer-events: none;
		background:
			var(--brush-line-v) 0 4px / 7px calc(100% - 8px) no-repeat,
			var(--brush-line-v2) 100% 4px / 7px calc(100% - 8px) no-repeat;
	}
}
/* ═════════ 첫 화면 작은 제목: 가운뎃점(·) · Pretendard ═════════ */
.ha-chap--a .ha-eyebrow { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; word-spacing: normal; }

/* ═════════ 구역 제목 · 두 문장: 모두 66px(좁은 화면은 같은 비율로 줄인다) ═════════ */
.g-title,
.g-service__head .g-title,
.g-stage__line { font-size: clamp(30px, 4.6vw, 66px); }
@media (min-width: 960px) {
	.g-service__head .g-title { font-size: clamp(30px, 4.6vw, 66px); }
}

/* ═════════ 오시는 길: 제목은 정보 칸 맨 위(주소 위) ═════════ */
.g-location__body { border-top: 0; }
.g-location__title { margin: 0 0 4px; }
/* 푸터 아래 여백 없이 페이지가 끝난다(세로선은 화면 고정 한 획) */
.g-footer .g-frame { margin-bottom: 0; }
.g-footer__arrow-i { width: 26px; height: 40px; }

/* 상담 카드 사이 세로 손선이 묶음 오른쪽 끝에서 화면 밖으로 3px 나가 휴대폰 화면이 넓어지던 것 — 가로만 잘라 낸다 */
.g-cards { overflow-x: clip; }

/* 맨 위로: 저작권 문구를 비워도 오른쪽 아래에 */
.g-footer__totop { margin-left: auto; }
@media (prefers-reduced-motion: reduce) {
	.g-footer__arrow-i { transition: none !important; }
}

/* 오시는 길: 제목(.g-location__head) — 휴대폰은 약도 위, 넓은 화면은 약도 오른쪽 칸 맨 위(주소 위) */
.g-location__head { padding: clamp(28px, 4vw, 56px) var(--pad) 0; }
.g-location__title { margin: 0; }
@media (min-width: 960px) {
	.g-location__body { position: relative; grid-template-rows: auto 1fr; }
	.g-location__head { grid-column: 2; grid-row: 1; padding: clamp(14px, 2.2vw, 32px) var(--pad) 0; }
	.g-location__map { grid-column: 1; grid-row: 1 / span 2; }
	.g-location__info { grid-column: 2; grid-row: 2; padding-top: 28px; background: none; }
	/* 약도 | 오른쪽 칸 사이 세로 붓선은 두 줄(제목 · 정보)에 걸쳐 한 획 */
	.g-location__body::after {
		content: "";
		position: absolute;
		top: 14px; bottom: 14px;
		left: calc(58.3333% - 3px);
		width: 6px;
		background: var(--brush-line-v) 0 0 / 6px 100% no-repeat;
		pointer-events: none;
	}
}

/* ═════════ 고딕은 모두 Pretendard(고정폭 JetBrains Mono 를 쓰지 않는다) ═════════ */
:root {
	--label: var(--font-sans);
	--label-ws: normal;
	--font-mono: var(--font-sans);
}

/* ═════════ 원장 문장: 고딕 32px(좁은 화면은 같은 비율로) ═════════ */
.g-quote p {
	font-family: var(--font-sans);
	font-size: clamp(20px, 1.4vw + 12px, 32px);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.025em;
	color: var(--ink);
}

/* ═════════ 서명: 주홍 네모 없이 · 가람역학연구소(고딕) + 김문정(신라문화체, 크게) ═════════ */
.g-sign__seal, .g-sq, .ha-sq { display: none !important; }
.g-sign { align-items: center; gap: 12px; }
.g-sign__org { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.g-sign__name { font-family: var(--font-title); font-weight: normal; font-size: 28px; line-height: 1.1; letter-spacing: 0; color: var(--ink); }

/* ═════════ 두 문장 무대: 둘째 줄 '질과 양' 아래 주황 붓선(스크롤하면 왼쪽부터 그어진다 — main.js 가 --u 를 0 → 1) ═════════ */
.g-stage__line { position: relative; }
.g-stage__under {
	position: absolute;
	height: .2em;
	margin-left: -.06em;
	padding-right: .12em;
	background: var(--brush-thick-red) 0 0 / 100% 100% no-repeat;
	clip-path: inset(0 calc(100% - var(--u, 0) * 100%) 0 0);
	pointer-events: none;
}
/* 움직임 없이 보일 때는 밑줄이 처음부터 그어져 있다 */
html:not(.g-anim) .g-ch--mark { background: var(--brush-thick-red) 0 92% / 100% .2em no-repeat; }

/* ═════════ 두 동그라미 글: 제목(신라문화체) 40px · 설명 24px — 동그라미가 작은 화면(태블릿 · 휴대폰)은 줄인다 ═════════ */
.g-venn__title { font-size: 40px; line-height: 1.25; }
.g-venn__body { font-size: 24px; }
@media (max-width: 1099.98px) {
	.g-venn__title { font-size: 30px; }
	.g-venn__body { font-size: 19px; }
}
@media (max-width: 699.98px) {
	.g-venn__title { font-size: 34px; }
	.g-venn__body { font-size: 20px; }
}

/* ═════════ 버튼은 모두 28px(머리글 버튼 · 휴대폰 아래 막대 제외 — 36 → 28, 주인 요청) ═════════ */
.g-btn,
.g-pause.g-btn,
.g-footer__up.g-btn,
.g-menu__btn { font-size: 28px; }
.g-menu__icon { width: 28px; height: 28px; }

/* ═════════ 두 동그라미 설명: 쉼표 없이 항목마다 한 줄 ═════════ */
.g-venn__body { display: grid; justify-items: center; row-gap: .1em; }
.g-venn__item { display: block; }
/* 두 문장 무대가 풀리는 순간 동그라미 윗부분이 막 화면 아래 끝에 닿게 — 사이 여백은 그만큼만(고정된 장면에서는 보이지 않는다) */
.g-anim .g-venn { margin-top: 0; }

/* ═════════ 원장 문장: 고딕 24px · 줄마다 계단식으로 나타난다 · 서명은 문장 바로 아래(가람역학연구소 20px · 김문정 32px) ═════════ */
.g-quote p { font-size: clamp(19px, .6vw + 15.5px, 24px); }
.g-quote__line { display: block; }
.g-service__words .g-sign { margin-top: clamp(18px, 2.2vw, 30px); }
.g-sign__org { font-size: 20px; }
.g-sign__name { font-size: 32px; }
@media (max-width: 599.98px) {
	.g-sign__org { font-size: 17px; }
	.g-sign__name { font-size: 28px; }
}
@media (min-width: 768px) {
	.g-service__words .g-sign { margin-top: -5px; }   /* 문장 ↔ 서명 35px(줄 사이 40px 에서 5px 당긴다 — 예전 70px 의 절반) */
	.g-sign__org { color: rgba(35, 33, 28, .5); }
}

/* ═════════ 상담 항목 앞 표시: 붓으로 콕 찍은 먹 점(세 모양을 돌려 쓴다) · 한자 ↔ 이름 사이 절반 ═════════ */
.g-card__list li::before {
	top: .72em;
	width: 7px; height: 7px;
	margin-top: -3.5px;
	border: 0;
	border-radius: 0;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%2334312b' fill-opacity='.28' transform='translate(.7 .6) scale(1.04)' d='M6.3 1.5C9 1.4 10.9 3.7 10.6 6.4C10.3 9.2 7.9 10.8 5.3 10.5C2.7 10.1 1.1 7.9 1.5 5.3C1.8 3.2 3.9 1.6 6.3 1.5Z'/><path fill='%2334312b' fill-opacity='.9' d='M6.3 1.5C9 1.4 10.9 3.7 10.6 6.4C10.3 9.2 7.9 10.8 5.3 10.5C2.7 10.1 1.1 7.9 1.5 5.3C1.8 3.2 3.9 1.6 6.3 1.5Z'/></svg>") center / contain no-repeat;
}
.g-card__list li:nth-child(3n+2)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%2334312b' fill-opacity='.28' transform='translate(.7 .6) scale(1.04)' d='M3.1 2.3C5.3 1 8.7 2.3 10 4.9C11.2 7.3 10.3 9.9 7.8 10.5C5.2 11.2 2.5 9.7 1.7 7.1C1.1 5.2 1.3 3.3 3.1 2.3Z'/><path fill='%2334312b' fill-opacity='.9' d='M3.1 2.3C5.3 1 8.7 2.3 10 4.9C11.2 7.3 10.3 9.9 7.8 10.5C5.2 11.2 2.5 9.7 1.7 7.1C1.1 5.2 1.3 3.3 3.1 2.3Z'/></svg>"); transform: rotate(40deg); }
.g-card__list li:nth-child(3n)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%2334312b' fill-opacity='.28' transform='translate(.7 .6) scale(1.04)' d='M5.5 1.3C8.1.9 10.7 2.8 10.9 5.5C11.1 8.4 9 10.7 6.3 10.9C3.7 11.1 1.4 9.4 1.2 6.8C1 4.2 3 1.7 5.5 1.3Z'/><path fill='%2334312b' fill-opacity='.9' d='M5.5 1.3C8.1.9 10.7 2.8 10.9 5.5C11.1 8.4 9 10.7 6.3 10.9C3.7 11.1 1.4 9.4 1.2 6.8C1 4.2 3 1.7 5.5 1.3Z'/></svg>"); transform: rotate(-25deg); }
.g-card { column-gap: clamp(8px, .8vw, 12px); }

/* ═════════ 바닥 상호: 심볼 + 가람역학연구소 + 뒤에 작은 글씨(강남사주, 타로) ═════════ */
.g-footer__company { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; }
.g-footer__mark { display: inline-flex; flex: none; width: 1.15em; height: 1.15em; }
.g-footer__mark svg { display: block; width: 100%; height: 100%; }
.g-footer__tag { align-self: flex-end; margin-bottom: .32em; font-size: .5em; color: var(--ink-2); }

/* ═════════ 후기: 사진 설명 ↔ 아래 선 사이 세 배 · 잠시 멈추기는 제목 마지막 줄과 아래(글자 바닥)를 맞춘다 ═════════ */
.g-marquee:last-child { padding-bottom: clamp(96px, 12vw, 168px); }
.g-review__top { align-items: flex-end; align-items: last baseline; }

/* ═════════ 머리글 버튼(상담예약 · 톡톡상담): 올렸을 때 밑줄을 글자에 더 가깝게 ═════════ */
.g-hbtn .g-hbtn__label::after { bottom: -.1em; }

/* ═════════ 맨 위로: 오른쪽 세로선 바깥(내용 칸 밖) — 넓은 화면은 양옆 바깥 여백을 그만큼 넓힌다 ═════════ */
@media (min-width: 1100px) {
	:root { --frame-x: 80px; }
	.g-footer__totop {
		position: absolute;
		left: calc(100% + 14px);
		bottom: clamp(22px, 2.6vw, 34px);
		width: 52px;
		margin: 0;
	}
	.g-footer__totop-label { white-space: nowrap; }
}

/* ═════════ 상담 카드: 선이 그어지며 하나씩(main.js — 칸마다 오른쪽 세로선 --lv · 아래 선 --lh). 위 선은 처음부터 그어져 있다 ═════════ */
.g-cards[data-cards-draw] .g-card::after { clip-path: inset(0 0 calc(100% - var(--lv, 1) * 100%) 0); }
.g-cards[data-cards-draw] .g-card::before { clip-path: inset(0 calc(100% - var(--lh, 1) * 100%) 0 0); }

/* 상담영역: 서명 아래 상담 버튼 · 사주팔자란은 동그라미로 끝난다 */
.g-saju .g-venn { margin-bottom: var(--sec-y); }

/* ═════════ 오시는 길(넓은 화면): 약도는 4:3 고정 대신 오른쪽 칸(제목 + 정보) 높이에 맞춘다 — 오른쪽 아래가 비지 않게 ═════════ */
@media (min-width: 960px) {
	.g-location__map { align-self: stretch; }
	.g-location__map .g-map { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
}

/* ═════════ 원장 사진: 먹 자국 모양에 꼭 맞춘 칸(.dev/ink-swipe.py 가 알려 주는 비율). 좁은 화면은 칸 폭 640px 까지 ═════════ */
.g-service__frame--ink { aspect-ratio: 1102 / 963; width: min(100%, 640px); margin-inline: auto; }
/* 넓은 화면(두 칸): 주인 시안대로 붓 자국을 크게, 시계 방향으로 12.5도 기울여(ink-swipe-pc.png) 왼쪽 칸을 채운다 —
   붓 자국 왼쪽 · 아래쪽은 틀 왼쪽 선 · 구역 아래 선에서 잘리고 그 선 바깥으로는 나가지 않는다(clip-path: 왼쪽 선 가운데 3px ·
   아래 선 가운데 3px 까지). 위 · 오른쪽 붓끝은 칸 밖으로 조금 나가도 된다. 자리 값은 시안에 맞춰 잰 것(왼쪽 칸 폭 840px 에서
   붓 1151 × 872px, 왼쪽 -304px · 아래 끝이 아래 선보다 140px 아래 — 모두 칸 폭에 비례). 사진은 한 장을 위아래 통째로(주인 요청) —
   보이는 붓 자국의 위 끝부터 아래 선까지(840px 칸에서 733px), 왼쪽 선부터 오른쪽 붓끝까지에 꼭 맞춘다(그 자리와 사진 832 × 720 의 비율이 같다) */
@media (min-width: 960px) {
	.g-service__intro { grid-template-rows: 1fr auto auto 1fr; }
	.g-service__photo {
		grid-row: 1 / -1;
		align-self: stretch;
		position: relative;
		overflow: visible;
		clip-path: inset(-60px -60px -3px 3px);
		padding: 0;
		margin-top: calc(clamp(14px, 2.2vw, 32px) - var(--sec-y));   /* 구역 위 끝부터(intro 위 여백만큼 올린다) */
	}
	.g-service__photo::before { content: ""; display: block; padding-top: calc(25px + 88%); }
	.g-service__photo .g-service__frame--ink {
		position: absolute;
		left: -36.17%;
		bottom: -3px;   /* 아래 선 가운데(칸 아래 끝 + 3px)에서 */
		width: 137%;
		aspect-ratio: 1096 / 830;
		margin: 0 0 -16.62%;   /* 바깥 여백 %는 칸 폭 기준 — 아래 선보다 칸 폭의 16.6% 아래까지 */
		-webkit-mask-image: url("img/ink-swipe-pc.png?v=1");
		mask-image: url("img/ink-swipe-pc.png?v=1");
	}
	.g-service__photo .g-service__frame--ink img { position: absolute; left: 26.52%; top: 0; width: 73.61%; height: 84.11%; }
	.g-service__head { grid-row: 2; }
	.g-service__words { grid-row: 3; }
}
/* 휴대폰: 주인 그림(시안)대로 붓 자국을 옆으로 길게 늘여 화면 폭의 234% · 높이 화면 폭의 120.5%로 — 가운데 몸통이 화면을 채우고
   양옆 붓끝은 화면 밖으로 잘린다(시안에 맞춰 잰 값: 390px 화면에서 912 × 470px, 왼쪽 -312px). 사진은 늘이지 않고
   화면 폭만큼의 창에만 채운다(얼굴이 가운데) — 붓 모양 밖은 마스크가 가린다 */
@media (max-width: 767.98px) {
	/* 위 여백은 구역 여백(var(--sec-y)) 그대로. 붓 자국 왼쪽 아래 꼬리는 화면 밖이라 그 높이만큼(화면 폭의 8.7%) 제목을 끌어올린다 —
	   화면에 보이는 붓 아래 끝 ↔ 제목 사이가 시안처럼 20px 남짓 */
	.g-service__photo { padding-inline: 0; padding-bottom: 0; margin-bottom: -8.7vw; overflow: hidden; }
	.g-service__photo .g-service__frame--ink { position: relative; width: 234%; max-width: none; height: 120.5vw; aspect-ratio: auto; margin: 0 0 0 -80%; }
	/* 사진은 위아래 통째로(주인 요청) — 화면 폭 안에 보이는 붓 자국의 위 끝 ~ 아래 끝(칸 높이의 0 ~ 90.24%)에 사진 높이를 맞춘다 */
	.g-service__photo .g-service__frame--ink img { position: absolute; top: 0; left: 34.19%; width: 42.74%; height: 90.24%; }
}

/* ═════════ 후기: 제목 아래 긴 붓선 없이, 제목 ↔ 후기 칸 사이 여백 1/3 ═════════ */
.g-marquee--reviews { background: none; }
.g-review__top { padding-bottom: clamp(11px, 1.35vw, 19px); }
/* 잠시 멈추기: 버튼 글자를 28px 로 줄이며 글자 아래 끝이 제목 마지막 줄보다 7px 높아졌다 — 그만큼 내린다(넓은 화면) */
@media (min-width: 900px) { .g-review__top .g-pause { position: relative; top: .25em; } }

/* ═════════ 위로 이동: 화살표 두 배 · 글자 28px — 세로선 바깥(넓은 화면)에서는 '위로 / 이동' 두 줄로 쌓는다 ═════════ */
.g-footer__arrow-i { width: 52px; height: 80px; }
.g-footer__totop { font-size: 28px; gap: 8px; }
.g-footer__totop-label { text-align: center; word-break: keep-all; }
@media (min-width: 1100px) {
	.g-footer__totop { width: 62px; left: calc(100% + 10px); }
	.g-footer__totop-label { white-space: normal; line-height: 1.15; }
}

/* ═════════ 휴대폰 · 태블릿(900px 미만) 글자 위계 — PC 와 같은 순서 · 비슷한 비율로 ═════════
   PC 크기 D 를 휴대폰(390px) 크기 M 으로 한 줄의 식으로 줄인다: M = 15 + (D − 15) × 0.42 (본문 15 ~ 17px 은 그대로).
   그 사이 폭은 390px → 1440px 사이를 곧게 잇는다(calc 의 (100vw − 390px) × (D − M) / 1050). 예전에는 버튼(36) · 동그라미 제목(34) 이
   구역 제목(30)보다 커서 위계가 뒤집혀 있었다. 첫 화면(히어로) 글은 hero.css 끝에서 같은 식으로 맞춘다. */
@media (max-width: 899.98px) {
	/* 구역 제목 · 두 문장 66 → 36 — 넓은 화면 규칙(4.6vw)이 900px 에서 41.4px 이라 거기에 이어지게 */
	.g-title,
	.g-service__head .g-title,
	.g-stage__line { font-size: clamp(33px, calc(36px + (100vw - 390px) * .0106), 66px); }
	/* 두 문장 위 고정 문장 33.5 → 23 — 900px 의 25.2px 에 이어지게 */
	.g-stage__head { font-size: clamp(21px, calc(23px + (100vw - 390px) * .0042), 34px); }
	/* 두 동그라미: 제목 40 → 26 · 설명 24 → 19(태블릿 30 · 19 를 넘지 않게) */
	.g-venn__title { font-size: clamp(24px, calc(26px + (100vw - 390px) * .0133), 30px); }
	.g-venn__body { font-size: 19px; }
	/* 버튼 28 → 24(휴대폰은 그대로 24 — 넓어지며 28 까지) */
	.g-btn,
	.g-pause.g-btn,
	.g-footer__up.g-btn,
	.g-menu__btn { font-size: clamp(22px, calc(24px + (100vw - 390px) * .0114), 28px); }
	/* 후기 카드 따옴표 52 → 30 */
	.g-rcard__mark { font-size: clamp(28px, calc(30px + (100vw - 390px) * .0210), 52px); }
	/* 원장 문장: 서명 이름 32 → 22(가람역학연구소 20 → 17) */
	.g-sign__org { font-size: 17px; }
	.g-sign__name { font-size: clamp(21px, calc(22px + (100vw - 390px) * .0095), 32px); }
	/* 상담 카드: 한자 72 → 39 · 이름 26 → 20 */
	.g-card .g-card__hanja { font-size: clamp(36px, calc(39px + (100vw - 390px) * .0316), 72px); }
	.g-card__title { font-size: clamp(19px, calc(20px + (100vw - 390px) * .0057), 26px); }
	/* 바닥: 상호 40 → 26 · 뒤 작은 글씨 20 → 16 · 위로 이동 28 → 20(화살표도 같은 비율) */
	.g-footer__company { font-size: clamp(24px, calc(26px + (100vw - 390px) * .0133), 40px); }
	.g-footer__tag { font-size: 16px; }
	.g-footer__totop { font-size: clamp(19px, calc(20px + (100vw - 390px) * .0076), 28px); }
	.g-footer__arrow-i { width: 1.85em; height: 2.85em; }
}

/* ═════════ 커서: 어디서나 같은 검은 먹 방울 — 글자 위(I 자) · 링크 위(손가락)에서도 바뀌지 않는다 ═════════
   마우스가 있는 화면만. 매끈한 동그라미가 아니라 붓에서 먹이 한 방울 떨어진 듯 가장자리가 울퉁불퉁하고 옆에 작은 방울이 튄 모양.
   종이색 얇은 테로 검은 글자 · 사진 · 붓 자국 위에서도 보인다.
   방울 가운데가 가리키는 점 */
@media (hover: hover) and (pointer: fine) {
	html,
	html * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><g fill='%23111111' stroke='%23f2efe6' stroke-width='.8' stroke-linejoin='round'><path d='M18.57 12.00L18.53 12.34L18.54 12.69L18.63 13.05L18.84 13.45L19.09 13.90L19.26 14.36L19.23 14.77L18.97 15.10L18.59 15.36L18.19 15.58L17.87 15.81L17.61 16.07L17.37 16.35L17.13 16.62L16.86 16.86L16.55 17.05L16.21 17.20L15.87 17.32L15.52 17.41L15.17 17.49L14.83 17.56L14.50 17.62L14.18 17.68L13.87 17.76L13.57 17.86L13.28 18.01L12.99 18.22L12.68 18.45L12.35 18.60L12.00 18.56L11.67 18.34L11.37 18.03L11.09 17.77L10.81 17.62L10.51 17.57L10.18 17.59L9.83 17.65L9.45 17.72L9.06 17.78L8.64 17.83L8.19 17.86L7.72 17.89L7.20 17.93L6.64 17.96L6.08 17.92L5.63 17.73L5.38 17.36L5.36 16.83L5.52 16.21L5.75 15.61L5.95 15.08L6.05 14.65L6.05 14.28L5.99 13.95L5.90 13.64L5.80 13.32L5.73 12.99L5.68 12.66L5.67 12.33L5.70 12.00L5.76 11.67L5.83 11.35L5.89 11.03L5.90 10.70L5.84 10.35L5.73 9.96L5.66 9.57L5.73 9.21L5.96 8.92L6.29 8.70L6.63 8.51L6.94 8.33L7.23 8.13L7.50 7.94L7.77 7.77L8.03 7.60L8.29 7.42L8.50 7.19L8.67 6.87L8.78 6.42L8.88 5.87L9.02 5.31L9.26 4.87L9.61 4.63L10.01 4.58L10.43 4.63L10.84 4.69L11.24 4.73L11.62 4.76L12.00 4.81L12.37 4.92L12.73 5.07L13.07 5.27L13.38 5.49L13.68 5.72L13.97 5.93L14.26 6.11L14.57 6.23L14.92 6.27L15.32 6.25L15.74 6.24L16.09 6.37L16.31 6.68L16.39 7.13L16.40 7.60L16.43 8.01L16.51 8.35L16.64 8.63L16.81 8.87L17.01 9.10L17.24 9.33L17.48 9.56L17.73 9.80L17.98 10.06L18.20 10.34L18.38 10.64L18.52 10.97L18.59 11.31L18.60 11.65Z'/><circle cx='17.8' cy='20.1' r='0.80'/><circle cx='2.2' cy='12.9' r='0.55'/><circle cx='14.3' cy='2.7' r='0.65'/></g></svg>") 12 12, auto !important; }
}

/* ═════════ 스크롤 막대 자리는 늘 둔다 — 새로고침 때 막대가 잠깐 없어졌다 생기며 화면이 옆으로 밀리지 않게
   (메뉴를 열어 스크롤을 막을 때 html.g-menu-open 도 자리는 남는다). 막대가 화면 위에 겹치는 휴대폰 · 맥에는 영향이 없다.
   html 에 overflow 를 주지 않는다 — 주면 body 의 overflow-x: clip 이 화면(뷰포트)으로 넘어가지 않아, 아이폰에서 화면 밖으로
   삐져나간 그림만큼 페이지가 넓어지고 줄어 보였다(내용이 왼쪽으로 쏠림). ═════════ */
html { scrollbar-gutter: stable; }
/* 넓은 화면 휠 관성(main.js 1-1 · Lenis): 창 높이 계산을 브라우저 그대로 두고, 멈춰 있을 때만 잠근다 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* ═════════ 오시는 길(넓은 화면): 제목 아래 내용(주소 ~ 안내 문구)을 아래로 내려 마지막 줄 아래 끝이 왼쪽 '네이버 지도에서 보기' 아래 끝과 맞게.
   왼쪽 버튼 글자 아래 = 버튼 아래 여백 clamp(18px, 2.4vw, 32px) + 글자 밑 10px. 줄인 아래 여백만큼 위를 늘려 오른쪽 칸 높이(= 약도 높이)는 그대로. ═════════ */
@media (min-width: 960px) {
	.g-location__info {
		padding-top: calc(28px + clamp(36px, 4.5vw, 64px) - clamp(18px, 2.4vw, 32px) - 10px);
		padding-bottom: calc(clamp(18px, 2.4vw, 32px) + 10px);
	}
}

/* ═════════ 오시는 길(900px 대 이하 한 칸): 칸 폭이 내용의 최소 폭을 따라 늘어나지 않게 —
   사파리(WebKit)는 4:3 약도의 최소 폭을 높이에서 거꾸로 재어 칸을 586px 로 넓혔고, 그만큼 페이지가 화면보다 넓어져
   휴대폰에서 전체가 줄어 보이며 다른 구역이 왼쪽으로 쏠렸다. ═════════ */
@media (max-width: 959.98px) {
	.g-location__body { grid-template-columns: minmax(0, 1fr); }
}
.g-location__head,
.g-location__map,
.g-location__info { min-width: 0; }

/* ═════════ 메뉴 아이콘(두 줄 · 닫기 X)도 붓선 — 짧은 붓 획 모양(--brush-thick)으로 글자색을 오린다. 둘째 획은 반대로 그은 것처럼 ═════════ */
.g-burger__lines { width: 22px; height: 11px; }
.g-burger__lines span {
	height: 3.4px;
	background: currentColor;
	-webkit-mask: var(--brush-thick) center / 100% 100% no-repeat;
	mask: var(--brush-thick) center / 100% 100% no-repeat;
}
.g-burger__lines span:last-child { top: 7.6px; transform: scaleX(-1); }
.g-burger[aria-expanded="true"] .g-burger__lines span:first-child { top: 3.8px; transform: rotate(45deg); }
.g-burger[aria-expanded="true"] .g-burger__lines span:last-child { top: 3.8px; transform: rotate(-45deg) scaleX(-1); }

/* ═════════ 휴대폰(아래 상담 막대가 있는 화면) ═════════ */
@media (max-width: 767.98px) {
	/* 예약 버튼은 아래 막대(상담예약 · 톡톡상담)가 늘 있으므로 첫 화면 것만 두고 감춘다(상담영역 · 오시는 길) */
	.g-location__btns { display: none; }
	/* 아래 막대 글자는 첫 화면 버튼과 같은 24px(아이콘도 그만큼) */
	.g-mbar .g-mbar__btn,
	.g-mbar .g-mbar__btn--phone,
	.g-mbar .g-mbar__btn--talk { font-size: 24px; }
	.g-mbar .g-mbar__icon { width: 24px; height: 24px; }
	/* 바닥 정보: 이름 · 값 두 칸(넉넉한 칸 높이) · 저작권 다음에 위로 이동(가운데) */
	.g-footer__row { grid-template-columns: max-content minmax(0, 1fr); gap: 20px; padding: 18px 0 20px; }
	/* 후기 '잠시 멈추기'는 제목 아래 줄의 오른쪽 끝에(넓은 화면처럼 오른쪽) */
	.g-review__top .g-pause { margin-left: auto; }
	.g-footer__bottom { flex-direction: column; align-items: stretch; gap: 28px; }
	.g-footer__totop { align-self: center; margin: 0; }
}

/* ═════════ 휴대폰 상담 카드: 한자 · 세로 이름을 크게(칸 높이도 그만큼) · 항목은 오른쪽으로 ═════════ */
@media (max-width: 599.98px) {
	.g-card { padding-top: 30px; padding-bottom: 34px; column-gap: 14px; }
	.g-card .g-card__hanja { font-size: 58px; }
	.g-card__title { font-size: 25px; }
	.g-card__list { margin-left: clamp(18px, 9vw, 44px); margin-top: 10px; }
}


/* ═════════ 휴대폰: 오시는 길 제목 ↔ 약도 사이 넓게 · 로고 심볼 ↔ 글자 사이 좁게 · 아래 막대 높이 고정 ═════════ */
@media (max-width: 767.98px) {
	.g-location__map { padding-top: 24px; }
	.g-logo { gap: 4px; }
	.g-footer__company { column-gap: 6px; }
	/* 아래 상담 막대: 브라우저 아래 막대가 사라져도(아래 안전 영역이 생겨도) 막대가 길어지지 않고 높이 그대로 맨 아래로만 내려간다 */
	body.has-mbar { padding-bottom: 64px; }
	.g-mbar { padding-bottom: 8px; }
}

/* ═════════ 휴대폰 머리글: 심볼 · 글자 작게(상호 22 → 20 · 메뉴 20 → 18) · 높이 64 → 54 ═════════ */
@media (max-width: 767.98px) {
	:root { --header-h: 54px; }
	.g-logo__mark { width: 32px; height: 32px; }
	.g-logo__name { font-size: 20px; }
	.g-burger__text { font-size: 18px; }
	/* 메뉴 아래 상담 버튼: 아래 상담 막대와 같은 모양(위 붓선 · 두 칸 · 높이 48 · 아이콘 + 글자 24px) */
	.g-menu__cta {
		position: relative;
		grid-template-columns: 1fr 1fr;
		justify-items: stretch;
		gap: 8px;
		margin-top: auto;
		padding: 8px;
	}
	.g-menu__cta::before {
		content: "";
		position: absolute;
		left: 6px; right: 6px; top: -3px;
		height: 6px;
		background: var(--brush-line) 0 0 / 100% 100% no-repeat;
		pointer-events: none;
	}
	.g-menu__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 48px;
		padding: 0;
		font-size: 24px;
		line-height: 1.6;
	}
	.g-menu__icon { width: 24px; height: 24px; }
}

/* ═════════ 휴대폰 상담 카드: 한자 · 이름 크게, 항목 +4px · 먹색 하나로 / 오시는 길: 지도 버튼 ↔ 주소 사이 절반 ═════════ */
@media (max-width: 599.98px) {
	.g-card .g-card__hanja { font-size: 68px; }
	.g-card__title { font-size: 29px; }
	.g-card__list li { font-size: 19px; color: var(--ink); }
}
@media (max-width: 767.98px) {
	.g-map__more { margin-bottom: 4px; }
	.g-location__info { padding-top: 14px; }
}

/* ═════════ 서명 앞 붓선 길이 절반(휴대폰) · 상담 항목 앞 표시는 먹 점 대신 짧은 가로 붓선(휴대폰 · PC 모두) ═════════ */
@media (max-width: 767.98px) {
	.g-sign__rule { width: 20px; }
}
.g-card__list li { padding-left: 18px; }
.g-card__list li::before,
.g-card__list li:nth-child(n)::before {
	top: .74em;
	width: 10px;
	height: 5px;
	margin-top: -2.5px;
	background: var(--brush-line) 0 0 / 100% 100% no-repeat;
	transform: none;
}

/* ═════════ 한 줄 배치(휴대폰 · 태블릿): 상담영역 제목은 사진 아래 · 원장 문장(“) 바로 위 ═════════ */
@media (max-width: 959.98px) {
	.g-service__photo { order: -1; padding-top: var(--sec-y); }
	.g-service__head { padding-top: clamp(8px, 2vw, 20px); padding-bottom: 0; }
	.g-service__words { padding-top: 20px; }
}
/* 휴대폰: 문장 ↔ 서명 사이 좁게 · 서명 ↔ 아래 카드 선 사이 넓게 / 카드 한자 · 세로 이름 윗선을 맞춘다(이름이 약 6px 처져 있었다) */
@media (max-width: 767.98px) {
	.g-service__words { gap: 20px; padding-bottom: 64px; }
	.g-service__words .g-sign { margin-top: 6px; }
}
@media (max-width: 599.98px) {
	.g-card .g-card__title { padding-top: 3px; }
}

/* ═════════ 손가락 화면: 후기 · 사진 줄을 손으로 넘길 수 있다(main.js 가 저절로 흐르게 하다가 만지면 멈춘다) ═════════ */
.g-marquee.is-swipe { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-marquee.is-swipe::-webkit-scrollbar { display: none; }
.g-marquee.is-swipe .g-marquee__track { animation: none; transform: none; will-change: auto; }

/* ═════════ 머리글 메뉴 단추는 아이콘만('메뉴 · 닫기' 글자는 화면 읽기 프로그램에만) ═════════ */
.g-burger { gap: 0; min-width: 44px; justify-content: center; }
.g-burger__text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* 모바일 메뉴: 메뉴 글자들은 위에 붙이지 않고 머리글 ↔ 아래 상담 버튼 사이 한가운데 */
.g-menu__inner > nav { margin-block: auto; }
.g-menu__list { padding-top: 0; }
.g-menu__cta { margin-top: 0; }
@media (max-width: 767.98px) {
	.g-menu__cta { margin-top: 0; }
	/* 아래 상담 막대 · 메뉴 아래 상담 버튼 글자 24 → 20px(아이콘도 그만큼) */
	.g-mbar .g-mbar__btn,
	.g-mbar .g-mbar__btn--phone,
	.g-mbar .g-mbar__btn--talk,
	.g-menu__btn { font-size: 20px; }
	.g-mbar .g-mbar__icon,
	.g-menu__icon { width: 20px; height: 20px; }
}

/* ═════════ 따옴표(“)도 붓으로 그린 모양(.dev/quote-gen.mjs) — 글자는 두고 붓 모양으로 강조색을 오린다 ═════════ */
:root {
	--brush-quote: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 32'><path d='M18.6 1.6L18.36 1.64L18.11 1.68L17.86 1.71L17.61 1.76L17.37 1.8L17.12 1.85L16.87 1.9L16.63 1.95L16.38 2.01L16.13 2.06L15.88 2.12L15.63 2.19L15.39 2.26L15.15 2.34L14.9 2.42L14.66 2.5L14.42 2.59L14.18 2.68L13.94 2.77L13.71 2.88L13.48 2.99L13.26 3.11L13.04 3.24L12.81 3.36L12.59 3.49L12.36 3.6L12.12 3.71L11.88 3.82L11.63 3.92L11.39 4.03L11.16 4.15L10.93 4.28L10.71 4.42L10.49 4.57L10.27 4.71L10.04 4.86L9.82 5L9.59 5.13L9.35 5.27L9.12 5.41L8.89 5.56L8.66 5.71L8.44 5.87L8.22 6.03L7.99 6.19L7.75 6.35L7.51 6.5L7.27 6.66L7.04 6.83L6.82 7.01L6.62 7.2L6.43 7.41L6.26 7.63L6.08 7.86L5.9 8.07L5.7 8.28L5.49 8.48L5.26 8.68L5.03 8.88L4.81 9.08L4.6 9.3L4.4 9.53L4.22 9.77L4.05 10.02L3.87 10.26L3.69 10.51L3.5 10.76L3.31 11.01L3.13 11.27L2.97 11.54L2.83 11.81L2.71 12.1L2.58 12.38L2.43 12.66L2.25 12.94L2.05 13.21L1.82 13.49L1.59 13.77L1.38 14.06L1.2 14.36L1.07 14.67L0.97 14.99L0.91 15.31L0.84 15.64L0.77 15.96L0.67 16.29L0.56 16.62L0.45 16.95L0.34 17.3L0.26 17.69L0.21 18.1L0.19 18.55L0.18 19.02L0.18 19.49L0.18 19.97L0.18 20.46L0.2 20.95L0.26 21.44L0.39 21.91L0.58 22.36L0.84 22.78L1.13 23.17L1.44 23.55L1.73 23.93L2 24.33L2.25 24.74L2.49 25.16L2.74 25.59L3.03 26L3.36 26.37L3.73 26.71L4.13 27.01L4.56 27.29L5 27.57L5.45 27.84L5.92 28.1L6.41 28.36L6.78 28.52L9.4 23L9.4 23L11.57 17.32L11.48 17.28L11.54 17.32L11.58 17.35L11.61 17.37L11.65 17.36L11.68 17.35L11.71 17.34L11.72 17.36L11.69 17.39L11.64 17.45L11.57 17.5L11.51 17.55L11.46 17.57L11.46 17.56L11.49 17.53L11.55 17.48L11.62 17.44L11.67 17.42L11.67 17.42L11.63 17.43L11.54 17.46L11.43 17.48L11.31 17.5L11.21 17.5L11.13 17.48L11.07 17.46L11.01 17.43L10.94 17.36L10.85 17.25L10.75 17.12L10.64 16.96L10.55 16.8L10.49 16.64L10.45 16.48L10.44 16.32L10.42 16.15L10.39 15.99L10.33 15.82L10.24 15.64L10.12 15.45L9.98 15.25L9.86 15.05L9.77 14.85L9.72 14.65L9.71 14.46L9.72 14.28L9.74 14.1L9.76 13.91L9.77 13.72L9.76 13.52L9.76 13.32L9.76 13.12L9.77 12.91L9.8 12.72L9.83 12.52L9.87 12.32L9.9 12.12L9.93 11.91L9.94 11.69L9.96 11.47L9.98 11.25L10.03 11.03L10.09 10.83L10.18 10.64L10.29 10.46L10.4 10.28L10.5 10.1L10.59 9.91L10.67 9.7L10.75 9.49L10.82 9.27L10.89 9.05L10.98 8.84L11.08 8.63L11.18 8.43L11.3 8.24L11.41 8.04L11.53 7.84L11.64 7.64L11.76 7.44L11.89 7.25L12.02 7.06L12.17 6.88L12.32 6.71L12.47 6.54L12.62 6.37L12.78 6.19L12.92 6.01L13.07 5.82L13.22 5.64L13.37 5.45L13.54 5.28L13.71 5.12L13.88 4.96L14.07 4.82L14.26 4.68L14.45 4.54L14.63 4.4L14.82 4.25L15 4.1L15.19 3.95L15.37 3.8L15.56 3.65L15.75 3.51L15.95 3.36L16.14 3.22L16.33 3.07L16.53 2.92L16.72 2.77L16.92 2.63L17.12 2.49L17.33 2.35L17.53 2.22L17.74 2.09L17.95 1.96L18.16 1.84L18.38 1.71L18.6 1.6ZM15.43 19.03L15.04 18.57L14.58 18.16L14.08 17.82L13.53 17.55L12.94 17.35L12.34 17.21L11.73 17.13L11.12 17.09L10.51 17.08L9.89 17.12L9.28 17.2L8.67 17.34L8.07 17.56L7.5 17.84L6.98 18.2L6.5 18.61L6.06 19.06L5.68 19.54L5.33 20.05L5.02 20.58L4.76 21.12L4.54 21.69L4.39 22.26L4.29 22.85L4.27 23.44L4.3 24.03L4.38 24.6L4.5 25.17L4.66 25.73L4.85 26.29L5.1 26.83L5.41 27.34L5.78 27.81L6.22 28.23L6.72 28.58L7.27 28.86L7.85 29.06L8.45 29.21L9.06 29.31L9.67 29.37L10.29 29.38L10.91 29.35L11.53 29.25L12.14 29.08L12.73 28.85L13.29 28.55L13.82 28.2L14.31 27.8L14.77 27.37L15.19 26.91L15.58 26.41L15.91 25.89L16.18 25.33L16.38 24.75L16.5 24.15L16.55 23.55L16.53 22.96L16.46 22.38L16.35 21.81L16.22 21.26L16.05 20.71L15.85 20.17L15.6 19.64ZM41.6 1.6L41.36 1.64L41.11 1.68L40.86 1.72L40.62 1.76L40.37 1.8L40.12 1.85L39.87 1.9L39.62 1.95L39.38 2L39.13 2.06L38.88 2.13L38.64 2.19L38.39 2.26L38.15 2.34L37.9 2.41L37.66 2.49L37.41 2.57L37.17 2.65L36.92 2.74L36.68 2.83L36.44 2.92L36.2 3.03L35.97 3.14L35.74 3.25L35.51 3.38L35.29 3.51L35.07 3.64L34.85 3.78L34.63 3.92L34.42 4.06L34.2 4.2L33.98 4.34L33.75 4.48L33.53 4.61L33.3 4.75L33.07 4.89L32.85 5.03L32.63 5.18L32.41 5.33L32.19 5.48L31.97 5.64L31.75 5.8L31.52 5.95L31.3 6.11L31.07 6.26L30.83 6.42L30.6 6.58L30.37 6.74L30.14 6.91L29.92 7.09L29.71 7.27L29.5 7.46L29.29 7.66L29.09 7.86L28.88 8.06L28.66 8.25L28.43 8.45L28.19 8.64L27.94 8.83L27.69 9.02L27.44 9.22L27.21 9.43L26.98 9.65L26.77 9.89L26.59 10.14L26.42 10.39L26.26 10.66L26.11 10.93L25.97 11.21L25.83 11.49L25.69 11.76L25.54 12.05L25.4 12.33L25.26 12.61L25.13 12.91L25 13.2L24.89 13.5L24.78 13.8L24.68 14.11L24.58 14.42L24.47 14.73L24.35 15.03L24.21 15.34L24.06 15.66L23.9 15.97L23.74 16.29L23.6 16.62L23.47 16.95L23.38 17.3L23.31 17.69L23.28 18.1L23.29 18.54L23.32 19L23.37 19.46L23.42 19.91L23.47 20.38L23.52 20.85L23.57 21.33L23.63 21.82L23.71 22.31L23.81 22.79L23.96 23.27L24.15 23.73L24.38 24.17L24.64 24.59L24.94 24.98L25.26 25.36L25.59 25.73L25.94 26.08L26.3 26.43L26.68 26.76L27.08 27.08L27.5 27.38L27.94 27.65L28.42 27.89L28.92 28.1L29.44 28.28L29.84 28.37L32.4 23L32.4 23L34.51 17.46L34.45 17.36L34.54 17.32L34.61 17.29L34.67 17.28L34.71 17.27L34.74 17.28L34.76 17.29L34.77 17.3L34.78 17.3L34.79 17.31L34.81 17.31L34.82 17.31L34.82 17.31L34.81 17.33L34.78 17.35L34.72 17.39L34.64 17.43L34.55 17.47L34.43 17.51L34.32 17.54L34.22 17.56L34.13 17.56L34.07 17.55L34.02 17.53L33.99 17.5L33.97 17.47L33.93 17.43L33.89 17.36L33.82 17.25L33.72 17.12L33.61 16.96L33.49 16.8L33.36 16.63L33.24 16.46L33.14 16.28L33.05 16.11L32.99 15.93L32.95 15.76L32.93 15.58L32.92 15.41L32.92 15.23L32.91 15.06L32.9 14.88L32.89 14.7L32.89 14.51L32.88 14.33L32.89 14.14L32.9 13.96L32.93 13.78L32.96 13.6L32.99 13.42L33.03 13.23L33.05 13.04L33.07 12.84L33.07 12.64L33.07 12.42L33.05 12.2L33.04 11.97L33.03 11.74L33.03 11.51L33.04 11.28L33.07 11.06L33.12 10.85L33.18 10.64L33.25 10.44L33.33 10.23L33.41 10.03L33.49 9.83L33.57 9.62L33.65 9.41L33.73 9.2L33.81 8.98L33.9 8.77L34 8.56L34.1 8.36L34.21 8.16L34.33 7.96L34.46 7.77L34.59 7.59L34.72 7.4L34.86 7.21L34.99 7.03L35.13 6.84L35.28 6.66L35.42 6.48L35.58 6.31L35.74 6.14L35.9 5.98L36.07 5.82L36.25 5.67L36.42 5.52L36.6 5.37L36.78 5.22L36.96 5.07L37.13 4.92L37.31 4.77L37.49 4.61L37.66 4.45L37.84 4.29L38.02 4.13L38.2 3.97L38.38 3.81L38.56 3.66L38.75 3.51L38.94 3.36L39.14 3.21L39.33 3.06L39.52 2.92L39.72 2.78L39.92 2.63L40.12 2.49L40.33 2.35L40.53 2.22L40.74 2.09L40.95 1.96L41.16 1.83L41.38 1.71L41.6 1.6ZM38.4 19.06L37.98 18.62L37.52 18.24L37.02 17.9L36.49 17.61L35.93 17.37L35.35 17.18L34.75 17.04L34.14 16.96L33.51 16.93L32.88 16.97L32.26 17.08L31.64 17.27L31.05 17.52L30.5 17.83L29.98 18.2L29.51 18.62L29.08 19.07L28.69 19.56L28.35 20.07L28.05 20.59L27.8 21.14L27.58 21.7L27.42 22.27L27.31 22.85L27.27 23.44L27.28 24.03L27.36 24.61L27.49 25.17L27.69 25.72L27.94 26.24L28.23 26.74L28.57 27.21L28.94 27.65L29.36 28.06L29.82 28.44L30.32 28.77L30.86 29.05L31.43 29.27L32.03 29.42L32.65 29.5L33.29 29.51L33.92 29.44L34.54 29.3L35.15 29.11L35.73 28.85L36.3 28.56L36.83 28.21L37.33 27.83L37.8 27.41L38.23 26.94L38.62 26.44L38.95 25.91L39.22 25.34L39.42 24.76L39.56 24.16L39.64 23.56L39.65 22.95L39.61 22.36L39.52 21.78L39.37 21.21L39.18 20.65L38.95 20.12L38.66 19.6Z' stroke='black' stroke-width='.25' stroke-linejoin='round'/></svg>");
}
.g-rcard__mark {
	width: .62em;
	height: .43em;
	overflow: hidden;
	color: transparent;
	background: var(--accent);
	-webkit-mask: var(--brush-quote) 0 0 / contain no-repeat;
	mask: var(--brush-quote) 0 0 / contain no-repeat;
	user-select: none;
}
.g-rcard__mark { display: block; }

/* ═════════ 약도: 가는 선도 모두 붓 획(.dev/map-gen.mjs 가 채운 윤곽으로 만든다) ═════════ */
.g-map__bld path { stroke: none; }
.g-map__bldl { fill: rgba(35, 33, 28, .3); }
.g-map__edge { fill: rgba(35, 33, 28, .34); }
.g-map__lane { fill: rgba(35, 33, 28, .3); stroke: none; }
.g-map__key, .g-map__goal { stroke: none; }
.g-map__key-l { fill: rgba(35, 33, 28, .6); }
.g-map__goal-l { fill: var(--accent); }
.g-map__walk { fill: var(--accent); stroke: none; }
.g-map__walk--big { display: none; }
/* 휴대폰: 약도가 작게 보여(그림 1 단위 ≈ 0.6px) 걷는 길은 점을 크게 한 길로 */
@media (max-width: 767.98px) {
	.g-map__walk { display: none; }
	.g-map__walk.g-map__walk--big { display: inline; }
}
.g-map__exit, .g-map__exit circle { stroke: none; }   /* 묶음의 외곽선이 숫자 · 붓 동그라미에 물려 글자가 뭉개졌다 */
.g-map__ring { fill: var(--ink); }

/* ═════════ 휴대폰: 잠시 멈추기 4px 작게 · 그 아래 여백 절반(후기 번호 · 사진 번호는 모든 화면에서 뺐다) ═════════ */
@media (max-width: 767.98px) {
	.g-review__top .g-pause.g-btn { font-size: clamp(18px, calc(20px + (100vw - 390px) * .0114), 28px); }
	.g-review__top { padding-bottom: 0; }
	.g-marquee--reviews { padding-top: 12px; }
}

/* ═════════ 휴대폰 상담 카드: 한자 · 세로 이름은 왼쪽, 설명은 카드 가로 가운데(50%)부터 · 아래 끝을 한자 쪽 아래 끝에 맞춘다 ═════════ */
@media (max-width: 599.98px) {
	/* 마지막 칸을 50% 로 두면 그 칸은 늘 가운데에서 시작한다(앞 두 칸과 사이 간격이 나머지 절반) */
	.g-card, .g-card--wide { grid-template-columns: auto minmax(0, 1fr) 50%; }
	.g-card .g-card__hanja { grid-column: 1; grid-row: 1; }
	.g-card .g-card__title { grid-column: 2; grid-row: 1; justify-self: start; }
	.g-card .g-card__list { grid-column: 3; grid-row: 1; align-self: end; margin: 0; }
}

/* ═════════ 휴대폰 두 동그라미: 그리기 시작할 때까지 감춘다(main.js 가 그 순간 보이게 한다) ═════════ */
@media (max-width: 899.98px) {
	.ha-js .g-venn__ring,
	.g-anim .g-venn__ring { visibility: hidden; }
}

/* ═════════ 휴대폰 바닥 정보: 줄 사이 · 맨 위 · 맨 아래 옅은 선 모두 없이(대표 ↔ 주소 ↔ 사업자등록번호), 줄 사이도 좁게 ═════════ */
@media (max-width: 767.98px) {
	.g-footer__info,
	.g-footer__row { background-image: none; }
	.g-footer__row { padding: 5px 0; }
}

/* ═════════ 휴대폰 무대 문장: '그래서 타고난 천성은 …' 2px 크게 · 행간 넓게 · 위 문장과 사이 두 배 ═════════ */
@media (max-width: 767.98px) {
	.g-stage__pin { gap: 28px; }
	.g-stage__line { font-size: clamp(35px, calc(38px + (100vw - 390px) * .0106), 66px); line-height: 1.35; }
}

/* ═════════ 휴대폰 상담 카드: 세로 이름 2px 작게 · 가로 항목 16px · 항목 행간 넓게(1.45 → 1.8, 아래 끝은 그대로 맞춘다) ═════════ */
@media (max-width: 599.98px) {
	.g-card__title { font-size: 27px; }
	.g-card__list li { font-size: 16px; line-height: 1.8; }
	.g-card__list li::before,
	.g-card__list li:nth-child(n)::before { top: .9em; }   /* 앞 붓선은 첫 줄 가운데(행간의 절반) */
}

/* ═════════ 휴대폰 두 문장 무대: 오른쪽 위 命 · 왼쪽 아래 運 한 글자씩 크게 · 흐리게(inc/options.php garam_stage_ink_big) ═════════
   주인이 고른 붓글씨 그림(먹색 투명 그림 — .dev/ink-hanja.py). 그림 안 글자 먹 상자(--gx0 · --gy0 · --gx1 · --gy1, 모두 그림 폭 대비)를 기준으로 놓는다.
   命 은 위 문장 바로 위(묶음 위 끝 + 36px — 흐리게 깔리고 글이 위에)까지 위로, 運 은 아래 문장 바로 밑(묶음 아래 끝 + 4px)부터
   아래로 — 글자 폭의 18%는 화면 옆 끝 밖. 그림 폭은 340px 까지. 命 은 묶음 위 공간에 100px 을 더한 높이에 맞는 크기로 그보다 64px
   올려 놓아 윗부분(지붕 획)은 머리글 뒤로 가린다. 運 은 문장 아래 공간이 화면 아래 60px 앞까지일 때의 크기(화면이 짧으면 작아진다)로
   그만큼 내려 놓아 아랫부분은 상담 막대 뒤로 가린다.
   화면 높이는 주소창이 접힌 높이(100vh)로 재어 크기를 고정한다 — 보이는 높이(dvh)로 재면 스크롤해 주소창이 접히는 순간
   運 이 갑자기 커졌다.
   문장 묶음 위 · 아래 끝(--ink-a · --ink-b)은 main.js 가 고정 칸 기준으로 잰다. 무대가 위로 빠지면 막대 뒤에 있던 運 아래가 드러난다.
   마스크 · 작은 글자 줄은 두지 않는다(겹친 마스크 층이 히어로 스크롤까지 무겁게 했다). */
.g-ink { display: none; }
@media (max-width: 767.98px) {
	/* 문장 묶음 위 · 아래 끝(main.js 가 재어 넣는다) — 재기 전에는 가운데에서 118px */
	.g-anim .g-stage__pin { --ink-a: calc(50vh - 118px); --ink-b: calc(50vh + 118px); }
	/* 칸은 고정 무대(100svh)가 아니라 보이는 화면까지 — 주소창이 접혀 화면이 길어져도 運 이 상담 막대에 맞는다 */
	.g-anim .g-ink { display: block; position: absolute; inset: 0; bottom: calc(100svh - 100dvh); z-index: 0; overflow: hidden; pointer-events: none; }
	.g-anim .g-stage__head,
	.g-anim .g-stage__swap { position: relative; z-index: 1; }
	img.g-ink__big--tr { --ink-w: min(476px, 122vw, calc(1.4 * (var(--ink-a) + 56px) / (var(--gy1) - var(--gy0)))); }
	img.g-ink__big {
		position: absolute;
		width: var(--ink-w);
		height: auto;
		max-width: none;
		opacity: .08;   /* .2 → .13 → .08 더 옅게(주인 요청) */
	}
	/* 命: 오른쪽으로 56px 더(글자 오른쪽이 화면 밖으로 더 나간다) · 예전의 1.4배(높이 = (문장 위끝 + 56px) × 1.4) · 먹 윗끝은 화면 위
	   -30px(예전 20px 에서 50px 위로 — 머리글 뒤 · 화면 밖으로 잘린다, 디자인 요소라 괜찮다) */
	img.g-ink__big--tr {
		top: calc(-30px - var(--gy0) * var(--ink-w));
		right: calc((var(--gx1) - 1 - .18 * (var(--gx1) - var(--gx0))) * var(--ink-w) - 56px);
	}
	/* 運: 크기는 그대로(먹 높이 = 100svh - 30px - 묶음 아래 끝 + 100px), 60px 더 아래로 — 먹 윗끝은 묶음 아래 끝 - 40px, 아랫끝은
	   칸 아래 끝(100svh) 밖 30px 까지라 상담 막대 뒤 · 칸 끝에서 조금 잘린다(디자인 요소라 괜찮다). 옆끝은 화면 왼쪽 밖 32px */
	img.g-ink__big--bl {
		--ink-w: min(380px, 94vw, calc((100svh - 30px - var(--ink-b) + 100px) / (var(--gy1) - var(--gy0))));
		top: calc(var(--ink-b) - 40px - var(--gy0) * var(--ink-w));
		left: calc(-32px - var(--gx0) * var(--ink-w));   /* 왼쪽으로 16px 더(주인 요청) */
	}
	/* 그림이 없을 때(글자) */
	.g-ink__big--text {
		position: absolute;
		font-family: "Yuji Boku", var(--font-serif);
		font-size: min(300px, 76vw);
		font-weight: 400;
		line-height: 1;
		color: var(--ink);
		opacity: .09;
	}
	.g-ink__big--text.g-ink__big--tr { top: -40px; right: calc(-.2em - 56px); font-size: min(420px, 106vw); }
	.g-ink__big--text.g-ink__big--bl { top: calc(var(--ink-b) - 40px); left: -16px; font-size: min(320px, 80vw); }
}
/* 넓은 화면: 같은 두 글자를 틀 안 양쪽에 크게 — 잘리지 않고 다 보이게 칸 안에 맞춘다. 크기는 예전의 1.5배(주인 요청)라
   문장 뒤로 엷게 겹친다.
   命 은 오른쪽 위: 먹 윗끝은 머리글(64px) 아래 20px, 높이 = (문장 묶음 위끝 + 56px) × 1.5.
   運 은 왼쪽 아래: 먹 아랫끝은 화면 아래 24px 위, 높이 = (화면 높이 - 묶음 아래 끝 + 86px) × 1.5 — 무대가 풀려 올라갈 때도
   칸 끝(화면 높이)에 잘리지 않는다. 먹 옆끝은 틀 옆선에서 틀 폭의 3% · 2% 안쪽(두 글자는 가로로 겹치지 않는다) */
@media (min-width: 768px) {
	.g-anim .g-stage__pin { --ink-a: calc(50vh - 90px); --ink-b: calc(50vh + 90px); }   /* main.js 가 재기 전 */
	.g-anim .g-ink { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
	.g-anim .g-stage__head,
	.g-anim .g-stage__swap { position: relative; z-index: 1; }
	img.g-ink__big--tr { --ink-w: min(1350px, 60vw, calc(1.5 * (var(--ink-a) + 56px) / (var(--gy1) - var(--gy0)))); }
	img.g-ink__big--bl { --ink-w: min(1350px, 66vw, calc(1.5 * (100vh - var(--ink-b) + 86px) / (var(--gy1) - var(--gy0)))); }
	img.g-ink__big {
		position: absolute;
		width: var(--ink-w);
		height: auto;
		max-width: none;
		opacity: .08;   /* 주인이 준 붓글씨(먹이 꽉 찬 오려낸 SVG — .dev/ink-hanja.py)라 휴대폰과 같게 엷게(.18 → .13 → .08) */
	}
	img.g-ink__big--tr {
		top: calc(84px - var(--gy0) * var(--ink-w));
		right: calc(3% + (var(--gx1) - 1) * var(--ink-w));
	}
	img.g-ink__big--bl {
		top: calc(100vh - 24px - var(--gy1) * var(--ink-w));
		left: calc(2% - var(--gx0) * var(--ink-w));
	}
	/* 그림이 없을 때(글자) */
	.g-ink__big--text {
		position: absolute;
		font-family: "Yuji Boku", var(--font-serif);
		font-size: min(560px, 38vw);
		font-weight: 400;
		line-height: 1;
		color: var(--ink);
		opacity: .12;
	}
	.g-ink__big--text.g-ink__big--tr { top: 84px; right: 3%; font-size: min(570px, 39vw); }
	.g-ink__big--text.g-ink__big--bl { bottom: 24px; left: 2%; font-size: min(570px, 39vw); }
}
/* 넓은 화면(PC) 자리 — 주인 그림대로 두 글자를 화면 끝에 걸친다.
   命: 오른쪽 위 구석, 윗부분이 머리글(64px) 밑으로 들어가 잘리고 오른쪽 끝도 틀 밖으로 2% (먹 높이 화면의 74%).
   運: 왼쪽 아래, 먹 윗끝이 화면 높이 50% 에서(조금 더 위로) 시작해 아랫부분은 화면 아래로 넘어간다(먹 높이 78%) — 무대가 풀려 올라가면
   그 아래가 두 동그라미 왼쪽 위로 드러난다. 그래서 그림 칸은 아래로만 잘리지 않게 열고(clip-path), 동그라미 묶음을 먹보다 위에 둔다.
   세로선이 있는 좁은 창(768px~)도 같은 자리 — 예전엔 900px 아래에서 위 규칙(문장 위 · 아래 기준)으로 돌아가 두 글자가 가운데에서 크게 겹쳤다. */
@media (min-width: 768px) {
	.g-anim .g-ink { overflow: visible; clip-path: inset(0 0 -120vh 0); }
	img.g-ink__big--tr {
		--ink-w: min(38vw, calc(74vh / (var(--gy1) - var(--gy0))));
		top: calc(64px - 15vh - var(--gy0) * var(--ink-w));
		right: calc(-2% - 20px + (var(--gx1) - 1) * var(--ink-w));   /* 오른쪽으로 20px 더 */
	}
	img.g-ink__big--bl {
		--ink-w: min(45vw, calc(78vh / (var(--gy1) - var(--gy0))));   /* 먹 높이 90vh → 78vh 로 조금 작게 */
		top: calc(50vh - 40px - var(--gy0) * var(--ink-w));   /* 위로 20px, 다시 20px */
		left: calc(-2% - 10px - var(--gx0) * var(--ink-w));   /* 왼쪽으로 10px */
	}
	.g-anim .g-venn { position: relative; z-index: 2; }
}
/* 좁은 창(~1199px): 폭 한도(38 · 45vw)에 먼저 걸려 넓은 화면보다 글자가 작아 보였다 — 한도를 넓혀 높이 비율을 넓은 화면에 가깝게.
   두 글자 먹은 그래도 가로로 겹치지 않는다(命 왼끝 ≈ 폭 59%, 運 오른끝 ≈ 46%) */
@media (min-width: 768px) and (max-width: 1199.98px) {
	img.g-ink__big--tr { --ink-w: min(44vw, calc(74vh / (var(--gy1) - var(--gy0)))); }
	img.g-ink__big--bl { --ink-w: min(50vw, calc(78vh / (var(--gy1) - var(--gy0)))); }
}

/* ═════════ 휴대폰 상담 카드: 한자 윗끝을 세로 이름 윗끝에 맞춘다 ═════════
   세로쓰기(vertical-rl)는 글자 칸 안에서 글자를 놓는 높이가 브라우저마다 달라(사파리에서 한자가 10~19px 처졌다) 맞출 수 없어
   한 글자씩 가로로 쌓는다 — 칸 폭 1em, 글자 사이 한자 1em + .04em, 이름 1em + .02em.
   글자마다 칸 안에서 획이 시작하는 높이도 달라(四 는 낮다) 첫 글자 먹 윗끝의 차이만큼 main.js 가 한자를 옮긴다(--hanja-dy). */
@media (max-width: 599.98px) {
	.g-card .g-card__hanja,
	.g-card .g-card__title { writing-mode: horizontal-tb; width: 1em; text-align: center; word-break: break-all; letter-spacing: 0; }
	.g-card .g-card__hanja { line-height: 1.04; top: var(--hanja-dy, 0px); }
	.g-card .g-card__title { line-height: 1.02; }   /* 세로 이름 글자 사이 살짝 넓게(.94 였다) */
}
/* 세로쓰기 그대로인 넓은 휴대폰 · 작은 태블릿도 이름 자간을 살짝 넓게(-.06em 였다) */
@media (min-width: 600px) and (max-width: 767.98px) {
	.g-card__title { letter-spacing: -.02em; }
}

/* ═════════ 머리글 메뉴: 올리면 버튼처럼 글자 밑에 붉은 붓줄 · 지금 보고 있는 구역은 붉은 글자 ═════════
   붓줄은 왼쪽부터 그어진다 — 창(.g-nav__ul)은 왼쪽에서 들어오고 붓(::before)은 같은 만큼 거꾸로 움직여 제자리에 머문다.
   둘 다 transform 이라 합성기에서 돈다(예전 clip-path 는 프레임마다 다시 그려 버벅였다). 떼면 되돌아가지 않고 바로 사라진다 */
.g-nav__label { position: relative; }
.g-nav__ul {
	position: absolute;
	left: -.06em; right: -.1em; bottom: -.1em;
	height: .26em;
	overflow: hidden;
	pointer-events: none;
	transform: translateX(-101%);
}
.g-nav__ul::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--brush-thick-red) 0 0 / 100% 100% no-repeat;
	transform: translateX(101%);
}
@media (hover: hover) and (pointer: fine) {
	.g-nav__link:hover { color: var(--ink); }
	.g-nav__link:hover .g-nav__ul,
	.g-nav__link:hover .g-nav__ul::before { transform: none; transition: transform .45s cubic-bezier(.3, .6, .2, 1); }
}
:where(.g-kbd) .g-nav__link:focus .g-nav__ul,
:where(.g-kbd) .g-nav__link:focus .g-nav__ul::before,
:where(html:not(.g-js)) .g-nav__link:focus-visible .g-nav__ul,
:where(html:not(.g-js)) .g-nav__link:focus-visible .g-nav__ul::before { transform: none; }
.g-nav__link.is-active,
.g-nav__link.is-active:hover { color: var(--accent); }

/* ═════════ '가람' 낙관은 원장 문장 제목(읽고, 조절합니다) 끝 — 마지막 글자 옆, 윗변을 그 글자 먹 윗끝에 맞춰(히어로 제목 끝에서 옮겨 왔다).
   휴대폰: 두 문장 무대의 '질과 양' 밑 붓선은 두 배 굵게(.2 → .4em — 굵어진 만큼 위로 올려 글자 밑 자리는 그대로) ═════════ */
/* 낙관은 줄 폭을 차지하지 않는다(오른쪽 여백 -.76em) — 제목 칸이 빠듯한 폭(1180 ~ 1366px)에서 낙관 때문에 제목이 두 줄로 꺾이지 않고
   낙관이 칸 오른쪽 여백으로 걸쳐 나간다. 제목이 원래 꺾이는 폭에서도 마지막 낱말과 떨어지지 않는다(.g-title__end) */
.g-service__head .g-title__end { white-space: nowrap; }
.g-service__head .ha-stamp { display: inline-block; width: .62em; height: .62em; margin: 0 -.76em 0 .14em; vertical-align: .08em; }
.g-service__head .ha-stamp__img { display: block; width: 100%; height: 100%; }
@media (max-width: 899.98px) {
	.g-stage__under { height: .4em; margin-top: -.1em; }
	html:not(.g-anim) .g-ch--mark { background-size: 100% .4em; }
}
