/* ========== 홈 ========== */
/* ----- 히어로 · 수정 전(기본): 둥근 상자, 높이 420~600px. 아래 "수정 후(크게)"를 꺼도 이 모양으로 그대로 돌아간다. 되돌리는 법: docs/히어로-크기.md ----- */
.yd-hero { position: relative; border-radius: var(--yd-r-hero); overflow: hidden; background: var(--yd-photo-dark); min-height: 600px; min-height: clamp(420px, calc(100svh - 288px), 600px); display: grid; }
/* 높이: 노트북(화면 높이 720~860px)에서 히어로 바로 아래 강점 띠까지 첫 화면에 들어오도록 화면 높이에 맞춰 420~600px.
   288px = 띠 배너 42 + 헤더 77 + 위 여백 20 + 강점 띠와 그 여백 약 149(띠 글이 두 줄이 되는 1024~1280px 기준). svh를 모르는 브라우저는 600px 그대로. */
/* 슬라이드를 한 칸에 같은 배치로 겹친다. 안 보이는 슬라이드도 자리를 그대로 지켜야 넘어갈 때 글자가 위로 튀지 않고,
   pointer-events를 꺼야 보이는 슬라이드의 버튼을 가로채지 않는다(z-index는 주지 않는다: 넘기기 버튼이 가려진다). */
.yd-hero__slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; width: 100%; min-width: 0; min-height: inherit; opacity: 0; pointer-events: none; transition: opacity .6s; }
.yd-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.yd-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 사진 위아래 자르지 않기(슬라이드 옵션, 시상식 사진처럼 위 현수막과 아래 발끝이 다 보여야 할 때).
   사진 높이를 히어로 높이에 맞추고 너비는 비율대로 둔다. 화면이 사진보다 넓으면 양옆이 남고(흐린 같은 사진으로 채운다),
   화면이 사진보다 좋으면(휴대폰) 양옆이 잘린다. 가장자리는 흐린 바탕에 스미게 한다. */
.yd-hero__bg--blur { filter: blur(28px) brightness(.72); transform: scale(1.14); }
.yd-hero__bg--fit { left: 50%; right: auto; width: auto; max-width: none; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.yd-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.70) 100%); }
/* 자르지 않는 슬라이드: 아래를 어둡게 덮으면 사진 아래쪽(사람 다리)이 묻힌다. 글자가 있는 왼쪽만 어둡게 하고 아래는 옅게(PC). 휴대폰은 글자가 사진 위에 얹혀서 그대로 둔다 */
@media (min-width: 721px) {
	.yd-hero__slide--fit .yd-hero__shade, .yd-hero-sec--full .yd-hero__slide--fit .yd-hero__shade { background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.34) 36%, rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.34) 100%); }
}
.yd-hero__badge { position: absolute; right: 64px; top: 88px; width: 360px; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.yd-hero__content { position: relative; padding: 0 64px 56px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.yd-hero__eyebrow { color: #E8E2D9; font-size: 15px; font-weight: 600; }
.yd-hero__title { color: #fff; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.22; font-weight: 800; letter-spacing: var(--yd-tracking-tight); max-width: 760px; white-space: pre-line; }
.yd-hero__sub { color: #F0ECE4; font-size: 18px; max-width: 620px; }
.yd-hero__ctrl { position: absolute; right: 64px; bottom: 56px; display: inline-flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; }
.yd-hero__ctrl button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.yd-hero__ctrl button[data-pause] { background: rgba(255,255,255,.18); }
.yd-hero__ctrl span { min-width: 44px; text-align: center; font-size: 14px; font-weight: 600; }
.yd-hero__bars { display: none; }
@keyframes yd-hero-bar { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 1200px) { .yd-hero__badge { display: none; } }
/* 손가락으로 누르는 화면: 넘기기·일시정지 버튼을 44px로 */
@media (max-width: 999px), (pointer: coarse) {
	.yd-hero__ctrl button { width: 44px; height: 44px; }
}
@media (max-width: 720px) {
	.yd-hero { min-height: 440px; }
	.yd-hero__content { padding: 0 20px 18px; gap: 10px; }
	/* 사진이 여러 장이면 글 아래에 진행 막대 한 줄. 넘기기는 좌우로 밀어서 한다 */
	.yd-hero:has(.yd-hero__ctrl) .yd-hero__content { padding-bottom: 60px; }
	.yd-hero__ctrl { left: 20px; right: 20px; bottom: 14px; display: flex; gap: 10px; padding: 0; background: none; }
	.yd-hero__ctrl [data-prev], .yd-hero__ctrl [data-next] { display: none; }
	.yd-hero__ctrl span { position: absolute; width: 1px; height: 1px; min-width: 0; overflow: hidden; clip-path: inset(50%); }
	/* 보이는 크기는 32px, 누르는 면은 ::after로 44px */
	.yd-hero__ctrl button[data-pause] { width: 32px; height: 32px; flex-shrink: 0; position: relative; }
	.yd-hero__ctrl button[data-pause]::after { content: ''; position: absolute; inset: -6px; }
	.yd-hero__bars { flex: 1; display: flex; gap: 5px; }
	.yd-hero__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.34); overflow: hidden; position: relative; }
	.yd-hero__bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
	.yd-hero__bars i.is-done::after { transform: none; }
	.yd-hero__bars i.is-on::after { animation: yd-hero-bar var(--yd-hero-dur, 5s) linear forwards; }
	.yd-hero.is-held .yd-hero__bars i.is-on::after { animation: none; transform: none; } /* 멈춘 동안은 지금 칸을 가득 채워 둔다 */
	.yd-hero__title { font-size: 29px; }
	.yd-hero__sub { font-size: 15px; }
	.yd-hero__primary { display: none; } /* 모바일은 하단 고정 버튼이 견적을 맡는다 */
}

/* 낮은 화면(폰 가로 모드): 히어로가 화면보다 높아 제목·버튼이 첫 화면 밖으로 밀리지 않게 화면 높이에 맞춘다 */
@media (max-height: 500px) and (orientation: landscape) {
	.yd-hero { min-height: max(260px, calc(100vh - 96px)); min-height: max(260px, calc(100svh - 96px)); }
}
@media (max-height: 500px) and (orientation: landscape) and (min-width: 721px) {
	.yd-hero__content { padding: 0 32px 24px; gap: 12px; }
	.yd-hero__title { font-size: 28px; }
	.yd-hero__sub { font-size: 15px; }
	/* 오른쪽 아래 떠 있는 상담 버튼(60px)과 겹치지 않게 왼쪽으로 비켜 둔다 */
	.yd-hero__ctrl { right: 96px; bottom: 24px; }
}

/* ----- 히어로 · 수정 후(크게) 시작: 2026-11-24 상무님 의견. 화면 좌우 끝까지, 헤더 아래 첫 화면을 가득 채우고 글자도 키운다.
   front-page.php의 $hero_full이 true일 때만 section에 yd-hero-sec--full이 붙어 켜진다(false면 위 "수정 전" 그대로).
   --yd-hero-top = 히어로 위에 있는 띠 배너 + 헤더 높이, --yd-hero-bottom = 모바일 하단 고정 버튼 높이. main.js가 재서 넣고, 아래 숫자는 재기 전 기본값. ----- */
.yd-hero-sec--full { padding-top: 0; --yd-hero-edge: max(64px, calc((100vw - var(--yd-max-wide)) / 2 + 64px)); }
.yd-hero-sec--full > .yd-wrap { max-width: none; padding: 0; }
.yd-hero-sec--full .yd-hero { border-radius: 0; min-height: max(480px, calc(100vh - var(--yd-hero-top, 119px))); min-height: max(480px, calc(100svh - var(--yd-hero-top, 119px))); }
.yd-hero-sec--full .yd-hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,.72) 100%); }
.yd-hero-sec--full .yd-hero__content { max-width: var(--yd-max-wide); margin: 0 auto; padding: 0 64px 80px; gap: 22px; }
.yd-hero-sec--full .yd-hero__eyebrow { font-size: 17px; }
.yd-hero-sec--full .yd-hero__title { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.18; max-width: 1000px; }
.yd-hero-sec--full .yd-hero__sub { font-size: 21px; max-width: 720px; }
.yd-hero-sec--full .yd-hero__content .yd-btn { min-height: 56px; padding-left: 30px; padding-right: 30px; font-size: 17px; }
/* 오른쪽 아래 떠 있는 상담 버튼(60px)과 겹치지 않게 넘기기 버튼은 40px 더 안쪽 */
.yd-hero-sec--full .yd-hero__ctrl { right: calc(var(--yd-hero-edge) + 40px); bottom: 80px; }
.yd-hero-sec--full .yd-hero__badge { right: var(--yd-hero-edge); top: 96px; width: 400px; }
@media (max-width: 720px) {
	.yd-hero-sec--full .yd-hero { min-height: max(440px, calc(100vh - var(--yd-hero-top, 96px) - var(--yd-hero-bottom, 71px))); min-height: max(440px, calc(100svh - var(--yd-hero-top, 96px) - var(--yd-hero-bottom, 71px))); }
	.yd-hero-sec--full .yd-hero__content { padding: 0 20px 22px; gap: 12px; }
	.yd-hero-sec--full .yd-hero:has(.yd-hero__ctrl) .yd-hero__content { padding-bottom: 64px; }
	.yd-hero-sec--full .yd-hero__eyebrow { font-size: 14px; }
	.yd-hero-sec--full .yd-hero__title { font-size: 34px; }
	.yd-hero-sec--full .yd-hero__sub { font-size: 16px; }
	.yd-hero-sec--full .yd-hero__content .yd-btn { min-height: 48px; padding-left: 20px; padding-right: 20px; font-size: 15px; }
	.yd-hero-sec--full .yd-hero__ctrl { left: 20px; right: 20px; bottom: 16px; }
}
/* 폰 가로 모드: 글자는 "수정 전" 크기로 두고 높이만 화면에 맞춘다 */
@media (max-height: 500px) and (orientation: landscape) {
	.yd-hero-sec--full .yd-hero { min-height: max(260px, calc(100vh - var(--yd-hero-top, 60px))); min-height: max(260px, calc(100svh - var(--yd-hero-top, 60px))); }
}
@media (max-height: 500px) and (orientation: landscape) and (min-width: 721px) {
	.yd-hero-sec--full .yd-hero__content { padding: 0 max(32px, env(safe-area-inset-right)) 24px max(32px, env(safe-area-inset-left)); gap: 12px; }
	.yd-hero-sec--full .yd-hero__eyebrow { font-size: 15px; }
	.yd-hero-sec--full .yd-hero__title { font-size: 28px; }
	.yd-hero-sec--full .yd-hero__sub { font-size: 15px; }
	.yd-hero-sec--full .yd-hero__content .yd-btn { min-height: 0; padding-left: 20px; padding-right: 20px; font-size: 15px; }
	.yd-hero-sec--full .yd-hero__ctrl { right: 96px; bottom: 24px; }
}
/* ----- 히어로 · 수정 후(크게) 끝 ----- */

