/* =========================================================
   파파케어 반응형 홈페이지 CSS
   ★ 이 파일의 숫자만 바꾸면 위치/크기를 직접 수정할 수 있습니다.
   ========================================================= */

:root {
  --max-width: 1180px;       /* 전체 콘텐츠 최대 폭 */
  --side-space: 28px;        /* PC 좌우 여백 */
  --mobile-space: 20px;      /* 모바일 좌우 여백 */
  --navy: #073b55;
  --text: #123b4a;
  --muted: #5d7077;
  --green: #16845f;
  --blue: #0875e8;
  --soft: #f6faf8;
  --line: #e5eaec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max-width), calc(100% - (var(--side-space) * 2))); margin-inline: auto; }

/* ---------- HEADER ---------- */
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid #f1f3f4; }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { min-width: 0; display: flex; align-items: center; gap: 14px; }
.brand > img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; color: var(--navy); line-height: 1; white-space: nowrap; }
.brand-text strong { font-size: 25px; font-weight: 900; }
.brand-text small { margin-top: 7px; font-size: 10px; letter-spacing: 2px; }
.brand-slogan { padding-left: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.desktop-nav { display: flex; align-items: stretch; gap: clamp(18px, 2.6vw, 38px); font-size: 15px; font-weight: 750; white-space: nowrap; }
.desktop-nav a { padding: 36px 2px 29px; border-bottom: 3px solid transparent; }
.desktop-nav a.active { color: var(--green); border-color: var(--green); }

/* ---------- HERO ----------
   완성된 히어로 이미지를 원본 비율 그대로 표시합니다.
   통이미지이므로 이 영역에는 별도 HTML 문구를 겹치지 않습니다.
*/
.hero {
  width: 100%;
  background: #f7faf7;
  overflow: hidden;
}
.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 든든 ----------
   완성된 든든 소개 이미지를 한 장으로 사용합니다.
   PC에서는 원본 비율 그대로, 모바일에서는 잘리지 않게 전체 표시합니다.
*/
.deundeun-section {
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.deundeun-intro-wrap {
  width: 100%;
  margin: 0 auto;
}
.deundeun-intro-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- 파파케어 생각 ----------
   brand.jpeg 한 장을 통으로 사용합니다.
   이미지는 새로 만들지 않고 이 파일명으로 고정합니다.
*/
.about-section {
  background: #fff;
  padding: 10px 0 0;
}
.brand-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------- 소식 ----------
   완성된 소식 카드 3장을 통이미지로 사용합니다.
   이미지 안에 날짜/제목/설명이 포함되어 있으므로 HTML 글자를 겹치지 않습니다.
*/
.news-section { padding: 20px 0 58px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 0; font-size: 25px; }
.section-head a { font-size: 14px; font-weight: 800; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.news-card { overflow: hidden; border-radius: 18px; background: #fff; }
.news-card img { display: block; width: 100%; height: auto; }

/* ---------- 앱 출시 안내 ----------
   뉴스 아래에 완성된 store-launch.png를 통이미지로 표시합니다.
*/
.store-launch-section {
  background: #fff;
  padding: 0 0 58px;
}
.store-launch-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 38px; color: #61737a; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 10px; align-items: flex-start; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--text); font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 13px; color: #344e58; font-weight: 750; }
.company-info { margin: 0; line-height: 1.9; }

/* =========================================================
   TABLET : 761px ~ 1024px
   ========================================================= */
@media (max-width: 1024px) {
  :root { --side-space: 24px; }
  .desktop-nav { gap: 20px; font-size: 14px; }
  .deundeun-grid { grid-template-columns: 40% 60%; min-height: 530px; }
  .phone-area { height: 530px; }
  .phone-image { width: 95%; }
  .deundeun-copy { padding-left: 24px; }
  .feature-grid { gap: 9px; }
  .feature-grid article { padding: 15px; }
}

/* =========================================================
   MOBILE : 760px 이하
   ★ 모바일은 PC를 축소하지 않고 세로로 재배치합니다.
   ========================================================= */
@media (max-width: 760px) {
  :root { --mobile-space: 20px; }
  .container { width: calc(100% - (var(--mobile-space) * 2)); }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 70px; }
  .brand > img { width: 46px; height: 46px; }
  .brand-text strong { font-size: 20px; }
  .brand-text small { font-size: 8px; margin-top: 5px; }
  .desktop-nav { display: none; }
  .desktop-only { display: none; }


  .deundeun-section { --phone-up: 0px; padding-top: 26px; }
  .deundeun-grid { display: flex; flex-direction: column; min-height: 0; }
  .phone-area { order: 1; width: 100%; height: auto; min-height: 0; padding-top: 0; }
  .phone-image { width: min(330px, 84vw); margin-top: var(--phone-up); }
  .deundeun-copy { order: 2; width: 100%; padding: 4px 0 42px; text-align: center; }
  .section-kicker { font-size: 14px; }
  .deundeun-title { justify-content: center; gap: 11px; }
  .deundeun-title img { width: 68px; height: 68px; }
  .deundeun-title h2 { font-size: 50px; }
  .deundeun-copy h3 { margin: 15px auto; max-width: 340px; font-size: 18px; }
  .body-copy { max-width: 390px; margin-inline: auto; font-size: 15px; line-height: 1.7; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; text-align: left; }
  .feature-grid article { padding: 16px 18px; }
  .papa-chat-card { min-height:132px; padding:18px 16px 18px 100px; text-align:left; }
  .papa-chat-character { left:10px; bottom:-12px; width:80px; height:112px; }
  .papa-chat-copy strong { font-size:20px; }
  .papa-chat-copy span { font-size:13px; }
  .papa-chat-copy em { font-size:12px; }

  .about-section { padding: 10px 0 0; }
  .brand-banner { width: 100%; height: auto; }

  .news-section { padding: 20px 0 44px; }
  .section-head h2 { font-size: 23px; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }

  .store-launch-section { padding: 0 0 44px; }
  .store-launch-banner { width: 100%; height: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { gap: 10px 16px; }
  .company-info { font-size: 12px; overflow-wrap: anywhere; }
}

/* 아주 작은 휴대폰 */
@media (max-width: 390px) {
  :root { --mobile-space: 16px; }
  .phone-image { width: min(310px, 88vw); }
}

/* 든든 통이미지 반응형 최종값 */
@media (max-width: 760px) {
  .deundeun-section { padding: 0; }
  .deundeun-intro-wrap { width: 100%; }
  .deundeun-intro-image { width: 100%; height: auto; object-fit: contain; }
}


/* =========================================================
   V14 간격 조정
   든든 통이미지를 아래로 이동하고 위/아래 여백을 균형 있게 맞춤
   ========================================================= */
.deundeun-section {
  padding: 70px 0 14px; /* 첫 번째 숫자 = 위 간격, 두 번째 = 아래 간격 */
}

/* 뉴스 제목 옆 더보기/화살표는 사용하지 않음 */
.section-head {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .deundeun-section {
    padding: 38px 0 10px;
  }
}
