/* 성곡작명연구회 홈페이지 공통 스타일
   톤: 한지(종이) 바탕 + 먹색 글자 + 주사(朱砂) 붉은 포인트 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --paper: #f6eedf;
  --paper-2: #ede4d2;
  --surface: #fbf8f1;
  --ink: #1f1b16;
  --ink-2: #5d554a;
  --ink-3: #8a8073;
  --line: #d9cfbd;
  --seal: #17253f;      /* 남색 (전단·배너의 주색) — 버튼·강조 */
  --seal-dark: #0f1a2e;
  --gold: #b8934a;      /* 금색 — 선·아이콘·점 (배경 장식용) */
  --gold-text: #8a6a24; /* 금색 글자용 (작은 글씨 대비 4.5:1 이상) */
  --stamp: #a02c2c;     /* 주사 붉은색 — 인장(星谷)에만 */
  --serif: 'Noto Serif KR', 'Apple SD Gothic Neo', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --maxw: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--seal); text-decoration: none; }
a:hover { color: var(--seal-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .18em; color: var(--gold-text);
  font-weight: 500; margin-bottom: 12px; text-transform: uppercase;
}
.hanja { font-family: var(--serif); color: var(--ink-3); font-weight: 400; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 500; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
  font-family: var(--sans); transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn:hover { box-shadow: 0 8px 20px -10px rgba(23, 37, 63, .45); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .55s ease-out forwards; pointer-events: none; }
.btn-outline .ripple, .btn-ghost .ripple { background: rgba(23, 37, 63, .15); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 238, 223, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { max-width: none; padding: 12px 32px; display: flex; align-items: center; gap: 20px; }
.head-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.auth { display: flex; gap: 8px; }
.fontsize { display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.fs-label { font-size: .8rem; color: var(--ink-2); margin-right: 4px; letter-spacing: .04em; white-space: nowrap; }
.fontsize button {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 99px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: .82rem; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s;
}
.fontsize button b { font-family: var(--serif); font-size: 1em; font-weight: 700; }
.fontsize button:hover { background: var(--paper-2); color: var(--ink); }
.fontsize button.on { background: var(--seal); color: #fff; }
.topbar .btn { min-height: 36px; padding: 0 16px; font-size: .88rem; }
.topbar .btn-ghost { background: var(--surface); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand .seal {
  width: 40px; height: 40px; border: 2px solid var(--stamp); color: var(--stamp);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 13px;
  letter-spacing: .05em; border-radius: 3px;
}
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; white-space: nowrap; }
.brand .sub { display: block; font-size: .78rem; color: var(--ink-3); letter-spacing: .08em; font-family: var(--sans); white-space: nowrap; }
.menu { display: contents; }
.nav-item { position: relative; display: flex; }
.nav-item > a svg { margin-left: 2px; vertical-align: middle; opacity: .7; }
.nav .sub {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px; box-shadow: 0 18px 40px -20px rgba(23,37,63,.45); display: none; flex-direction: column; z-index: 100;
}
.nav .sub a { padding: 10px 14px; font-size: .98rem; color: var(--ink); white-space: nowrap; border-radius: 4px; }
.nav .sub a::after { display: none; }
.nav .sub a:hover { background: var(--paper-2); color: var(--seal); }
.nav .sub a.all { border-top: 1px solid var(--line); margin-top: 4px; color: var(--gold-text); font-weight: 600; border-radius: 0; }
.nav-item:hover .sub, .nav-item:focus-within .sub { display: flex; }
.nav-item::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 6px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  position: relative; color: var(--ink-2); padding: 10px 12px; font-size: 1.02rem; font-weight: 500; white-space: nowrap;
  transition: color .15s;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--seal); font-weight: 700; }
.nav a.active::after { transform: scaleX(1); background: var(--seal); }

.nav-toggle {
  display: none; margin-left: 8px; width: 44px; height: 44px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius); cursor: pointer; color: var(--ink);
}

/* 히어로 */
.hero { padding: 96px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 2.9rem); }
.hero h1 em { font-style: normal; color: var(--seal); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); margin-bottom: 28px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .photo { position: relative; }
.hero .photo img { border-radius: 6px; aspect-ratio: 3/2; object-fit: cover; box-shadow: 0 24px 60px -30px rgba(31, 27, 22, .5); }
.hero-slides { position: relative; aspect-ratio: 3/2; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(31, 27, 22, .5); background: var(--paper-2); }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; box-shadow: none; border-radius: 0; transform: scale(1.04); }
.hero-slides img.on { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 6s linear; }
.hero-dots { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.hero-dots span.on { background: #fff; width: 18px; border-radius: 99px; }
.hero .photo .stamp {
  position: absolute; left: -16px; bottom: -16px; background: var(--stamp); color: #fff;
  font-family: var(--serif); padding: 14px 18px; line-height: 1.4; font-size: .95rem; border-radius: 3px;
}
.hero .photo .stamp strong { display: block; font-size: 1.15rem; }
.motto {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); border-left: 3px solid var(--gold);
  padding-left: 16px; margin-top: 32px;
}

/* 섹션 */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(23, 37, 63, .45); }
.card .hanja { font-size: .9rem; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card .price { margin-top: auto; padding-top: 12px; font-family: var(--serif); font-weight: 600; color: var(--ink); }
.card .price .tag { display: inline-block; font-size: .8rem; color: var(--ink-3); font-family: var(--sans); font-weight: 400; margin-left: 6px; }
.card .more { margin-top: 4px; font-size: .9rem; font-weight: 500; }
.card.featured { border-color: var(--seal); box-shadow: inset 0 3px 0 var(--gold); }

.icon { width: 32px; height: 32px; color: var(--seal); }

/* 단계 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px 20px 20px; border-top: 2px solid var(--ink); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.6rem; color: var(--gold-text); display: block; margin-bottom: 8px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: .92rem; margin: 0; }

/* 신뢰/수치 */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.trust img { border-radius: 6px; aspect-ratio: 3/2; object-fit: cover; }
.trust ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust li .icon { width: 22px; height: 22px; flex: none; margin-top: 4px; }

/* 인용/원칙 */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principle { padding: 24px; border-left: 2px solid var(--gold); background: var(--surface); }
.principle h3 { font-size: 1.05rem; }
.principle p { color: var(--ink-2); font-size: .93rem; margin: 0; }

/* 본문형 페이지 */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 38em; margin: 0; }
.page-head p.lines { max-width: 48em; line-height: 1.85; }
.prose { max-width: 44em; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.signature { margin-top: 28px; text-align: right; font-family: var(--serif); color: var(--ink-2); }
.signature strong { font-size: 1.2rem; color: var(--ink); margin-left: 8px; }
.card ul.bio { margin: 0; padding-left: 1.1em; font-size: .95rem; color: var(--ink-2); line-height: 1.7; }
.card ul.bio li { margin-bottom: .3em; }
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--seal);
  padding: 20px 24px; margin: 28px 0; border-radius: 0 6px 6px 0;
}
.callout strong { font-family: var(--serif); }
.map-embed { aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.aside { position: sticky; top: 132px; display: grid; gap: 16px; }
.aside .card { padding: 22px; }
.aside .card strong { font-family: var(--serif); }

/* 표 */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 500; color: var(--ink-2); background: var(--paper-2); }
.table-wrap { overflow-x: auto; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--seal); font-family: var(--serif); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--ink-2); margin: 0 0 14px; }

