/* 첫 화면 (편집 화보형 레이아웃) — 큰 사진 + 가운데 제목 + 여백 */

/* 사진 자리: 사진이 없으면 파스텔 바탕 + 흐린 코기 */
.ed-ph { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; text-decoration: none; }
.ed-ph::before { content: ''; position: absolute; inset: 0; background: url('/images/001_logos/pets-symbol-256.png') center / 34% no-repeat; opacity: .22; }
.ed-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.ed-ph:hover > img, .ed-card:hover .ed-ph > img { transform: scale(1.03); }
.ed-ph.tall { aspect-ratio: 3 / 4; }
.ed-ph.portrait { aspect-ratio: 3 / 4; }
.ph-peach { background: #F6D2C4; } .ph-sky { background: #D3E0EF; } .ph-sage { background: #D3E0CD; }
.ph-butter { background: #F9EBC6; } .ph-lavender { background: #E8DDEF; }

/* 1. 첫 화면 슬라이드 */
.hs { position: relative; background: var(--navy); overflow: hidden; }
.hs-track { position: relative; height: min(78vh, 620px); touch-action: pan-y; }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; display: flex; align-items: flex-end; }
.hs-slide.on { opacity: 1; visibility: visible; }
.hs-slide::before { content: ''; position: absolute; inset: 0; background: url('/images/001_logos/pets-symbol-512.png') 78% 42% / min(46vh, 340px) no-repeat; opacity: .28; }
.hs-slide picture, .hs-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-slide::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(rgba(14,26,54,0), rgba(14,26,54,.55)); }
.hs-text { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px 76px; color: #fff; }
.hs-text h2 { margin: 0; font-family: var(--font-body); font-weight: 900; font-size: clamp(36px, 8vw, 88px); line-height: .95; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(14,26,54,.3); }
.hs-text p { margin: 10px 0 18px; font-size: 17px; font-family: var(--font-display-ko); text-shadow: 0 1px 8px rgba(14,26,54,.4); }
.hs-ui { position: absolute; z-index: 2; right: 16px; bottom: 20px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; }
.hs-count { min-width: 52px; text-align: center; letter-spacing: .05em; }
.hs-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(14,26,54,.35); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.hs-pause { font-size: 10px; }
.hs-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.hs-bar span { display: block; height: 100%; width: 0; background: var(--gold); }
@media (max-width: 719px) { .hs-track { height: 72vh; } .hs-ui { left: 16px; right: auto; bottom: 18px; } .hs-text { padding-bottom: 72px; } }

/* 큰 사진 아래 작은 줄 2개 */
.ed-minis { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ed-minirow { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ed-minirow b { display: block; color: var(--navy); font-size: 13px; }
.ed-minirow small { font-size: 12px; }
.ed-minirow.muted { cursor: default; }
.ed-minirow .num { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.ed-ph.sq { width: 52px; height: 52px; aspect-ratio: auto; flex: 0 0 auto; border-radius: 6px; }
.ed-ph.sq::before { background-size: 70%; }

/* 동네 검색 띠 */
.ed-search { background: var(--navy); padding: 18px 0 20px; }
.ed-search .hero-search { margin: 0 auto; }
.ed-search .cat-chips { justify-content: flex-start; }
@media (min-width: 720px) { .ed-search .cat-chips { justify-content: center; } .ed-search .hero-search { max-width: 640px; } }

/* 섹션 머리 — 가운데 큰 제목 + 작은 설명 */
.ed-sec { padding-top: 64px; }
.ed-head { text-align: center; margin-bottom: 26px; }
.ed-head h2 { margin: 0; font-family: var(--font-body); font-weight: 900; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .01em; line-height: 1.1; }
.ed-head h2 .accent { color: #D2553E; }
.ed-head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); font-family: var(--font-display-ko); }
.ed-head.light h2 { color: var(--cream); }
.ed-head.light p { color: #C9BFA9; }

/* 2. 큰 사진 3장 */
.ed-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ed-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.ed-card .ed-ph { margin-bottom: 8px; }
.ed-card strong { font-size: 16px; font-weight: 900; letter-spacing: .01em; }
.ed-card span { font-size: 13px; color: var(--ink-2); }
.ed-card.big strong { font-size: clamp(14px, 2vw, 20px); text-align: center; }
.ed-card.big span { text-align: center; }
@media (max-width: 719px) {
  .ed-trio { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; }
  .ed-trio::-webkit-scrollbar { display: none; }
  .ed-trio > * { flex: 0 0 72%; scroll-snap-align: start; }
}

/* 3. 가로 넘김 + 화살표 */
.ed-rail-wrap { position: relative; }
.ed-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ed-rail::-webkit-scrollbar { display: none; }
.ed-rail > * { scroll-snap-align: start; }
.ed-rail > .ed-ph { flex: 0 0 calc((100% - 30px) / 4); }
.ed-mini { flex: 0 0 calc((100% - 40px) / 5); display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.ed-mini .ed-ph { margin-bottom: 6px; }
.ed-mini strong { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-mini .meta { font-size: 12px; color: var(--ink-2); }
.ed-empty { flex: 1; }
.ed-arrow { position: absolute; top: 38%; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(14, 26, 54, .12); }
.ed-arrow.prev { left: -14px; } .ed-arrow.next { right: -14px; }
@media (max-width: 719px) {
  .ed-mini { flex-basis: 42%; }
  .ed-rail > .ed-ph { flex-basis: 62%; }
  .ed-arrow { display: none; }
}

/* 4. 큰 사진 + 목록 */
.ed-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.ed-feature-img { aspect-ratio: auto; min-height: 380px; }
.ed-over { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: var(--navy); color: var(--cream); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 15px; }
.ed-feature-list { display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.ed-vets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ed-vet { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 13px; color: var(--ink-2); }
.ed-vet img { width: 40px; height: 40px; }
.ed-vet strong { display: block; color: var(--navy); font-size: 15px; }
@media (max-width: 719px) {
  .ed-feature { grid-template-columns: 1fr; }
  .ed-feature-img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* 6. 띠 배너 */
.ed-band { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 6px; background: var(--navy-2); color: var(--cream); text-decoration: none; overflow: hidden; }
.ed-band:hover { color: var(--cream); background: var(--navy); }
.ed-band-text strong { display: block; font-size: clamp(20px, 3vw, 30px); font-weight: 900; letter-spacing: .04em; }
.ed-band-text span { font-size: 14px; color: #C9BFA9; }
.ed-band-text b { color: var(--gold); }
.ed-band-art { display: flex; gap: 6px; flex-shrink: 0; }
.ed-band-art span { width: 52px; height: 52px; display: block; background: var(--cream); border-radius: 50%; padding: 6px; }
@media (max-width: 719px) { .ed-band-art span:nth-child(n+3) { display: none; } .ed-band-art span { width: 44px; height: 44px; } }

/* 7. 4칸 */
.ed-quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ed-label { position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 1; color: #fff; font-weight: 900; font-size: 16px; text-shadow: 0 1px 8px rgba(14, 26, 54, .5); }
.ed-quad .ed-ph::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(rgba(14, 26, 54, 0), rgba(14, 26, 54, .45)); }
@media (max-width: 719px) { .ed-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 8. 남색 띠 */
.ed-dark { margin-top: 72px; padding: 56px 0 60px; background: var(--navy); }
.ed-dark .ed-arrow { background: var(--navy-2); color: var(--cream); border-color: var(--navy-soft); }

/* 9. 준비 중 */
.ed-soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 56px; }
.ed-soon .card { padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.ed-soon strong { font-weight: 900; font-size: 18px; }
.ed-soon span { font-size: 13px; color: var(--ink-2); }


/* ───────────────────────────────────────────────
   글자 · 간격 기준 (PC 900px 이상 / 휴대폰 899px 이하)
   제목     PC 34px / 폰 24px   줄간격 1.15
   설명     PC 15px / 폰 14px   줄간격 1.6
   카드 제목 PC 17px / 폰 15px
   카드 설명 PC 14px / 폰 13px
   섹션 사이 PC 104px / 폰 64px, 제목 아래 PC 32px / 폰 22px
   한국어는 단어 중간에서 줄이 바뀌지 않게 (keep-all)
   ─────────────────────────────────────────────── */
.home { --sec-gap: 104px; --head-gap: 32px; --t-h2: 34px; --t-sub: 15px; --t-card: 17px; --t-card-sub: 14px; }
@media (max-width: 899px) { .home { --sec-gap: 64px; --head-gap: 22px; --t-h2: 24px; --t-sub: 14px; --t-card: 15px; --t-card-sub: 13px; } }
.home main { word-break: keep-all; overflow-wrap: anywhere; }
.home .ed-sec { padding-top: var(--sec-gap); }
.home .ed-head { margin-bottom: var(--head-gap); }
.home .ed-head h2 { font-size: var(--t-h2); line-height: 1.15; }
.home .ed-head p { font-size: var(--t-sub); line-height: 1.6; margin-top: 8px; }
.home .ed-card strong { font-size: var(--t-card); line-height: 1.35; margin-top: 2px; }
.home .ed-card > span { font-size: var(--t-card-sub); line-height: 1.55; }
.home .ed-card.big strong { font-size: var(--t-card); }
.home .ed-band { margin-top: var(--sec-gap); }
.home .ed-dark { margin-top: var(--sec-gap); padding: var(--sec-gap) 0; }
.home .ed-soon { padding-bottom: var(--sec-gap); }
.home .footer { margin-top: 0; }

/* 첫 화면: 머리 메뉴(61px) 바로 아래부터 화면 끝까지 꽉 채움.
   PC 는 화면 바닥까지, 휴대폰 · 태블릿(899px 이하)은 아래 탭 바(62px) 바로 위까지.
   --app-h = 실제 보이는 화면 높이 (index.html 이 넣음). 휴대폰은 주소창이 숨거나 나올 때 흔들리지 않게 가로 폭이 바뀔 때만 다시 잼 */
.home .hs-track { height: calc(100vh - 61px); height: calc(var(--app-h, 100svh) - 61px); min-height: 520px; }
.home .hs-text { max-width: var(--wrap); }
.home .hs-text h2 { font-size: clamp(56px, 6.4vw, 92px); line-height: .95; max-width: 12ch; }
.home .hs-text p { font-size: 19px; line-height: 1.5; max-width: 30em; margin: 14px 0 22px; }
@media (max-width: 899px) {
  .home .hs-track { height: calc(100vh - 61px - 62px - env(safe-area-inset-bottom)); height: calc(var(--app-h, 100svh) - 61px - 62px - env(safe-area-inset-bottom)); min-height: 420px; }
  .home .hs-text h2 { font-size: clamp(34px, 10vw, 48px); line-height: 1; }
  .home .hs-text p { font-size: 15px; margin: 10px 0 16px; }
  .home .hs-text .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
}

/* 검색 띠 글자 */
.home .ed-search label { font-size: 16px; }
@media (max-width: 899px) { .home .ed-search label { font-size: 15px; } }

/* WHERE ARE YOU? 둘째 줄 — 가로 사진, 첫 줄보다 위 간격만 */
.ed-ph.wide { aspect-ratio: 16 / 10; }
.ed-trio-2 { margin-top: 28px; }
.ed-trio-2:empty { display: none; }
@media (max-width: 719px) { .ed-trio-2 { margin-top: 18px; } }

/* 휴대폰에서 가로 넘김 카드 폭 통일 */
@media (max-width: 719px) {
  .ed-trio > * { flex-basis: 76%; }
  .ed-mini { flex-basis: 44%; }
}
.ed-vets .empty { grid-column: 1 / -1; width: 100%; max-width: none; }

/* ── 스카이 블루 테마 (첫 화면) ── */
.ph-peach { background: #FFE3D8; } .ph-sky { background: #D9EFFC; } .ph-sage { background: #D8F2E3; }
.ph-butter { background: #FFF2C7; } .ph-lavender { background: #ECE5FA; }
.hs { background: var(--sky-mid); }
.hs-bar span { background: var(--sun); }
.hs-slide::after { background: linear-gradient(rgba(21,50,76,0), rgba(21,50,76,.42)); }
.ed-search { background: var(--sky-soft); }
.ed-head h2 { color: var(--navy); }
.ed-head h2 .accent { color: var(--sky); }
.ed-minirow .num { background: var(--sky); color: #fff; }
.ed-over { background: var(--sky); color: #fff; }
.ed-vet { border-color: var(--line); }
.ed-band { background: linear-gradient(100deg, var(--sky) 0%, var(--sky-mid) 100%); color: #fff; }
.ed-band:hover { background: linear-gradient(100deg, var(--sky-deep) 0%, var(--sky) 100%); color: #fff; }
.ed-band-text span { color: rgba(255,255,255,.92); }
.ed-band-text b { color: #fff; background: var(--sun); color: var(--navy); border-radius: 999px; padding: 1px 8px; }
.ed-band-art span { background: #fff; }
.ed-dark { background: var(--sky); }
.ed-head.light h2 { color: #fff; }
.ed-head.light p { color: rgba(255,255,255,.9); }
.ed-dark .ed-arrow { background: #fff; color: var(--sky-deep); border-color: #fff; }
.ed-arrow { border-color: var(--line); color: var(--sky-deep); }
.ed-soon .card { background: var(--sky-mist); border-color: var(--line); }
.ed-soon .eyebrow { color: var(--sky-deep); }
.hs-slide::after { background: linear-gradient(rgba(11,90,150,0), rgba(11,70,120,.38)); }

/* ── WHERE ARE YOU? 가로 슬라이드 (PC 4장 · 태블릿 3장 · 휴대폰 1장 반) ── */
.ls-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ls-track::-webkit-scrollbar { display: none; }
.ls-card { flex: 0 0 calc((100% - 42px) / 4); scroll-snap-align: start; }
.ls .ed-arrow { top: 40%; }
.ls-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; min-height: 8px; }
.ls-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .3s, background .3s; }
.ls-dots span.on { width: 22px; background: var(--sky); }
@media (max-width: 1023px) { .ls-card { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 719px) { .ls-track { gap: 10px; } .ls-card { flex-basis: 66%; } }
.home .ls { padding-bottom: 64px; }
@media (max-width: 719px) { .home .ls { padding-bottom: 40px; } }

/* ── 준비 중 띠: EXPO · TALK 한 칸, 가로 전체 사진 ── */
.ed-soonband { position: relative; margin-top: var(--sec-gap, 104px); height: clamp(380px, 40vw, 560px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.sb-ph { position: absolute; inset: 0; background: var(--sky-mid); }
.sb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-soonband::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(rgba(11,70,120,0), rgba(11,70,120,.5)); pointer-events: none; }
.sb-text { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; }
.sb-text h2 { margin: 0; font-family: var(--font-body); font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(14,26,54,.25); }
.sb-text p { margin: 12px 0 18px; font-size: var(--t-sub, 15px); font-family: var(--font-display-ko); text-shadow: 0 1px 8px rgba(14,26,54,.35); }
.sb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-tags > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; }
.sb-tags b { color: var(--sky-deep); font-weight: 900; letter-spacing: .04em; }
@media (max-width: 719px) { .ed-soonband { height: 440px; } .sb-text { padding-bottom: 36px; } }

/* LITTLE MOMENTS: 가로 사진 8장, PC 3장 · 휴대폰 1장 조금 넘게 보임 */
#moments > .ed-ph { flex-basis: calc((100% - 20px) / 3); }
@media (max-width: 719px) { #moments > .ed-ph { flex-basis: 82%; } }

/* ── 미리보기: 상단 사진을 화면 전체에 깔고, 로고 · 메뉴 · 검색창을 사진 위에 ── */
.home .topbar { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.home .topbar.solid { background: #fff; border-bottom-color: var(--line); }
.home .topbar:not(.solid)::before { content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(8,34,60,.45), rgba(8,34,60,0)); }
.home .topbar:not(.solid) .wordmark, .home .topbar:not(.solid) .wordmark b, .home .topbar:not(.solid) .topnav a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.home .topbar:not(.solid) .topnav a:hover { border-bottom-color: #fff; }
.home .topbar:not(.solid) .icon-btn { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(8,34,60,.18); }
.home .hs-track { height: var(--app-h, 100svh); min-height: 560px; }
.home .hs-text { padding-bottom: 150px; }
.hs-search { position: absolute; z-index: 3; left: max(16px, calc((100% - var(--wrap)) / 2 + 16px)); bottom: 56px; width: min(680px, calc(100% - 32px)); display: flex; align-items: center; gap: 6px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(8,34,60,.25); }
.hs-kind { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 6px 0 4px; border-right: 1px solid var(--line); flex: 0 0 auto; }
.hs-kind img { width: 32px; height: 32px; flex: 0 0 auto; }
.hs-kind select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2315324C' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center no-repeat; padding: 0 20px 0 0; font: inherit; font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; max-width: 150px; }
.hs-search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; padding: 0 10px; height: 46px; background: transparent; color: var(--navy); }
.hs-search .btn { min-height: 46px; border-radius: 999px; padding: 0 24px; flex: 0 0 auto; }
.home .hs-ui { bottom: 68px; }
@media (max-width: 899px) {
  .home .hs-track { height: calc(var(--app-h, 100svh) - 62px - env(safe-area-inset-bottom)); min-height: 500px; }
  .home .hs-text { padding-bottom: 168px; }
  .hs-search { bottom: 70px; padding: 4px; }
  .hs-kind img { width: 28px; height: 28px; }
  .hs-kind select { font-size: 13px; max-width: 92px; }
  .hs-search input { height: 42px; font-size: 15px; padding: 0 6px; }
  .hs-search .btn { min-height: 42px; padding: 0 16px; }
  .home .hs-ui { left: 16px; right: auto; bottom: 18px; }
}

/* ── 미리보기 2: 제목 · 설명 · 노란 버튼을 아래로 (동물 얼굴을 가리지 않게), 둥근 모서리 ── */
.home .hs-text { padding-bottom: 124px; }
.home .hs-text h2 { font-size: clamp(44px, 4.8vw, 72px); line-height: 1; max-width: none; }
.home .hs-text p { font-size: 18px; margin: 10px 0 16px; }
.hs-search { bottom: 40px; }
.home .hs-ui { bottom: 52px; }
.ed-ph { border-radius: 6px; }
@media (max-width: 899px) {
  .home .hs-text { padding-bottom: 88px; }
  .home .hs-text h2 { font-size: clamp(28px, 8.2vw, 38px); line-height: 1.04; }
  .home .hs-text p { font-size: 14px; margin: 6px 0 12px; }
  .home .hs-text .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .hs-search { bottom: 20px; }
  .home .hs-ui { left: auto; right: 16px; bottom: 98px; gap: 4px; }
  .home .hs-ui .hs-arrow:not(.hs-pause) { display: none; }
  .home .hs-ui .hs-arrow { width: 30px; height: 30px; font-size: 13px; }
  .ed-ph { border-radius: 6px; }
}
.home .hs-ui .hs-arrow { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
@media (max-width: 899px) { .home .hs-ui .hs-pause { font-size: 10px; letter-spacing: -1px; } }

/* 미리보기 3: 박스 모서리 덜 둥글게 */
.ed-ph { border-radius: 6px; }
.hs-search { border-radius: 6px; }
.hs-search .btn { border-radius: 6px; }
.sb-tags > span { border-radius: 6px; }
.ed-soon .card, .ed-vets .card { border-radius: 6px; }
@media (max-width: 899px) { .ed-ph { border-radius: 6px; } }
.ed-over, .ed-label { border-radius: 6px; }

/* ── 상단 검색창 2: ▾ 종류 목록 · 입력칸 제안 창 (검색창 위로 열림) ── */
.hs-kind, .hs-field { position: static; }
.hs-kind { padding: 0; border-right: 1px solid var(--line); }
.hs-kind-btn { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 4px; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; white-space: nowrap; }
.hs-kind-btn img { width: 32px; height: 32px; }
.hs-kind-btn svg { color: var(--navy); }
.hs-field { flex: 1; display: flex; align-items: center; min-width: 0; }
.hs-glass { color: #7D93A6; margin-left: 12px; flex: 0 0 auto; }
.hs-pop { position: absolute; bottom: calc(100% + 12px); z-index: 5; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 6px; box-shadow: 0 14px 36px rgba(8,34,60,.28); }
.hs-pop[hidden] { display: none; }
.hs-kinds { left: 0; min-width: 240px; }
.hs-kinds li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--navy); cursor: pointer; }
.hs-kinds li:hover, .hs-kinds li[aria-selected="true"] { background: var(--sky-mist); }
.hs-kinds li[aria-selected="true"] { color: var(--sky-deep); }
.hs-kinds img { width: 28px; height: 28px; }
.hs-sugg { left: 0; right: 0; padding: 8px 8px 10px; }
.hs-sec { font-size: 12px; font-weight: 800; color: #5B7286; padding: 8px 10px 4px; }
.hs-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 15px; color: var(--navy); cursor: pointer; }
.hs-row:hover { background: var(--sky-mist); }
.hs-here { color: var(--sky-deep); font-weight: 800; }
.hs-row-ico { width: 20px; text-align: center; font-size: 13px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 4px; }
@media (max-width: 899px) {
  .hs-kind-btn { height: 42px; padding: 0 8px 0 2px; gap: 6px; font-size: 13px; }
  .hs-kind-btn img { width: 28px; height: 28px; }
  .hs-glass { display: none; }
  .hs-kinds { min-width: 0; width: 230px; }
}
.hs-kind-btn .lab-short { display: none; }
@media (max-width: 899px) { .hs-kind-btn .lab-full { display: none; } .hs-kind-btn .lab-short { display: inline; } }

/* 미리보기 4: 목록 · 제안 창을 반투명 유리처럼 (뒤 사진이 비쳐 보이게) */
.hs-pop { background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 30px rgba(8,34,60,.18); border: 1px solid rgba(255,255,255,.55); }
.hs-kinds li:hover, .hs-kinds li[aria-selected="true"], .hs-row:hover { background: rgba(255,255,255,.7); }
.hs-sugg .chip { background: rgba(255,255,255,.75); }
.hs-search { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* 부모에 흐림을 걸면 목록의 유리 효과가 안 먹어서 검색창은 흐림 없이 */
.hs-search { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.94); }
/* 목록 · 제안 창이 열린 동안에는 슬라이드 글자를 잠시 숨김 (사진만 비쳐 보이게) */
.hs .hs-text, .hs .hs-ui { transition: opacity .2s; }
.hs.pop-open .hs-text, .hs.pop-open .hs-ui { opacity: 0; pointer-events: none; }
/* 미리보기 5: 더 투명하게 */
.hs-pop { background: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35); border-color: rgba(255,255,255,.5); }
.hs-kinds li:hover, .hs-kinds li[aria-selected="true"], .hs-row:hover { background: rgba(255,255,255,.6); }
.hs-sugg .chip { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.7); }
.hs-sec { color: #3F566B; }
/* 미리보기 6: 흰색 30% */
.hs-pop { background: rgba(255,255,255,.30); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.hs-kinds li:hover, .hs-kinds li[aria-selected="true"], .hs-row:hover { background: rgba(255,255,255,.5); }
.hs-sugg .chip { background: rgba(255,255,255,.5); }
.hs-kinds li, .hs-row, .hs-sec { text-shadow: 0 0 8px rgba(255,255,255,.7); }
/* 미리보기 7: 바탕은 30% 그대로, 바깥 경계선 · 안쪽 칸 선은 또렷하게 */
.hs-pop { border: 1.5px solid rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(8,34,60,.18), inset 0 0 0 1px rgba(255,255,255,.35); }
.hs-kinds li, .hs-row { border: 1px solid transparent; }
.hs-kinds li[aria-selected="true"] { border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.55); }
.hs-kinds li:hover, .hs-row:hover { border-color: rgba(255,255,255,.8); }
.hs-kinds li + li { box-shadow: 0 -1px 0 rgba(255,255,255,.45); }
.hs-sugg .chip { border: 1px solid rgba(255,255,255,.95); }
.hs-sec { border-top: 1px solid rgba(255,255,255,.5); margin-top: 4px; }
.hs-sec:first-child { border-top: 0; margin-top: 0; }
.hs-kinds img, .hs-row-ico { filter: drop-shadow(0 0 1px rgba(255,255,255,.9)); }
/* 미리보기 8: 선을 조금 부드럽게 (95% → 75%, 안쪽 선은 더 옅게) */
.hs-pop { border: 1px solid rgba(255,255,255,.75); box-shadow: 0 10px 30px rgba(8,34,60,.16); }
.hs-kinds li[aria-selected="true"] { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.45); }
.hs-kinds li:hover, .hs-row:hover { border-color: rgba(255,255,255,.6); }
.hs-kinds li + li { box-shadow: 0 -1px 0 rgba(255,255,255,.28); }
.hs-sugg .chip { border-color: rgba(255,255,255,.75); }
.hs-sec { border-top-color: rgba(255,255,255,.32); }

/* 사진 위 긴 흰 검색창 · 안의 노란 검색 버튼 — 세로 낮게 */
.hs-search { padding: 4px; border-radius: 6px; }
.hs-kind-btn { height: 38px; }
.hs-kind-btn img { width: 26px; height: 26px; }
.hs-search input { height: 38px; }
.hs-search .btn { min-height: 38px; height: 38px; padding: 0 20px; border-radius: 6px; font-size: 14px; }
@media (max-width: 899px) {
  .hs-kind-btn, .hs-search input { height: 36px; }
  .hs-kind-btn img { width: 24px; height: 24px; }
  .hs-search .btn { min-height: 36px; height: 36px; padding: 0 14px; }
}
/* 사진 위 노란 버튼(공고 올리기 등)도 낮게 */
.home .hs-text .btn { min-height: 38px; height: 38px; padding: 0 16px; font-size: 14px; border-radius: 6px; }
@media (max-width: 899px) { .home .hs-text .btn { min-height: 34px; height: 34px; padding: 0 14px; font-size: 13px; } }
#moments > .ed-ph { aspect-ratio: 3 / 2; }
.sb-tags > a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; text-decoration: none; }
.sb-tags > a:hover { background: #fff; }

/* 첫 화면 버튼 두 개 (각 슬라이드 버튼 + 1 Pi 스티커 팩 결제) */
.hs-ctas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hs-pay { background: rgba(255,255,255,.22); color: #fff; border: 1px solid rgba(255,255,255,.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-pay:hover { background: rgba(255,255,255,.34); color: #fff; }
.hs-pay b { font-weight: 900; }
@media (max-width: 719px) { .home .hs-text .hs-pay { padding: 0 14px; } }
/* 휴대폰: 오른쪽 아래 번호 · 멈춤 버튼과 겹치지 않게 버튼 줄 폭을 줄이고, 넘치면 결제 버튼은 다음 줄로 */
@media (max-width: 719px) { .home .hs-ctas { max-width: calc(100% - 112px); } }

/* COMING SOON 띠: 글은 아래로 바짝 내려 개 얼굴을 가리지 않게.
   PC: 사진을 조금 위로 올려(아래쪽을 더 보이게) 얼굴이 글 위로 가게 하고, 버튼은 한 줄
   휴대폰: 버튼은 EXPO · STORIES 두 개만 한 줄, 글자도 작게 */
.sb-ph img { object-position: center 72%; }
.sb-text { padding-bottom: 22px; }
.sb-text h2 { font-size: clamp(34px, 4.2vw, 56px); }
.sb-text p { margin: 8px 0 12px; }
.sb-tags { flex-wrap: nowrap; }
.ed-soonband::after { inset: 55% 0 0; background: linear-gradient(rgba(11,70,120,0), rgba(11,70,120,.6)); }
@media (max-width: 719px) {
  .sb-text { padding-bottom: 16px; }
  .sb-text h2 { font-size: 30px; }
  .sb-text p { font-size: 13px; margin: 6px 0 10px; }
  .sb-tags > a { padding: 7px 12px; font-size: 12px; }
  .sb-tags > a span { display: none; }
  .sb-tags > a::after { content: '›'; font-weight: 900; color: var(--sky-deep); margin-left: -2px; }
}
/* 휴대폰: 사진 윗부분(하늘)을 잘라 개 얼굴을 위로 올림 → 아래 글과 안 겹침 */
@media (max-width: 719px) {
  .sb-ph { overflow: hidden; }
  .sb-ph img { position: absolute; left: 0; bottom: 0; height: 132%; object-position: center bottom; }
}
/* 스페셜 스티커 팩 띠: 눈에 띄는 결제 버튼 */
.ed-band-text .ed-band-buy { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 8px 16px; border-radius: 6px; background: var(--sun, #FFC93C); font-size: 14px; font-weight: 800; }
.ed-band-text .ed-band-buy, .ed-band-text .ed-band-buy span, .ed-band-text .ed-band-buy b { color: var(--navy); }
.ed-band:hover .ed-band-buy { filter: brightness(1.05); }
.ed-band-text .ed-band-buy { display: flex; width: max-content; }

/* 첫 화면 사진 위 버튼 두 개는 무채색: 왼쪽은 흰색, 오른쪽(스티커 팩 결제)은 짙은 회색 반투명 */
.hs-text .hs-ctas .btn-gold, .hs-text .hs-ctas .btn-gold:hover, .hs-text .hs-ctas .btn-gold:active { background: #fff; color: #1F2328; border: 1px solid #fff; }
.hs-text .hs-ctas .hs-pay, .hs-text .hs-ctas .hs-pay:hover, .hs-text .hs-ctas .hs-pay:active { background: rgba(28,30,33,.62); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.hs-text .hs-ctas .hs-pay b { color: #fff; }

/* 휴대폰: 첫 화면 버튼 두 개를 한 줄로. 오른쪽 번호(1|6)는 숨기고 멈춤 버튼만 남겨 자리를 만든다.
   버튼이 한 줄이 된 만큼 제목 · 설명도 아래로 내려온다 */
@media (max-width: 719px) {
  .home .hs-ctas { flex-wrap: nowrap; max-width: calc(100% - 50px); gap: 6px; }
  .home .hs-text .hs-ctas .btn { min-height: 38px; padding: 0 12px; font-size: 13px; white-space: nowrap; flex: 0 1 auto; }
  .home .hs-count { display: none; }
}
@media (max-width: 719px) { .home .hs-text { padding-bottom: 76px; } }

/* 첫 화면 버튼 두 개: 원래 색(노랑 · 파랑)을 반투명(50%)으로. 뒤 사진이 비치되 원래 색 느낌은 남김 */
.hs-text .hs-ctas .btn-gold, .hs-text .hs-ctas .btn-gold:hover, .hs-text .hs-ctas .btn-gold:active { background: rgba(255,201,60,.5); color: var(--navy); border: 1px solid rgba(255,201,60,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-text .hs-ctas .hs-pay, .hs-text .hs-ctas .hs-pay:hover, .hs-text .hs-ctas .hs-pay:active { background: rgba(46,163,230,.5); color: #fff; border: 1px solid rgba(46,163,230,.85); }

/* 홈 첫 화면: 사진 위에 검색창이 있으니 위쪽 돋보기는 숨김. 아래로 내려 상단바가 흰색이 되면 다시 보임 */
.home .topbar:not(.solid) [data-search-open] { display: none; }
/* 첫 화면 노란 버튼: 투명도를 조금 되돌림 (50% → 65%) */
.hs-text .hs-ctas .btn-gold, .hs-text .hs-ctas .btn-gold:hover, .hs-text .hs-ctas .btn-gold:active { background: rgba(255,201,60,.65); }

/* LITTLE MOMENTS 띠: 하늘색은 푸터로 옮기고, 여기는 부드러운 햇살 색 */
.ed-dark { background: #FFF3D1; }
.ed-dark .ed-head.light h2 { color: var(--navy); }
.ed-dark .ed-head.light p { color: var(--ink-2); }
.ed-dark .ed-arrow { background: #fff; color: var(--navy); border-color: #F1DFA8; box-shadow: 0 4px 12px rgba(21,50,76,.12); }

/* 첫 화면 사진 위(투명 위 막대)에서는 흰 글씨 로고 */
.home .topbar:not(.solid) .wm-dark { display: none; }
.home .topbar:not(.solid) .wm-white { display: block; }
.home .topbar:not(.solid) .wordmark b { color: #fff; }

/* 첫 화면 사진 위: 흰 PETS 글씨 로고 + 은은한 그림자 → 사진에 자연스럽게 붙게 */
.home .topbar:not(.solid) .hd-lockup:not(.hd-lockup-w) { display: none !important; }
.home .topbar:not(.solid) .hd-lockup-w { display: block !important; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }
.home .topbar:not(.solid) { background: linear-gradient(rgba(8,24,40,.38), rgba(8,24,40,0)); }
.home .topbar:not(.solid) { border-bottom: 0 !important; box-shadow: none !important; }
