/*
Theme Name: Astra Child
Template: astra
Description: Astra 자식 테마 - 홈 섹션, 퀵메뉴, 글자 크기 조절, 공통 스타일
Version: 1.2.0
Text Domain: astra-child
*/

:root {
  --near-primary: #246bd5;
  --near-brown: #246bd5;
  --near-deep: #1b1b1b;
  --near-accent: #246bd5;
  --near-beige: #eaf1fc;
  --near-gray: #f6f6f6;
  --near-line: #e1e1e1;
  --near-muted: #666666;

  /* Astra 기본 색(링크, 메뉴 아이콘, 제목, 본문, 선)도 같은 팔레트로 맞춘다 */
  --ast-global-color-0: #246bd5;
  --ast-global-color-1: #246bd5;
  --ast-global-color-2: #1b1b1b;
  --ast-global-color-3: #333333;
  --ast-global-color-5: #f6f6f6;
  --ast-global-color-6: #1b1b1b;
  --ast-global-color-7: #e1e1e1;
  --ast-global-color-8: #1b1b1b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body,
.ast-separate-container {
  background-color: #fff;
}

body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif;
  color: var(--near-deep);
}

h1, h2, h3, h4, h5, h6,
.elementor-widget-heading .elementor-heading-title {
  color: var(--near-deep);
}

.page .entry-header,
.home .entry-header {
  display: none;
}

/*
 * 홈 섹션을 담는 Elementor 컨테이너는 flex 대신 block 으로 쓴다.
 * flex 컨테이너 안에서는 aspect-ratio 가 있는 이미지 카드의 높이가 잘못 계산되어
 * 섹션이 아래 섹션과 겹쳐 그려지는 문제가 있었다.
 */
.elementor .e-con:has(> .elementor-widget .ns),
.elementor .e-con:has(> .elementor-widget .near-hero) {
  display: block;
}

.elementor .e-con > .elementor-widget:has(.ns, .near-hero) {
  width: 100%;
}

/* Astra 기본 푸터는 숨기고 자체 푸터 사용 */
.site-footer {
  display: none !important;
}

/* 고정 헤더 */
#masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--near-line);
}

.admin-bar #masthead {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #masthead {
    top: 46px;
  }
}

#masthead .main-header-menu > .menu-item > a {
  font-size: 15px;
  font-weight: 600;
  color: var(--near-deep);
}

#masthead .main-header-menu > .menu-item > a:hover {
  color: var(--near-primary);
}

#masthead .main-header-menu > .menu-item.near-cta {
  display: flex;
  align-items: center;
}

#masthead .main-header-menu > .menu-item.near-cta > a {
  background: var(--near-primary);
  color: #fff;
  border-radius: 999px;
  height: 42px;
  line-height: 42px;
  padding: 0 20px;
  margin-left: 8px;
}

#masthead .main-header-menu > .menu-item.near-cta > a:hover {
  background: var(--near-deep);
  color: #fff;
}

/* ---------- 공통 아이콘 / 레이아웃 ---------- */
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

.ns a,
.nfoot a,
.nbar a,
.nmodal a {
  text-decoration: none;
}

.nc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ns {
  padding: 96px 0;
}

.ns--tight {
  padding: 48px 0;
}

.ns--gray {
  background: var(--near-gray);
}

.ns--line {
  border-top: 1px solid var(--near-line);
}

.ns__head {
  margin-bottom: 48px;
}

.ns__head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.ns__head--center {
  text-align: center;
}

.ns__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--near-accent);
}

.ns__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--near-accent);
}

.ns__eyebrow--light {
  color: #cfe0fb;
}

.ns__eyebrow--light::before {
  background: #cfe0fb;
}

.ns__title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--near-deep);
}

/* `.ns p { margin: 0 }` 보다 우선하도록 선택자를 구체화한 제목 주변 여백 */
.ns .ns__eyebrow {
  margin: 0 0 20px;
}

.ns .ns__sub--below {
  margin: 24px 0 32px;
}

