/* 18번 모든 페이지 공통 (common.js가 넣는 부분) — 레퍼런스: 남색 머리 메뉴 · 금색 글씨 · 회색 그림 · 하단 상담문의/전화연결 */
:root{--cx-navy:#141c33;--cx-navy-2:#1d2745;--cx-gold:#c9a96a;--cx-gold-2:#e3cc95;--cx-hd:72px}
@media (max-width:900px){:root{--cx-hd:60px}}
html{scroll-padding-top:var(--cx-hd)}
.cx-hd{position:fixed;inset:0 0 auto;z-index:60;height:var(--cx-hd);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 clamp(16px,3vw,48px);color:#fff;transition:background .35s}
.cx-hd.cx-solid{background:var(--cx-navy);box-shadow:0 1px 0 rgba(255,255,255,.06)}
.cx-hd--home:not(.cx-solid){background:linear-gradient(rgba(0,0,0,.35),transparent)}
.cx-logo{font-family:Pretendard,sans-serif;font-weight:700;font-size:clamp(17px,1.6vw,21px);letter-spacing:-.02em;color:#fff;white-space:nowrap;text-decoration:none}
.cx-hd.cx-solid .cx-logo,.cx-drawer .cx-logo{color:var(--cx-gold)}
.cx-logo em{font-family:"Nanum Brush Script",cursive;font-style:italic;font-weight:400;font-size:1.5em;margin-left:6px;letter-spacing:-.01em;vertical-align:-.04em}
.cx-gnb{display:flex;gap:clamp(20px,3vw,48px);margin-left:auto}
.cx-g{position:relative}
.cx-g>a{display:block;padding:24px 0;font-size:16px;font-weight:600;color:#fff;text-decoration:none}
.cx-g>a:hover{color:var(--cx-gold-2)}
.cx-sub{position:absolute;left:50%;top:100%;transform:translate(-50%,6px);min-width:150px;background:#fff;box-shadow:0 14px 34px rgba(0,0,0,.18);padding:8px 0;opacity:0;visibility:hidden;transition:.25s}
.cx-g:hover .cx-sub,.cx-g:focus-within .cx-sub{opacity:1;visibility:visible;transform:translate(-50%,0)}
.cx-sub a{display:block;padding:10px 20px;font-size:14px;color:#2b2f38;text-decoration:none;white-space:nowrap}
.cx-sub a:hover,.cx-sub a.on{color:var(--cx-navy);background:#f3efe6;font-weight:700}
.cx-icons{display:flex;align-items:center;gap:clamp(10px,1.6vw,22px)}
.cx-icons a,.cx-icons button{display:grid;place-items:center;width:34px;height:34px;color:#fff;background:none;border:0;cursor:pointer}
.cx-icons svg,.cx-drawer svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:1100px){.cx-gnb{display:none}}
@media (min-width:1101px){.cx-burger{display:none!important}}

.cx-drawer{position:fixed;inset:0;z-index:70;background:var(--cx-navy);color:#fff;padding:0 clamp(20px,5vw,60px) 40px;overflow-y:auto;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.cx-open .cx-drawer{opacity:1;visibility:visible}
.cx-open{overflow:hidden}
.cx-drawer-top{display:flex;justify-content:space-between;align-items:center;height:var(--cx-hd)}
.cx-x{background:none;border:0;color:#fff;cursor:pointer;width:36px;height:36px}
.cx-drawer nav{display:grid;gap:26px;margin-top:24px}
.cx-dg p{font-size:13px;letter-spacing:.08em;color:var(--cx-gold);margin-bottom:8px}
.cx-dg a{display:inline-block;margin:0 18px 10px 0;font-size:19px;font-weight:600;color:#fff;text-decoration:none}
.cx-dg a.on{color:var(--cx-gold-2)}
.cx-drawer-tel{display:block;margin-top:34px;padding-top:22px;border-top:1px solid rgba(255,255,255,.15);color:rgba(255,255,255,.75);text-decoration:none;font-size:15px}
.cx-drawer-tel b{font-size:24px;color:#fff;margin-left:8px}

/* 메뉴 페이지 맨 위 회색 그림 */
.cx-subtop{position:relative;height:clamp(300px,34vw,460px);margin-top:var(--cx-hd);background:#6d6d6d url(img/subtop.webp) center/cover no-repeat;display:grid;place-items:center;text-align:center;color:#fff}
.cx-subtop::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.08)}
.cx-subtop-in{position:relative;z-index:1;margin-top:-4%}
.cx-subtop h1{font-family:Jost,Montserrat,sans-serif;font-weight:500;font-size:clamp(38px,6vw,76px);letter-spacing:.04em;line-height:1;text-shadow:0 2px 14px rgba(0,0,0,.25)}
.cx-subtop p{margin-top:12px;font-size:clamp(17px,1.6vw,22px);font-weight:600;text-shadow:0 1px 8px rgba(0,0,0,.25)}

/* 맨 아래 정보 */
.cx-ft{background:#1a2033;color:rgba(255,255,255,.72);padding:clamp(44px,6vw,72px) clamp(20px,5vw,80px) calc(clamp(36px,5vw,60px) + 64px);font-size:14px;line-height:1.7}
@media (min-width:901px){.cx-ft{padding-bottom:clamp(36px,5vw,60px)}}
.cx-ft-name{font-size:20px;font-weight:800;color:#fff;margin-bottom:18px}
.cx-ft-name em{font-family:"Nanum Brush Script",cursive;font-style:italic;font-weight:400;font-size:1.45em;color:var(--cx-gold);margin-left:4px}
.cx-ft-info div{display:flex;gap:12px}
.cx-ft-info dt{flex:none;width:64px;font-weight:700;color:#fff}
.cx-ft-tel{margin:18px 0;font-size:16px;color:#fff;font-weight:700}
.cx-ft-tel a{font-size:24px;color:var(--cx-gold-2);margin-left:8px;text-decoration:none}
.cx-ft-notes{list-style:none;font-size:12.5px;color:rgba(255,255,255,.5);padding:18px 0;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12)}
.cx-ft-bot{display:flex;justify-content:space-between;align-items:center;margin-top:20px}
.cx-ft-co{font-size:15px;font-weight:700;color:#fff}
.cx-ft-top{display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:6px 16px;color:#fff;font-size:13px;font-weight:700;text-decoration:none}

/* 휴대폰 하단 상담문의 / 전화연결 */
.cx-bar{position:fixed;inset:auto 0 0;z-index:55;display:grid;grid-template-columns:1fr 1fr;height:64px}
.cx-bar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:16px;font-weight:800;text-decoration:none}
.cx-bar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cx-bar-q{background:var(--cx-navy-2);color:#fff}
.cx-bar-t{background:linear-gradient(110deg,#e8d39e,#c9a560 60%,#b8934e);color:var(--cx-navy)}
@media (min-width:901px){.cx-bar{display:none}}
/* 10/20 새 회색 사진: 여성이 오른쪽 3분의 1에 있어 글자와 겹치지 않게 가운데 기준 */
.cx-subtop{background-position:62% 55%}
@media (max-width:760px){.cx-subtop{background-position:66% 60%}}
/* 10/20 민 님: 샘플(레퍼런스) 화면 비율 · 위치 그대로 — PC 1440 기준 칸 높이 268, 제목 오른쪽 얇게 / 휴대폰 390 기준 칸 높이 238, 제목 가운데 */
.cx-subtop{height:18.6vw;min-height:200px;background:#cfcfcf url(img/subtop_pc.webp) center/cover no-repeat;display:block;text-align:right}
.cx-subtop::after{display:none}
.cx-subtop-in{position:absolute;right:3.1%;top:37%;margin:0}
.cx-subtop h1{font-weight:300;font-size:3.6vw;letter-spacing:.02em;text-shadow:none}
.cx-subtop p{margin-top:.5vw;font-size:clamp(12px,.95vw,15px);font-weight:600;text-shadow:none}
@media (max-width:760px){
  .cx-subtop{height:61vw;min-height:0;background-image:url(img/subtop_m.webp);text-align:center}
  .cx-subtop-in{left:0;right:0;top:36%}
  .cx-subtop h1{font-weight:400;font-size:9.7vw;text-shadow:0 2px 10px rgba(0,0,0,.18)}
  .cx-subtop p{margin-top:1.5vw;font-size:3.9vw;text-shadow:0 1px 6px rgba(0,0,0,.18)}
}
:root{--cx-hd:88px}
@media (max-width:900px){:root{--cx-hd:62px}}
.cx-subtop::after{display:block;background:rgba(40,40,40,.18)}
.cx-subtop-in{z-index:1}
/* 메뉴판 (10/20 샘플 비율) */
.cx-dim{position:fixed;inset:0;z-index:69;background:rgba(0,0,0,.45);opacity:0;visibility:hidden;transition:.3s}
.cx-open .cx-dim{opacity:1;visibility:visible}
.cx-drawer{left:auto;right:0;width:85vw;max-width:420px;background:#fff;color:#141c33;padding:0 20px 40px;opacity:1;visibility:hidden;transform:translateX(100%);transition:transform .35s cubic-bezier(.2,.7,.2,1),visibility .35s}
.cx-open .cx-drawer{visibility:visible;transform:none}
.cx-drawer-top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:74px;margin:0 -20px;padding:0 16px;border-bottom:1px solid #e6e6e6}
.cx-x,.cx-dtel{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:0;cursor:pointer}
.cx-x{background:#1a1a1a;color:#fff}.cx-dtel{background:var(--cx-navy-2);color:#fff}
.cx-x svg,.cx-dtel svg{width:20px;height:20px}
.cx-dlogo{text-align:center;font-weight:700;font-size:15px;color:#1b2440;white-space:nowrap}
.cx-dlogo em{font-family:"Nanum Brush Script",cursive;font-style:italic;font-weight:400;font-size:1.45em;margin-left:3px;color:#1b2440}
.cx-drawer nav{display:block;margin-top:10px}
.cx-dg{border-bottom:1px solid #e6e6e6}
.cx-dh{display:flex;justify-content:space-between;align-items:center;width:100%;padding:22px 0;background:none;border:0;font-size:20px;font-weight:800;color:#141c33;text-decoration:none;cursor:pointer;margin:0}
.cx-dh i{width:8px;height:8px;border-right:2px solid #555;border-bottom:2px solid #555;transform:rotate(45deg) translateY(-3px);transition:transform .25s}
.cx-dg.open .cx-dh i{transform:rotate(-135deg)}
.cx-ds{display:none;padding:0 0 18px}
.cx-dg.open .cx-ds{display:grid;gap:4px}
.cx-ds a{display:block;margin:0;padding:8px 12px;font-size:16px;font-weight:500;color:#555;background:#f6f5f2}
.cx-ds a.on{color:#141c33;font-weight:700;background:#eee6d6}
.cx-drawer-tel{border-top:0;color:#6b7079}.cx-drawer-tel b{color:#141c33}
.cx-dg a.cx-dh{display:flex;color:#141c33;font-size:20px;font-weight:800;margin:0}
/* 10/20 밤 민 님: 회색 맨 위 — 레퍼런스처럼 여성 위로 벽이 넓게(시원 · 고급), 나무가 잘리지 않게.
   위로 벽이 넓은 PC용 그림을 새로 만듦(ChatGPT s04_subtop_pc → img/subtop_pc2.webp, 5.3:1). 칸 높이 = 화면 폭의 18.8%(레퍼런스 1440에서 271px)라
   그림이 칸과 같은 비율 → 화면이 크면 여성도 크고, 작으면 작게(폭에 비례). 600px 이하는 휴대폰 그림 그대로 */
@media (min-width:601px){
  .cx-subtop{height:18.8vw;min-height:0;background-image:url(img/subtop_pc2.webp);background-size:cover;background-position:50% 50%;text-align:right}
  .cx-subtop::after{background:rgba(40,40,40,.10)}
  .cx-subtop-in{left:auto;right:3.1%;top:37%}
  .cx-subtop h1{font-weight:300;font-size:max(3.6vw,24px);text-shadow:0 1px 10px rgba(0,0,0,.12)}
  .cx-subtop p{margin-top:.5vw;font-size:clamp(11px,.95vw,15px);text-shadow:0 1px 6px rgba(0,0,0,.12)}
}
/* 10/20 밤 민 님: 머리 메뉴를 로고와 아이콘 사이 빈 공간의 가운데에 · 하위 메뉴는 하얀 상자 대신 투명하고 세련되게(남색 유리 느낌) */
@media (min-width:1101px){
  .cx-gnb{position:static;transform:none;flex:1;justify-content:center;margin:0}
  .cx-sub{min-width:168px;padding:10px 8px;border-radius:12px;background:rgba(14,22,44,.74);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);border:1px solid rgba(255,255,255,.14);box-shadow:0 18px 40px rgba(0,0,0,.28);transform:translate(-50%,10px)}
  .cx-g:hover .cx-sub,.cx-g:focus-within .cx-sub{transform:translate(-50%,4px)}
  .cx-sub::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
  .cx-sub a{text-align:center;color:rgba(255,255,255,.86);font-size:14px;font-weight:500;letter-spacing:.01em;border-radius:8px;padding:9px 16px;transition:background .2s,color .2s}
  .cx-sub a:hover,.cx-sub a.on{color:var(--cx-gold-2);background:rgba(255,255,255,.08);font-weight:600}
}
/* 10/21 민 님: 첫 화면 머리 띠(반투명 남색)는 답답해 보여 뺌 → 원래의 위에서 아래로 옅어지는 그림자만 */
/* 10/20 밤 민 님: 첫 화면 로고도 흰색이면 심심 → 금색(하늘 위에서 보이게 밝은 금색 + 옅은 그림자) */
.cx-hd--home:not(.cx-solid) .cx-logo{color:var(--cx-gold-2);text-shadow:0 1px 8px rgba(0,0,0,.28)}

/* 10/21 민 님: 로고를 공식 홈페이지 로고 파일(cityociel9.com/images/logo.png, 359×50 흰색)로 — 그 회사가 지은 아파트의 잔여세대를 파는 홍보라 사용(의뢰인 확인 받기). 레퍼런스도 같은 파일.
   흰 그림을 모양으로만 쓰고 색은 우리 금색(mask). 글자는 화면 읽기용으로 남김(font-size 0). 고화질 원본이 오면 파일만 바꾸면 됨 */
.cx-logo{display:inline-block;flex:none;height:clamp(20px,1.9vw,27px);aspect-ratio:359/50;font-size:0;color:transparent;background:var(--cx-gold);-webkit-mask:url(img/logo_official.png) left center/contain no-repeat;mask:url(img/logo_official.png) left center/contain no-repeat}
.cx-logo em{display:none}
.cx-hd--home:not(.cx-solid) .cx-logo{background:var(--cx-gold-2);text-shadow:none}
.cx-dlogo{display:inline-block;height:20px;aspect-ratio:359/50;margin-left:10px;font-size:0;color:transparent;background:var(--cx-navy);-webkit-mask:url(img/logo_official.png) center/contain no-repeat;mask:url(img/logo_official.png) center/contain no-repeat}
.cx-dlogo em{display:none}
/* 10/21 민 님: 로고의 '오션파크뷰'(붓글씨 부분)는 흰색, '시티오씨엘 9단지'는 금색 — 한 장짜리 로고라 왼쪽 61.5%까지 금색, 그 뒤 흰색으로 칠함 */
.cx-logo{background:linear-gradient(90deg,var(--cx-gold) 0 61.5%,#fff 61.5% 100%)}
.cx-hd--home:not(.cx-solid) .cx-logo{background:linear-gradient(90deg,var(--cx-gold-2) 0 61.5%,#fff 61.5% 100%)}
/* 10/21 민 님: 맨 아래(이음파트너스 부분)를 가운데로 — 다만 사업명 · 대지위치 같은 줄은 가운데 정렬하면 읽기 힘들어서,
   정보 덩어리 전체를 가운데에 두고 그 안에서는 이름표 · 내용을 왼쪽에 맞춤. 제목 · 대표번호 · 안내 · 회사명은 가운데 */
.cx-ft{text-align:center}
.cx-ft-name{margin-bottom:22px}
.cx-ft-info{display:inline-grid;gap:4px;text-align:left;max-width:min(720px,100%);margin:0 auto}
.cx-ft-info dt{width:72px;color:rgba(255,255,255,.95)}
.cx-ft-info dd{color:rgba(255,255,255,.72)}
.cx-ft-tel{margin:22px 0}
.cx-ft-notes{max-width:760px;margin:0 auto;font-size:12.5px;line-height:1.75}
.cx-ft-notes li{margin:3px 0}
.cx-ft-bot{position:relative;justify-content:center;max-width:760px;margin:22px auto 0}
.cx-ft-co{letter-spacing:.02em}
.cx-ft-top{position:absolute;right:0;top:50%;transform:translateY(-50%)}
@media (max-width:600px){
  .cx-ft-info{display:grid;width:100%}
  .cx-ft-info div{gap:10px}
  .cx-ft-info dt{width:58px}
  .cx-ft-notes{text-align:left}
}
