/* 협동조합소개(고객용) — 피그마 4120:19125(1920x4983) / 모바일 4120:17933(360x4664)
   섹션: 히어로(0~820/60~580) → OUR DIFFERENCE(820~1723/580~1578) → Special Memories
   (1723~2662/1638~2161) → Our Network(2662~3702/2221~3418) → CTA(3702~4222/3418~3962) */

html, body { margin: 0; padding: 0; }
#page { position: relative; width: 1920px; transform-origin: 0 0; background: #fff; }

/* ---------- 공통 섹션 타이틀 (Cormorant 라벨 + 나눔명조 헤드라인) ---------- */
.co-head { position: absolute; text-align: center; white-space: nowrap; }
.co-head__label {
  margin: 0; font-family: 'Cormorant Infant', serif; font-weight: 700;
  font-size: 22px; line-height: 27px; letter-spacing: -0.05em;
  text-transform: uppercase; color: #4a4c25;
}
.co-head__tit {
  margin: 18px 0 0; font-family: 'Nanum Myeongjo', serif; font-weight: 700;
  font-size: 38px; line-height: 44px; letter-spacing: -0.025em; color: #222;
}
/* 전용 줄바꿈 — .co-br-m은 모바일에서만, .co-br-d은 데스크톱에서만 */
.co-br-m { display: none; }
.co-br-d { display: inline; }

