@charset "utf-8";
/* 납골당 서브 페이지 틀 (layout.html 서브 영역, inc/sub_cta.html) */

.yg-subvis, .yg-subtab, .yg-subcta {
	--yg-ink: #0f1718;
	--yg-green: #4b5e46;
	--yg-leaf: #9fd18b;
	font-family: 'SUITE Variable', SUITE, 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', sans-serif;
	word-break: keep-all;
}
.yg-subwrap { position: relative; max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.yg-subvis-eyebrow, .yg-crumb, .yg-subvis-scroll, .yg-subcta-eyebrow, .yg-subcta-tel { font-family: 'Jost', 'SUITE Variable', sans-serif; }

/* ---------- 상단 비주얼: 헤더 뒤까지 꽉 차고, 위에서 아래로 열리며 나타난다 ---------- */
.yg-subvis { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 68vh; min-height: 520px; max-height: 760px; overflow: hidden; background: var(--yg-ink); color: #fff; }
.yg-subvis.is-wait { clip-path: inset(0 0 100% 0); }
.yg-subvis.is-ready { clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
.yg-subvis-bg { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform 3.5s cubic-bezier(.2,.6,.2,1); }
.yg-subvis.is-wait .yg-subvis-bg { transform: scale(1.15); }
.yg-subvis-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,23,24,.45), rgba(15,23,24,0) 35%, rgba(15,23,24,.7)); }
.yg-subvis-inner { width: 100%; padding-bottom: 56px; }
.yg-subvis-inner > * { transition: opacity .7s cubic-bezier(.2,.8,.2,1), filter .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.yg-subvis.is-wait .yg-subvis-inner > * { opacity: 0; filter: blur(4px); transform: translateY(16px); }
.yg-subvis.is-ready .yg-subvis-inner > :nth-child(1) { transition-delay: .2s; }
.yg-subvis.is-ready .yg-subvis-inner > :nth-child(2) { transition-delay: .28s; }
.yg-subvis.is-ready .yg-subvis-inner > :nth-child(3) { transition-delay: .36s; }
.yg-subvis-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 14px; letter-spacing: .35em; color: rgba(255,255,255,.85); }
.yg-subvis-eyebrow i { display: inline-block; width: 36px; height: 1px; background: rgba(255,255,255,.6); }
.yg-subvis h1 { margin: 18px 0 0; font-size: 64px; line-height: 1.15; font-weight: 300; letter-spacing: -.02em; color: #fff; }
.yg-subvis-desc { max-width: 640px; margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.8); }
.yg-subvis-desc:empty { display: none; }

