/* 장례당 메인 — 값은 brand/tokens.css 변수만 사용 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ivory-100); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--sp-4); top: -100px; z-index: 100; background: var(--navy-900); color: var(--on-navy); padding: var(--sp-3) var(--sp-4); }
.skip:focus { top: var(--sp-4); }

.wrap { max-width: calc(var(--content-max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--control-h); padding: 0 28px;
  font: 600 var(--fs-body)/1 var(--font-sans);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--call { background: var(--bronze-400); color: var(--navy-900); }
.btn--call:hover { background: var(--bronze-300); }
.btn--primary { background: var(--navy-900); color: var(--on-navy); }
.btn--primary:hover { background: var(--navy-950); }
.btn--line { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--line:hover { background: var(--ivory-200); }
.link { color: var(--navy-900); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { color: var(--bronze-700); }

/* ---------- 상단 띠 ---------- */
.topbar { background: var(--navy-900); color: var(--on-navy-sub); font-size: var(--fs-small); }
.topbar__in { height: 36px; display: flex; align-items: center; justify-content: space-between; }
.topbar a { text-decoration: none; }
.topbar__call strong { color: var(--bronze-300); font-weight: 600; margin-left: var(--sp-2); }
.topbar__login:hover, .topbar__call:hover { color: var(--on-navy); }

/* ---------- 헤더 ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--ivory-100); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.header__in { height: 80px; display: flex; align-items: center; gap: var(--sp-6); transition: height .2s ease; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-scrolled .header__in { height: 72px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex: none; }
.brand__mark { width: 96px; height: auto; }
.brand__name { width: 146px; height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: var(--sp-6); }
.nav__list a { display: block; padding: var(--sp-2) 0; font-weight: 500; color: var(--text-strong); text-decoration: none; border-bottom: 1px solid transparent; }
.nav__list a:hover { border-bottom-color: var(--bronze-500); }
.nav__mobile-extra { display: none; }
.header__call { min-height: 48px; padding: 0 var(--sp-5); transition: opacity .2s ease, visibility .2s; }
.js .header:not(.is-past-hero) .header__call { opacity: 0; visibility: hidden; }
.menu-btn { display: none; }

/* ---------- 섹션 공통 ---------- */
.sec { padding: var(--section-y) 0; }
.sec--alt { background: var(--ivory-200); }
.sec--navy { background: var(--navy-900); color: var(--on-navy); }
.sec__title { font-size: var(--fs-h2); line-height: 1.4; font-weight: 600; }
.sec__title::before { content: ""; display: block; width: 40px; height: 1px; background: var(--bronze-500); margin-bottom: var(--sp-5); }
.sec__lead { margin-top: var(--sp-4); font-size: var(--fs-body); color: var(--text-sub); max-width: 34em; }
.sec--navy .sec__title { color: var(--on-navy); }
.sec--navy .sec__lead { color: var(--on-navy-sub); }

.split { display: grid; grid-template-columns: 4fr 7fr; gap: var(--sp-8); align-items: start; }
.split__head { position: sticky; top: 120px; }

/* ---------- 포털형 첫 화면 ---------- */
.portal { padding: var(--sp-5) 0 var(--sp-7); }
.portal__in { display: grid; grid-template-columns: 236px minmax(0, 1fr) 260px; grid-template-areas: "left main right"; gap: var(--sp-4); align-items: stretch; }
.p-main { grid-area: main; display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.p-left { grid-area: left; display: flex; flex-direction: column; gap: var(--sp-4); }
.p-right { grid-area: right; display: flex; flex-direction: column; gap: var(--sp-4); }
.consult-card { flex: 1; }
.quick { flex: 1; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-5); }
.card__title { font-size: 20px; line-height: 1.4; font-weight: 600; }
.card__text { margin: var(--sp-2) 0 var(--sp-4); font-size: var(--fs-small); color: var(--text-sub); }
.member__links { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.member__links a { color: var(--text); text-underline-offset: 4px; }
.member__links a:hover { color: var(--bronze-700); text-decoration: underline; }

.consult-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--sp-3); min-height: 280px; padding: var(--sp-5); border-radius: var(--radius-md); color: var(--on-navy); text-decoration: none; background: url("../images/hands.webp") 30% center / cover no-repeat; }
.consult-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-950); opacity: .6; transition: opacity .2s ease; }
.consult-card:hover::before { opacity: .46; }
.consult-card__title { font-family: var(--font-serif); font-size: 22px; line-height: 1.5; font-weight: 600; }
.consult-card__go { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 600; color: var(--bronze-300); }