.ns__title--sm {
  font-size: clamp(24px, 2.8vw, 32px);
}

.ns__sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--near-muted);
  max-width: 420px;
  margin: 0;
}

.ns__sub--below {
  margin: 18px 0 28px;
}

.ns__head--center .ns__sub {
  margin: 16px auto 0;
  max-width: 520px;
}

.nbtn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--near-line);
  border-radius: 999px;
  background: #fff;
  color: var(--near-deep);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nbtn-o:hover {
  border-color: var(--near-primary);
  color: var(--near-primary);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--near-line);
  border-radius: 20px;
  overflow: hidden;
}

.ns h3 {
  margin: 0;
  line-height: 1.45;
  color: var(--near-deep);
}

/* :where() 는 우선순위가 0이라서, 각 요소에 지정한 여백이 덮이지 않는다 */
:where(.ns) p {
  margin: 0;
}

/* 이미지 자리 */
.ph {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eaf1fc, #b9d1f3);
  color: rgba(27, 27, 27, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.ph--b {
  background: linear-gradient(160deg, #e1ebfa, #a5c3ec);
}

.ph--c {
  background: linear-gradient(160deg, #f1f6fd, #c7daf4);
}

/* 이미지 자리에 사진이 들어갈 때: 상자 크기는 그대로 두고 사진만 꽉 채움 */
.ph,
.near-hero__photo {
  position: relative;
  overflow: hidden;
}

.ph img,
.near-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 히어로: 가로 사진을 세로 상자에 맞출 때 작업자가 중앙에 오도록 */
.near-hero__photo img {
  object-position: 38% 50%;
}

/* 현장 갤러리: 큰 상자는 작업자가 잘리지 않도록 왼쪽 기준 */
.mosaic__a img {
  object-position: 15% 50%;
}

/* 장비 섹션: 세로 사진을 가로 상자에 맞출 때 장비가 보이는 높이로 */
.equip__main img {
  object-position: 50% 51%;
}

.equip__inset img {
  object-position: 50% 36%;
}

/* 세로로 긴 에어컨 사진은 위쪽(에어컨)이 보이도록 */
.ph img[alt*="에어컨"] {
  object-position: 50% 8%;
}

/* ---------- 히어로 ---------- */
.near-hero {
  background: #fff;
  padding: 56px 0 72px;
}

.near-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.near-hero__counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--near-muted);
  margin-bottom: 28px;
}

.near-hero__counter b {
  color: var(--near-deep);
  font-weight: 800;
}

.near-hero__bars {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.near-hero__bars button {
  width: 36px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: var(--near-line);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.near-hero__bars button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--near-primary);
  transform: scaleX(0);
  transform-origin: left;
}

.near-hero__bars button.is-done::after {
  transform: scaleX(1);
}

.near-hero__bars button.is-active::after {
  animation: near-bar 5s linear forwards;
}

.near-hero--static .near-hero__bars button.is-active::after {
  animation: none;
  transform: scaleX(1);
}

@keyframes near-bar {
  to {
    transform: scaleX(1);
  }
}

.near-hero__slides {
  display: grid;
}

.near-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  /* 이전 문구가 먼저 사라진 뒤에 다음 문구가 나타나도록 겹침을 없앤다 */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.near-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s ease 0.22s, transform 0.4s ease 0.22s, visibility 0s linear 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .near-slide,
  .near-slide.is-active {
    transition: none;
  }
}

.near-hero .near-slide .eyebrow {
  color: var(--near-accent);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 14px;
}

.near-hero .near-slide h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--near-deep);
}

.near-hero .near-slide h1 em {
  display: block;
  font-style: normal;
  color: var(--near-primary);
}

.near-hero .near-slide .desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--near-muted);
  margin: 0;
  max-width: 480px;
}

.near-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 28px;
}

.near-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.near-hero .btn--primary {
  background: var(--near-primary);
  color: #fff;
}

.near-hero .btn--primary:hover {
  background: var(--near-deep);
}

.near-hero .btn--ghost {
  background: #fff;
  color: var(--near-deep);
  border-color: var(--near-line);
}