.yg-subvis-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 22px; padding-bottom: 26px; }
.yg-subvis-foot:before { content: ''; position: absolute; left: 40px; right: 40px; top: 0; height: 1px; background: rgba(255,255,255,.25); }
.yg-crumb { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.yg-crumb li + li:before { content: '/'; margin: 0 10px 0 6px; opacity: .5; }
.yg-crumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.yg-crumb a:hover { color: #fff; }
.yg-subvis-scroll { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .3em; color: rgba(255,255,255,.75); }
.yg-subvis-scroll i { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgba(255,255,255,.25); }
.yg-subvis-scroll i:after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; transform: translateY(-100%); animation: yg-sub-drop 2s infinite; }
@keyframes yg-sub-drop { to { transform: translateY(100%); } }

/* ---------- 2차 메뉴: 비주얼 아래에 걸친 알약 모양 탭 ---------- */
.yg-subtab { position: relative; z-index: 2; display: flex; justify-content: center; margin: -32px 20px 0; }
.yg-subtab ul { display: flex; gap: 4px; max-width: 100%; margin: 0; padding: 6px; list-style: none; border-radius: 40px; background: #fff; box-shadow: 0 14px 40px rgba(15,23,24,.12); overflow-x: auto; scrollbar-width: none; }
.yg-subtab ul::-webkit-scrollbar { display: none; }
.yg-subtab li { flex: 0 0 auto; }
.yg-subtab a { display: block; padding: 15px 28px; border-radius: 30px; font-size: 15px; color: #666; white-space: nowrap; text-decoration: none; transition: background .3s, color .3s; }
.yg-subtab a:hover { color: var(--yg-ink); background: #f3f4ef; }
.yg-subtab li.active a { background: var(--yg-ink); color: #fff; font-weight: 500; }

/* ---------- 하단 상담: 숲 이미지 위 유리 카드 ---------- */
.yg-subcta { position: relative; overflow: hidden; margin-top: 40px; padding: 120px 0; background: var(--yg-ink); color: rgba(255,255,255,.8); }
.yg-subcta-bg { position: absolute; inset: 0; background: center/cover no-repeat; opacity: .55; transform: scale(1.05); }
.yg-subcta:before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,23,24,.85), rgba(15,23,24,.35)); }
.yg-subcta-inner { z-index: 2; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 60px; align-items: center; }
.yg-subcta-eyebrow { margin: 0; font-size: 14px; letter-spacing: .35em; color: var(--yg-leaf); }
.yg-subcta-txt h3 { margin: 18px 0 0; font-size: 46px; line-height: 1.25; font-weight: 300; color: #fff; }
.yg-subcta-txt > p:last-child { max-width: 480px; margin: 22px 0 0; font-size: 16px; line-height: 1.8; }
.yg-subcta-card { padding: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.yg-subcta-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; }
.yg-subcta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yg-leaf); animation: yg-sub-pulse 1.8s infinite; }
@keyframes yg-sub-pulse { 0% { box-shadow: 0 0 0 0 rgba(159,209,139,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(159,209,139,0); } }
.yg-subcta-tel { display: block; margin-top: 10px; font-size: 52px; font-weight: 400; letter-spacing: .02em; color: #fff !important; text-decoration: none; }
.yg-subcta-card ul { margin: 20px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; line-height: 1.7; }
.yg-subcta-card li { display: flex; gap: 10px; }
.yg-subcta-card li + li { margin-top: 8px; }
.yg-subcta-card li i { color: var(--yg-leaf); }
.yg-subcta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.yg-subcta-btns a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; border-radius: 40px; background: #fff; color: var(--yg-ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background .3s, color .3s; }
.yg-subcta-btns a:hover { background: var(--yg-leaf); color: var(--yg-ink); }
.yg-subcta-btns a.is-line { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.yg-subcta-btns a.is-line:hover { background: #fff; color: var(--yg-ink); }

/* 스크롤하면 흐릿하게 시작해 또렷해진다 (JS가 is-wait를 붙였을 때만) */
.yg-reveal { transition: opacity .8s cubic-bezier(.2,.8,.2,1), filter .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.yg-reveal.is-wait { opacity: 0; filter: blur(4px); transform: translateY(24px); }
.yg-subcta-card.yg-reveal { transition-delay: .15s; }

/* 동작 줄이기 설정: 펼침 · 흐림 · 반복 효과 없이 바로 보여준다 */
@media (prefers-reduced-motion: reduce) {
	.yg-subvis.is-wait, .yg-subvis.is-ready { clip-path: none; transition: none; }
	.yg-subvis-bg, .yg-subvis.is-wait .yg-subvis-bg { transform: none; transition: none; }
	.yg-subvis-inner > *, .yg-subvis.is-wait .yg-subvis-inner > * { opacity: 1; filter: none; transform: none; transition: none; }
	.yg-reveal, .yg-reveal.is-wait { opacity: 1; filter: none; transform: none; transition: none; }
	.yg-subvis-scroll i:after, .yg-subcta-dot { animation: none; }
	.yg-subvis-scroll i:after { transform: none; }
}

@media (max-width: 1199px) {
	.yg-subwrap { padding: 0 24px; }
	.yg-subvis-foot:before { left: 24px; right: 24px; }
	.yg-subvis h1 { font-size: 48px; }
	.yg-subcta-inner { grid-template-columns: minmax(0,1fr); gap: 40px; }
}
@media (max-width: 767px) {
	.yg-subwrap { padding: 0 16px; }
	.yg-subvis { height: 56vh; min-height: 400px; }
	.yg-subvis-inner { padding-bottom: 36px; }
	.yg-subvis-foot { padding-top: 16px; padding-bottom: 40px; }
	.yg-subvis-foot:before { left: 16px; right: 16px; }
	.yg-subvis-eyebrow { font-size: 12px; letter-spacing: .25em; gap: 10px; }
	.yg-subvis-eyebrow i { width: 20px; }
	.yg-subvis h1 { font-size: 34px; }
	.yg-subvis-desc { font-size: 15px; }
	.yg-subvis-scroll { display: none; }
	.yg-subtab { justify-content: flex-start; margin: -26px 16px 0; }
	.yg-subtab a { padding: 12px 18px; font-size: 14px; }
	.yg-subcta { padding: 72px 0; }
	.yg-subcta-txt h3 { font-size: 30px; }
	.yg-subcta-card { padding: 28px 22px; border-radius: 18px; }
	.yg-subcta-tel { font-size: 38px; }
	.yg-subcta-btns a { padding: 14px 8px; font-size: 14px; }
}