/* ---------- 히어로 (가족사진 배경, 딤은 익스포트에 포함) ---------- */
.co-hero { position: absolute; top: 0; left: 0; width: 1920px; height: 820px; overflow: hidden; }
.co-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-hero__img--m { display: none; }
.co-hero__body { position: absolute; left: 713px; top: 292px; width: 494px; text-align: center; color: #fff; }
.co-hero__t1 { margin: 0; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 28px; line-height: 32px; letter-spacing: -0.02em; }
.co-hero__t2 { margin: 16px 0 0; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 56px; line-height: 64px; letter-spacing: -0.02em; white-space: nowrap; }
.co-hero__bar { width: 1px; height: 70px; background: #d9d9d9; margin: 30px auto 0; }
.co-hero__desc { margin: 30px 0 0; font-size: 24px; line-height: 40px; letter-spacing: -0.02em; opacity: .9; white-space: nowrap; }

/* ---------- OUR DIFFERENCE (카드 4장 — 번호 뱃지 + 흰 카드 + 사진) ---------- */
.co-diff { position: absolute; top: 820px; left: 0; width: 1920px; height: 903px; background: #ebe5e0 url("../assets/figma/co-diffbg.webp") center / cover no-repeat; }
.co-diff .co-head { left: 750px; top: 140px; width: 420px; }
.co-dcards { position: absolute; left: 260px; top: 299px; width: 1400px; height: 454px; display: flex; gap: 24px; }
.co-dcard { position: relative; width: 332px; height: 454px; }
.co-dcard__bg { position: absolute; left: 0; top: 24px; width: 332px; height: 430px; background: #fff; }
.co-dcard__line { position: absolute; left: 0; top: 24px; width: 332px; height: 2px; background: #4a4c25; }
.co-dcard__no {
  position: absolute; left: 136px; top: 0; width: 60px; height: 60px; border-radius: 30px;
  background: #4a4c25; color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 24px; letter-spacing: -0.02em;
}
.co-dcard__tit { position: absolute; left: 15px; top: 92px; width: 302px; text-align: center; font-weight: 600; font-size: 26px; line-height: 31px; letter-spacing: -0.02em; color: #333; }
.co-dcard__desc { position: absolute; left: 46px; top: 141px; width: 240px; text-align: center; font-weight: 500; font-size: 18px; line-height: 26px; letter-spacing: -0.02em; color: #787878; }
.co-dcard__img { position: absolute; left: 15px; top: 247px; width: 302px; height: 192px; object-fit: cover; }

/* ---------- Special Memories (사진 4장, 카드1만 오버레이 문구) ---------- */
.co-mem { position: absolute; top: 1723px; left: 0; width: 1920px; height: 939px; background: #fff; }
.co-mem .co-head { left: 715px; top: 140px; width: 490px; }
.co-mcards { position: absolute; left: 260px; top: 309px; width: 1400px; height: 490px; }
.co-mcard { position: absolute; width: 332px; height: 440px; overflow: hidden; }
.co-mcard--family { left: 0; top: 0; }     /* 가족사진 */
.co-mcard--wedding { left: 356px; top: 50px; }  /* 리마인드웨딩 */
.co-mcard--baek { left: 712px; top: 0; }  /* 칠순·팔순 */
.co-mcard--anniv { left: 1068px; top: 50px; }  /* 가족기념일 */
.co-mcard img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 호버 시 하단 그라데이션 위에 글귀 표시 (피그마 4276:15954) — 데스크톱 전용 */
html:not(.is-m) .co-mcard::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 64.9%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0; transition: opacity 0.25s; }
html:not(.is-m) .co-mcard:hover::after { opacity: 1; }
.co-mcard__ov { position: absolute; left: 30px; top: 298px; width: 272px; color: #fff;
  z-index: 2; opacity: 0; transition: opacity 0.25s; }
html:not(.is-m) .co-mcard:hover .co-mcard__ov { opacity: 1; }
.co-mcard__ov strong { display: block; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 26px; line-height: 30px; letter-spacing: -0.02em; }
.co-mcard__ov p { margin-top: 16px; font-size: 18px; line-height: 28px; letter-spacing: -0.02em; }
/* 모바일 전용 캡션(사진 아래 문구) — 데스크톱에서 숨김 */
.co-mcard__cap { display: none; }
/* 모바일 마퀴 트랙 래퍼 — 데스크톱에선 흔적 제거(absolute 카드의 기준은 .co-mcards 유지) */
.co-mtrack { display: contents; }
/* main.js가 마퀴용으로 복제한 5~8번째 카드는 데스크톱 절대 배치에선 원본과 겹치므로 숨김 */
html:not(.is-m) .co-mtrack .co-mcard:nth-child(n+5) { display: none; }
/* Special Memories 자동 루프 — 리뷰 마퀴와 동일 패턴(트랙 2배 복제 → -50% 순환) */
@keyframes co-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Our Network (전국 지점 맵 + 점/점선 + 필 5장) ---------- */
.co-net { position: absolute; top: 2662px; left: 0; width: 1920px; height: 1040px; background: #535537; }
/* 스페클 장식 — 피그마 배경 그룹(데스크톱 4120:19306 / 모바일 4120:18072)을 통째로 SVG로,
   도트가 white + overlay 블렌드라 레이어에도 overlay 적용 (올리브 위에서 밝은 올리브 점) */
.co-net__deco {
  position: absolute; left: 799px; top: 0; width: 1121px; height: 1040px;
  background: url("../assets/figma/co-net-deco.svg") no-repeat 0 0 / 1121px 1040px;
  mix-blend-mode: overlay; opacity: .25; pointer-events: none;
}
.co-net .co-head { left: 738px; top: 130px; width: 444px; }
.co-net .co-head__label, .co-net .co-head__tit { color: #fff; }
.co-net__map { position: absolute; left: 475px; top: 285px; width: 397px; height: 651px; }
.co-net__map--m { display: none; }
.co-net__dots { position: absolute; left: 0; top: 0; width: 1920px; height: 1040px; }
.co-net__dot { position: absolute; left: 893px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.co-net__dot::after { content: ""; position: absolute; left: 9px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.co-net__dot:nth-child(1) { top: 358px; }
.co-net__dot:nth-child(2) { top: 462px; }
.co-net__dot:nth-child(3) { top: 565px; }
.co-net__dot:nth-child(4) { top: 669px; }
.co-net__dot:nth-child(5) { top: 773px; }
.co-net__lines { position: absolute; left: 0; top: 0; width: 1920px; height: 1040px; }
.co-net__line { position: absolute; height: 0; border-top: 2px dashed rgba(255, 255, 255, .5); }
/* 피그마 Vector 929/930/931/932/933 (4120:20340~344) — 행별 폭이 다름 */
.co-net__line:nth-child(1) { left: 915px; top: 368px; width: 90px; }
.co-net__line:nth-child(2) { left: 916px; top: 472px; width: 195px; }
.co-net__line:nth-child(3) { left: 915px; top: 576px; width: 63px; }
.co-net__line:nth-child(4) { left: 916px; top: 679px; width: 264px; }
.co-net__line:nth-child(5) { left: 916px; top: 783px; width: 91px; }
.co-net__pills { position: absolute; left: 0; top: 0; width: 1920px; height: 1040px; }
.co-pill {
  position: absolute; width: 326px; height: 80px; border-radius: 100px;
  background: rgba(255, 255, 255, .8); border: 1px solid #fff;
  display: flex; align-items: center; text-decoration: none;
}
.co-pill:nth-child(1) { left: 1006px; top: 329px; }
.co-pill:nth-child(2) { left: 1111px; top: 433px; }
.co-pill:nth-child(3) { left: 978px; top: 537px; }
.co-pill:nth-child(4) { left: 1180px; top: 641px; }
.co-pill:nth-child(5) { left: 1006px; top: 745px; }
.co-pill img { width: 62px; height: 62px; margin-left: 9px; border-radius: 50%; object-fit: cover; }
.co-pill__tx { margin-left: 18px; }
.co-pill__label { display: block; font-weight: 600; font-size: 15px; line-height: 18px; letter-spacing: -0.02em; color: #4a4c25; }
.co-pill__name { display: block; margin-top: 6px; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 22px; line-height: 25px; letter-spacing: -0.03em; color: #111; }

/* ---------- CTA (사진 배경 + 그라데이션 카드 2장) ---------- */
.co-cta { position: absolute; top: 3702px; left: 0; width: 1920px; height: 520px; background: #393633 url("../assets/figma/co-ctabg.jpg") center / cover no-repeat; }
.co-cta__card {
  position: absolute; top: 160px; width: 680px; height: 200px; border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: linear-gradient(117.6deg, rgba(162, 145, 120, .7) 11.55%, rgba(119, 92, 64, .7) 108.06%);
  text-decoration: none;
}
.co-cta__card--find { left: 260px; }
.co-cta__card--book { left: 980px; }
.co-cta__tx { position: absolute; left: 60px; top: 56px; color: #fff; white-space: nowrap; }
.co-cta__tx strong { display: block; font-family: 'Nanum Myeongjo', serif; font-weight: 700; font-size: 30px; line-height: 35px; letter-spacing: -0.02em; }
.co-cta__tx p { margin-top: 16px; font-size: 22px; line-height: 36px; letter-spacing: -0.02em; opacity: .9; }
.co-cta__ic { position: absolute; }
.co-cta__ic img { display: block; width: 100%; height: 100%; }
.co-cta__ic--find { left: 541px; top: 59px; width: 79px; height: 82px; }
.co-cta__ic--book { left: 558px; top: 68px; width: 62px; height: 63px; }
.co-cta__ic--m { display: none; }

/* ======================================================================
   모바일 360 (피그마 4120:17933)
   ====================================================================== */

  html.is-m .co-head { white-space: normal; }
  /* 캔버스 폭도 360으로 — 누락 시 1920 레이아웃 박스가 남아 오른쪽 여백·가로 스크롤 발생 */
  html.is-m #page { width: 360px; }
  html.is-m .co-head__label { font-size: 18px; line-height: 22px; }
  html.is-m .co-head__tit { margin-top: 18px; font-size: 30px; line-height: 42px; }
  html.is-m .co-br-m { display: inline; }
  html.is-m .co-br-d { display: none; }

  /* 히어로 — 이미지 60~580, 문구 블록 (캔버스 20,151) */
  html.is-m .co-hero { top: 60px; width: 360px; height: 520px; }
  html.is-m .co-hero__img--d { display: none; }
  html.is-m .co-hero__img--m { display: block; }
  html.is-m .co-hero__body { left: 20px; top: 91px; width: 320px; }
  html.is-m .co-hero__t1 { font-size: 18px; line-height: 21px; }
  html.is-m .co-hero__t2 { margin-top: 16px; font-size: 36px; line-height: 41px; }
  html.is-m .co-hero__bar { height: 50px; margin-top: 24px; }
  html.is-m .co-hero__desc { margin-top: 24px; font-size: 18px; line-height: 30px; }

  /* OUR DIFFERENCE — 2x2 카드 (col 20/186, badge y 216/573) */
  html.is-m .co-diff { top: 580px; width: 360px; height: 998px; background-image: url("../assets/figma/co-diffbg-m.webp"); }
  html.is-m .co-diff .co-head { left: 0; top: 60px; width: 360px; }
  html.is-m .co-dcards { left: 0; top: 216px; width: 360px; height: 722px; display: block; }
  html.is-m .co-dcard { position: absolute; width: 154px; height: 341px; }
  html.is-m .co-dcard:nth-child(1) { left: 20px; top: 0; }
  html.is-m .co-dcard:nth-child(2) { left: 186px; top: 0; }
  html.is-m .co-dcard:nth-child(3) { left: 20px; top: 357px; height: 365px; }
  html.is-m .co-dcard:nth-child(4) { left: 186px; top: 357px; height: 365px; }
  html.is-m .co-dcard__bg { top: 21px; width: 154px; height: 320px; }
  html.is-m .co-dcard:nth-child(3) .co-dcard__bg, html.is-m .co-dcard:nth-child(4) .co-dcard__bg { height: 344px; }
  html.is-m .co-dcard__line { top: 21px; width: 154px; }
  html.is-m .co-dcard__no { left: 54px; width: 46px; height: 46px; border-radius: 23px; font-size: 18px; }
  html.is-m .co-dcard__tit { left: 16px; top: 66px; width: 122px; font-size: 20px; line-height: 26px; }
  html.is-m .co-dcard__desc { left: 16px; top: 130px; width: 122px; font-size: 15px; line-height: 24px; }
  html.is-m .co-dcard__img { left: 10px; top: 246px; width: 134px; height: 85px; }
  html.is-m .co-dcard:nth-child(3) .co-dcard__img, html.is-m .co-dcard:nth-child(4) .co-dcard__img { top: 270px; }

  /* Special Memories — 가로 스와이프 → 리뷰 마퀴처럼 자동으로 흐르는 루프.
     트랙(co-mtrack)은 js/main.js가 내용을 2배 복제해 -50% 순환하며 끝이 없으므로
     시작·끝의 막힌 느낌이 없다. 카드 상하 오프셋(0/30)은 margin-top으로 유지 */
  html.is-m .co-mem { top: 1638px; width: 360px; height: 523px; }
  html.is-m .co-mem .co-head { left: 0; top: 0; width: 360px; }
  html.is-m .co-mcards { left: 0; top: 164px; width: 360px; height: 389px; overflow: hidden; }
  html.is-m .co-mtrack { display: flex; gap: 20px; width: max-content; height: 389px;
    animation: co-marquee 24s linear infinite; }
  html.is-m .co-mcard { position: relative; left: auto; top: auto; flex: none; width: 174px; height: 359px; overflow: visible; }
  html.is-m .co-mcard--wedding { margin-top: 30px; }  /* 리마인드웨딩 */
  html.is-m .co-mcard--anniv { margin-top: 30px; }    /* 가족기념일 */
  html.is-m .co-mcard img { width: 174px; height: 230px; }
  html.is-m .co-mcard__ov { display: none; }
  html.is-m .co-mcard__cap { display: block; position: absolute; left: 3px; top: 276px; width: 168px; }
  /* 마우스 환경 — 캡션은 카드 호버 시 표시(터치 기기는 항상 표시), 호버 중엔 마퀴를
     멈춰 문구를 읽게 한다. (hover:none) 기기엔 이 블록이 적용되지 않아 기존 표시 유지 */
  @media (hover: hover) {
    html.is-m .co-mcard__cap { opacity: 0; transition: opacity 0.25s; }
    html.is-m .co-mcard:hover .co-mcard__cap { opacity: 1; }
    html.is-m .co-mcards:has(.co-mcard:hover) .marquee__track { animation-play-state: paused; }
  }
  html.is-m .co-mcard__cap strong { display: block; font-family: 'Nanum Myeongjo', serif; font-weight: 800; font-size: 18px; line-height: 21px; letter-spacing: -0.02em; color: #333; }
  html.is-m .co-mcard__cap p { margin-top: 8px; font-size: 15px; line-height: 22px; letter-spacing: -0.02em; color: #555; }
  html.is-m .co-mcard--family .co-mcard__cap, html.is-m .co-mcard--baek .co-mcard__cap { top: 246px; }

  /* Our Network — 맵(32,228) + 필 5장 세로 나열 (34,737 간격 80) */
  html.is-m .co-net { top: 2221px; width: 360px; height: 1197px; }
  html.is-m .co-net__deco { left: 0; top: 486px; width: 360px; height: 711px;
    background-image: url("../assets/figma/co-net-deco-m.svg"); background-size: 360px 711px; }
  html.is-m .co-net .co-head { left: 0; top: 70px; width: 360px; }
  html.is-m .co-net__map { left: 32px; top: 228px; width: 296px; height: 485px; }
  html.is-m .co-net__map--d { display: none; }
  html.is-m .co-net__map--m { display: block; }
  html.is-m .co-net__dots, html.is-m .co-net__lines { display: none; }
  html.is-m .co-net__pills { left: 0; top: 737px; width: 360px; height: 390px; }
  html.is-m .co-pill { left: 34px; top: 0; width: 292px; height: 70px; }
  html.is-m .co-pill:nth-child(2) { top: 80px; }
  html.is-m .co-pill:nth-child(3) { top: 160px; }
  html.is-m .co-pill:nth-child(4) { top: 240px; }
  html.is-m .co-pill:nth-child(5) { top: 320px; }
  html.is-m .co-pill img { width: 54px; height: 54px; margin-left: 8px; }
  html.is-m .co-pill__tx { margin-left: 16px; }
  html.is-m .co-pill__label { font-size: 14px; line-height: 17px; }
  html.is-m .co-pill__name { margin-top: 4px; font-size: 18px; line-height: 21px; }

  /* CTA — 카드 320x186 (20,80 / 20,278) */
  html.is-m .co-cta { top: 3418px; width: 360px; height: 544px; background-image: url("../assets/figma/co-ctabg-m.jpg"); }
  html.is-m .co-cta__card { top: 80px; left: 20px; width: 320px; height: 186px; border-radius: 12px; border-width: 1px; }
  html.is-m .co-cta__card--book { top: 278px; }
  html.is-m .co-cta__tx { left: 24px; top: 95px; white-space: normal; }
  html.is-m .co-cta__tx strong { font-size: 22px; line-height: 25px; }
  html.is-m .co-cta__tx p { margin-top: 8px; font-size: 16px; line-height: 28px; }
  html.is-m .co-cta__ic--d { display: none; }
  html.is-m .co-cta__ic--m { display: block; left: 24px; top: 24px; width: 46px; height: 47px; }
