/* ── 앱처럼 보이기(2026-11-30 · 대표님 «성원사 홈페이지도 앱처럼 보이게 이쁘게 디자인작업 다시 넣어.») ──
   sw.css 위에 덧입힌다 — 이 파일을 빼면 앞 판 모습 그대로 돌아간다.
   내용 · 주소 · 예약 · 캐치웹 연결은 손대지 않는다. */
:root {
  --app-bg: #f6f5f2;          /* 베이지 무지 대신 흰 회색(취향 규칙 6) */
  --app-card: #ffffff;
  --app-line: #e6e2dc;
  --app-ink: #2f2b28;
  --app-sub: #5f5853;
  --app-r: 20px;              /* 카드 모서리 */
  --app-r-s: 14px;            /* 단추 · 작은 카드 모서리 */
  --app-shadow: 0 1px 2px rgba(40, 32, 28, .05), 0 8px 24px rgba(40, 32, 28, .06);
  --app-tab-h: 64px;
}
html { -webkit-tap-highlight-color: transparent; }
body { background: var(--app-bg); }
body, p, li, h1, h2, h3, a, span { word-break: keep-all; }

/* 쪽 넘김 — 같은 사이트 안에서 주소를 옮길 때 부드럽게(지원하는 브라우저만 · 움직임 줄이기 설정이면 끔) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: sw-out .18s ease-in both; }
::view-transition-new(root) { animation: sw-in .28s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sw-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes sw-in { from { opacity: 0; transform: translateY(10px); } }
.sw-tab { view-transition-name: sw-tab; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* 누르는 느낌 */
.sw-press, .sw-tab a, .sw-quick li a, .sub .sub_btn, .sw-soonbtn, .sw-form .sw-submit, .view_more, .sw-app-card {
  transition: transform .15s ease, opacity .15s ease;
}
.sw-press:active, .sw-tab a:active, .sw-quick li a:active, .sub .sub_btn:active, .sw-soonbtn:active, .sw-form .sw-submit:active, .sw-app-card:active { transform: scale(.97); }