/* 폼 */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 500; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--seal); outline-offset: 1px; border-color: var(--seal); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.choice { display: grid; gap: 10px; }
.choice label {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; cursor: pointer;
}
.choice label:has(input:checked) { border-color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.choice input, .field .choice input { width: auto; min-height: 0; margin: 5px 0 0; accent-color: var(--seal); flex: none; }
.choice label > span:not(.p) { flex: 1; }
.choice .t { font-weight: 500; }
.choice .d { font-size: .88rem; color: var(--ink-2); display: block; }
.choice .p { margin-left: auto; font-family: var(--serif); font-weight: 600; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.check input { margin-top: 5px; accent-color: var(--seal); }
.form-note {
  background: var(--paper-2); border-radius: 6px; padding: 14px 16px; font-size: .88rem; color: var(--ink-2);
}
.summary { display: grid; gap: 8px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.auth-box { max-width: 440px; margin: 64px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 40px; }
.auth-box h1 { font-size: 1.7rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: .85rem; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social { display: grid; gap: 10px; }
.social .btn { justify-content: flex-start; gap: 12px; }
.social-btn { padding-left: 14px; font-weight: 500; color: var(--ink); }
.social-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.social-ic.naver { background: #03C75A; }
.social-ic.kakao { background: #FEE500; }
.social-btn:hover { border-color: var(--ink); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); font-size: .78rem; font-weight: 500; }
.badge.todo { background: #fbe9e5; color: var(--seal-dark); }

/* 배너 (CTA) */
.cta-band { background: var(--ink); color: var(--paper); padding: 64px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #c9bfae; }
.cta-band .btn-primary { background: var(--stamp); }
.cta-band .btn-primary:hover { background: #7f2222; }
.cta-band .btn-outline { color: var(--paper); border-color: #6b6255; }
.cta-band .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .9rem; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 10px; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--seal); }
.site-footer .legal { border-top: 1px solid var(--line); padding-top: 20px; font-size: .82rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.disclaimer { font-size: .82rem; color: var(--ink-3); margin-top: 12px; }

/* 유튜브 */
.yt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.yt a { display: block; color: var(--ink); }
.yt .thumb { aspect-ratio: 16/9; background: var(--ink); border-radius: 6px; display: grid; place-items: center; color: #fff; font-family: var(--serif); position: relative; overflow: hidden; }
.yt .thumb span { position: absolute; left: 16px; bottom: 12px; font-size: .85rem; color: #c9bfae; }
.yt .title { margin-top: 10px; font-weight: 500; }

/* 반응형 */
@media (max-width: 1320px) {
  .nav a { padding: 8px 9px; font-size: .95rem; }
  .brand .sub { display: none; }
}
/* 1200px 미만: 햄버거 메뉴 */
@media (max-width: 1199px) {
  .menu { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .head-right { display: contents; }
  .topbar { display: none; }
  /* 열린 상태: 글자 크기 → 로그인·회원가입 → 메뉴가 한 상자 안에 차례로 쌓임 */
  .site-header.open .head-right {
    display: block; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--paper); z-index: 61;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(31,27,22,.35);
  }
  .site-header.open .topbar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 20px 0; }
  .site-header.open .topbar .auth { display: flex; gap: 10px; }
  .site-header.open .topbar .btn { flex: 1; min-height: 44px; }
  .site-header.open .fontsize { padding-left: 12px; }
  .site-header.open .fontsize button { flex: 1; justify-content: center; min-height: 36px; }
  .brand .logo { height: 40px; }
  .brand .name { font-size: 1.15rem; }
  .site-header .wrap { padding: 10px 20px; }
  .nav-toggle { margin-left: auto; }
  .site-header.open .menu { display: block; padding: 12px 24px 20px; }
  .site-header.open .nav { display: flex; flex-direction: column; gap: 0; margin: 0 0 12px; }
  .site-header.open .nav a { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.open .nav-item { flex-direction: column; }
  .site-header.open .nav .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
  .site-header.open .nav .sub a { font-size: .9rem; color: var(--ink-2); }
  .site-header.open .nav .sub a.all { border-top: 0; }
}
@media (max-width: 960px) {
  .hero .wrap, .trust, .layout-2 { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .principles, .yt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .principles, .yt, .field-row { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .auth-box { padding: 28px 22px; margin: 32px auto; }
  .hero .photo .stamp { left: 12px; bottom: 12px; }
}

/* 유튜브 슬라이드 */
.yt-stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 28px; }
.yt-stage-media { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #000; }
.yt-slide { position: absolute; inset: 0; display: block; background: #000; cursor: pointer; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.yt-slide.active { pointer-events: auto; }
.yt-slide.active { opacity: 1; z-index: 1; }
.yt-slide img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(160, 44, 44, .92); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.yt-slide:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); z-index: 2; }
.yt-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
.yt-stage-text h3 { color: #fff; font-size: 1.5rem; margin: 6px 0 8px; }
.yt-stage-text .eyebrow { color: #e0cc9c; }
.yt-stage-text .muted { color: #c9bfae; }
.yt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.yt-stage .btn-primary { background: var(--stamp); }
.yt-stage .btn-outline { color: var(--paper); border-color: #6b6255; }
.yt-stage .btn-outline:hover { background: var(--paper); color: var(--ink); }
.yt-nav { display: flex; align-items: center; gap: 12px; }
.yt-nav > button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #6b6255; background: transparent; color: var(--paper); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.yt-nav > button:hover { border-color: var(--paper); }
.yt-dots { display: flex; gap: 8px; }
.yt-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #6b6255; padding: 0; cursor: pointer; }
.yt-dots button.on { background: var(--gold); width: 22px; border-radius: 99px; }
.yt-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .yt-stage { grid-template-columns: 1fr; padding: 18px; } }

/* 고객 후기 팝업 */
.rv-modal { position: fixed; inset: 0; z-index: 100; background: rgba(31, 27, 22, .55); display: none; place-items: center; padding: 24px; }
.rv-modal.open { display: grid; }
.rv-box { position: relative; width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; padding: 32px 32px 20px; box-shadow: 0 30px 80px -30px rgba(31,27,22,.6); }
.rv-box h3 { font-size: 1.35rem; margin: 4px 0 16px; }
.rv-close { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--ink-3); cursor: pointer; }
.rv-close:hover { color: var(--ink); }
.rv-track { position: relative; min-height: 170px; }
.rv-item { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; pointer-events: none; }
.rv-item.active { opacity: 1; pointer-events: auto; }
.rv-item p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.8; color: var(--ink); margin: 0 0 12px; }
.rv-item footer { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--ink-2); }
.rv-item footer strong { color: var(--ink); font-weight: 500; }
.rv-dots { display: flex; gap: 8px; margin: 12px 0 18px; }
.rv-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line); padding: 0; cursor: pointer; }
.rv-dots button.on { background: var(--seal); width: 22px; border-radius: 99px; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-today { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--ink-3); cursor: pointer; }
.rv-today input { accent-color: var(--seal); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin: 0; }
.review p { font-family: var(--serif); line-height: 1.8; margin: 0 0 12px; }
.review footer { font-size: .88rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .rv-box { padding: 24px 20px 16px; } .reviews-grid { grid-template-columns: 1fr; } }

/* 브랜드 로고(SVG) */
.brand .logo { width: auto; height: 50px; flex: none; }

/* 전단 기반 4기둥 */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pillar .icon { width: 44px; height: 44px; color: var(--seal); }
.pillar h3 { font-size: 1.05rem; margin: 6px 0 0; }
.pillar p { color: var(--ink-2); font-size: .9rem; margin: 0; }

/* 이런 분들 */
.who { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.who li { display: flex; gap: 12px; align-items: center; font-size: 1.02rem; }
.who li .icon { width: 22px; height: 22px; flex: none; color: var(--gold-text); }
.quote { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 16px; margin-top: 24px; }

/* 가격표 */
.pricelist { list-style: none; padding: 0; margin: 0; display: grid; }
.pricelist li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.pricelist li .n { flex: none; }
.pricelist li .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.pricelist li .p { font-family: var(--serif); font-weight: 600; color: var(--stamp); white-space: nowrap; }
.pricelist li .p small { font-family: var(--sans); font-weight: 400; color: var(--ink-3); font-size: .78rem; margin-left: 4px; }
.price-note { font-size: .85rem; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }
.price-note strong, .callout strong.gc, #sumNote strong { color: var(--stamp); font-weight: 700; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; } }

/* 모바일 하단 고정 행동 바 (전화 · 신청) */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 238, 223, .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; }
  body { padding-bottom: 72px; }  /* 하단 바에 가리지 않도록 */
  .rv-box { margin-bottom: 72px; }
}

/* 신청 화면 대분류 탭 */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs .tab { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer; }
.tabs .tab:hover { border-color: var(--ink); color: var(--ink); }
.tabs .tab.on { background: var(--seal); border-color: var(--seal); color: #fff; }

/* 안내 페이지 상단 사진 배너 */
.page-head.banner {
  position: relative; color: #fff; border-bottom: 0; padding: 96px 0 72px;
  background: linear-gradient(100deg, rgba(23, 37, 63, .72) 0%, rgba(23, 37, 63, .5) 40%, rgba(23, 37, 63, .16) 72%, rgba(23, 37, 63, .04) 100%), var(--banner) center 40% / cover no-repeat;
}
.page-head.banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
.page-head.banner .eyebrow { color: #f0dfae; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.page-head.banner h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.page-head.banner p { color: #f3ede0; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
@media (max-width: 720px) {
  .page-head.banner { padding: 56px 0 44px; background-position: center 30%; }
  .page-head p.lines br { display: none; }
}

/* ── 넓은 화면: 오른쪽 바로가기 메뉴 + 양옆 무늬 띠 ────────────── */
.quick, .side-pattern { display: none; }
@media (min-width: 1440px) {
  .side-pattern {
    display: block; position: fixed; top: 113px; bottom: 0; width: calc((100vw - var(--maxw)) / 2 - 56px); z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 28px 28px; opacity: .35;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  }
  .side-l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .side-r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-composite: intersect; }
  main, .site-footer { position: relative; z-index: 1; }

  .quick {
    display: flex; flex-direction: column; position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 40;
    width: 134px; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(23, 37, 63, .55); border: 1px solid var(--line);
    background: var(--surface); font-size: .9rem;
  }
  .quick-head { background: var(--seal); color: #fff; text-align: center; padding: 10px 8px; font-weight: 700; letter-spacing: .08em; font-size: .85rem; }
  .quick-link {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line);
    transition: background .15s, padding-left .15s;
  }
  .quick-link::before { content: ''; width: 0; height: 0; border-left: 6px solid var(--gold); border-top: 5px solid transparent; border-bottom: 5px solid transparent; flex: none; }
  .quick-link:hover { background: var(--paper-2); padding-left: 18px; color: var(--seal); }
  .quick-link.primary { background: var(--stamp); color: #fff; }
  .quick-link.primary::before { border-left-color: #fff; }
  .quick-link.primary:hover { background: #7f2222; color: #fff; }
  .quick-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; line-height: 1.5; }
  .quick-box strong { color: var(--ink); font-family: var(--serif); font-size: .95rem; margin-bottom: 2px; }
  .quick-box .gold { color: var(--gold-text); font-weight: 500; }
  .quick-box.dark { background: var(--ink); color: #c9bfae; }
  .quick-box.dark strong { color: #fff; }
  .quick-box.dark .tel { color: #fff; font-size: .92rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
  .quick-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; text-align: center; font-size: .78rem; color: var(--ink-2); background: var(--paper-2); }
  .quick-brand img { height: 30px; width: auto; margin-bottom: 6px; }
  .quick-brand .gold { color: var(--gold-text); font-weight: 700; font-size: .85rem; }
}

/* 방문자 통계 */
.visits { display: grid; grid-template-columns: repeat(3, auto); gap: 0 10px; font-size: .78rem; color: var(--ink-2); }
.visits span { display: flex; flex-direction: column; align-items: center; }
.visits b { font-family: var(--serif); color: var(--ink); font-size: .95rem; }
.quick-box .visits { margin-top: 4px; }
.site-footer .visits-line { font-size: .82rem; color: var(--ink-3); margin: 8px 0 0; }
.site-footer .visits-line b { color: var(--ink-2); font-weight: 500; }

/* 자료실 */
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.res-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; transition: transform .15s, box-shadow .15s; }
.res-list li:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(23,37,63,.45); }
.res-list .cat { font-size: .74rem; letter-spacing: .08em; color: var(--gold-text); font-weight: 700; border: 1px solid var(--gold); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.res-list .t { font-weight: 600; color: var(--ink); }
.res-list .d { font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.res-list .act { font-size: .85rem; white-space: nowrap; }
.res-list .act .badge { margin-left: 0; }
@media (max-width: 720px) { .res-list li { grid-template-columns: 1fr; gap: 8px; } }

/* 고초일 월별 카드 */
.gc-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 22px; }
.gc-card h3 { font-size: 1.05rem; margin: 0 0 10px; }
.gc-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-family: var(--serif); font-size: 1.1rem; }
.gc-card .pending { color: var(--ink-3); font-family: var(--sans); font-size: .92rem; }

/* 소개 페이지 상담실 슬라이드 (3:2) */
.room-slides { aspect-ratio: 3/2; margin-bottom: 12px; box-shadow: none; }

/* 소개 페이지 사진 모음 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 8px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 겹친 카드 세로 슬라이드 (홈 상담 장면) */
.deck { position: relative; aspect-ratio: 3/2; margin-bottom: 40px; }
.trust .deck img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; aspect-ratio: auto;
  box-shadow: 0 22px 44px -22px rgba(23, 37, 63, .55); transform-origin: 50% 100%;
  transition: transform .75s cubic-bezier(.22, .8, .3, 1), opacity .6s ease; will-change: transform, opacity;
}
.deck img.p0  { transform: translateY(0) scale(1);       z-index: 4; opacity: 1; }
.deck img.p1  { transform: translateY(18px) scale(.955); z-index: 3; opacity: .85; }
.deck img.p2  { transform: translateY(36px) scale(.91);  z-index: 2; opacity: .6; }
.deck img.hid { transform: translateY(52px) scale(.87);  z-index: 1; opacity: 0; }
.deck img.out { transform: translateY(-46px) scale(1.02); z-index: 5; opacity: 0; }
@media (max-width: 720px) { .deck { margin-bottom: 44px; } }