/* 슬라이드 */
.slider { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; isolation: isolate; min-height: 430px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide--split { display: grid; grid-template-columns: 1.4fr 1fr; }
.slide--rev { grid-template-columns: 1.4fr 1fr; }
.slide__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--sp-7) var(--sp-6) var(--sp-7) var(--sp-7); }
.slide__slogan { font-size: clamp(30px, 2.9vw, 40px); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; }
.slide__slogan span { display: block; }
.slide__slogan-2 { margin-top: var(--sp-2); font-weight: 600; }
.slide__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.45; font-weight: 600; }
.slide__lead { margin-top: var(--sp-4); font-size: 18px; line-height: 1.7; color: var(--text); max-width: 24em; }
.slide__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.slide__actions .btn { padding: 0 var(--sp-5); }
.slide__img { min-height: 100%; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; }
.slide--full { display: flex; align-items: center; }
.slide--full .slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide--full::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-950); opacity: .68; }
.slide--full .slide__title { color: var(--on-navy); }
.slide--full .slide__lead { color: var(--on-navy); }
.btn--ivory { background: var(--ivory-100); color: var(--navy-900); }
.btn--ivory:hover { background: var(--ivory-200); }

.slider__ctl { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) var(--sp-4); border-top: 1px solid var(--line); }
.slider__count { font-size: var(--fs-small); color: var(--text-sub); font-variant-numeric: tabular-nums; }
.slider__btns { display: flex; gap: var(--sp-2); }
.slider__btns button { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy-900); cursor: pointer; }
.slider__btns button:hover { background: var(--ivory-200); }
.slider__btns .ico--play { display: none; }
.slider__btns [aria-pressed="true"] .ico--pause { display: none; }
.slider__btns [aria-pressed="true"] .ico--play { display: block; }

/* 장례 형태 */
.p-title { font-size: 20px; line-height: 1.4; font-weight: 600; margin-bottom: var(--sp-3); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); height: 100%; min-height: 176px; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.tile::before { content: ""; position: absolute; top: -1px; left: -1px; height: 3px; background: var(--bronze-500); }
.tile--a { background: var(--paper); color: var(--text); }
.tile--a::before { width: 33%; }
.tile--b { background: var(--ivory-200); color: var(--text); }
.tile--b::before { width: 66%; }
.tile--c { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-navy-sub); }
.tile--c::before { width: calc(100% + 2px); background: var(--bronze-300); }
.tile__name { font-family: var(--font-serif); font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--text-strong); }
.tile--c .tile__name { color: var(--on-navy); }
.tile__desc { font-size: var(--fs-small); line-height: 1.6; }
.tile__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-small); font-weight: 600; color: var(--navy-900); }
.tile--c .tile__meta { color: var(--bronze-300); }
.tile:hover { border-color: var(--bronze-500); }
.tile--a:hover, .tile--b:hover { background: var(--paper); }
.tile--c:hover { background: var(--navy-950); }
.forms__note { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--text-sub); }