.near-hero .btn--ghost:hover {
  background: var(--near-gray);
}

.near-hero__checks {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--near-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  max-width: 480px;
}

.near-hero__checks li {
  position: relative;
  padding-left: 28px;
  margin: 0;
  font-size: 14px;
  color: var(--near-deep);
}

.near-hero__checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--near-primary);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.near-hero__visual {
  position: relative;
}

.near-hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(160deg, #eaf1fc, #b9d1f3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(27, 27, 27, 0.4);
  font-weight: 700;
  letter-spacing: 0.3em;
}

.near-hero__badge {
  position: absolute;
  left: -20px;
  bottom: 36px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.near-hero__badge small {
  color: var(--near-accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.near-hero__badge strong {
  font-size: 15px;
  color: var(--near-deep);
}

/* ---------- 02 증상 ---------- */
.sym {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--near-line);
  border-radius: 18px;
  color: var(--near-deep);
  transition: border-color 0.2s, transform 0.2s;
}

.sym:hover {
  border-color: var(--near-primary);
  transform: translateY(-3px);
}

.sym__ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--near-beige);
  color: var(--near-primary);
}

.sym__t {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.sym__ar {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: var(--near-muted);
}

/* ---------- 03 서비스 ---------- */
.tabs {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--near-line);
  border-radius: 999px;
  background: #fff;
}

.tabs button {
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--near-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tabs button.is-on {
  background: var(--near-primary);
  color: #fff;
}

[data-near-panel][hidden] {
  display: none;
}

.svc__ph {
  aspect-ratio: 4 / 3;
}

.svc__body {
  padding: 22px 24px 26px;
}

.svc__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--near-accent);
}

.svc h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.svc p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--near-muted);
}

.svc__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--near-primary);
}

/* ---------- 04 배너 ---------- */
.banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.banner__bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(160deg, #246bd5, #1b1b1b);
  color: rgba(255, 255, 255, 0.18);
}

/* 사진 위에 반투명 색을 덮어 흰 글자가 잘 보이게 */
.banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(36, 107, 213, 0.78), rgba(27, 27, 27, 0.82));
}

.banner__in {
  position: relative;
  padding: 56px 24px;
}

.banner__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #cfe0fb;
  margin: 0 0 16px;
}

.banner h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.banner__sub {
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.banner__btns,
.ctaband__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

.bb--w {
  background: #fff;
  color: var(--near-deep);
}

.bb--g {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bb--line {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bb--acc {
  background: var(--near-accent);
  color: #fff;
}

/* ---------- 05 선택 이유 ---------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}

.why__photo {
  position: relative;
  min-height: 440px;
}

.why__img {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.why__cap {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  color: var(--near-deep);
}

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

.feat {
  position: relative;
  padding: 26px;
}

.feat__no {
  position: absolute;
  right: 22px;
  top: 20px;
  font-size: 13px;
  font-weight: 800;
  color: var(--near-line);
}

.feat__ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--near-beige);
  color: var(--near-primary);
  margin-bottom: 18px;
}

.feat h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feat p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--near-muted);
}

/* ---------- 06 현장 ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 520px;
}

.mosaic figure {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.mosaic__a {
  grid-row: 1 / 3;
}

.mosaic__img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.mosaic figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  color: var(--near-deep);
}

/* ---------- 07 진행 과정 ---------- */
.step {
  position: relative;
  padding: 26px;
}

.step__no {
  position: absolute;
  right: 24px;
  top: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #c9c9c9;
}

.step__ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--near-beige);
  color: var(--near-primary);
  margin-bottom: 40px;
}

.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--near-muted);
}

/* ---------- 08 장비 ---------- */
.equip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.equip__photo {
  position: relative;
  padding-bottom: 60px;
}

.equip__main {
  aspect-ratio: 5 / 4;
  border-radius: 24px;
}

.equip__inset {
  position: absolute;
  right: -16px;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 6px solid #fff;
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.14);
}

.equip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.equip__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--near-line);
  border-radius: 16px;
}

