@charset "utf-8";

/* =========================================================================
   무료체험하기 (리뉴얼) — views/main/preview.php, views/main/mobile/preview.php
   본문은 views/main/preview/content.php 하나를 같이 쓴다.
   색은 케어매니저 스타일 가이드 색만 (assets/renewal/css/variables.css 와 같은 값):
     글자 #1D1D1D 제목 · #555555 본문 / 선 #D8D8D8 · #C6C6C6 / 바탕 #FFFFFF · 카드 그림 자리 #EDF1F5 (Secondary-5 연한 남색)
     주황 #FF4500 (Primary-50) · 눌렀을 때 #D53209 (Primary-60)
   가운데 1280px 폭은 헤더·푸터와 같은 선. 헤더 높이 PC 80px · 모바일 64px.
   ========================================================================= */

.pv {
  background: #fff;
  color: #1d1d1d;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

.pv *,
.pv *::before,
.pv *::after {
  box-sizing: border-box;
}

/* 기본 여백만 지운다 — :where() 로 우선순위를 0 으로 둬서 아래 각 요소의 margin 이 이긴다 */
:where(.pv) h1,
:where(.pv) h2,
:where(.pv) h3,
:where(.pv) p {
  margin: 0;
}

.pv-band {
  padding-left: max(3vw, calc((100% - 1280px) / 2));
  padding-right: max(3vw, calc((100% - 1280px) / 2));
}

/* ---------- 페이지 제목: 화면에는 숨기고 검색·화면낭독용으로만 ---------- */
.pv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 기능 묶음 (첫 묶음은 헤더 80px 아래에서 시작) ---------- */
.pv-group {
  padding-top: 24px;
  padding-bottom: 104px;
  scroll-margin-top: 80px;
}

.pv-group:first-of-type {
  padding-top: 148px; /* 헤더 80px + 68px — 주요기능·이용신청 제목과 같은 선 */
}

.pv-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d8d8d8;
}

.pv-group__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.pv-group__desc {
  font-size: 17px;
  line-height: 1.6;
  color: #555;
  text-align: right;
}

.pv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.pv-grid > div {
  display: flex;
}

.pv-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 20px;
  transition: transform .35s cubic-bezier(.2, .65, .25, 1), box-shadow .35s ease, border-color .35s ease;
}

.pv-card:hover {
  transform: translateY(-4px);
  border-color: #c6c6c6;
  box-shadow: 0 16px 36px -24px rgba(0, 0, 0, .16);
}

/* 그림 자리 높이는 화면 높이에 맞춘다 (최대 300px) — 첫 화면 아래에 다음 줄 카드가 살짝 보이도록 (화면 높이 - 640px)
   그림은 비율을 지킨 채 그 안에 들어가 아래에 붙는다 */
.pv-card__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(150px, calc(100vh - 640px), 300px);
  min-height: 0;
  overflow: hidden;
  padding: 24px 32px 0;
  background: #edf1f5;
}

.pv-card__media > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  transition: transform .5s cubic-bezier(.2, .65, .25, 1);
}

.pv-card:hover .pv-card__media > img,
.pv-card:hover .pv-mock {
  transform: scale(1.02);
}

/* 그림 대신 태블릿 HTML 목업(content.php 'mock') — 홈 주요기능과 같은 태블릿 틀(frame_tablet.webp 856:590)과 화면 자리.
   그림처럼 칸 높이에 맞추고(아래 붙임), 안 가상 화면(data-scaleui)은 preview-renewal.js 가 틀 폭에 맞춰 줄인다 (2026-10-29 사용자 '업무 가이드 자료 부분 태블릿에 자료실 화면으로') */