/* 접수 번호 + 바로가기 */
.phone-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5); background: var(--bronze-400); color: var(--navy-900); border-radius: var(--radius-md); text-decoration: none; transition: background-color .15s ease; }
.phone-card:hover { background: var(--bronze-300); }
.phone-card__ico { position: absolute; top: var(--sp-5); right: var(--sp-5); width: 28px; height: 28px; }
.phone-card__label { font-weight: 600; }
.phone-card__num { font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.phone-card__sub { font-size: var(--fs-small); }
.quick { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.quick ul { height: 100%; display: flex; flex-direction: column; }
.quick li { flex: 1; display: flex; }
.quick li + li { border-top: 1px solid var(--line); }
.quick a { flex: 1; display: flex; align-items: center; gap: var(--sp-3); padding: 14px var(--sp-4); font-weight: 500; color: var(--text-strong); text-decoration: none; transition: background-color .15s ease; }
.quick a:hover { background: var(--ivory-200); }
.quick .ico { color: var(--bronze-700); }
.quick__go { margin-left: auto; width: 18px; height: 18px; color: var(--text-sub) !important; }

/* 장례당의 약속 */
.promise { background: var(--ivory-200); border-block: 1px solid var(--line); }
.promise__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.promise__list > div { padding: var(--sp-6) var(--sp-5); border-left: 1px solid var(--line); }
.promise__list > div:first-child { border-left: 0; padding-left: 0; }
.promise__list dt { font-family: var(--font-serif); font-size: 28px; line-height: 1.3; font-weight: 600; color: var(--navy-900); letter-spacing: 0.06em; }
.promise__list dd { margin-top: var(--sp-2); font-size: var(--fs-small); line-height: 1.65; color: var(--text); }

/* ---------- 숫자 ---------- */
.record__nums { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
.stat__num { display: block; font-family: var(--font-serif); font-size: 72px; line-height: 1.1; font-weight: 500; color: var(--on-navy); font-variant-numeric: lining-nums; }
.stat__label { display: block; margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--on-navy-sub); max-width: 18em; }
.stat__label small { font-size: 13px; }
.years { margin-top: var(--sp-8); }
.years__ticks { display: flex; justify-content: space-between; align-items: flex-end; height: 32px; border-bottom: 1px solid var(--navy-800); }
.years__ticks li { width: 1px; height: 12px; background: var(--on-navy-sub); opacity: .8; }
.years__ticks li:first-child, .years__ticks li:last-child { height: 32px; background: var(--bronze-300); opacity: 1; }
.years__ends { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--bronze-300); font-variant-numeric: tabular-nums; }

/* ---------- 절차 ---------- */
.steps__head { max-width: var(--text-max); margin-bottom: var(--sp-8); }
.days { display: grid; grid-template-columns: 3fr 2fr 2fr; border-top: 1px solid var(--navy-900); }
.day { padding: var(--sp-5) var(--sp-6) 0 0; }
.day + .day { padding-left: var(--sp-6); border-left: 1px solid var(--line); }
.day__name { font-size: 20px; line-height: 1.4; font-weight: 600; margin-bottom: var(--sp-5); }
.day__steps li { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.step__no { flex: none; width: 32px; height: 32px; border: 1px solid var(--bronze-500); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-size: 15px; color: var(--bronze-700); margin-top: 2px; }
.day__steps strong { display: block; font-size: 18px; font-weight: 600; color: var(--text-strong); }
.day__steps p { margin-top: var(--sp-1); font-size: var(--fs-small); color: var(--text-sub); }
.steps__after { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--text); max-width: var(--text-max); }

/* ---------- 사전상담 ---------- */
.consult__in { display: grid; grid-template-columns: 4fr 7fr; gap: var(--sp-8); align-items: start; }
.consult__side { position: sticky; top: 120px; }
.consult__urgent { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.consult__urgent p { color: var(--text); margin-bottom: var(--sp-4); }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-7); }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { margin-bottom: var(--sp-5); border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--text-strong); margin-bottom: var(--sp-2); padding: 0; }
.req { font-size: 13px; font-weight: 500; color: var(--bronze-700); margin-left: var(--sp-1); }
.field input[type="text"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: var(--control-h); padding: 0 var(--sp-4);
  font: 400 var(--fs-body)/1.5 var(--font-sans); color: var(--text-strong);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C6470' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field textarea { padding: var(--sp-3) var(--sp-4); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-sub); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-900); }
.field.is-invalid input { border-color: var(--error); }
.field__err { color: var(--error); font-size: var(--fs-small); margin-top: var(--sp-1); }
.field__err:empty { display: none; }

.choice__opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice__opts label { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.choice__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__opts span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); }
.choice__opts input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-navy); }
.choice__opts input:focus-visible + span { outline: var(--focus-ring); outline-offset: 2px; }
.choice__opts label:hover span { border-color: var(--navy-900); }

