/* 하위 페이지 공통 + 구축사례 목록 (시안 Cases / Cases-M) */

/* 페이지 상단 (PORTFOLIO 등 배지 + 큰 제목 + 원형 장식) */
.page-hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; padding-top: 72px; }
.page-hero__circle { position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border-radius: 50%; background: var(--vermilion); }
.page-hero__dot { position: absolute; right: 240px; top: 150px; width: 64px; height: 64px; border-radius: 50%; background: var(--vermilion-100); }
.page-hero__text { position: relative; display: flex; flex-direction: column; gap: 20px; }
.eyebrow {
  align-self: flex-start; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--vermilion-100); color: var(--vermilion-700);
  font-size: 14px; font-weight: 600; line-height: 1.2; letter-spacing: .06em;
}
.page-hero__title { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.26; letter-spacing: -.02em; }
.page-hero__desc { max-width: 560px; font-size: 20px; line-height: 1.6; color: var(--gray-700); }

/* 하단 주색 CTA 띠 */
.cta-band-wrap { padding-top: 120px; padding-bottom: var(--section-gap); }
.cta-band {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(40px, 5vw, 64px); border-radius: 32px; background: var(--vermilion); color: var(--white);
}
.cta-band__circle { position: absolute; right: -80px; top: -140px; width: 300px; height: 300px; border-radius: 50%; background: var(--vermilion-400); }
.cta-band__text { position: relative; display: flex; flex-direction: column; gap: 12px; }
.cta-band__text h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; letter-spacing: -.015em; }
.cta-band__text p { font-size: 18px; line-height: 1.2; color: var(--vermilion-50); }
.cta-band__btn { position: relative; }
/* 주색 바탕 위 버튼은 검정 → 호버 시 흰색 (주색 위 주색 방지) */
.cta-band .btn:hover, .cta-band .btn:focus-visible { background: var(--charcoal); }

/* 테두리 버튼 (더 보기) */
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border: 1.5px solid var(--black); border-radius: var(--radius-pill); color: var(--black);
  font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease;
}
.btn-outline:hover, .btn-outline:focus-visible { background: var(--black); color: var(--white); }

/* 구축사례 목록 */
.cases-list { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; }
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.chip-filter {
  height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--white); color: var(--gray-700); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: all .3s ease;
}
.chip-filter small { font-size: 13px; opacity: .6; }
.chip-filter:hover { border-color: var(--black); color: var(--black); }
.chip-filter[aria-current="page"] { background: var(--black); border-color: var(--black); color: var(--white); }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 56px 24px; }
.case-card { display: flex; flex-direction: column; gap: 14px; color: var(--black); text-decoration: none; }
.case-card__th { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: var(--sand-pale); }
.case-card__th img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover img, .case-card:focus-visible img { transform: scale(1.05); }
.case-card__go { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; opacity: 0; transform: translateY(6px); transition: all .3s ease; }
.case-card:hover .case-card__go, .case-card:focus-visible .case-card__go { opacity: 1; transform: none; }
.case-meta { font-size: 14px; line-height: 1.2; color: var(--gray-500); }
.case-card__title { font-size: 22px; line-height: 1.4; transition: color .3s ease; }
.case-card:hover .case-card__title, .case-card:focus-visible .case-card__title { color: var(--vermilion-600); }
.cases-empty { padding: 48px 0; color: var(--gray-700); }
.cases-more { display: flex; justify-content: center; }

@media (max-width: 767px) {
  .page-hero { padding-top: 40px; gap: 16px; }
  .page-hero__circle { right: -40px; top: 0; width: 140px; height: 140px; }
  .page-hero__dot { display: none; }
  .page-hero__text { gap: 16px; }
  .eyebrow { padding: 6px 12px; font-size: 12px; }
  .page-hero__title { font-size: 40px; line-height: 1.25; }
  .page-hero__desc { font-size: 16px; }

  .cta-band-wrap { padding-top: 64px; padding-bottom: 72px; }
  .cta-band { flex-direction: column; align-items: stretch; gap: 16px; padding: 32px 24px; border-radius: 24px; }
  .cta-band__circle { right: -50px; top: -70px; width: 160px; height: 160px; }
  .cta-band__text h2 { font-size: 24px; line-height: 1.4; }
  .cta-band__text p { display: none; }
  .cta-band__btn { justify-content: space-between; background: var(--black); }

  .cases-list { gap: 32px; padding-top: 28px; }
  .case-filters {
    flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 20px;
  }
  .case-filters::-webkit-scrollbar { display: none; }
  .chip-filter { height: 40px; padding: 0 16px; font-size: 14px; gap: 6px; }
  .case-grid { grid-template-columns: 1fr; gap: 36px; }
  .case-card { gap: 10px; }
  .case-card__th { border-radius: 16px; }
  .case-meta { font-size: 13px; }
  .case-card__title { font-size: 20px; line-height: 1.3; }
  .cases-more .btn-outline { width: 100%; }
}

/* 문서형 페이지 (개인정보처리방침) */
.doc { max-width: calc(880px + var(--gutter) * 2); padding-top: 72px; padding-bottom: var(--section-gap); }
.doc__head { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; border-bottom: 1.5px solid var(--black); }
.doc__title { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.2; letter-spacing: -.02em; }
.doc__date { font-size: 15px; color: var(--gray-500); }
.doc__body { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; font-size: 17px; line-height: 1.75; color: var(--charcoal); }
.doc__body h2 { margin-top: 24px; font-size: 22px; line-height: 1.4; color: var(--black); }
.doc__body ul { display: flex; flex-direction: column; gap: 6px; padding-left: 1.2em; list-style: disc; }
.doc__notice { margin-top: 24px; padding: 16px 20px; border-radius: 12px; background: var(--white); font-size: 15px; color: var(--gray-700); }
@media (max-width: 767px) {
  .doc { padding-top: 40px; padding-bottom: 72px; }
  .doc__head { gap: 14px; padding-bottom: 24px; }
  .doc__title { font-size: 32px; }
  .doc__body { padding-top: 24px; font-size: 16px; }
  .doc__body h2 { margin-top: 16px; font-size: 19px; }
}