.equip__ic {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--near-beige);
  color: var(--near-primary);
}

.equip__list h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.equip__list p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--near-muted);
}

/* ---------- 09 사례 ---------- */
.work__img {
  aspect-ratio: 16 / 10;
}

.work__body {
  padding: 22px 24px 20px;
}

.work__meta {
  font-size: 12px;
  color: var(--near-muted);
  margin-bottom: 8px;
}

.work h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.work__ex {
  font-size: 14px;
  line-height: 1.65;
  color: var(--near-muted);
}

.work__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--near-line);
  font-size: 12px;
}

.work__src {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--near-beige);
  color: var(--near-primary);
  font-weight: 700;
}

.work__foot a {
  color: var(--near-muted);
  font-weight: 600;
}

/* ---------- 10 위치 ---------- */
.loc {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.loc__img {
  min-height: 380px;
  border-radius: 0;
}

.loc__txt {
  padding: 48px 44px;
  align-self: center;
}

.loc__dl {
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.loc__dl div {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.loc__dl dt {
  width: 40px;
  flex: none;
  font-weight: 700;
  color: var(--near-muted);
}

.loc__dl dd {
  margin: 0;
  color: var(--near-deep);
}

.loc__tel {
  font-weight: 800;
  color: var(--near-primary);
}

/* ---------- 11 후기 ---------- */
.rv {
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.rv__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rv__tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--near-beige);
  color: var(--near-primary);
  font-size: 12px;
  font-weight: 700;
}

.rv__badge {
  padding: 4px 8px;
  border: 1px solid var(--near-line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--near-muted);
}

.rv h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rv__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--near-primary);
}

.rv__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--near-line);
}

.rv__av {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--near-gray);
  color: var(--near-muted);
}

.rv__user strong {
  display: block;
  font-size: 13px;
}

.rv__user small {
  font-size: 12px;
  color: var(--near-muted);
}

/* ---------- 12 지역 ---------- */
.area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* 지역 지도 */
.area__map {
  margin: 28px 0 0;
}

.area__map img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--near-line);
  border-radius: 24px;
}

.area__map-canvas {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--near-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--near-gray);
}

.area__map-canvas img {
  border: 0;
  border-radius: 0;
  height: 100%;
}

.area__map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--near-muted);
}

.area__map figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--near-primary);
}

/* 네이버 지도가 뜨면 기본 이미지의 출처 표기는 숨김 */
.area__map.is-naver .area__map-credit {
  display: none;
}

.area__tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.area__tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border: 1px solid var(--near-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--near-muted);
}

.area__tags span.is-main {
  background: var(--near-beige);
  border-color: #b9d1f3;
  color: var(--near-primary);
}

/* ---------- 13 FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.faq__list details {
  border-bottom: 1px solid var(--near-line);
}

.faq__list summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__q {
  color: var(--near-accent);
  font-weight: 800;
}

.faq__chev {
  margin-left: auto;
  color: var(--near-muted);
  transition: transform 0.2s;
}

.faq__list details[open] .faq__chev {
  transform: rotate(180deg);
}

.faq__list details p {
  padding: 0 4px 24px 34px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--near-muted);
}

/* ---------- 14 정보 ---------- */
.gd__img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.gd__img img,
.gd__img .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
}

.gd__body {
  padding: 22px 24px 26px;
}