/* 태블릿 아래쪽은 칸 아래로 살짝 넘겨 가린다(칸 overflow:hidden) — 다 보일 필요 없다 (같은 날 '태블릿 화면 아래쪽 살짝 가려지도록' → '조금만 더 키우고 아래 조금 더 가려도' 116% → 132%) */
.pv-mock {
  position: relative;
  flex: none;
  align-self: flex-start;
  height: 132%;
  margin-top: 4%; /* 칸 위 회색 바탕에 붙어 보이지 않게 조금 더 내린다 (같은 날 '회색 부분 안 걸리게 조금만 더 내려줘') */
  max-width: 100%;
  aspect-ratio: 856 / 590;
  transition: transform .5s cubic-bezier(.2, .65, .25, 1);
}

.pv-mock__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pv-mock__screen {
  position: absolute;
  left: 2.13%;
  right: 2%;
  top: 3.44%;
  bottom: 3.26%;
  z-index: 1;
  overflow: hidden;
  border-radius: 2.2% / 3.2%;
  background: #fff;
}

/* 태블릿 오른쪽에 걸치는 유튜브 재생 화면(content.php 'video') — 사용자가 준 영상 표지 + 위 제목 띠 · 가운데 빨간 재생 단추 · 아래 진행 막대.
   크기 · 글자는 영상 폭을 따라간다(cqw) (2026-10-29 사용자 '영상 이미지도 넣어줘, 유튜브 재생처럼 보이도록') */
.pv-video {
  position: absolute;
  right: -6%;
  top: 13%;
  z-index: 3;
  width: 60%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .45);
  container-type: inline-size;
}

.pv-video__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-video__title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 3.5cqw 4cqw 7cqw;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, .62), transparent);
  color: #fff;
  font-size: 4.2cqw;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pv-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15%;
  translate: -50% -50%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
}

.pv-video__play svg {
  display: block;
  width: 100%;
  height: auto;
}

.pv-video__bar {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 5%;
  height: 1cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, .4);
}

.pv-video__bar i {
  position: relative;
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: #f00;
}

.pv-video__bar i::after {
  content: "";
  position: absolute;
  right: -1.5cqw;
  top: 50%;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: #f00;
  translate: 0 -50%;
}

/* 태블릿 위에 겹치는 휴대폰(content.php 'phone' — 롱텀연동 수급자 관리의 서비스 일정표 알림톡). 홈 PC & MOBILE 과 같은 틀 · 화면 자리.
   위끝은 태블릿 위끝 가까이, 아래쪽은 칸 아래로 조금 잘린다 (2026-10-29 사용자 '핸드폰 이미지도 아랫부분 조금 잘리게 태블릿 위에 겹쳐서') */
.pv-phone {
  position: absolute;
  right: -6%; /* 영상 · 간추림 카드 · 서식과 같은 만큼 튀어나오게 */
  top: 12%; /* 같은 날 '핸드폰 아래로 더 내려줘' 2% → 12% — 아래쪽이 더 잘린다 */
  z-index: 3;
  width: 28%; /* 같은 날 '핸드폰도 열 맞추고 크기 조금 더 키워' 24% → 28% */
  aspect-ratio: 1117 / 2280;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .25));
}

.pv-phone__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pv-phone__screen {
  position: absolute;
  left: 4.92%;
  top: 1.93%;
  z-index: 1;
  width: 90.42%;
  height: 96.14%;
  overflow: hidden;
  border-radius: 9% / 4.4%;
  background: #bacee0;
}
/* 태블릿 오른쪽에 걸치는 서식 한 장(content.php 'sheet' — 기관 기본 관리 서류 AI 작성 도우미의 직원회의록 서식, 사용자가 준 그림 그대로)
   (2026-10-29 사용자 '기관 기본 관리 서류 AI 작성 도우미 화면 만들어줘') */