.agree { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.agree__label { display: flex !important; align-items: center; gap: var(--sp-3); cursor: pointer; }
.agree__label input { width: 22px; height: 22px; accent-color: var(--navy-900); flex: none; margin: 0; }
.agree__detail { margin-top: var(--sp-2); margin-left: 34px; font-size: var(--fs-small); color: var(--text-sub); }
.agree__detail summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; width: fit-content; }
.agree__detail p { margin-top: var(--sp-2); }

.form__submit { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-6); }
.form__hint { font-size: var(--fs-small); color: var(--text-sub); }
.form__done { display: flex; gap: var(--sp-4); margin-top: var(--sp-6); padding: var(--sp-5); border: 1px solid var(--success); border-radius: var(--radius-sm); color: var(--text); }
.form__done[hidden] { display: none; }
.form__done .ico { color: var(--success); margin-top: 3px; }
.form__done strong { color: var(--success); font-size: 18px; }
.form__done p { margin-top: var(--sp-1); }

/* ---------- 영업사원 모집: 직급 계단 ---------- */
.recruit { border-bottom: 1px solid var(--line); }
.recruit__in { display: grid; grid-template-columns: 5fr 6fr; gap: var(--sp-8); align-items: end; }
.recruit__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 300px; border-bottom: 1px solid var(--navy-900); }
.ladder__step { display: flex; flex-direction: column; justify-content: flex-start; gap: var(--sp-1); padding: var(--sp-3) var(--sp-3) 0; border-top: 1px solid var(--navy-900); border-left: 1px solid var(--line); background: var(--paper); }
.ladder__step:nth-child(1) { height: 30%; }
.ladder__step:nth-child(2) { height: 45%; }
.ladder__step:nth-child(3) { height: 60%; }
.ladder__step:nth-child(4) { height: 78%; }
.ladder__step:nth-child(5) { height: 100%; background: var(--navy-900); }
.ladder__step:nth-child(5) .ladder__name { color: var(--on-navy); }
.ladder__step:nth-child(5) .ladder__no { color: var(--bronze-300); }
.ladder__no { font-family: var(--font-serif); font-size: var(--fs-small); color: var(--bronze-700); }
.ladder__name { font-weight: 600; color: var(--text-strong); font-size: 16px; line-height: 1.35; word-break: keep-all; }

.erp { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.erp__hint { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--text-sub); max-width: 34em; }

/* ---------- 협력사 ---------- */
.partners { padding: var(--sp-8) 0; border-bottom: 1px solid var(--line); }
.partners__title { font-size: var(--fs-small); font-family: var(--font-sans); font-weight: 500; color: var(--text-sub); }
.partners__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-7); margin-top: var(--sp-5); }
.partners__list img { height: 40px; width: auto; filter: grayscale(1); opacity: .8; }
.partners__cta { margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--text-sub); }

/* ---------- 마무리 ---------- */
.closing { padding: var(--section-y) 0; text-align: center; }
.closing__text { font-family: var(--font-serif); font-size: var(--fs-h2); line-height: 1.5; color: var(--text-strong); font-weight: 500; }
.closing__num { display: inline-block; margin-top: var(--sp-6); font-size: clamp(40px, 6vw, 64px); font-weight: 600; color: var(--navy-900); text-decoration: none; letter-spacing: 0.02em; border-bottom: 1px solid var(--bronze-500); line-height: 1.3; }
.closing__sub { margin-top: var(--sp-3); color: var(--text-sub); font-size: var(--fs-small); }