.gd__meta {
  font-size: 12px;
  color: var(--near-accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.gd h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.gd h3 a {
  color: inherit;
}

.gd__ex {
  font-size: 14px;
  line-height: 1.65;
  color: var(--near-muted);
}

/* ---------- 15 상담 신청 ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.cinfo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  color: var(--near-deep);
}

.cinfo__ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--near-primary);
  color: #fff;
}

.cinfo__ic--dark {
  background: var(--near-deep);
}

.cinfo small {
  display: block;
  font-size: 12px;
  color: var(--near-muted);
}

.cinfo strong {
  font-size: 20px;
  font-weight: 800;
}

.contact__form {
  padding: 32px;
}

.nf label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--near-deep);
}

.nf label em {
  color: #c0392b;
  font-style: normal;
}

.nf label small {
  color: var(--near-muted);
  font-weight: 500;
}

.nf input[type="text"],
.nf input[type="tel"],
.nf select,
.nf textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--near-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--near-deep);
}

.nf input:focus,
.nf select:focus,
.nf textarea:focus {
  outline: 2px solid var(--near-accent);
  outline-offset: 1px;
}

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

.nf__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nf label.nf__agree {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
}

.nf__agree input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.nf__agree a {
  color: var(--near-primary);
  text-decoration: underline;
}

.nf__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--near-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.nf__submit:hover {
  background: var(--near-deep);
}

.nf__note {
  margin: 14px 0 0 !important;
  text-align: center;
  font-size: 12px;
  color: var(--near-muted);
}

.nf__msg {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--near-beige);
  color: var(--near-primary);
}

.nf__msg.is-err {
  background: #fdecea;
  color: #b3261e;
}

/* ---------- 16 CTA 밴드 ---------- */
.ctaband {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: var(--near-deep);
  color: #fff;
}

.ctaband h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.ctaband__sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.ctaband__tel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--near-deep);
}

.ctaband__tel > .i:last-child {
  margin-left: auto;
  color: var(--near-muted);
}

.ctaband__ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--near-primary);
  color: #fff;
}

.ctaband__tel small {
  display: block;
  font-size: 12px;
  color: var(--near-muted);
}

.ctaband__tel strong {
  font-size: 24px;
  font-weight: 800;
}

.ctaband__btns .bb {
  flex: 1;
}

/* ---------- 푸터 ---------- */
.nfoot {
  border-top: 1px solid var(--near-line);
  background: #fff;
  padding: 64px 0 100px;
}

.nfoot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--near-line);
}

.nfoot__logo {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--near-deep);
}

.nfoot__brand p {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--near-muted);
  margin: 0 0 14px;
}

.nfoot__tel small {
  display: block;
  font-size: 12px;
}

.nfoot__tel strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--near-primary);
}

.nfoot__col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--near-deep);
}

.nfoot__col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--near-muted);
}

.nfoot__col a:hover {
  color: var(--near-primary);
}

.nfoot__info {
  padding-top: 28px;
}

.nfoot__info p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--near-muted);
}

/* ---------- 하단 신청 바 (PC) ---------- */
.nbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 56px 12px 24px;
  background: var(--near-deep);
  color: #fff;
}

.nbar[hidden] {
  display: none;
}

