/* 홈페이지 다듬기 (unslop polish) — public.css 뒤에 로드. 원본 vite 자산은 손대지 않는다. */

/* 1. 한글은 단어 단위로 줄바꿈 */
main :is(h1, h2, h3, h4, p, li, dd, blockquote, small) { word-break: keep-all; overflow-wrap: break-word; }

/* 소제목: 한국어로 바뀌었으니 넓은 자간·대문자 느낌 제거 */
.eyebrow, .kicker { font-size: 13px; letter-spacing: 0; font-weight: 600; margin-bottom: 12px; }
/* 최근 콘텐츠의 "YOUTUBE" 라벨: 모두 유튜브라 정보가 없어 숨김 */
.content-card .category { display: none; }
.content-card h4 { margin-top: 12px; }

/* 제목 굵기 정리: 큰 제목 700, 소제목 600 */
main section h2 { font-weight: 700; }
main section h3 { font-weight: 600; }
.specialty-number { font-weight: 500; }

/* 2. 대표 영상: 버튼·제목을 썸네일 밖(아래)으로 */
.video-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; aspect-ratio: auto !important; overflow: visible; background: none; border-radius: 0; }
.video-preview > img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.video-preview .video-play { position: static; padding: 10px 16px; }
.video-preview .video-caption { position: static; max-width: none; padding: 0; background: none; color: #c9d4d9; font-size: 14px; font-weight: 500; flex: 1 1 200px; }
@media (hover: hover) { .video-preview:hover > img { transform: none; opacity: .92; } }

/* 3. 첫 화면 인용문: 휴대폰에서는 얼굴을 가리므로 숨김 */
@media (max-width: 767px) { .brand-hero-photo .hand-note { display: none; } }

/* 4·5. 사무실 고르는 법: 휴대폰은 한 단, 번호는 제목 옆에 작게 */
@media (max-width: 767px) {
  #office-guide .specialty-grid { grid-template-columns: 1fr; gap: 0; }
  #office-guide .specialty-grid article { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; padding: 20px 0; }
  #office-guide .specialty-number { font-size: 16px; line-height: 28px; margin: 0; color: var(--muted); }
  #office-guide .specialty-grid h3 { font-size: 18px; line-height: 28px; }
  #office-guide .specialty-grid p { grid-column: 2; margin-top: 4px; font-size: 14px; }
}

/* 전문분야 → 매물 목록으로 가는 카드 (번호 열과 다른 모양) */
#expertise .sp-grid { gap: 12px; }
#expertise .sp-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white, #fff); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
#expertise .sp-card h3 { font-size: 19px; line-height: 1.3; }
#expertise .sp-card p { flex: 1; margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
#expertise .sp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--navy); }
#expertise .sp-arrow { transition: transform .2s; }
#expertise .sp-card:hover { border-color: var(--navy); }
#expertise .sp-card:hover .sp-arrow { transform: translateX(3px); }
#expertise .sp-card:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
@media (max-width: 767px) { #expertise .sp-grid { grid-template-columns: 1fr; } }
@media (min-width: 1200px) {
  #expertise .sp-grid article, #expertise .sp-card { border-left: 1px solid var(--line); }
  #expertise .sp-card { padding: 24px; }
}

/* 7. 매물 카드: 사진 위에는 건물명, 용도는 작게 */
.fp-place small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.fp-place { font-weight: 700; }

/* 작은 것: SNS 칸 글자는 네이비, 색은 아이콘 칸에만 */
#sns .channel b { color: var(--navy); }

/* 작은 것: 찾아오시는 길(PC) 주소와 버튼 사이 빈 공간 */
@media (min-width: 1024px) {
  #location .loc-grid { grid-template-rows: auto auto 1fr; grid-template-areas: "info map" "routes map" ". map"; }
  #location .loc-info .loc-actions { margin-top: 20px; padding-top: 0; }
}
#location .section-lead h2 { margin-top: 0; }

/* ── 2단계: 추천 매물 8개, 사진 높이 축소 ── */
#featuredGrid .fp-photo { aspect-ratio: 4 / 3; }
@media (max-width: 767px) {
  #featuredGrid:not(.is-expanded) > :nth-child(n+5) { display: none; }
  .fp-more { display: flex; width: 100%; min-height: 48px; justify-content: center; margin-top: 24px; }
}
@media (min-width: 768px) { #featuredMore { display: none !important; } }

/* ── 전용 100평 이상 대형 공간 ── */
.large-section { background: var(--white, #fff); border-top: 1px solid var(--line); }
.large-section[hidden] { display: none; }
.lg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.lg-head .section-intro { margin-top: 8px; }
.lg-head .button { min-height: 48px; }
.lg-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.lg-card > a { display: grid; grid-template-columns: 1fr; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white, #fff); color: inherit; text-decoration: none; transition: border-color .2s; }
.lg-card > a:hover { border-color: var(--navy); }
.lg-card > a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.lg-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft2, #eef1f1); }
.lg-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.lg-card > a:hover .lg-photo > img { transform: scale(1.03); }
.lg-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; min-width: 0; }
.lg-where { margin: 0; font-size: 13px; color: var(--muted); }
.lg-name { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--navy); }
.lg-area { margin: 4px 0 0; display: flex; align-items: baseline; gap: 4px; color: var(--navy); }
.lg-area small { font-size: 14px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.lg-area strong { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lg-area span { font-size: 18px; font-weight: 600; }
.lg-price { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.lg-body .fp-tags { margin-top: 4px; }
.lg-go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--navy); }
.lg-go::after { content: " →"; }
.lg-all { margin-top: 24px; display: inline-flex; }
@media (min-width: 768px) { .lg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1200px) {
  .lg-card > a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .lg-photo { aspect-ratio: auto; min-height: 300px; }
  .lg-body { padding: 24px; }
}
