/* =========================================================
   심원 고성주 박사 작명원
   ========================================================= */
:root {
  --bg: #faf6ee;
  --bg-soft: #f5eee2;
  --card: rgba(255, 253, 248, 0.86);
  --line: #e6dccb;
  --ink: #2f2a25;
  --ink-soft: #37322c;
  --muted: #554d44;
  --green: #2c4133;
  --gold: #a4732f;
  --gold-soft: #c9a36a;
  --brown: #7b5130;
  --brown-dark: #5f3c22;
  --red: #8e2f22;

  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --body: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", "Malgun Gothic", sans-serif;
  --hand: "Nanum Pen Script", cursive;

  --header-h: 76px;
  --hero-top: 64px; /* 페이지 첫 제목(eyebrow) 시작 위치 */
  --wrap: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(96, 72, 40, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  word-break: keep-all;
  overflow-x: hidden;
  /* 내용이 짧아도 푸터는 화면 맨 아래에 — 남는 높이는 마지막 섹션(산수화 배경)이 채움 */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > :last-child { flex-grow: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.3; }
ul { margin: 0; padding: 0; list-style: none; }

/* 스크롤바는 필요할 때만 보이고, 가운데 정렬은 스크롤바를 뺀 폭이 아니라 화면 전체 폭(100vw) 기준 —
   스크롤이 있는 페이지와 없는 페이지 사이에서 헤더·본문이 좌우로 밀리지 않게 */
.wrap {
  --wrap-left: max(0px, (100vw - var(--wrap)) / 2);
  width: 100%; max-width: min(var(--wrap), 100% - var(--wrap-left));
  margin: 0 auto 0 var(--wrap-left); padding: 0 32px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(252, 249, 243, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 56px; height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; color: #1f1c19; }
.brand-sub { margin-top: 4px; font-family: var(--serif); font-size: 10.5px; letter-spacing: 0.24em; color: var(--muted); text-align: center; }

.gnb { margin-left: auto; }
.gnb ul { display: flex; gap: 6px; }
.gnb a {
  position: relative; display: block;
  padding: 8px 18px;
  font-family: var(--sans); font-size: 16.5px; font-weight: 500; color: var(--ink);
  transition: color .2s;
}
.gnb a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -14px;
  height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.gnb a:hover { color: var(--gold); }
.gnb a[aria-current="page"] { color: var(--gold); }
.gnb a[aria-current="page"]::after { transform: scaleX(1); }

.btn-call {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-family: var(--sans); font-size: 16.5px; font-weight: 500; letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(123, 81, 48, 0.25);
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.btn-call:hover { background: var(--brown-dark); transform: translateY(-1px); }
.btn-call svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ink);
}
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 0; /* 높이는 글 길이로 — 본문 끝 → 아래 카드 간격을 모든 페이지에서 동일하게 */
  display: flex; align-items: flex-start; /* 제목 시작 위치를 모든 페이지에서 동일하게 (위 기준 정렬) */
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0 0 0 auto;
  width: 72%;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 28%, rgba(250,246,238,.85) 40%, rgba(250,246,238,0) 62%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 6%, rgba(250,246,238,0) 34%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: var(--hero-top); padding-bottom: 120px; }
.hero-content { max-width: 660px; }

.eyebrow { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink-soft); margin-bottom: 14px; }
.hero-title { font-size: 46px; letter-spacing: -0.02em; color: var(--green); }
.hero-title .gold { color: var(--gold); }
.hero-title.xl { font-size: 58px; line-height: 1.28; }
.hero-title.xl .lead { display: block; font-size: 25px; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.hero-title .big { font-size: 1.14em; }
.rule { width: 40px; height: 1px; background: var(--gold-soft); margin: 26px 0; }
/* 모든 페이지 공통 글 간격 (홈 기준): 제목 → 24px → 문단 → 금색 선(위아래 26px) → 문단 */
.hero-title + .hero-text { margin-top: 24px; }
.hero-text p { color: var(--ink-soft); font-size: 18.5px; }
.hero-text p + p { margin-top: 16px; }

.hand-note {
  position: absolute; z-index: 2;
  top: 34px; right: 40px;
  font-family: var(--hand); font-size: 27px; line-height: 1.15;
  color: #3d4a3e; text-align: right;
  text-shadow: 0 0 6px rgba(252,248,240,.95), 0 0 14px rgba(252,248,240,.9), 0 0 24px rgba(252,248,240,.8);
  transform: rotate(-3deg);
}
.hand-note span { display: block; }
.hand-note span:nth-child(2) { margin-right: 14px; }
.hand-note img { width: 50px; margin: 6px 0 0 auto; }

/* 홈: 사진을 카드/산수화 뒤까지 크게 이어지게 */
.hero-extend { overflow: visible; overflow-x: clip; min-height: 0; }
.hero-extend .wrap { padding-bottom: 100px; }
.hero-extend + .scenery .feature-card { margin-top: -40px; }
.hero-extend::before { background: none; }
.hero-extend .hero-media {
  top: 0; bottom: -140px; right: 0; left: auto;
  width: auto; aspect-ratio: 1619 / 971;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero-extend .hero-media img { object-position: right top; }

/* ---------- Bottom scenery (mountains + quote) ---------- */
.scenery {
  position: relative;
  overflow-x: clip; /* 양옆 꽃 장식이 화면 밖으로 삐져나가 가로 스크롤이 생기지 않게 */
  padding-bottom: 120px;
}
.scenery::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 480px;
  background: url("../img/footer-mountains.webp") center bottom / cover no-repeat;
  opacity: .95; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%);
  mask-image: linear-gradient(180deg, transparent 0, #000 28%);
}
.scenery > * { position: relative; z-index: 1; }
.deco-branch {
  position: absolute; z-index: 0; right: -40px; bottom: 60px;
  width: 190px; opacity: .9; pointer-events: none;
}
.deco-flowers {
  position: absolute; z-index: 2; left: -30px; bottom: 90px;
  width: 200px; pointer-events: none;
}
.deco-flowers.right { left: auto; right: -30px; bottom: 0; transform: scaleX(-1); }

/* feature trio card */
.feature-card {
  margin-top: -60px; /* 본문 끝 → 카드 60px (홈과 동일) */
  background: var(--card);
  border: 1px solid rgba(230, 220, 203, .8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 34px 32px 30px;
}
.features { display: grid; grid-template-columns: 1fr 1fr 1.25fr; }
.feature h3, .feature p { white-space: nowrap; }
.feature { display: flex; align-items: center; gap: 22px; padding: 4px 28px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature img { width: 76px; height: 76px; flex-shrink: 0; }
.feature h3 { font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.feature p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.quote {
  text-align: center;
  font-family: var(--serif); font-weight: 500;
  font-size: 23px; line-height: 1.6;
  color: var(--brown);
  padding: 30px 0 0;
}
.quote::before, .quote::after { font-size: 1.5em; line-height: 0; vertical-align: -0.1em; color: var(--gold); }
.quote::before { content: "\201C"; margin-right: .4em; }
.quote::after { content: "\201D"; margin-left: .4em; }
.feature-card .quote { padding-top: 26px; margin-top: 22px; }

.phone-line {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 22px;
  font-family: var(--serif); font-size: 18px; color: var(--ink);
}
.phone-line::before, .phone-line::after { content: ""; width: 60px; height: 1px; background: var(--gold-soft); }
.phone-line a { display: inline-flex; align-items: center; gap: 10px; }
.phone-line svg { width: 17px; height: 17px; color: var(--brown); }
.phone-line a:hover { color: var(--brown); }

/* ---------- Criteria (작명 기준) ---------- */
.criteria {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: -60px;
  background: rgba(255, 253, 248, .6);
  border-radius: var(--radius);
}
.criterion {
  position: relative;
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 26px;
}
.criterion:nth-child(3n+2), .criterion:nth-child(3n+3) { border-left: 1px solid var(--line); }
.criterion:nth-child(n+4) { border-top: 1px solid var(--line); }
.criterion .num {
  position: absolute; left: 12px; top: 18px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; color: var(--brown);
  background: #f4e6dc;
}
.criterion:nth-child(2) .num, .criterion:nth-child(5) .num { background: #e7ecd9; }
.criterion:nth-child(3) .num, .criterion:nth-child(6) .num { background: #e3e9ea; }
.criterion:nth-child(4) .num { background: #f3e8d5; }
.criterion img { width: 84px; height: 84px; flex-shrink: 0; margin-left: 18px; }
.criterion h3 { font-size: 20px; margin: 6px 0 6px; }
.criterion p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.banner {
  position: relative;
  margin-top: 34px;
  padding: 26px 190px 24px;
  border-radius: var(--radius);
  background: #fcf3e5 url("../img/banner-flowers-cloud.webp") left center / cover no-repeat;
  text-align: center;
  box-shadow: var(--shadow);
}
.banner strong {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: 25px; letter-spacing: .02em; color: var(--brown);
}
.banner p { margin-top: 6px; font-family: var(--serif); font-size: 18px; color: var(--ink-soft); }
.banner-inner { max-width: 760px; margin: 0 auto; }

/* ---------- Director (원장 소개) ---------- */
.director {
  position: relative;
  display: flex; align-items: flex-start;
  min-height: min(calc(100vh - var(--header-h)), 900px);
  overflow: hidden;
}
/* 다른 페이지와 같은 구성: 글은 왼쪽(컨테이너 정렬), 사진은 오른쪽에서 부드럽게 흐려지며 배경처럼 */
.director-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(54%, calc((100vh - var(--header-h)) * 0.8));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.6) 10%, #000 22%), linear-gradient(0deg, transparent 0, #000 10%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.6) 10%, #000 22%), linear-gradient(0deg, transparent 0, #000 10%);
  mask-composite: intersect;
}
.director-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.director .wrap { position: relative; z-index: 2; padding-top: var(--hero-top); padding-bottom: 64px; }
.director-body { max-width: 700px; }
.director-name { font-size: 50px; letter-spacing: -0.02em; color: #1f1c19; }
.director-name .red { color: var(--red); }
.director-name .red small { font-size: .72em; }
.director-lead { margin-top: 14px; font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--brown); }
.leaf-rule { display: flex; align-items: center; gap: 12px; margin: 26px 0; }
.leaf-rule::before, .leaf-rule::after { content: ""; flex: 1; height: 1px; background: var(--gold-soft); opacity: .7; }
.leaf-rule img { width: 26px; }
.director-intro p { font-size: 18px; color: var(--ink-soft); }

.profile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 20px;
}
.profile-card h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 12px; }
.profile-card h3 img { width: 44px; height: 44px; }
.profile-card:first-child h3 { color: var(--green); }
.profile-card:last-child h3 { color: var(--brown); }
.profile-card li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.profile-card li + li { margin-top: 7px; }
.profile-card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.profile-card:last-child li::before { background: var(--red); }
.profile-card li small { display: block; margin-top: 2px; padding-left: 1.1em; text-indent: -1.1em; font-size: 13.5px; color: var(--muted); }
/* 책 제목 두 줄일 때 둘째 줄을 『 다음 글자에 맞춤 */
.profile-card .book { display: block; padding-left: 1em; text-indent: -1em; }
.profile-card li small { margin-left: 1em; }

.quote-card {
  margin-top: 16px;
  padding: 24px 24px 20px;
  border-radius: var(--radius);
  background: #f5ecdb url("../img/quote-plum-landscape.webp") center / cover no-repeat;
  text-align: center;
}
.quote-card .quote { padding: 0; font-size: 22px; }
.quote-card .sign { margin-top: 10px; font-family: var(--serif); font-size: 15px; color: var(--ink-soft); }

/* ---------- Guide (이용 안내) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -60px; }
.service {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service img { width: 84px; height: 84px; flex-shrink: 0; }
.service h3 { font-size: 21px; color: var(--brown); margin-bottom: 4px; }
.service p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.sec-title {
  display: flex; align-items: center; gap: 14px;
  margin: 38px 0 18px;
  font-size: 21px; color: var(--brown);
}
.sec-title img { width: 36px; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--gold-soft); opacity: .6; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; display: flex; align-items: center; gap: 16px; padding: 4px 22px 4px 0; }
.step + .step { padding-left: 22px; }
.step + .step::before {
  content: ""; position: absolute; left: -4px; top: 50%;
  width: 10px; height: 10px; border-top: 1px solid var(--gold-soft); border-right: 1px solid var(--gold-soft);
  transform: translateY(-50%) rotate(45deg);
}
.step .num {
  position: absolute; left: -6px; top: -8px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; color: var(--brown); background: #f4e6dc;
}
.step + .step .num { left: 16px; }
.step:nth-child(2) .num { background: #e7ecd9; }
.step:nth-child(3) .num { background: #e3e9ea; }
.step:nth-child(4) .num { background: #f3e8d5; }
.step img { width: 70px; height: 70px; flex-shrink: 0; }
.step h3 { font-size: 19px; margin-bottom: 2px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.contact-bar {
  display: flex; align-items: center;
  margin-top: 28px;
  padding: 18px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-bar h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; color: var(--brown); padding-right: 30px; flex-shrink: 0; }
.contact-bar h2 img { width: 30px; }
.contact-list { display: flex; flex: 1; }
.contact-list li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; border-left: 1px solid var(--line); font-family: var(--serif); font-size: 17.5px; }
.contact-list li:first-child { flex: .9; }
.contact-list li:last-child { flex: 1.3; font-size: 16px; }
.contact-list .ic {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brown); color: #fff;
}
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list a:hover { color: var(--brown); }

.closing { text-align: center; padding-top: 40px; }
.closing .quote { padding: 0; font-size: 25px; font-weight: 600; }
.closing .sign { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; font-family: var(--serif); font-size: 16px; color: var(--ink-soft); }
.closing .sign::before, .closing .sign::after { content: ""; width: 60px; height: 1px; background: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  background: #f1e9db;
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
  font-size: 14px; color: var(--muted); line-height: 1.8;
}
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); }
.footer-brand img { width: 40px; height: 40px; }
.footer-info span + span::before { content: "|"; margin: 0 10px; color: #cbbfa9; }
.footer-info a:hover { color: var(--brown); }
.copyright { width: 100%; font-size: 13px; color: #968b7d; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .gnb a { padding: 8px 12px; }
  .gnb a::after { left: 12px; right: 12px; }
  .brand-name { font-size: 22px; }
  .btn-call { padding: 10px 18px; font-size: 15.5px; }
  .feature { padding: 4px 18px; gap: 16px; }
  .feature img { width: 64px; height: 64px; }
  .feature h3 { font-size: 19px; }
  .feature p { font-size: 15px; }
  .director-name { font-size: 42px; }
  .step img { width: 58px; height: 58px; }
}

@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 24px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9px; }
  .menu-toggle { display: block; }
  .site-header .btn-call { display: none; }

  .gnb {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    background: rgba(252, 249, 243, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(60, 40, 20, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .gnb { transform: none; opacity: 1; visibility: visible; }
  .gnb ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .gnb li + li { border-top: 1px solid var(--line); }
  .gnb a { padding: 15px 4px; font-size: 17px; }
  .gnb a::after { display: none; }
  .gnb .gnb-call { display: flex; margin-top: 14px; justify-content: center; }

  .features { grid-template-columns: 1fr; }
  .feature h3, .feature p { white-space: normal; }
  .feature { padding: 18px 4px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }

  .criteria { grid-template-columns: 1fr 1fr; }
  .criterion { border: 0 !important; }
  .criterion:nth-child(n+3) { border-top: 1px solid var(--line) !important; }
  .criterion:nth-child(even) { border-left: 1px solid var(--line) !important; }

  .services { grid-template-columns: 1fr; }
  .banner { padding-left: 150px; padding-right: 150px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(3)::before { display: none; }
  .step:nth-child(3) .num { left: -6px; }

  .contact-bar { flex-direction: column; align-items: stretch; padding: 22px 22px; }
  .contact-bar h2 { padding: 0 0 12px; justify-content: center; }
  .contact-list { flex-direction: column; }
  .contact-list li { justify-content: flex-start; border-left: 0; border-top: 1px solid var(--line); padding: 12px 4px; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; inset: auto; width: 100%; height: 440px; }
  .hero::before {
    top: 0; bottom: auto; height: 440px;
    background:
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 8%, rgba(250,246,238,0) 50%),
      linear-gradient(90deg, rgba(250,246,238,.55) 0%, rgba(250,246,238,0) 40%);
  }
  .hero-media img { object-position: 70% center; }
  .hero .wrap { margin-top: -60px; padding-top: 0; padding-bottom: 100px; }
  .hero-content { max-width: none; }
  .hero-extend + .scenery .feature-card { margin-top: -60px; }
  .hero-extend .hero-media { top: auto; bottom: auto; width: 100%; aspect-ratio: auto; height: 440px; -webkit-mask-image: none; mask-image: none; }
  .hero-extend .hero-media img { object-position: 70% 30%; }

  .director { display: block; min-height: 0; }
  .director-photo {
    position: relative; width: 100%; height: 600px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 22%);
    mask-image: linear-gradient(0deg, transparent 0, #000 22%);
  }
  .director-photo > img { object-position: center 20%; }
  .director .wrap { margin-top: -30px; padding-top: 0; padding-bottom: 56px; }
  .director-body { max-width: none; }
}
@media (min-width: 1021px) { .gnb .gnb-call { display: none; } }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 8px; letter-spacing: .18em; }

  .hero-media, .hero::before, .hero-extend .hero-media { height: 300px; }
  .hero .wrap { margin-top: -40px; padding-bottom: 60px; }
  /* 모바일: 사진 오른쪽 인물을 가리지 않게 손글씨 문구를 왼쪽 위로 */
  .hand-note { top: 16px; right: auto; left: 16px; font-size: 21px; text-align: left; transform: rotate(-3deg); }
  .hand-note span:nth-child(2) { margin-right: 0; margin-left: 14px; }
  .hand-note img { width: 36px; margin: 6px 0 0 20px; }
  .eyebrow { font-size: 17px; margin-bottom: 8px; }
  .hero-title { font-size: 30px; }
  .hero-title.xl { font-size: 38px; }
  .hero-title.xl .lead { font-size: 19px; margin-bottom: 8px; }
  .rule { margin: 20px 0; }
  .hero-text p { font-size: 16px; }
  .hero-text br { display: none; }

  .feature-card, .criteria, .services { margin-top: -20px; }
  .hero-extend + .scenery .feature-card { margin-top: -20px; }
  .feature-card { padding: 14px 20px 26px; }
  .feature img { width: 60px; height: 60px; }
  .quote { font-size: 19px; }
  .quote br { display: none; }
  .phone-line::before, .phone-line::after { width: 36px; }

  .criteria { grid-template-columns: 1fr; }
  .criterion { padding: 22px 8px; }
  .criterion:nth-child(n+2) { border-top: 1px solid var(--line) !important; }
  .criterion:nth-child(even) { border-left: 0 !important; }
  .criterion .num { left: 0; }
  .criterion img { width: 70px; height: 70px; }
  .banner { padding: 20px 14px 20px 118px; background-size: auto 104px; background-position: left center; }
  .banner strong { font-size: 19px; }
  .banner p { font-size: 15.5px; }

  .steps { grid-template-columns: 1fr; row-gap: 18px; }
  .step, .step + .step { padding: 0 0 0 0; }
  .step + .step::before { display: none; }
  .step .num, .step + .step .num { left: -4px; }

  .director-photo { height: 440px; }
  .director-name { font-size: 34px; }
  .director-lead { font-size: 19px; }
  .director-intro br { display: none; }
  .profile-cards { grid-template-columns: 1fr; }
  .quote-card .quote { font-size: 19px; }

  .closing .quote { font-size: 20px; }
  .closing .sign::before, .closing .sign::after { width: 24px; }
  .closing .sign { font-size: 14.5px; gap: 10px; }

  .deco-branch { width: 120px; right: -30px; }
  .deco-flowers { display: none; }
  .deco-flowers.right { display: block; width: 120px; right: -24px; }
  .scenery { padding-bottom: 80px; }
  .scenery::before { height: 260px; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-info span { display: block; }
  .footer-info span + span::before { display: none; }
}

/* PC(마우스 환경)에서는 전화번호 링크를 눌러도 동작하지 않음 — 번호 표시용 */
@media (hover: hover) and (pointer: fine) {
  a[href^="tel:"] { cursor: default; }
  a[href^="tel:"]:not(.btn-call):hover { color: inherit; }
  .btn-call[href^="tel:"]:hover { background: var(--brown); transform: none; }
}
