/* 아스트라 상단 CTA v3 — 2026-09-13
   신도오에이렌탈 V2 의 첫 화면(제목 → 한 줄 → 상담 버튼)을 설비맵 전 페이지에 맞춘 것이다.
   - v2 는 제목 아래에 안내 카드를 두었는데, 카드 안에 또 안내 문단이 있어 버튼이 아래로 밀렸다.
     실측(390×844)에서 문서 페이지 버튼이 첫 화면 500px 부근이었다.
     v3 는 안내 문단을 버튼 아래(.rn-hero-more)로 내리고 버튼을 제목 바로 다음에 둔다.
   - 위치는 네 곳이다. ①상단 고정 헤더 ②제목 바로 아래 버튼 ③모바일 하단 고정 막대 ④문서 끝 상담 띠.
   - 고정 막대 높이만큼 본문 아래 여백을 두어 마지막 줄을 가리지 않는다. */

:root { --astra-cta: #1f6b3c; --astra-cta-ink: #123322; --astra-cta-soft: #eef4e7; --astra-bar-h: 64px; }

/* ① 상단 고정 헤더 — PC 는 전화, 모바일은 아이콘만 남긴다. */
.astra-head { display: flex; align-items: center; gap: 10px; margin-left: 18px; }
.astra-head-call { display: flex; flex-direction: column; line-height: 1.25; padding-left: 16px;
  border-left: 1px solid var(--rn-line, #dfe4d8); white-space: nowrap; }
.astra-head-call small { font-size: 10px; color: var(--rn-muted, #5d6b5f); }
.astra-head-call b { font-size: 16px; letter-spacing: -.02em; color: var(--astra-cta-ink); }
.astra-head .rn-button { min-height: 44px; padding: 10px 18px; }

/* ② 첫 화면 — 옅은 배경 띠 위에 제목·한 줄·버튼만 둔다. 설명은 버튼 아래로 내려간다. */
.rn-hero { background: linear-gradient(180deg, #eef3e6 0%, var(--rn-bg, #f6f7f2) 66%);
  padding: 46px 0 42px; }
.rn-hero .rn-intro { max-width: 660px; margin: 0 0 22px; font-size: 17px; line-height: 1.7;
  font-weight: 600; color: var(--rn-ink, #1b2a1f); }

.astra-topcta { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.astra-topcta-btns { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.astra-topcta-btns .rn-button { min-height: 58px; padding: 12px 30px; font-size: 16px;
  border-radius: 12px; box-shadow: 0 10px 26px rgba(31, 107, 60, .18); }
.astra-topcta-call { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 58px; padding: 9px 26px; border: 1px solid var(--rn-line, #dfe4d8); border-radius: 12px;
  background: #fff; color: var(--astra-cta-ink) !important; line-height: 1.25; text-align: left;
  box-shadow: 0 8px 22px rgba(25, 53, 36, .06); }
.astra-topcta-call small { font-size: 11px; font-weight: 700; color: var(--rn-muted, #5d6b5f); }
.astra-topcta-call b { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.astra-topcta-note { margin: 15px 0 0; font-size: 12px; line-height: 1.75;
  color: var(--rn-muted, #5d6b5f); }
.astra-topcta-more { margin-left: 7px; color: var(--astra-cta) !important; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* 설명문은 버튼 아래. 첫 화면 밖으로 밀려도 되는 자리다. */
.rn-hero-more { max-width: 760px; margin: 20px 0 0; font-size: 14px; line-height: 1.85;
  color: var(--rn-muted, #5d6b5f); }
.rn-hero .rn-byline { margin-top: 14px; }

/* 첫 화면 2단 — 왼쪽 제목·버튼, 오른쪽 분야 사진. 모바일은 사진이 버튼 아래로 내려간다.
   사진은 data/renewal-pages.json 에 이미 있던 분야 사진이고 모두 장면 예시다. */
.rn-hero-grid { align-items: center; }
.rn-visual-doc { margin: 0; padding: 0; }
.rn-visual-doc img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(25, 53, 36, .10); }
.rn-visual-doc figcaption { margin-top: 8px; font-size: 11px; text-align: right;
  color: var(--rn-muted, #5d6b5f); }

/* ③ 모바일 하단 고정 막대 — 어느 문서에서도 상담·전화가 한 번에 닿는다. */
.astra-bar { display: none; }

@media (max-width: 900px) {
  .rn-hero { padding: 38px 0 34px; }
  .astra-topcta-btns .rn-button { padding: 12px 24px; }
  .astra-topcta-call { padding: 9px 20px; }
}

@media (max-width: 680px) {
  .astra-bar { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; position: fixed;
    left: 0; right: 0; bottom: 0; z-index: 90; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--rn-line, #dfe4d8);
    box-shadow: 0 -6px 20px rgba(25, 53, 36, .08); }
  .astra-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 48px; border-radius: 9px; font-size: 14px; font-weight: 800; text-align: center; }
  .astra-bar .astra-bar-call { border: 1px solid var(--astra-cta); background: var(--astra-cta-soft);
    color: var(--astra-cta-ink) !important; }
  .astra-bar .astra-bar-form { background: var(--astra-cta); color: #fff !important; }
  /* 고정 막대와 겹치지 않도록 기존 퀵메뉴는 모바일에서 감춘다. */
  .renewal .quick-menu { display: none !important; }
  body.renewal { padding-bottom: var(--astra-bar-h); }
  .astra-head-call { display: none; }
  .astra-head { margin-left: auto; gap: 6px; }

  /* 첫 화면을 접어 올린다 — 제목·한 줄·버튼이 스크롤 없이 모두 보이게 한다. */
  .rn-hero { padding: 22px 0 26px; }
  .rn-hero .rn-breadcrumb { margin-bottom: 12px; }
  .rn-hero .rn-kicker { margin-bottom: 9px; }
  .renewal .rn-hero h1 { font-size: 31px; line-height: 1.24; margin-bottom: 14px; }
  .rn-hero .rn-intro { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
  .astra-topcta-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .astra-topcta-btns .rn-button, .astra-topcta-call { width: 100%; min-height: 52px; }
  .astra-topcta-btns .rn-button { font-size: 15px; padding: 11px 18px; }
  .astra-topcta-call { flex-direction: row; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; text-align: center; }
  .astra-topcta-call small { font-size: 12px; }
  .astra-topcta-call b { font-size: 17px; }
  .astra-topcta-note { margin-top: 12px; }
  .rn-hero-more { margin-top: 14px; font-size: 13px; line-height: 1.8; }
  .rn-hero .rn-byline { margin-top: 12px; }
  .rn-hero-grid { gap: 20px; }
  .rn-visual-doc img { aspect-ratio: 16 / 10; border-radius: 12px; }
}

@media (max-width: 400px) {
  .astra-bar a { font-size: 13px; }
  .renewal .rn-hero h1 { font-size: 27px; }
  .rn-hero .rn-intro { font-size: 14.5px; }
}

/* ④ 문서 끝 상담 띠 — 끝까지 읽은 사람이 되돌아 올라가지 않게 한다. */
.astra-band { background: var(--astra-cta); color: #fff; padding: 38px 0; }
.astra-band .rn-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.astra-band h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.04em; }
.astra-band p { margin: 0; font-size: 14px; color: #dceada; }
.astra-band .astra-band-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 8px; background: #fff;
  color: var(--astra-cta-ink) !important; font-weight: 800; font-size: 15px; }
@media (max-width: 680px) {
  .astra-band { padding: 28px 0; }
  .astra-band .rn-wrap { display: block; }
  .astra-band h2 { font-size: 20px; }
  .astra-band .astra-band-btn { width: 100%; margin-top: 16px; }
}
