/* 집사자 메인 화면 ([jipsaja_home]) — 모든 규칙은 .jj-home 안에서만 적용돼요. */
.jj-home{
  --jj-ink:#0B0B0C; --jj-text:#1B1D1A; --jj-muted:#4A4F48; --jj-sub:#5A5F57;
  --jj-soft:#F4F5F2; --jj-line:#E4E6E1; --jj-accent:#C8FF3D;
  --jj-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  font-family:"Gothic A1","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color:var(--jj-text); word-break:keep-all; line-height:1.6;
}
.jj-home *,.jj-home *::before,.jj-home *::after{box-sizing:border-box}
/* 메뉴의 #인기글·#지역 시세 링크로 이동할 때 고정 머리글에 가리지 않게 */
.jj-home [id]{scroll-margin-top:110px}
html:has(.jj-home){scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html:has(.jj-home){scroll-behavior:auto}}
.jj-home h1,.jj-home h2,.jj-home h3,.jj-home p,.jj-home ol{margin:0;padding:0}
.jj-home h1,.jj-home h2,.jj-home h3{font-family:inherit;color:inherit;text-wrap:balance}
.jj-home a{text-decoration:none}
.jj-home img{max-width:100%;display:block}

/* 본문 폭을 벗어나 화면 전체로 */
.jj-home .jj-bleed{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
body:has(.jj-home){overflow-x:clip}
.jj-home .jj-wrap > *{max-width:1360px;margin-left:auto;margin-right:auto;padding-left:32px;padding-right:32px}

/* 히어로 */
.jj-home .jj-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);background:var(--jj-ink);color:#fff}
.jj-home .jj-hero-text{display:flex;flex-direction:column;justify-content:center;gap:28px;padding:96px 56px 96px max(32px,calc((100vw - 1360px)/2 + 32px))}
.jj-home .jj-eyebrow{font-size:15px;font-weight:800;color:var(--jj-accent)}
.jj-home .jj-hero h1{font-size:clamp(38px,4.2vw,60px);line-height:1.22;font-weight:900;letter-spacing:-.03em;color:#fff}
.jj-home .jj-hero p{max-width:30rem;font-size:17px;line-height:1.75;color:#C9CCC5}
.jj-home .jj-hero-link{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;margin-top:12px;color:#fff;font-size:18px;font-weight:800}
.jj-home .jj-hero-link span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:99px;border:1.5px solid #6B6F68}
.jj-home .jj-hero-art{min-height:38rem;position:relative}
.jj-home .jj-hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* 라임 띠 */
.jj-home .jj-strip{display:flex;align-items:center;justify-content:center;gap:8px;padding:18px 24px;background:var(--jj-accent);color:var(--jj-ink);font-size:16px;font-weight:800;text-align:center}

/* 소개 문장 */
.jj-home .jj-statement{padding-top:112px;padding-bottom:96px;border-top:1px solid var(--jj-line);display:flex;flex-direction:column;align-items:center;gap:28px;text-align:center}
.jj-home .jj-statement h2{font-size:clamp(34px,4vw,54px);font-weight:900;letter-spacing:-.03em}
.jj-home .jj-statement p{max-width:46rem;font-size:17px;line-height:1.9;color:var(--jj-muted)}
.jj-home .jj-btn{margin-top:20px;padding:16px 34px;border-radius:99px;background:var(--jj-ink);color:#fff;font-size:16px;font-weight:800}
.jj-home .jj-btn:hover{background:#2A2D28;color:#fff}

/* 데이터 카드 */
.jj-home .jj-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px;padding-bottom:120px}
.jj-home .jj-col{display:flex;flex-direction:column;gap:20px}
.jj-home .jj-card{padding:36px;border-radius:20px;background:var(--jj-soft);display:flex;flex-direction:column;gap:20px;min-width:0}
.jj-home .jj-col .jj-card:first-child{flex-grow:1;justify-content:space-between}
.jj-home .jj-card-head{display:flex;flex-direction:column;gap:6px}
.jj-home .jj-card-head h3{font-size:20px;font-weight:800}
.jj-home .jj-card-head > span,.jj-home .jj-sub{font-size:13px;color:var(--jj-sub)}
.jj-home .jj-row{flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.jj-home .jj-bar{display:grid;grid-template-columns:9.5rem minmax(0,1fr) 6.5rem;align-items:center;gap:14px}
.jj-home .jj-bar-name{font-size:14px;color:#2A2D28}
.jj-home .jj-bar-track{display:block;height:8px;border-radius:99px;background:#ECEEE9;overflow:hidden}
.jj-home .jj-bar-track span{display:block;height:8px;border-radius:99px;background:var(--jj-accent)}
.jj-home .jj-bar-val{font:600 14px var(--jj-mono);text-align:right;color:var(--jj-text)}
.jj-home .jj-note{font-size:12px;line-height:1.6;color:var(--jj-sub)}
.jj-home .jj-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;text-align:center;padding:32px 36px}
.jj-home .jj-stats div{display:flex;flex-direction:column;gap:6px}
.jj-home .jj-stats b{font:600 34px var(--jj-mono)}
.jj-home .jj-stats span{font-size:14px;color:var(--jj-muted)}
.jj-home .jj-mapcard label{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--jj-muted)}
.jj-home .jj-select{font:600 14px inherit;font-family:inherit;padding:8px 12px;border-radius:10px;border:1px solid #D4D8D0;background:#fff;color:var(--jj-text);margin:0;width:auto;height:auto}
.jj-home .jj-map{width:100%;max-width:27rem;height:auto;margin:0 auto;display:block}
.jj-home .jj-map path{cursor:pointer;transition:fill .15s;stroke:#fff;stroke-width:1.2;fill-rule:evenodd}
.jj-home .jj-map path.off{fill:#E2E5DF}
.jj-home .jj-map path.off:hover{fill:#C9CEC4}
.jj-home .jj-map path.on{fill:#1B1D1A}
.jj-home .jj-map path:focus-visible{outline:none;stroke:var(--jj-ink);stroke-width:2.5}
.jj-home .jj-map circle{pointer-events:none}
.jj-home .jj-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;padding:24px 26px;border-radius:16px;background:var(--jj-ink);color:#fff}
.jj-home .jj-panel > div{display:flex;flex-direction:column;gap:8px;min-width:0}
.jj-home .jj-panel > div > span{font-size:14px;color:#C9CCC5}
.jj-home .jj-panel-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.jj-home .jj-p-name{font-size:22px;font-weight:900;letter-spacing:-.01em}
.jj-home .jj-p-src{padding:3px 9px;border-radius:99px;background:#262824;color:#C9CCC5;font-size:12px;font-weight:700}
.jj-home .jj-p-price{font:600 20px var(--jj-mono);color:var(--jj-accent);margin-left:6px}
.jj-home .jj-p-years{color:#fff;margin-left:4px}
.jj-home .jj-p-link{display:inline-flex;align-items:center;gap:6px;padding:12px 18px;border-radius:99px;background:var(--jj-accent);color:var(--jj-ink);font-size:14px;font-weight:800;white-space:nowrap}

/* 소개 카드 */
.jj-home .jj-about{position:relative;overflow:hidden;padding:120px 72px 80px!important;border-radius:32px;background:var(--jj-soft);max-width:1376px!important;margin-bottom:120px!important}
.jj-home .jj-about-map{position:absolute;left:174px;bottom:-33px;width:30rem;opacity:.9}
.jj-home .jj-about-inner{position:relative;display:flex;flex-direction:column;gap:72px}
.jj-home .jj-about-head{max-width:36rem;display:flex;flex-direction:column;gap:22px}
.jj-home .jj-about-head h2{font-size:clamp(28px,2.8vw,38px);line-height:1.4;font-weight:900;letter-spacing:-.02em}
.jj-home .jj-about-head p{font-size:16px;line-height:1.85;color:var(--jj-muted)}
.jj-home .jj-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.jj-home .jj-value{display:flex;flex-direction:column;gap:10px}
.jj-home .jj-value img{aspect-ratio:21/26;width:100%;object-fit:cover;border-radius:6px}
.jj-home .jj-v1{margin-top:220px}.jj-home .jj-v3{margin-top:120px}
.jj-home .jj-tag{font:500 13px var(--jj-mono);color:var(--jj-muted)}
.jj-home .jj-value h3{font-size:26px;font-weight:800;letter-spacing:-.01em}
.jj-home .jj-value p{font-size:15px;line-height:1.7;color:var(--jj-muted)}

/* 블로그: 최신 글 + 인기글 */
.jj-home .jj-blog{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:48px;padding-top:88px;padding-bottom:104px;align-items:start}
.jj-home .jj-blog-main{display:flex;flex-direction:column;gap:28px;min-width:0}
.jj-home .jj-blog .jj-posts{grid-template-columns:repeat(2,minmax(0,1fr))}
.jj-home .jj-blog .jj-post{min-height:0;padding:26px}
.jj-home .jj-blog .jj-post b{font-size:19px}
.jj-home .jj-blog .jj-post-ex{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jj-home .jj-blog-side{position:sticky;top:96px;padding:28px;border-radius:20px;background:var(--jj-soft)}
.jj-home .jj-blog-side .jj-pop-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:0 0 14px}
.jj-home .jj-blog-side .jj-pop-head h2{font-size:24px}
.jj-home .jj-blog-side .jj-pop-head span{font-size:12px;color:var(--jj-sub)}
.jj-home .jj-blog-side .jj-rank{border-bottom:0}
.jj-home .jj-blog-side .jj-rank a{grid-template-columns:40px minmax(0,1fr);gap:14px;padding:14px 0}
.jj-home .jj-blog-side .jj-rank-no{width:40px;height:40px;border-radius:12px;background:#fff;font-size:18px}
.jj-home .jj-blog-side .jj-rank-no.is-top{background:var(--jj-accent)}
.jj-home .jj-blog-side .jj-rank-text b{font-size:15px;line-height:1.5}
.jj-home .jj-blog-side .jj-rank li{border-top:1px solid #E1E4DD}
.jj-home .jj-blog-side .jj-rank li:first-child{border-top:0}

/* 인기글 */
.jj-home .jj-popular{align-items:start}
.jj-home .jj-pop-head{display:flex;flex-direction:column;gap:18px;padding-top:8px}
.jj-home .jj-chip{align-self:flex-start;padding:5px 11px;border-radius:99px;background:var(--jj-ink);color:#fff;font-size:12px;font-weight:800;letter-spacing:.02em}
.jj-home .jj-pop-head h2,.jj-home .jj-latest-head h2{font-size:clamp(28px,2.8vw,38px);line-height:1.35;font-weight:900;letter-spacing:-.02em}
.jj-home .jj-pop-head p{max-width:26rem;font-size:16px;line-height:1.8;color:var(--jj-muted)}
.jj-home .jj-rank{list-style:none;border-bottom:1px solid var(--jj-line)}
.jj-home .jj-rank li{list-style:none;margin:0;border-top:1px solid var(--jj-line)}
.jj-home .jj-rank li::before{content:none}
.jj-home .jj-rank a{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:18px;padding:20px 4px;color:var(--jj-text)}
.jj-home .jj-rank a:hover b{text-decoration:underline}
.jj-home .jj-rank-no{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:var(--jj-soft);font:600 22px var(--jj-mono)}
.jj-home .jj-rank-no.is-top{background:var(--jj-accent);color:var(--jj-ink)}
.jj-home .jj-rank-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.jj-home .jj-rank-text span{font-size:13px;font-weight:700;color:var(--jj-sub)}
.jj-home .jj-rank-text b{font-size:18px;font-weight:800;line-height:1.45;letter-spacing:-.01em}

/* 최신 글 */
.jj-home .jj-latest{padding-bottom:128px}
.jj-home .jj-latest > *{margin-bottom:32px}
.jj-home .jj-latest-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.jj-home .jj-latest-head a,.jj-home .jj-more{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:800;color:var(--jj-text)}
.jj-home .jj-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.jj-home .jj-post{display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:18px;background:#fff;border:1px solid var(--jj-line);color:var(--jj-text);min-height:15rem}
.jj-home .jj-post:hover{border-color:#BFC4BA}
.jj-home .jj-post b{font-size:20px;font-weight:800;line-height:1.4;letter-spacing:-.01em}
.jj-home .jj-post-ex{font-size:15px;line-height:1.7;color:var(--jj-muted);flex-grow:1}

.jj-home a:focus-visible,.jj-home select:focus-visible{outline:2px solid var(--jj-ink);outline-offset:3px}

/* 태블릿·휴대폰 */
@media (max-width:900px){
  .jj-home .jj-hero,.jj-home .jj-split,.jj-home .jj-values{grid-template-columns:minmax(0,1fr)}
  .jj-home .jj-hero-text{padding:64px 20px}
  .jj-home .jj-hero-art{min-height:22rem}
  .jj-home .jj-wrap > *{padding-left:16px;padding-right:16px}
  .jj-home .jj-statement{padding-top:80px;padding-bottom:64px}
  .jj-home .jj-card{padding:24px}
  .jj-home .jj-bar{grid-template-columns:6.5rem minmax(0,1fr) 5.5rem;gap:10px}
  .jj-home .jj-about{padding:64px 20px 48px!important;border-radius:0}
  .jj-home .jj-about-map{display:none}
  .jj-home .jj-v1,.jj-home .jj-v3{margin-top:0}
  .jj-home .jj-panel{grid-template-columns:minmax(0,1fr)}
  .jj-home .jj-blog{grid-template-columns:minmax(0,1fr);gap:32px;padding-top:56px;padding-bottom:64px}
  .jj-home .jj-blog .jj-posts{grid-template-columns:minmax(0,1fr)}
  .jj-home .jj-blog-side{position:static}
  .jj-home .jj-map{min-height:0}
}
@media (prefers-reduced-motion:reduce){.jj-home *{transition:none!important}}

/* 메인 화면 페이지: 테마가 그리는 페이지 제목·위쪽 여백 숨기기 */
body.jj-home-page .wp-block-post-title,
body.jj-home-page .entry-title,
body.jj-home-page .page-title,
body.jj-home-page .entry-header{display:none!important}
body.jj-home-page .wp-block-group:has(> .wp-block-post-title):not(:has(.jj-home)),
body.jj-home-page .wp-block-cover:has(.wp-block-post-title):not(:has(.jj-home)){display:none!important}
body.jj-home-page main,
body.jj-home-page .wp-site-blocks > header + *,
body.jj-home-page .wp-block-post-content,
body.jj-home-page .entry-content,
body.jj-home-page .site-main,
body.jj-home-page article{margin-top:0!important;padding-top:0!important}
body.jj-home-page main > .wp-block-group:has(.jj-home){margin-top:0!important;padding-top:0!important}
body.jj-home-page .jj-home + *{margin-top:0}