/* ── 아래 탭(휴대폰 · 태블릿) — 홈 · 점사 · 전화 · 예약 · 오시는 길 ── */
.sw-tab { display: none; }
@media (max-width: 990px) {
  .sw-tab {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    height: calc(var(--app-tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--app-line);
  }
  .sw-tab a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: var(--app-tab-h); color: #6b645f; font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  }
  .sw-tab a svg { width: 24px; height: 24px; }
  .sw-tab a[aria-current="page"] { color: var(--pointcolor); }
  .sw-tab a[aria-current="page"] svg { stroke-width: 2.1; }
  .sw-tab .sw-tab-call { position: relative; color: var(--app-ink); }
  .sw-tab .sw-tab-call i {
    display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-top: -26px;
    border-radius: 50%; background: var(--pointcolor); color: #fff;
    box-shadow: 0 6px 16px rgba(125, 58, 54, .35), 0 0 0 5px rgba(255, 255, 255, .94);
  }
  .sw-tab .sw-tab-call i svg { width: 24px; height: 24px; }
  body { padding-bottom: calc(var(--app-tab-h) + env(safe-area-inset-bottom, 0px)) !important; }
  .quick { bottom: calc(var(--app-tab-h) + 14px + env(safe-area-inset-bottom, 0px)) !important; }
  #mainSlide .swiper-pagination { bottom: calc(var(--app-tab-h) + 44px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── 위 막대(휴대폰) — 서브 쪽은 왼쪽에 «뒤로» ── */
.sw-back { display: none; }
html.sw-home .sw-back { visibility: hidden; }
@media (max-width: 990px) {
  #header .header .tel { display: none; }        /* 전화는 아래 탭 가운데로 옮김 */
  .sw-back {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -8px;
    color: #fff; border-radius: 50%;
  }
  .sw-back svg { width: 26px; height: 26px; }
  .sw-home-spacer { display: block; width: 44px; height: 44px; }
  /* 머리 막대 흐림(backdrop-filter)은 쓰지 않는다 — 고정 위치 메뉴(.nav-menu)가 막대 높이 84px 안에 갇힌다(소집-001 qa high) */
  html.sw-sub #header .header { background-color: rgb(47, 43, 40) !important; }   /* 불투명 — 흐림을 뺀 뒤 0.9 면 내릴 때 본문 글이 머리 뒤로 비침(소집-002 designer medium) */   /* 서브 쪽 머리 = 한 색 앱 막대(밝은 바탕 · 어두운 그림에 걸쳐 두 색으로 갈리던 것) */
}
@media (min-width: 991px) { .sw-home-spacer { display: none; } }

/* ── 첫 화면 바로 아래 «빠른 메뉴»(앱 첫 화면의 아이콘 줄) ── */
.sw-quick { padding: 28px 0 8px; }
.sw-quick ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sw-quick li a {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 4px 14px;
  border-radius: var(--app-r-s); background: var(--app-card); box-shadow: var(--app-shadow);
  color: var(--app-ink); font-size: 15px; font-weight: 600; text-align: center; line-height: 1.3;
}
.sw-quick li a i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: #f4ecea; color: var(--pointcolor); }
.sw-quick li a i svg { width: 24px; height: 24px; }
@media (min-width: 991px) {
  .sw-quick { padding: 56px 0 0; }
  .sw-quick ul { grid-template-columns: repeat(8, 1fr); gap: 16px; }
  .sw-quick li a { padding: 22px 6px 18px; font-size: 16px; }
  .sw-quick li a:hover { transform: translateY(-2px); }
}

/* ── 새 갈래 알림 카드(첫 화면) ── */
.sw-farewell-card { display: block; margin-top: 18px; border-radius: var(--app-r); overflow: hidden; position: relative; background: #252d28; color: #f5f1e7; box-shadow: var(--app-shadow); }
.sw-farewell-card img { display: block; width: 100%; height: 190px; object-fit: cover; opacity: .8; }
.sw-farewell-card .t { padding: 20px 22px 22px; }
.sw-farewell-card .tag { display: inline-block; padding: 5px 11px; border-radius: 20px; background: rgba(245, 241, 231, .14); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.sw-farewell-card h2 { margin: 12px 0 6px; font-size: 22px; font-weight: 700; line-height: 1.35; color: #f5f1e7; }
.sw-farewell-card p { font-size: 15px; line-height: 1.6; color: rgba(245, 241, 231, .86); }
@media (min-width: 991px) {
  .sw-farewell-card { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 28px; }
  .sw-farewell-card img { height: 100%; min-height: 260px; }
  .sw-farewell-card .t { padding: 44px 48px; align-self: center; }
  .sw-farewell-card h2 { font-size: 30px; }
  .sw-farewell-card p { font-size: 17px; }
}

/* ── 카드 · 둥근 모서리(휴대폰과 PC 함께 · 같은 자리는 같은 값) ── */
#about .doc_img img, .philosophy_img img, #tour .sw-tour, .sw-season, .mag-card .mag-img, .signature .img_box,
.sw-mapimg, .sub .section img.img-responsive:not(.sw-check):not([src*="/img/main/"]), .sw-interior .swiper-slide img {
  border-radius: var(--app-r); overflow: hidden;
}
/* 이런 일로 찾아오십니다 — 덮개(.hover)가 그림보다 커서 .img 에 overflow 를 걸면 글이 잘림(소집-001 designer high) → 그림 · 덮개에만 모서리 */
#clinics .img img, #clinics .img .hover { border-radius: var(--app-r); }
#clinics .img .hover { overflow: hidden; }
@media (max-width: 990px) {
  .point .box { border-radius: var(--app-r); overflow: hidden; }   /* PC 는 화면 끝까지 붙은 두 판이라 모서리 0(소집-001 designer medium) */
  .point .max1920 { padding: 0 20px; }
  .point .box + .box { margin-top: 12px; }
}
.map_btn .box { border-radius: var(--app-r-s); overflow: hidden; box-shadow: var(--app-shadow); }

/* 자주 묻는 말 — 흰 카드 접기 */
.demo-faq .faq-list > li { background: var(--app-card); border-radius: var(--app-r-s); box-shadow: var(--app-shadow); border: 0 !important; margin-bottom: 10px; overflow: hidden; }
.demo-faq .faq-list { border-top: 0; }
.demo-faq .faq-list > li .faq-q { padding: 20px 56px 20px 20px; }
.demo-faq .faq-list > li .faq-ico { right: 20px; }
.demo-faq .faq-list > li .faq-a { padding: 0 20px 22px; }

/* 이야기 카드 */
.mag-card { display: block; }
@media (max-width: 990px) {
  .demo-magazine .swiper-slide .mag-card { background: var(--app-card); border-radius: var(--app-r); box-shadow: var(--app-shadow); padding-bottom: 20px; overflow: hidden; }
  .demo-magazine .swiper-slide .mag-card .mag-img { border-radius: 0; }
  .demo-magazine .swiper-slide .mag-card > p { padding: 0 18px; }
}

/* 전체 메뉴(첫 화면 맨 아래) — 휴대폰에선 앱 설정 화면처럼 묶음 목록 */
@media (max-width: 990px) {
  .demo-sitemap .sitemap-list { display: block !important; }
  .demo-sitemap .sitemap-list .box { width: auto !important; margin: 0 0 14px !important; padding: 6px 0 !important; background: var(--app-card); border-radius: var(--app-r-s); box-shadow: var(--app-shadow); }
  .demo-sitemap .sitemap-list .box .sw-smh { padding: 12px 18px 6px; font-size: 14px !important; color: var(--app-sub); font-weight: 600 !important; }
  .demo-sitemap .sitemap-list .box ul { margin: 0; padding: 0; }
  .demo-sitemap .sitemap-list .box li { border-top: 1px solid #f0ece7; }
  .demo-sitemap .sitemap-list .box li:first-child { border-top: 0; }
  .demo-sitemap .sitemap-list .box li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 16px; color: var(--app-ink); }
  .demo-sitemap .sitemap-list .box li a::after { content: ''; width: 8px; height: 8px; border-right: 1.8px solid #b5aea8; border-top: 1.8px solid #b5aea8; transform: rotate(45deg); }
}

/* 큰 단추 — 서브 쪽 전화 단추 · 예약 보내기 */
.sub .sub_btn { border-radius: var(--app-r-s); box-shadow: 0 6px 18px rgba(125, 58, 54, .22); }
@media (max-width: 990px) {
  .sub .sub_btn { display: block; width: 100%; padding: 18px 20px; text-align: center; }
  .sw-soonbtn { display: block; width: 100%; padding: 18px 20px; border-radius: var(--app-r-s); text-align: center; }
}
.sw-form .frm_input, .sw-form textarea, .sw-form select { border-radius: 12px !important; background: #fff !important; }
.sw-form .sw-submit { border-radius: var(--app-r-s); height: 58px; box-shadow: 0 6px 18px rgba(125, 58, 54, .22); }

/* 서브 쪽 큰 그림 머리 — 휴대폰에서 아래 모서리를 둥글게 */
@media (max-width: 990px) {
  .sub .subtitle .wrap { border-radius: 0 0 28px 28px; overflow: hidden; }
}

/* ── 새 갈래 «세상에서 가장 슬픈 이별»(/ibyeol) — 제안서 색 셋은 이 쪽 안에서만 ── */
.sw-ib { --ib-ivory: #f5f1e7; --ib-ink: #252d28; --ib-pine: #414f43; color: var(--ib-ink); }
.sw-ib h2 { font-size: 40px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; color: var(--ib-ink); }
.sw-ib p { font-size: 19px; line-height: 1.8; }
.sw-ib .sw-ib-eyebrow { font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--ib-pine); margin-bottom: 12px; }
.sw-ib section { padding: 110px 0; }
.sw-ib-status { padding: 0 !important; }
.sw-ib-status p { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px; margin: 0; font-size: 17px; text-align: center; color: var(--ib-ink); }
.sw-ib-status span { flex: none; padding: 5px 12px; border-radius: 20px; background: var(--ib-pine); color: var(--ib-ivory); font-size: 14px; font-weight: 700; }
.sw-ib-intro { background: var(--ib-ivory); }
.sw-ib-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.sw-ib-rev .sw-ib-introimg { order: 2; }
.sw-ib-introimg img { display: block; width: 100%; height: auto; border-radius: var(--app-r); }
.sw-ib-introtxt h2 { margin-bottom: 26px; }
.sw-ib-introtxt p + p { margin-top: 14px; }
.sw-ib-who { background: var(--ib-pine); }
.sw-ib-who h2, .sw-ib-who p { color: var(--ib-ivory); }
.sw-ib-who .sw-ib-eyebrow { color: rgba(245, 241, 231, .75); }
.sw-ib-who ul { margin-top: 44px; display: grid; gap: 14px; max-width: 760px; }
.sw-ib-who li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--app-r-s); background: rgba(245, 241, 231, .08); border: 1px solid rgba(245, 241, 231, .16); color: var(--ib-ivory); }
.sw-ib-who li svg { flex: none; margin-top: 4px; color: var(--ib-ivory); }
.sw-ib-who li p { margin: 0; }
.sw-ib-spacesec { background: #fff; }
.sw-ib-space { padding: 22px 0; border-top: 1px solid #e3ded3; }
.sw-ib-space:last-child { border-bottom: 1px solid #e3ded3; }
.sw-ib-space h3 { font-size: 22px; font-weight: 700; color: var(--ib-pine); margin-bottom: 6px; }
.sw-ib-svcsec { background: var(--ib-ivory); }
.sw-ib-svcs { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sw-ib-svc { background: #fff; border-radius: var(--app-r); overflow: hidden; box-shadow: 0 1px 2px rgba(37, 45, 40, .05), 0 10px 28px rgba(37, 45, 40, .07); }
.sw-ib-svcimg { aspect-ratio: 3 / 2; overflow: hidden; }
.sw-ib-svcimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-ib-svctxt { padding: 22px 24px 26px; }
.sw-ib-svctxt h3 { font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--ib-ink); }
.sw-ib-svctxt p { font-size: 17px; line-height: 1.7; color: #4a524d; }
.sw-ib-note { margin-top: 36px; font-size: 17px !important; color: #4a524d; }
.sw-ib-cta { background: var(--ib-ink); text-align: center; }
.sw-ib-cta h2 { color: var(--ib-ivory); }
.sw-ib-cta p { margin-top: 20px; color: rgba(245, 241, 231, .86); }
.sw-ib-btns { margin: 40px auto 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 640px; }
.sw-ib-btn { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 30px; border-radius: var(--app-r-s); font-size: 18px; font-weight: 700; transition: transform .15s ease; }
.sw-ib-btn:active { transform: scale(.97); }
.sw-ib-btn1 { background: var(--ib-ivory); color: var(--ib-ink); }
.sw-ib-btn2 { border: 1.5px solid rgba(245, 241, 231, .6); color: var(--ib-ivory); }
@media (max-width: 990px) {
  .sw-ib section { padding: 64px 0; }
  .sw-ib h2 { font-size: 27px; }
  .sw-ib p { font-size: 17px; }
  .sw-ib-split { grid-template-columns: 1fr; gap: 28px; }
  .sw-ib-rev .sw-ib-introimg { order: 0; }
  .sw-ib-status p { font-size: 15px; justify-content: flex-start; text-align: left; }
  .sw-ib-who ul { margin-top: 28px; }
  .sw-ib-who li { padding: 16px 16px; }
  .sw-ib-svcs { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .sw-ib-svc { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; }
  .sw-ib-svcimg { aspect-ratio: auto; }
  .sw-ib-svctxt { padding: 16px 16px 18px; }
  .sw-ib-svctxt h3 { font-size: 17px; }
  .sw-ib-svctxt p { font-size: 15px; }
  .sw-ib-btns { flex-direction: column; }
  .sw-ib-btn { width: 100%; }
}
.sub:has(.sw-ib) .subtitle .wrap { background-image: linear-gradient(rgba(20, 24, 21, .55), rgba(20, 24, 21, .55)), url('/sw/img/ibyeol/forest.jpg') !important; }
.sub:has(.sw-ib) .subtitle p { font-weight: 500; }

/* 로고 — 간판 글씨(시안 A 확정 2026-11-30 본부 17:02 · 견주기 쪽은 시안/출력/로고시안_견주기) */
.sw-logo.sw-logo-img { letter-spacing: 0; text-indent: 0; font-size: 0; }
.sw-logo-img img { display: block; height: 34px; width: auto; }
.sw-flogo-img { display: inline-block; height: 40px; width: auto; }
.sw-flogo { letter-spacing: 0; text-indent: 0; }
@media (max-width: 990px) { .sw-logo-img img { height: 28px; } }

/* 첫 화면(휴대폰) — 본부 눈검수 1회차 17:02: 사진이 복잡해 설명이 안 읽힘 → 아래쪽 더 어둡게 · 설명 두 줄 · 빠른 메뉴 윗줄이 첫 화면에 살짝 보이게 */
.sw-herodesc-m { display: none; }
@media (max-width: 990px) {
  #mainSlide { height: calc(100svh - var(--app-tab-h) - 150px - env(safe-area-inset-bottom, 0px)); min-height: 480px; }
  #mainSlide .swiper-slide .txt .sw-herodesc { display: none; }
  #mainSlide .swiper-slide .txt .sw-herodesc-m { display: block; width: 100%; padding: 0 16px; box-sizing: border-box; font-size: 17px; line-height: 1.65; font-weight: 500; text-align: center; }
  #mainSlide .swiper-slide.slide01 .img { background-image: linear-gradient(rgba(20, 18, 16, .55) 0%, rgba(20, 18, 16, .45) 14%, rgba(20, 18, 16, .7) 32%, rgba(20, 18, 16, .8) 60%, rgba(20, 18, 16, .82) 100%), url(/sw/img/hero-1-m.jpg) !important; }
  #mainSlide .swiper-slide.slide02 .img { background-image: linear-gradient(rgba(20, 18, 16, .55), rgba(20, 18, 16, .72) 60%, rgba(20, 18, 16, .78)), url(/sw/img/hero-2-m.jpg) !important; }
  #mainSlide .swiper-pagination { bottom: 22px !important; }
  .sw-quick { padding-top: 18px; }
}