/* ---------- 푸터 ---------- */
.footer { background: var(--navy-950); color: var(--on-navy-sub); padding: var(--sp-8) 0; font-size: var(--fs-small); }
.footer__in { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-8); }
.footer__brand img { width: 120px; }
.footer__call { font-size: 18px; color: var(--on-navy); margin-bottom: var(--sp-5); }
.footer__call a { color: var(--bronze-300); font-weight: 600; text-decoration: none; margin-left: var(--sp-2); }
.footer__corp { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-6); }
.footer__corp div { display: flex; gap: var(--sp-2); }
.footer__corp dt { color: var(--on-navy-sub); opacity: .75; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--navy-800); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 4px; }
.footer__links strong { color: var(--on-navy); font-weight: 600; }
.footer__copy { margin-top: var(--sp-4); opacity: .75; }

/* ---------- 모바일 하단 바 ---------- */
.dock { display: none; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1180px) {
  .nav__list { gap: var(--sp-5); }
  .brand__name { display: none; }
}

@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-left: var(--sp-2); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy-900); cursor: pointer; }
  .menu-btn .ico { width: 24px; height: 24px; }
  .menu-btn .ico--close { display: none; }
  .menu-btn[aria-expanded="true"] .ico--open { display: none; }
  .menu-btn[aria-expanded="true"] .ico--close { display: block; }
  .header__call { margin-left: auto; }
  .brand__name { display: block; }
  .nav { position: fixed; inset: var(--header-bottom, 116px) 0 0 0; background: var(--ivory-100); padding: var(--sp-5) var(--gutter) var(--sp-8); overflow-y: auto; display: none; border-top: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: var(--sp-4) 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav__mobile-extra { display: block; margin-top: var(--sp-6); }
  .nav__login { display: inline-block; margin-top: var(--sp-5); color: var(--text-sub); }

  .split, .consult__in { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split__head, .consult__side { position: static; }
  .recruit__in { grid-template-columns: 1fr; }

  /* 포털: 한 줄로 쌓고 순서를 다시 정한다 (접수 번호를 슬라이드 바로 아래) */
  .portal__in { display: flex; flex-direction: column; gap: var(--sp-4); }
  .p-main, .p-left, .p-right { display: contents; }
  .portal__in { grid-template-areas: none; }
  .slider { order: 1; }
  .phone-card { order: 2; }
  .forms { order: 3; margin-top: var(--sp-3); }
  .quick { order: 4; }
  .member { order: 5; }
  .consult-card { order: 6; min-height: 220px; }
  .quick ul { display: grid; grid-template-columns: 1fr 1fr; }
  .quick li { border-top: 1px solid var(--line); }
  .quick li:nth-child(-n+2) { border-top: 0; }
  .quick li:nth-child(even) { border-left: 1px solid var(--line); }
  .quick li + li { border-top: 1px solid var(--line); }
  .quick li:nth-child(2) { border-top: 0; }
  .promise__list { grid-template-columns: 1fr 1fr; }
  .promise__list > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .promise__list > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .header__call { display: none; }
  .menu-btn { margin-left: auto; }
  .topbar__in { justify-content: flex-end; }
  .topbar__call { display: none; }
  .header__in { height: 68px; gap: var(--sp-3); }
  .header.is-scrolled .header__in { height: 68px; }
  .brand__mark { width: 72px; }
  .brand__name { display: none; }
  .header__call { padding: 0 var(--sp-4); min-height: 48px; font-size: 16px; }

  .slide { min-height: 0; }
  .slide--split, .slide--rev { grid-template-columns: 1fr; }
  .slide__text { padding: var(--sp-6) var(--sp-5); }
  .slide--rev .slide__text { order: 0; }
  .slide__slogan { font-size: var(--fs-display); }
  .slide__lead { font-size: 17px; }
  .slide__actions { flex-direction: column; align-self: stretch; }
  .slide__actions .btn { width: 100%; }
  .slide__img { height: 190px; min-height: 0; }
  .slide--full { padding: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .phone-card__num { font-size: 40px; }
  .quick ul { grid-template-columns: 1fr; }
  .quick li:nth-child(even) { border-left: 0; }
  .quick li:nth-child(2) { border-top: 1px solid var(--line); }
  .promise__list dt { font-size: 24px; }
  .promise__list > div { padding: var(--sp-5) var(--sp-4); }

  .record__nums { grid-template-columns: 1fr; gap: var(--sp-6); }
  .stat__num { font-size: 56px; }

  .days { grid-template-columns: 1fr; }
  .day, .day + .day { padding: var(--sp-5) 0 0; border-left: 0; }
  .day + .day { border-top: 1px solid var(--navy-900); margin-top: var(--sp-5); }

  .form { padding: var(--sp-5); }
  .form__row--2 { grid-template-columns: 1fr; gap: 0; }
  .form__submit .btn { width: 100%; }

  .ladder { height: auto; grid-template-columns: 1fr; border-bottom: 0; border-left: 1px solid var(--navy-900); }
  .ladder__step, .ladder__step:nth-child(n) { height: auto; flex-direction: row; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-left: 0; border-top: 1px solid var(--line); min-height: 52px; }
  .ladder { display: flex; flex-direction: column-reverse; }
  .ladder__step:nth-child(1) { margin-right: 40%; }
  .ladder__step:nth-child(2) { margin-right: 30%; }
  .ladder__step:nth-child(3) { margin-right: 20%; }
  .ladder__step:nth-child(4) { margin-right: 10%; }

  .footer { padding-bottom: var(--sp-8); }
  .footer__in { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__brand img { width: 96px; }
  .footer__corp { flex-direction: column; }

  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 64px; padding-bottom: env(safe-area-inset-bottom); }
  .dock a { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font-weight: 600; font-size: 18px; text-decoration: none; }
  .dock__call { background: var(--bronze-400); color: var(--navy-900); }
  .dock__consult { background: var(--navy-900); color: var(--on-navy); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; }


/* ---------- 한지 질감: 실제 한지 사진을 아주 옅게 ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .12; mix-blend-mode: multiply;
  background: url("../images/hanji.webp") center / cover no-repeat; }
.topbar, main, .footer { position: relative; z-index: 1; }
.header { z-index: 50; }

/* ---------- 글자 크게 ---------- */
.topbar__right { display: flex; align-items: center; gap: var(--sp-5); }
.fs-toggle { font: 500 var(--fs-small)/1 var(--font-sans); color: var(--on-navy); background: transparent; border: 1px solid var(--navy-800); border-radius: var(--radius-sm); padding: 4px 12px; min-height: 28px; cursor: pointer; }
.fs-toggle:hover { border-color: var(--bronze-300); }
.fs-toggle[aria-pressed="true"] { background: var(--on-navy); color: var(--navy-900); border-color: var(--on-navy); }
html.fs-big { --fs-body: 20px; --fs-small: 17px; --fs-lead: 23px; --fs-h2: clamp(28px, 3.4vw, 36px); }
html.fs-big .btn { font-size: 19px; }

/* ---------- 첫 화면 등장: 한 번만 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.slide:first-child .slide__text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.slide:first-child .slide__lead { animation-delay: .25s; }
.slide:first-child .slide__actions { animation-delay: .4s; }

/* 마무리: 창으로 드는 빛 위에 네이비를 덮는다 */
.closing { position: relative; isolation: isolate; background: url("../images/window-light.webp") center / cover no-repeat; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-950); opacity: .78; }
.closing__text { color: var(--on-navy); }
.closing__num { color: var(--on-navy); border-bottom-color: var(--bronze-300); }
.closing__sub { color: var(--on-navy-sub); }