.nbar__lead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nbar__ic {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.nbar__lead small {
  display: block;
  font-size: 11px;
  color: #cfe0fb;
}

.nbar__lead b {
  font-size: 14px;
}

.nbar .nf {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nbar .nf input[type="text"],
.nbar .nf input[type="tel"] {
  margin: 0;
  width: 150px;
  padding: 10px 12px;
  font-size: 14px;
}

.nbar .nf label.nf__agree {
  margin: 0;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.nbar .nf__agree a {
  color: #cfe0fb;
}

.nbar .nf__submit {
  width: auto;
  height: 42px;
  padding: 0 20px;
  background: var(--near-accent);
  font-size: 14px;
}

.nbar .nf__msg {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 8px !important;
}

.nbar__x {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* ---------- 개인정보 안내 모달 ---------- */
.nmodal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}

.nmodal[hidden] {
  display: none;
}

.nmodal__box {
  max-width: 460px;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
}

.nmodal__box h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.nmodal__box p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--near-muted);
}

.nmodal__warn {
  color: #b3261e !important;
  font-weight: 600;
}

.nmodal__box button {
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--near-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 우측 퀵메뉴 (기존 형태) ---------- */
.near-quick {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  width: 72px;
  background: var(--near-brown);
  border-radius: 36px;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.near-quick__title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.near-quick a {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.near-quick a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.near-quick__toggle {
  display: none;
}

/* 좁은 화면에서는 본문을 가리지 않도록 오른쪽 가장자리에 붙인다 */
@media (max-width: 1439px) {
  .near-quick {
    right: 0;
    width: 64px;
    border-radius: 32px 0 0 32px;
  }
}

/* 더 좁은 화면에서는 버튼을 눌렀을 때만 펼친다 */
@media (max-width: 1100px) {
  /* 본문을 덮지 않도록 오른쪽 가장자리에 붙는 얇은 탭 */
  .near-quick__toggle {
    display: grid;
    place-items: center;
    position: fixed;
    right: 0;
    bottom: 96px;
    z-index: 1000;
    width: 34px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 18px 0 0 18px;
    background: var(--near-brown);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    writing-mode: vertical-rl;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }

  .near-quick {
    display: none;
    top: auto;
    bottom: 168px;
    right: 0;
    width: 64px;
    border-radius: 32px 0 0 32px;
    transform: none;
  }

  .near-quick.is-open {
    display: flex;
  }
}

/* ---------- 모바일 하단 고정 버튼 ---------- */
.near-bar {
  display: none;
}

/* ---------- 목록 페이지 / 빈 상태 ---------- */
.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--near-muted);
}

.work__imglink {
  display: block;
}

.work__img--photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work h3 a,
.rv h3 a {
  color: inherit;
}

.navigation.pagination {
  margin-top: 40px;
  text-align: center;
}

.navigation.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  margin: 0 3px;
  border: 1px solid var(--near-line);
  border-radius: 10px;
  background: #fff;
  color: var(--near-deep);
}

.navigation.pagination .page-numbers.current {
  background: var(--near-primary);
  border-color: var(--near-primary);
  color: #fff;
}

/* ---------- 글자 크기 조절 ---------- */
.near-fontsize {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 24px 0;
}

.near-fontsize button {
  border: 1px solid var(--near-primary);
  background: #fff;
  color: var(--near-primary);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.near-fontsize button:hover {
  background: var(--near-beige);
}

/* ---------- 반응형 ---------- */
@media (max-width: 1000px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .why,
  .equip,
  .area,
  .faq,
  .contact,
  .ctaband,
  .loc {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .why__photo {
    min-height: 320px;
  }

  .nfoot__top {
    grid-template-columns: 1fr 1fr;
  }

  /* 하단 신청 바는 한 줄로 유지 (안내 문구는 숨김) */
  .nbar__lead {
    display: none;
  }
}

@media (max-width: 900px) {
  .near-hero {
    padding: 32px 0 48px;
  }

  .near-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .near-hero__photo {
    aspect-ratio: 4 / 3;
  }

  .near-hero__badge {
    left: 16px;
    bottom: 16px;
  }

}

@media (max-width: 768px) {
  /* 모바일에서는 하단 고정 버튼이 대신하고, 채널 링크는 푸터에 둔다 */
  .near-quick,
  .near-quick__toggle {
    display: none !important;
  }

  .nbar {
    display: none !important;
  }

  body {
    padding-bottom: 76px;
  }

  .near-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--near-line);
  }

  .near-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: 12px;
    background: var(--near-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .near-bar a.is-dark {
    background: var(--near-deep);
  }

  .near-bar a.is-accent {
    background: var(--near-accent);
  }
}

@media (max-width: 700px) {
  .ns {
    padding: 64px 0;
  }

  .ns__head {
    margin-bottom: 32px;
  }

  .ns__head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .grid--3,
  .grid--4,
  .why__grid,
  .nf__row {
    grid-template-columns: 1fr;
  }

  .grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .mosaic figure {
    height: 220px;
  }

  .mosaic__a {
    grid-row: auto;
    height: 300px;
  }

  .banner {
    min-height: 340px;
  }

  .loc__txt {
    padding: 32px 24px;
  }

  .ctaband {
    padding: 32px 24px;
  }

  .contact__form {
    padding: 22px;
  }

  .area__tags {
    grid-template-columns: repeat(2, 1fr);
  }

  .nfoot__top {
    grid-template-columns: 1fr;
  }

  .equip__inset {
    right: 0;
  }
}