.yd-trust { background: var(--yd-brand); border-radius: var(--yd-r-panel); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.yd-trust a { padding: 24px 28px; display: flex; gap: 16px; align-items: center; }
.yd-trust strong { font-size: 17px; display: block; }
.yd-trust small { font-size: 14px; color: var(--yd-text-sub); }
.yd-trust svg { color: var(--yd-accent); flex-shrink: 0; }
@media (max-width: 720px) {
	/* 두 칸으로 나누면 제목·설명이 제각각 줄바꿈돼 흐트러진다. 한 줄에 하나씩, 가는 선으로 나눈다 */
	.yd-trust { grid-template-columns: 1fr; border-radius: var(--yd-r-card); padding: 4px 18px; }
	.yd-trust a { padding: 14px 0; gap: 14px; }
	.yd-trust a + a { border-top: 1px solid rgba(0,0,0,.08); }
	.yd-trust strong { font-size: 15.5px; line-height: 1.35; }
	.yd-trust small { display: block; font-size: 13px; line-height: 1.45; word-break: keep-all; }
	.yd-trust svg { width: 24px; height: 24px; }
}
/* 4개가 3+1로 떨어지지 않게: 태블릿 세로는 2×2 */
@media (min-width: 721px) and (max-width: 999px) {
	.yd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 폴더블 펼친 화면(600~720px): 모바일 목록 모양을 두 줄로 나눈다 */
@media (min-width: 600px) and (max-width: 720px) {
	.yd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.yd-trust a:nth-child(2) { border-top: 0; }
}

.yd-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.yd-sec-head > div { display: flex; flex-direction: column; gap: 10px; }
/* 오른쪽에 오는 버튼 묶음·탭은 가로로(위 규칙이 div 전체에 걸려 세로로 쌓이던 문제) */
.yd-sec-head > .yd-row { flex-direction: row; gap: var(--gap, 12px); }
.yd-sec-head > .yd-seg { flex-direction: row; gap: 4px; }

/* 홈 박람회·영상 카드: 사진 가운데 재생 버튼, 누르면 .yd-video 창 */
.yd-video-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.yd-video-card .yd-photo { --ratio: 16 / 9; }
.yd-video-card .yd-photo > img { transition: transform .4s ease; }
.yd-video-card__play { position: relative; width: 76px; height: 76px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--yd-accent); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.22); transition: transform .2s ease; }
.yd-video-card__play svg { margin-left: 4px; }
.yd-video-card__body { display: flex; flex-direction: column; gap: 4px; }
.yd-video-card__body strong { font-size: 22px; font-weight: 700; letter-spacing: var(--yd-tracking-tight); word-break: keep-all; }
.yd-video-card__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; font-size: 15px; }
.yd-video-card:hover .yd-video-card__play, .yd-video-card:focus-visible .yd-video-card__play { transform: scale(1.08); }
.yd-video-card:hover .yd-photo > img { transform: scale(1.03); }
.yd-video-card:hover .yd-video-card__more { color: var(--yd-accent); }
.yd-video__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yd-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (prefers-reduced-motion: reduce) { .yd-video-card .yd-photo > img, .yd-video-card__play { transition: none; } }
@media (max-width: 720px) {
	.yd-video-card__play { width: 60px; height: 60px; }
	.yd-video-card__body strong { font-size: 19px; }
}
.yd-side-cta .yd-btn { white-space: nowrap; }