.pv-card__media .pv-sheet {
  position: absolute;
  right: -6%; /* 영상(.pv-video)과 같은 만큼만 튀어나오게 (같은 날 '다른 거랑 튀어나온 부분 크기 비슷하게') */
  top: 12%;
  z-index: 3;
  width: 38%; /* 같은 날 '종이도 아랫부분 잘리게 더 키우고 태블릿이랑 더 겹쳐' — 28% → 38%(아래는 칸 밖으로 잘린다), '태블릿 오른쪽으로 조금 튀어나오게' — 오른쪽 1% → -9% */
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
}
/* 태블릿 오른쪽에 걸치는 간추림 카드(content.php 'note' — 평가 가이드). 원래 그림처럼 초록 제목 · 테두리 상자 안 ✓ 제목 · ▸ 항목.
   크기 · 글자는 카드 폭을 따라간다(cqw) (2026-10-29 사용자 '방문요양 평가 가이드 자료 화면도') */
.pv-note {
  position: absolute;
  right: -6%;
  top: 6%;
  z-index: 3;
  width: 31%; /* 같은 날 '조금만 크기 줄여줘' 36% → 31% */
  /* 카드 자신의 여백에 cqw 를 쓰면 카드 폭이 아닌 바깥(화면) 기준이 되어 여백은 안쪽 요소 margin 으로 준다 */
  box-sizing: border-box;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .3);
  container-type: inline-size;
  color: #1d1d1d;
}

.pv-note__title {
  display: block;
  margin: 7cqw 6cqw 0;
  color: #007a5a;
  font-size: 9cqw;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.pv-note__box {
  margin: 5cqw 6cqw 6cqw;
  padding: 4cqw 5cqw 5cqw;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
}

.pv-note__head {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding-bottom: 3cqw;
  border-bottom: 1px solid #e4e4e4;
  font-size: 6cqw;
  font-weight: 700;
}

.pv-note__head::before {
  content: "\2714";
  display: inline-grid;
  place-items: center;
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  background: #007a5a;
  color: #fff;
  font-size: 4.5cqw;
}

.pv-note__box p {
  margin: 4cqw 0 0;
  font-size: 5cqw;
  line-height: 1.45;
  color: #555555;
}

.pv-note__box p b {
  display: block;
  color: #1d1d1d;
  font-weight: 700;
}

.pv-note__box p b::before {
  content: "\25B8\00a0";
  color: #007a5a;
}

.pv-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px 28px;
}

.pv-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.pv-card__tag {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #ff4500;
}

.pv-card__desc {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.7;
  color: #555;
}

.pv-card__foot {
  margin-top: auto;
  padding-top: 20px;
}

.pv-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #ff4500;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease;
}

.pv-card__btn svg {
  transition: transform .25s ease;
}

.pv-card__btn:hover {
  background: #d53209;
}

.pv-card__btn:hover svg {
  transform: translateX(3px);
}

/* ---------- 좁은 PC 창 ---------- */
@media (max-width: 1100px) {
  .pv-group__title {
    font-size: 32px;
  }

  .pv-grid {
    gap: 20px;
  }

  .pv-card__media {
    padding: 20px 24px 0;
  }

  .pv-card__body {
    padding: 20px 24px 24px;
  }

  .pv-card__title {
    font-size: 22px;
  }
}

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
  .pv-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pv-group {
    padding-top: 8px;
    padding-bottom: 64px;
    scroll-margin-top: 64px;
  }

  .pv-group:first-of-type {
    padding-top: 104px;
  }

  .pv-group__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .pv-group__title {
    font-size: 26px;
  }

  .pv-group__desc {
    font-size: 15px;
    text-align: left;
  }

  .pv-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pv-card {
    border-radius: 16px;
  }

  .pv-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* 모바일은 한 줄에 한 장이라 예전처럼 폭에 맞춘 2.1:1 */
  .pv-card__media {
    height: auto;
    aspect-ratio: 21 / 10;
    padding: 20px 20px 0;
  }

  .pv-card__body {
    padding: 20px 20px 24px;
  }

  .pv-card__title {
    font-size: 20px;
  }

  .pv-card__tag {
    margin-top: 6px;
    font-size: 14px;
  }

  .pv-card__desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
  }

  .pv-card__foot {
    align-self: stretch;
    padding-top: 20px;
  }

  .pv-card__btn {
    width: 100%;
  }
}