.yd-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.yd-compare figure { --ratio: 4 / 3; border-radius: var(--yd-r-panel); }
.yd-compare figcaption { position: absolute; left: 16px; bottom: 16px; pointer-events: none; }
/* 시공사례 상세: 3D 시안 · 공간별 사진을 누르면 크게 보기 */
.yd-zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.yd-zoom > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
button.yd-zoomable { width: 100%; padding: 0; border: 0; cursor: zoom-in; font: inherit; }
@media (max-width: 720px) {
	.yd-compare { grid-template-columns: 1fr; }
}
/* 폰(599px 이하)에서만 한 장씩 번갈아 본다. 폴더블 펼친 화면(600~720px)은 두 장을 나란히 놓고 전환 탭을 숨긴다 */
@media (max-width: 599px) {
	.yd-compare[data-toggle-compare] figure:not(.is-shown) { display: none; }
}
@media (min-width: 600px) and (max-width: 720px) {
	.yd-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.yd-seg[data-compare-tabs] { display: none !important; }
}

.yd-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.yd-numbers > div { background: #fff; border-radius: var(--yd-r-card); padding: 28px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.yd-numbers strong { font-size: 40px; font-weight: 800; color: var(--yd-accent); line-height: 1.2; }
.yd-numbers span { font-size: 15px; color: var(--yd-text-body); }
@media (min-width: 721px) and (max-width: 999px) { .yd-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 홈 시공사례: 지역 칩으로 거르는 동안 */
[data-case-grid] { transition: opacity .2s; }
[data-case-grid][aria-busy="true"] { opacity: .45; pointer-events: none; }
/* 홈 예당 소식: 왼쪽 최신 글 큰 사진(제목을 사진 위에), 오른쪽 작은 사진 목록 3건 */
.yd-news-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.yd-news-hero { position: relative; display: block; min-height: 440px; border-radius: var(--yd-r-panel); overflow: hidden; color: #fff; text-decoration: none; }
.yd-news-hero .yd-photo { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.yd-news-hero .yd-photo > img { transition: transform .5s ease; }
.yd-news-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.74)); }
.yd-news-hero__body { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.yd-news-hero__cat { font-size: 13px; font-weight: 700; opacity: .9; }
.yd-news-hero strong { font-size: 26px; line-height: 1.4; letter-spacing: var(--yd-tracking-tight); word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yd-news-hero__date { font-size: 14px; opacity: .85; }
.yd-news-hero:hover, .yd-news-hero:focus-visible { color: #fff; }
.yd-news-hero:hover .yd-photo > img { transform: scale(1.03); }
.yd-news-side { display: flex; flex-direction: column; border-top: 2px solid var(--yd-ink); }
.yd-news-row { flex: 1; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--yd-line); color: inherit; text-decoration: none; }
.yd-news-row .yd-photo { --ratio: 4 / 3; border-radius: 12px; }
.yd-news-row strong { font-size: 17px; line-height: 1.45; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yd-news-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .yd-news-hero .yd-photo > img { transition: none; } }
@media (max-width: 960px) { .yd-news-feature { grid-template-columns: 1fr; gap: 20px; } .yd-news-hero { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 720px) {
	.yd-news-hero { aspect-ratio: 4 / 3; }
	.yd-news-hero__body { left: 18px; right: 18px; bottom: 16px; }
	.yd-news-hero strong { font-size: 19px; }
	.yd-news-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
	.yd-news-row strong { font-size: 15px; }
}
/* 홈 자재 브랜드: 섹션 머리 아래 로고 칸(테두리 칸 하나에 로고 하나. 회색 → 마우스를 올리면 원래 색). 움직이지 않는다.
   로고 높이(--h)는 front-page.php가 로고 비율로 정한다. PC는 칸 폭에 맞춰 한 줄에 여러 개, 모바일은 세 칸씩. */
.yd-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.yd-brands li { height: 104px; padding: 0 20px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--yd-line); border-radius: var(--yd-r-card); background: #fff; }
.yd-brands img { width: auto; height: var(--h, 32px); max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.yd-brands li:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .yd-brands img { transition: none; } }
/* 태블릿·모바일은 한 줄에 3개. 개수가 3의 배수가 아니면(예: 5개 → 3+2) 마지막 줄을 가운데로 모은다 */
@media (max-width: 999px) {
	.yd-brands { display: flex; flex-wrap: wrap; justify-content: center; }
	.yd-brands li { flex: 0 0 calc((100% - 24px) / 3); min-width: 0; }
}
@media (max-width: 720px) {
	.yd-brands { gap: 8px; }
	.yd-brands li { flex-basis: calc((100% - 16px) / 3); height: 68px; padding: 0 12px; border-radius: 12px; }
	.yd-brands img { height: calc(var(--h, 32px) * .6); }
}
/* 홈 약속 패널(사훈 · 숫자 · 수상). 모바일은 패널 여백을 줄여 안쪽 흰 칸이 넓게 쓰이도록. */
.yd-home-trust { --gap: 40px; padding: 64px 56px; }
.yd-home-trust > .yd-h2 { text-align: center; font-size: 34px; }
/* 사훈 표기: 가운데, 제목에 바짝 붙인다(패널 칸 간격을 10px만 남기고 되돌림). */
.yd-home-trust > .yd-eyebrow { text-align: center; margin-bottom: calc(10px - var(--gap)); }
@media (max-width: 720px) {
	.yd-home-trust { --gap: 24px; padding: 36px 14px 14px; }
	.yd-home-trust > .yd-h2 { font-size: 24px; }
}
/* 홈 수상·인증: 약속 패널 안, 숫자 칸 바로 아래의 흰 칸 하나. 인증서 한 장을 크게(읽히는 크기), 나머지는 이름 목록.
   사진이 있는 줄은 누르면 크게 보기. 사진이 하나도 없으면(--plain) 목록만. 모바일은 제목 → 큰 사진 → 목록. */
.yd-home-awards { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 56px; align-items: center; background: #fff; border-radius: var(--yd-r-card); padding: 36px 44px; }
.yd-home-awards--plain { grid-template-columns: minmax(0, 1fr); }
.yd-home-awards__lead { margin: 0; }
.yd-home-awards__lead .yd-photo { --ratio: 3 / 4; width: 100%; padding: 0; border: 0; border-radius: 14px; background: var(--yd-muted); cursor: zoom-in; }
.yd-home-awards__lead .yd-photo > img { object-fit: contain; padding: 16px; transition: transform .3s ease; }
.yd-home-awards__lead .yd-photo:hover > img { transform: scale(1.03); }
.yd-home-awards__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.yd-home-awards__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.yd-home-awards__head h3 { font-size: 22px; font-weight: 800; letter-spacing: var(--yd-tracking-tight); }
.yd-home-awards__head .yd-link-more { font-size: 15px; }
.yd-home-awards__list { border-top: 1px solid var(--yd-ink); }
.yd-home-awards__list li { border-bottom: 1px solid var(--yd-line); }
.yd-home-awards__list li:last-child { border-bottom: 0; }
.yd-home-awards__list li > * { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 4px 24px; flex-wrap: wrap; padding: 15px 2px; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.yd-home-awards__list button { cursor: zoom-in; }
.yd-home-awards__list strong { font-size: 17px; font-weight: 700; word-break: keep-all; transition: color .2s; }
.yd-home-awards__list span { font-size: 14px; color: var(--yd-text-sub); }
.yd-home-awards__list button:hover strong { color: var(--yd-accent); }
@media (prefers-reduced-motion: reduce) { .yd-home-awards__lead .yd-photo > img, .yd-home-awards__list strong { transition: none; } }
@media (max-width: 960px) { .yd-home-awards { gap: 32px; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); padding: 28px; } }
@media (max-width: 720px) {
	.yd-home-awards { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 18px 10px; }
	.yd-home-awards__body { display: contents; }
	.yd-home-awards__lead { order: 1; width: 84%; max-width: 320px; margin: 0 auto; }
	.yd-home-awards__list { order: 2; }
	.yd-home-awards__head h3 { font-size: 18px; }
	.yd-home-awards__head .yd-link-more { font-size: 14px; }
	.yd-home-awards__list li > * { padding: 13px 0; }
	.yd-home-awards__list strong { font-size: 15px; }
	.yd-home-awards__list span { font-size: 13px; }
}
@media (max-width: 720px) {
	.yd-numbers { grid-template-columns: 1fr 1fr; gap: 8px; }
	.yd-numbers > div { padding: 18px 12px; }
	.yd-numbers strong { font-size: 28px; }
	.yd-numbers span { font-size: 13px; }
}

.yd-designer-card .yd-photo { --ratio: 4 / 5; }
.yd-designer-scroll .yd-designer-card { width: 240px; }
@media (max-width: 720px) { .yd-designer-scroll .yd-designer-card { width: 148px; } }

/* ========== 시공사례 목록 ========== */
.yd-works { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.yd-filter { flex: 1 1 260px; max-width: 300px; border: 1px solid var(--yd-line); border-radius: var(--yd-r-card); padding: 24px; display: flex; flex-direction: column; gap: 28px; background: #fff; }
.yd-filter fieldset { border: 0; margin: 0; padding: 0; }
.yd-filter legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.yd-filter__head { display: flex; justify-content: space-between; align-items: center; }
.yd-filter__apply { display: none; }
.yd-works__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.yd-works__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.yd-filter-open { display: none; }
/* 태블릿 세로 이하(999px)에서는 필터를 옆 칸 대신 "필터" 버튼 + 시트로 바꾼다(옆 칸은 260 + 40 + 560 + 좌우 여백 48 = 908px 아래에서 결과 위로 올라가 한 화면을 차지한다).
   main.js는 필터가 position: fixed인지로 시트 상태를 판단한다(시트에서는 "사례 보기"를 눌러야 적용). */
@media (max-width: 999px) {
	.yd-filter { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; max-width: none; border-radius: 24px 24px 0 0; max-height: 85vh; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -8px 24px rgba(0,0,0,.15); }
	.yd-filter.is-open { display: flex; }
	/* 적용 버튼 줄은 시트 바닥에 붙인다(시트 안쪽 여백 24px만큼 밖으로 빼서 칩이 아래로 비치지 않게) */
	.yd-filter__apply { display: flex; gap: 8px; position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--yd-line); }
	.yd-filter-open { display: inline-flex; }
}
/* 태블릿: 화면 전체 폭 대신 가운데 카드로 */
@media (min-width: 721px) and (max-width: 999px) {
	.yd-filter { left: 50%; right: auto; bottom: 24px; width: min(640px, calc(100vw - 48px)); transform: translateX(-50%); border-radius: 24px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
	.yd-filter__apply { border-radius: 0 0 24px 24px; padding-bottom: 16px; }
}

/* ========== 시공사례 상세 ========== */
.yd-gallery { display: flex; flex-wrap: wrap-reverse; gap: 12px; }
.yd-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.yd-gallery__thumbs button { width: 88px; height: 66px; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; background: var(--yd-ph); }
.yd-gallery__thumbs button[aria-pressed="true"] { border-color: var(--yd-ink); }
.yd-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.yd-gallery__stage { flex: 1 1 400px; min-width: 0; }
.yd-gallery__main { --ratio: 4 / 3; border-radius: var(--yd-r-panel); }
.yd-gallery__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.yd-gallery__track::-webkit-scrollbar { display: none; }
.yd-gallery__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; border: 0; padding: 0; background: none; cursor: zoom-in; }
.yd-gallery__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yd-gallery__count { position: absolute; right: 16px; bottom: 16px; pointer-events: none; }
.yd-gallery__bar { display: none; }
@media (max-width: 720px) {
	/* 모바일: 작은 사진 줄 대신 밀어서 넘기고, 아래 얇은 막대로 어디쯤인지 보여 준다 */
	.yd-gallery__thumbs { display: none; }
	.yd-gallery__main { border-radius: 0; margin: 0 calc(var(--yd-gutter) * -1); }
	.yd-gallery__count { right: 12px; bottom: 12px; }
	.yd-gallery__zoom { display: none; }
	/* 사진 아래 붙은 흰 여백("After" 글씨) 위에 얹으면 안 보여서 사진 밖, 바로 아래에 둔다 */
	.yd-gallery__bar { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--yd-line); overflow: hidden; }
	.yd-gallery__bar i { display: block; height: 100%; border-radius: inherit; background: var(--yd-ink); will-change: transform; }
	.yd-side-cta { display: none; }
}

/* ========== 쇼룸 ========== */
/* 220px: 태블릿 세로(768px)에서도 지점 3곳이 한 줄에 들어간다(300px이면 2+1로 떨어진다) */
.yd-branch-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
/* 지점 고르기는 길 안내라 낮게 둔다(작은 사진 + 이름·주소·전화). 고른 지점의 사진이 첫 화면에 들어오게 하려는 것(2026-11-25).
   큰 사진 카드였을 때는 카드 사진과 바로 아래 대표 사진이 같은 장면으로 두 번 나왔다. */
.yd-branch-pick a { border: 2px solid var(--yd-line); border-radius: 20px; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 12px; }
.yd-branch-pick a:hover { border-color: var(--yd-line-strong); }
.yd-branch-pick a[aria-current="page"] { border-color: var(--yd-ink); }
.yd-branch-pick .yd-photo { flex: 0 0 clamp(72px, 9vw, 120px); border-radius: 12px; --ratio: 4 / 3; }
.yd-branch-pick__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.yd-floor { display: flex; align-items: center; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--yd-line); }
.yd-floor strong { flex: 0 0 64px; font-size: 18px; color: var(--yd-accent); }
.yd-floor span { flex: 1; }
/* 층 고르기(1F · 2F …). 화면 너비에 따라 세 가지로 보인다.
   ① PC, 본문 칸 640px 이상: 같은 폭 칸의 한 줄 막대. 칸마다 층 번호를 위에, 공간 이름을 아래에 쌓는다.
      (이름을 옆으로 나란히 쓰면 7개 층인 제1전시관은 본문 폭에 안 들어가고, 옆으로 밀게 하면 마우스로는 뒤쪽 층에 갈 수 없다)
   ② PC, 그보다 좁을 때: 줄바꿈하는 칩.
   ③ 휴대폰(화면 720px 이하): 층 번호만 쓰는 밑줄 탭. 공간 이름은 사진 위 제목(.yd-floor-head)으로 내려간다.
   ①의 기준은 화면이 아니라 본문 칸 너비라 컨테이너 쿼리를 쓴다(예약 상자가 옆에 붙으면 본문 칸이 좁아진다). */
.yd-floor-view { container-type: inline-size; }
.yd-floor-tabs { display: flex; }
.yd-floor-tab { display: inline-flex; align-items: center; flex-shrink: 0; border: 0; background: none; color: var(--yd-ink); white-space: nowrap; }
.yd-floor-head { display: none; }
@media (min-width: 721px) {
	.yd-floor-tabs { flex-wrap: wrap; gap: 8px; }
	.yd-floor-tab { gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--yd-line-strong); border-radius: var(--yd-r-pill); background: #fff; font-size: 14px; font-weight: 600; }
	.yd-floor-tab b { color: var(--yd-accent); font-weight: 800; }
	.yd-floor-tab:hover { border-color: var(--yd-ink); }
	.yd-floor-tab[aria-pressed="true"] { background: var(--yd-ink); border-color: var(--yd-ink); color: #fff; }
	.yd-floor-tab[aria-pressed="true"] b { color: inherit; }
	@container (min-width: 640px) {
		.yd-floor-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--yd-muted); border-radius: 18px; }
		.yd-floor-tab { flex-direction: column; justify-content: center; gap: 3px; min-height: 68px; padding: 8px 4px; border: 0; border-radius: 14px; background: transparent; color: var(--yd-text-body); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: center; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
		.yd-floor-tab b { font-size: 16px; line-height: 1.2; }
		.yd-floor-tab:hover { background: rgba(255,255,255,.65); }
		.yd-floor-tab[aria-pressed="true"] { background: #fff; color: var(--yd-ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
		.yd-floor-tab[aria-pressed="true"] b { color: var(--yd-accent); }
	}
}
.yd-map { position: relative; overflow: hidden; aspect-ratio: 16 / 7; border-radius: var(--yd-r-panel); background: #E9E6E0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--yd-ph-ink); }
/* 네이버 지도(main.js가 .yd-map__canvas를 넣고 그린다). 그리기 전이나 인증에 실패하면 주소 상자(.yd-map__ph)가 그대로 보인다 */
.yd-map__ph { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; text-align: center; }
/* 네이버 지도가 이 칸에 position: relative를 인라인으로 넣어서 !important로 고정한다(안 하면 높이가 0이 된다) */
.yd-map__canvas { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.yd-map.is-live .yd-map__ph { visibility: hidden; }
.yd-map.is-failed .yd-map__canvas { display: none; }
.yd-map.is-failed .yd-map__ph { visibility: visible; }
/* 지점 핀: 이름표 모양. 누르면 네이버 지도에서 연다. 좌표는 이름표 아래 꼭지 끝 */
.yd-map__pin { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 8px)); display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: var(--yd-accent); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.yd-map__pin:hover { color: #fff; }
.yd-map__pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 12px; height: 12px; background: var(--yd-accent); transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
@media (max-width: 720px) { .yd-map[data-map] { aspect-ratio: 4 / 3; } }
/* 사진 보기(yd_photo_viewer): 큰 사진 한 장 + 아래 작은 사진 줄. 큰 사진 띠·번호·막대는 시공사례 상세(.yd-gallery__*)와 같은 것을 쓴다.
   사진은 3:2 그대로(원본 비율)라 잘리지 않는다. 세로 사진은 통째로 보이게 한다 */
.yd-viewer__stage { border-radius: var(--yd-r-panel); background: var(--yd-brand); }
.yd-viewer .yd-gallery__slide.is-tall img { object-fit: contain; }
.yd-viewer__nav { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18); color: var(--yd-ink); font-size: 26px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.yd-viewer__nav:hover { background: #fff; }
.yd-viewer__nav[data-step="-1"] { left: 14px; }
.yd-viewer__nav[data-step="1"] { right: 14px; }
/* 작은 사진 줄: 한 줄로 두고, 지금 사진이 가운데 오게 따라간다(main.js). 끝에서 잘려 보이는 사진이 더 있음을 알린다 */
.yd-viewer__thumbs { flex-direction: row; gap: 8px; margin-top: 10px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.yd-viewer__thumbs::-webkit-scrollbar { display: none; }
.yd-viewer__thumbs button { flex: 0 0 102px; width: 102px; height: 68px; opacity: .78; }
.yd-viewer__thumbs button:hover, .yd-viewer__thumbs button[aria-pressed="true"] { opacity: 1; }
/* 사진이 한 장도 없는 지점: 사진 자리 표시 두 칸 */
.yd-interior { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.yd-interior > :last-child { aspect-ratio: auto; min-height: 0; }
@media (max-width: 720px) {
	.yd-branch-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--yd-muted); padding: 4px; border-radius: 14px; }
	.yd-branch-pick a { border: 0; border-radius: 11px; display: block; padding: 0; }
	.yd-branch-pick a[aria-current="page"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
	.yd-branch-pick .yd-photo, .yd-branch-pick__body .addr, .yd-branch-pick__body .tel { display: none; }
	.yd-branch-pick__body { padding: 10px 4px; align-items: center; gap: 0; }
	/* 층 고르기: 층 번호만 쓰는 밑줄 탭. 7개 층도 한 줄에 다 들어간다. 공간 이름과 사진 수는 사진 위 제목으로 */
	.yd-floor-tabs { border-bottom: 1px solid var(--yd-line); overflow-x: auto; scrollbar-width: none; }
	.yd-floor-tabs::-webkit-scrollbar { display: none; }
	.yd-floor-tab { min-height: 48px; margin-bottom: -1px; padding: 0 clamp(8px, 3vw, 13px); border-bottom: 2px solid transparent; color: var(--yd-text-faint); font-size: 18px; font-weight: 800; }
	.yd-floor-tab:first-child { padding-left: 0; }
	.yd-floor-tab span { display: none; }
	.yd-floor-tab[aria-pressed="true"] { color: var(--yd-ink); border-bottom-color: var(--yd-ink); }
	.yd-floor-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 6px; }
	.yd-floor-head strong { font-size: 18px; }
	.yd-floor-note { display: none; }
	/* 사진: 화살표와 작은 사진 줄 없이 손가락으로 밀어서 넘긴다. 번호와 아래 막대가 따라온다 */
	.yd-viewer__stage { border-radius: var(--yd-r-card); }
	.yd-viewer__nav { display: none; }
}

/* ========== 예당의 약속 ========== */
.yd-subnav { position: sticky; top: var(--yd-header-h); z-index: 15; background: #fff; border-bottom: 1px solid var(--yd-line); }
.yd-subnav__in { display: flex; gap: 28px; overflow-x: auto; }
.yd-subnav a { flex-shrink: 0; padding: 18px 0; font-size: 16px; font-weight: 700; color: var(--yd-text-sub); }
.yd-subnav a[aria-current="true"], .yd-subnav a[aria-current="page"] { color: var(--yd-ink); box-shadow: inset 0 -3px 0 var(--yd-accent); }
.yd-anchor { scroll-margin-top: calc(var(--yd-header-h) + 74px); }
.yd-promise-card { border: 1px solid var(--yd-line); border-radius: var(--yd-r-panel); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.yd-promise-card .no { font-size: 15px; font-weight: 800; color: var(--yd-accent); flex-shrink: 0; white-space: nowrap; }
.yd-promise-card strong { font-size: 22px; letter-spacing: -0.02em; }
.yd-process li { background: var(--yd-muted); border-radius: var(--yd-r-panel); padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; }
/* 시안 배치: 사훈 히어로 카드(넓은 폭, 글자는 본문 줄에 맞춤) · 약속 3열 · 과정 6열 · A/S 베이지 면 · 오피스텔 5열 + 이용 안내 */
.yd-promise-hero { padding: 72px 56px; }
.yd-promise-hero .yd-h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.25; }
.yd-promise-hero .yd-lead { font-size: 18px; color: var(--yd-text-body); max-width: 640px; }
.yd-promise-hero-sec + .yd-subnav { margin-top: 24px; }
.yd-promise-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yd-process { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yd-text-link { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.yd-compare__from { color: var(--yd-text-sub); align-self: flex-end; }
.yd-as-ways { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yd-as-way { background: #fff; border-radius: var(--yd-r-card); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.yd-as-way strong { font-size: 17px; }
.yd-as-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.yd-as-flow__step { background: #fff; border-radius: var(--yd-r-pill); padding: 6px 14px; font-size: 14px; font-weight: 700; }
.yd-as-flow__arrow { color: var(--yd-text-sub); font-size: 14px; }
/* A/S 처리 조회 결과(고객지원). 지난 단계는 진하게, 지금 단계는 검정 바탕 */
.yd-as-result { border-top: 1px solid var(--yd-line); padding-top: 18px; }
.yd-as-result:focus { outline: none; }
.yd-as-result__no { font-size: 20px; letter-spacing: .02em; }
.yd-as-result .yd-body { font-size: 16px; }
.yd-as-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.yd-as-track li { display: flex; align-items: center; justify-content: center; padding: 10px 6px; border-radius: var(--yd-r-input); background: var(--yd-muted); color: var(--yd-text-sub); font-size: 14px; font-weight: 700; text-align: center; word-break: keep-all; }
.yd-as-track li.is-done { color: var(--yd-ink); }
.yd-as-track li.is-now { background: var(--yd-ink); color: #fff; }
@media (min-width: 600px) { .yd-compare--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
	.yd-promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yd-process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.yd-subnav a { font-size: 15px; padding: 14px 0; }
	.yd-promise-hero { padding: 36px 20px; }
	.yd-promise-hero .yd-lead { font-size: 16px; }
	.yd-promise-hero-sec + .yd-subnav { margin-top: 16px; }
	.yd-promise-hero .yd-h1 { font-size: 30px; }
	.yd-promise-grid { grid-template-columns: 1fr; gap: 12px; }
	.yd-promise-card { padding: 16px 18px; flex-direction: row; gap: 14px; }
	.yd-process { grid-template-columns: 1fr; }
	.yd-as-ways { grid-template-columns: 1fr; }
}
/* 폴더블 펼친 화면(600~720px): 한 줄짜리 목록이 화면 폭만큼 길게 늘어지지 않게 2열로 */
@media (min-width: 600px) and (max-width: 720px) {
	.yd-promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yd-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========== 회사소개 ========== */
/* 시안 배치: 사훈 히어로 카드(가운데) · 이름의 뜻(글 | 한자 2칸) · 연혁(제목 | 목록) · 조직도 · 인사말 베이지 면 */
.yd-about-hero { padding: 96px 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.yd-about-hero .yd-h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.2; letter-spacing: -0.035em; }
.yd-about-hero .yd-lead { font-size: 18px; color: var(--yd-text-body); }
.yd-about-name { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.yd-hanja-grid { flex: 1 1 480px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.yd-hanja strong { font-size: 20px; }
.yd-about-history { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.yd-about-history > .yd-history-head { flex: 0 1 280px; position: sticky; top: calc(var(--yd-header-h) + 48px); }
.yd-about-history .yd-history { position: relative; flex: 1 1 560px; border-left: 2px solid var(--yd-line); margin-left: 6px; }
/* 연혁 스크롤 표시(스크립트가 is-live를 붙였을 때만). 화면 55% 높이를 지난 해까지 선과 점이 빨갛게 채워진다 */
.yd-history-now { margin-top: 20px; font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -0.045em; color: var(--yd-accent); font-variant-numeric: tabular-nums; }
.yd-history-now:empty { display: none; }
.yd-history-now.is-flip { animation: yd-history-flip .35s ease-out; }
@keyframes yd-history-flip { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.yd-history.is-live::after { content: ''; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--yd-accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.yd-history.is-live li::before, .yd-history.is-live li:first-child::before { z-index: 1; background: #CFCAC2; transition: background .3s, transform .3s, box-shadow .3s; }
.yd-history.is-live li.is-past::before { background: var(--yd-accent); }
.yd-history.is-live li.is-active::before { transform: scale(1.3); box-shadow: 0 0 0 5px rgba(206, 29, 45, .14); }
.yd-history.is-live strong { color: #8F8F8F; transition: color .3s; }
.yd-history.is-live span { color: var(--yd-text-sub); transition: color .3s; }
.yd-history.is-live li.is-past strong { color: var(--yd-ink); }
.yd-history.is-live li.is-past span { color: var(--yd-text-strong); }
.yd-history.is-live li.is-active strong { color: var(--yd-accent); }
@media (prefers-reduced-motion: reduce) {
	.yd-history.is-live li::before, .yd-history.is-live strong, .yd-history.is-live span { transition: none; }
	.yd-history-now.is-flip { animation: none; }
}
@media (max-width: 720px) {
	.yd-about-history > .yd-history-head { position: static; }
	.yd-history-now { display: none; }
}
.yd-history span { flex: 1 1 300px; font-size: 17px; line-height: 1.6; color: var(--yd-text-strong); }
/* 조직도: 대표이사 → 본부 → 팀 → 구성원. 1100px 이상은 선으로 이은 나무 모양, 그 아래는 본부별로 쌓고, 모바일은 팀 카드를 두 칸씩 놓는다.
   선은 자식 칸마다 위쪽 가로선(::before)과 가운데 세로선(::after)으로 그린다. 첫 칸은 가로선을 가운데부터, 끝 칸은 가운데까지만 그려서
   관리자에서 본부·팀 수를 바꿔도 선이 맞는다. 칸 사이 간격은 gap 대신 좌우 padding으로 준다(가로선이 끊기지 않게). */
.yd-org { --org-line: var(--yd-line-strong); --org-drop: 24px; --org-gap: 40px; --org-team-gap: 12px; }
.yd-org__divs, .yd-org__teams, .yd-org-team__list { list-style: none; margin: 0; padding: 0; }
.yd-org__root { display: flex; justify-content: center; margin: 0; }
.yd-org__node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: fit-content; min-width: 200px; min-height: 68px; margin: 0 auto; padding: 10px 28px; border-radius: var(--yd-r-input); background: var(--yd-brand); line-height: 1.3; text-align: center; }
.yd-org__node strong { font-size: 18px; font-weight: 800; letter-spacing: var(--yd-tracking); }
.yd-org__node span { font-size: 14px; color: #5C5C5C; /* 베이지 위 보조 글자(DESIGN.md 1) */ }
.yd-org__node--root { min-width: 260px; min-height: 60px; background: var(--yd-ink); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: var(--yd-tracking); }
.yd-org__divs { position: relative; display: flex; margin: 0 calc(var(--org-gap) / -2); padding-top: var(--org-drop); }
.yd-org__div { position: relative; flex: var(--n, 1) 1 0; min-width: 0; padding: var(--org-drop) calc(var(--org-gap) / 2) 0; display: flex; flex-direction: column; }
.yd-org__teams { position: relative; flex: 1 0 auto; display: flex; margin: 0 calc(var(--org-team-gap) / -2); padding-top: var(--org-drop); }
.yd-org__team { position: relative; flex: 1 1 0; min-width: 0; padding: var(--org-drop) calc(var(--org-team-gap) / 2) 0; }
.yd-org__divs::before, .yd-org__teams::before, .yd-org__div::after, .yd-org__team::after { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: var(--org-drop); background: var(--org-line); }
.yd-org__div::before, .yd-org__team::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--org-line); }
.yd-org__div:first-child::before, .yd-org__team:first-child::before { left: 50%; }
.yd-org__div:last-child::before, .yd-org__team:last-child::before { right: 50%; }
.yd-org-team { height: 100%; border: 1px solid var(--yd-line); border-radius: var(--yd-r-card); padding: 4px 10px 10px; background: var(--yd-bg); }
.yd-org-team__name { margin: 0; padding: 14px 4px 12px; border-bottom: 1px solid var(--yd-line); font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: var(--yd-tracking); text-align: center; }
.yd-org-team__list { padding-top: 6px; }
.yd-org-member { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 6px; padding: 8px 4px; border-radius: 8px; font-size: 15px; line-height: 1.4; color: inherit; text-decoration: none; }
.yd-org-member span { font-size: 14px; color: var(--yd-text-sub); }
.yd-org-member b { font-weight: 600; }
a.yd-org-member b { text-decoration: underline; text-decoration-color: var(--yd-line-input); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.yd-org-member:hover { background: var(--yd-muted); }
a.yd-org-member:hover b { text-decoration-color: var(--yd-ink); }
.yd-org__note { margin: 20px 0 0; text-align: center; }
@media (max-width: 1099px) {
	.yd-org__divs { flex-direction: column; gap: 40px; margin: 0; padding-top: 32px; }
	.yd-org__div { flex: none; padding: 0; }
	.yd-org__divs::before, .yd-org__div::before, .yd-org__div::after { display: none; }
}
@media (max-width: 720px) {
	.yd-org__divs { gap: 28px; padding-top: 24px; }
	.yd-org__node { width: 100%; min-height: 52px; }
	.yd-org__node--root { width: fit-content; min-width: 0; font-size: 16px; }
	.yd-org__node strong { font-size: 17px; }
	.yd-org__teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding-top: 10px; }
	.yd-org__team { padding: 0; }
	.yd-org-member { padding: 10px 4px; }
	.yd-org__teams::before, .yd-org__team::before, .yd-org__team::after { display: none; }
	.yd-org__note { margin-top: 16px; text-align: left; }
}
.yd-about-ceo { padding: 64px 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.yd-about-ceo .yd-article { font-size: 18px; line-height: 1.85; color: var(--yd-text-strong); }
@media (max-width: 720px) {
	.yd-about-hero { padding: 48px 20px; gap: 12px; }
	.yd-about-hero .yd-lead { font-size: 16px; }
	.yd-about-name, .yd-about-history { gap: 24px; }
	.yd-about-ceo { padding: 28px 20px; gap: 24px; }
	.yd-about-ceo .yd-article { font-size: 16px; }
}
.yd-hanja { border: 1px solid var(--yd-line); border-radius: 24px; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.yd-hanja__svg { width: 96px; height: 96px; display: block; }
.yd-hanja__ghost { fill: #ECE9E4; }
.yd-hanja__ink { fill: none; stroke: var(--yd-ink); stroke-width: 200; stroke-linecap: round; stroke-linejoin: round; }
/* 이름의 뜻 — 칸이 화면에 들어오면 한 번 재생(main.js가 is-live를 붙인다). 스크롤은 붙잡지 않는다.
   --t: 제목이 커지는 정도(0~1). 글은 낱말(span)마다 is-on, 한자 칸은 한 장만(is-on) 보이고 테두리는 바깥 칸이 맡는다. */
.yd-about-name [data-name-copy] { max-width: 520px; text-wrap: pretty; } /* 한 줄 30자 안팎 — 한자 칸과 사이를 넉넉히 */
.yd-name-pin.is-live .yd-h2 { width: fit-content; /* 줄 전체가 아니라 글자 폭만 커지게 — 아니면 커진 만큼 화면 옆으로 넘친다 */ transform-origin: left bottom; transform: scale(calc(1 + .24 * var(--t, 0))); will-change: transform; }
.yd-name-pin.is-live [data-name-copy] span { color: #C6C2BB; transition: color .35s; }
.yd-name-pin.is-live [data-name-copy] span.is-on { color: var(--yd-text-strong); }
.yd-name-pin.is-live .yd-hanja-grid { flex: 0 1 360px; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--yd-line); border-radius: 24px; }
.yd-name-pin.is-live .yd-hanja { grid-area: 1 / 1; border: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.yd-name-pin.is-live .yd-hanja.is-on { opacity: 1; visibility: visible; transition: opacity .35s .15s; }
.yd-name-pin.is-live .yd-hanja__svg { width: 168px; height: 168px; }
@media (max-width: 720px) {
	.yd-name-pin.is-live .yd-hanja-grid { flex: 1 1 100%; }
	.yd-name-pin.is-live .yd-hanja { padding: 28px 20px; }
	.yd-name-pin.is-live .yd-hanja__svg { width: 128px; height: 128px; }
}
.yd-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--yd-ink); border-bottom: 1px solid var(--yd-line); }
.yd-figures > div { padding: 36px 24px; display: flex; flex-direction: column; gap: 8px; }
.yd-figures strong { font-size: 44px; font-weight: 800; letter-spacing: var(--yd-tracking-tight); }
@media (min-width: 721px) and (max-width: 999px) { .yd-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yd-history li { position: relative; padding: 0 0 32px 32px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.yd-history li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 999px; background: var(--yd-ink); }
.yd-history li:first-child::before { background: var(--yd-accent); }
.yd-history strong { flex: 0 0 96px; font-size: 22px; font-weight: 800; }
.yd-award-card .yd-photo { --ratio: 3 / 4; border-radius: 12px; background: var(--yd-muted); border: 1px solid var(--yd-line); width: 100%; padding: 0; cursor: zoom-in; }
.yd-award-card .yd-photo > img { object-fit: contain; padding: 10px; }
.yd-award-card figcaption strong { font-size: 15px; line-height: 1.45; word-break: keep-all; }
/* 인사말: 임직원 단체 사진(가로 3:2) */
.yd-staff-photo { margin: 0; flex: 1 1 440px; min-width: 0; }
.yd-staff-photo .yd-photo { --ratio: 3 / 2; }

/* 수상·인증이 여러 건: 작은 카드를 촘촘히(PC 6열, 모바일 2열) */
.yd-award-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 960px) { .yd-award-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ========== 예당의 약속 · 오피스텔 호실 ========== */
/* 시안: PC 5열 카드(테두리 · 사진 위 · 이름과 '위치 · 구조' 아래), 아래에 굵은 선 + 이용 안내 | 상담 버튼 */
.yd-room-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .yd-room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .yd-room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yd-room-card { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--yd-line); border-radius: var(--yd-r-card); overflow: hidden; background: #fff; }
.yd-room-card .yd-photo { --ratio: 3 / 2; width: 100%; padding: 0; border: 0; border-radius: 0; cursor: zoom-in; }
.yd-room-card__state { position: absolute; left: 10px; top: 10px; }
.yd-room-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.yd-room-card figcaption strong { font-size: 15px; line-height: 1.45; word-break: keep-all; }
.yd-room-guide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; border-top: 2px solid var(--yd-ink); padding-top: 24px; }
.yd-room-guide__cta { flex: 0 1 320px; }
@media (max-width: 720px) {
	.yd-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.yd-room-card figcaption { padding: 10px 12px 12px; }
	.yd-room-card figcaption strong { font-size: 14px; }
	.yd-room-guide__cta { flex-basis: 100%; }
}

/* 접어 둔 목록: PC 12건(두 줄), 모바일 6건까지. 버튼은 yd_more_button() */
.yd-more[data-collapsed] > :nth-child(n+13) { display: none; }
@media (max-width: 720px) {
	.yd-more[data-collapsed] > :nth-child(n+7) { display: none; }
	.yd-award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.yd-hanja__svg { width: 72px; height: 72px; }
	.yd-figures { grid-template-columns: 1fr 1fr; }
	.yd-figures > div { padding: 20px 4px; }
	.yd-figures strong { font-size: 30px; }
}

/* ========== 소식 상세 ========== */
.yd-article { font-size: 18px; line-height: 1.85; color: #262626; }
.yd-article > * + * { margin-top: 22px; }
.yd-article blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--yd-ink); font-size: 20px; font-weight: 600; line-height: 1.6; }
.yd-article img { border-radius: var(--yd-r-card); }
.yd-article figcaption { font-size: 14px; color: var(--yd-text-sub); margin-top: 10px; }
@media (max-width: 720px) { .yd-article { font-size: 16px; } }

/* ========== 개인정보 처리방침 · 이용약관 ========== */
.yd-legal { font-size: 17px; line-height: 1.75; }
.yd-legal > * + * { margin-top: 14px; }
.yd-legal h2 { margin-top: 44px; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: var(--yd-tracking-tight); color: var(--yd-ink); }
.yd-legal > h2:first-child { margin-top: 0; }
.yd-legal ul, .yd-legal ol { padding-left: 22px; }
.yd-legal ul { list-style: disc; }
.yd-legal ol { list-style: decimal; }
.yd-legal li + li { margin-top: 6px; }
.yd-legal a { text-decoration: underline; text-underline-offset: 3px; }
.yd-legal__scroll { overflow-x: auto; }
.yd-legal__notice { padding: 14px 16px; border-radius: var(--yd-r-input); background: var(--yd-muted); font-size: 15px; line-height: 1.6; } /* 처리방침 변경 예고(privacy.php) */
.yd-legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.yd-legal th, .yd-legal td { padding: 12px 14px; border: 1px solid var(--yd-line); text-align: left; vertical-align: top; }
.yd-legal thead th { background: var(--yd-muted); font-weight: 600; color: var(--yd-ink); }
.yd-legal tbody th { width: 132px; font-weight: 600; }
@media (max-width: 720px) {
	.yd-legal { font-size: 16px; }
	.yd-legal h2 { margin-top: 36px; font-size: 20px; }
}

/* 시공사례 글: "이렇게 고쳤어요"(요약문은 큰 첫 문단, 본문은 그 아래), 공간별 한 줄 설명. 값이 없으면 자리도 생기지 않는다. */
.yd-case-lead { font-size: 24px; line-height: 1.5; font-weight: 700; letter-spacing: -0.025em; color: var(--yd-ink); }
.yd-case-story { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 24px 48px; align-items: start; }
.yd-case-story__body { display: flex; flex-direction: column; gap: 22px; }
.yd-case-story .yd-article { font-size: 17px; line-height: 1.8; }
.yd-case-note { max-width: 720px; margin-top: -4px; font-size: 16px; line-height: 1.6; color: var(--yd-text-body); }
/* 공사 내역(블로그 정리표 PROJECT DETAIL) */
.yd-case-detail { margin-top: 8px; }
.yd-case-detail__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.yd-detail { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; border-top: 2px solid var(--yd-ink); }
.yd-detail th, .yd-detail td { padding: 11px 8px; border-bottom: 1px solid var(--yd-line); text-align: left; vertical-align: top; }
.yd-detail th { width: 7.5em; font-weight: 700; color: var(--yd-ink); white-space: nowrap; }
.yd-detail td { color: var(--yd-text-body); }
@media (max-width: 960px) { .yd-case-story { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 720px) {
	.yd-case-lead { font-size: 19px; }
	.yd-case-story__body { gap: 16px; }
	.yd-detail { font-size: 14px; }
	.yd-detail th { width: 5.5em; white-space: normal; }
	.yd-case-story .yd-article { font-size: 16px; }
	.yd-case-note { font-size: 15px; }
}

/* 방문 예약: 예약이 마감된 시간(visit-slots.js) */
.yd-chip.is-full { background: var(--yd-muted); border-color: var(--yd-line); color: var(--yd-text-faint); text-decoration: line-through; cursor: not-allowed; }
.yd-chip.is-full::after { content: '마감'; margin-left: 6px; font-size: 12px; font-weight: 600; text-decoration: none; display: inline-block; }
.yd-slots-note { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; color: var(--yd-text-sub); }

/* 디자이너 프로필 시공사례: PC 12건, 모바일은 앞의 6건만 */
@media (max-width: 720px) {
	.yd-grid--m6 > :nth-child(n+7) { display: none; }
}
