/* ===== 공통 레이아웃 기준 (v56) ===== */
.section{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.section-inner{
  width:80%;
  max-width:1536px;
  margin:0 auto;
}
@media(max-width:1024px){
  .section-inner{ width:92%; }
}

/* ===== 폰트 통일 (상품안내 기준) ===== */
:root{
  --font-main:'GmarketSans','NanumSquare','Pretendard Variable',
              'Pretendard','Noto Sans KR','Apple SD Gothic Neo',system-ui,sans-serif;
}
body, h1, h2, h3, h4, h5, h6, p, span, a, button{
  font-family:var(--font-main);
}

/* 상조365 theme/style.css (v13) */
:root{
  --brand:#0c7bd1;
  --brand2:#0a5fb0;
  --accent:#f59e0b;

  --ink:#0b1220;
  --text:#0f172a;
  --muted:#475569;

  --bg:#ffffff;
  --line:rgba(15,23,42,.10);
  --shadow:0 18px 40px rgba(2,8,23,.10);

  --container:1180px;
  --headerH:104px; /* 헤더 높이(PC) */
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo","Noto Sans KR",Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, #f7fbff 0%, #ffffff 35%, #ffffff 100%);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:80%;max-width:none;margin:0 auto;padding:0 18px}
@media (max-width:1020px){.container{width:92%;}}

/* =========================================================
  Header (유지) : fixed + mega dropdown
========================================================= */
header{
  position:fixed; top:0; left:0; right:0;
  z-index:120;
  /* 투명 헤더(살짝 불투명) */
  background:rgba(255,255,255,.18);
  border-bottom:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
header.is-solid{
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(15,23,42,.10);
  box-shadow:0 18px 50px rgba(2,8,23,.10);
}

.header-wrap{width:100%;padding:0 34px}
.gnbbar{height:var(--headerH);display:flex;align-items:center;justify-content:space-between;gap:16px}

.brand{display:flex;align-items:center;gap:12px;font-weight:1000;letter-spacing:-.4px}
.brand .mark{
  width:64px;height:64px;border-radius:22px;
  background:linear-gradient(135deg,var(--brand),var(--accent));
  display:grid;place-items:center;
  color:#07101f;font-size:30px;
}
.brand .text{font-size:26px;letter-spacing:-.6px}

.nav{display:flex;align-items:center;gap:84px}
.nav > a{
  position:relative;
  font-size:20px;
  font-weight:400;
  padding:18px 2px;
  color:#0f172a;
}
.nav > a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:8px;
  height:3px;border-radius:999px;
  background:var(--brand);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease;
}
.nav > a:hover{color:var(--brand)}
.nav > a:hover::after{transform:scaleX(1)}

.util{display:flex;align-items:center;gap:14px}

/* 전화번호 버튼 */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:46px;padding:0 16px;border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:1000;font-size:14px;
  box-shadow:0 10px 22px rgba(2,8,23,.06);
  cursor:pointer;transition:.15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.hamburger{width:52px;padding:0;border-radius:18px}
.hamburger span{width:18px;height:2px;background:#0f172a;display:block;margin:4px auto;border-radius:2px}

.phone-ring{
  position:relative;
  height:60px;
  padding:0 44px;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  border:2px solid rgba(15,23,42,.18);
  color:#0f172a;             /* 기본 블랙 */
  font-size:26px;            /* 요청: 40px */
  font-weight:1200;
  letter-spacing:.02em;
  box-shadow:none;
  overflow:hidden;
}
.phone-ring:hover{
  color:var(--brand);
  border-color:rgba(12,123,209,.35);
  background:rgba(255,255,255,.78);
}

/* 타원 테두리 물결(회전X, 좌→우 흐름) */
.phone-ring::before{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:999px;
  background:linear-gradient(90deg,
    var(--brand) 0%,
    var(--accent) 22%,
    var(--brand2) 45%,
    var(--accent) 68%,
    var(--brand) 100%);
  background-size:220% 100%;
  animation:waveMove 2.6s ease-in-out infinite;
  z-index:-1;
}
@supports (-webkit-mask: none) or (mask: none){
  .phone-ring::before{
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding:9px;
  }
}
.phone-ring::after{
  content:"";
  position:absolute; inset:10px; border-radius:999px;
  background:
    radial-gradient(140px 30px at 10% 35%, rgba(12,123,209,.12), transparent 70%),
    radial-gradient(160px 34px at 40% 70%, rgba(242,193,78,.10), transparent 72%),
    radial-gradient(180px 38px at 78% 45%, rgba(12,123,209,.10), transparent 74%);
  opacity:.85;
  animation:innerWave 3.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes waveMove{
  0%{ background-position:0% 50% }
  50%{ background-position:100% 50% }
  100%{ background-position:0% 50% }
}
@keyframes innerWave{
  0%{ transform:translateX(-8px) }
  50%{ transform:translateX(12px) }
  100%{ transform:translateX(-8px) }
}

/* Mega dropdown */
.mega{
  position:absolute; left:0; right:0;
  top:var(--headerH);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(15,23,42,.10);
  box-shadow:0 24px 70px rgba(2,8,23,.12);
  border-bottom:1px solid rgba(15,23,42,.10);
  box-shadow:0 24px 70px rgba(2,8,23,.10);
  display:block;
  opacity:0;
  transform:translateY(-14px);
  visibility:hidden;
  pointer-events:none;
  will-change: opacity, transform;
  transition:
    opacity .32s ease,
    transform .32s cubic-bezier(.2,.8,.2,1),
    visibility 0s linear .32s;
}
.mega.on{
  opacity:1;
  transform:translateY(0);
  visibility:visible;
  pointer-events:auto;
  transition:
    opacity .32s ease,
    transform .32s cubic-bezier(.2,.8,.2,1),
    visibility 0s;
}
.mega.on{opacity:1; transform:translateY(0); visibility:visible; pointer-events:auto}
.mega .header-wrap{max-width:1100px;margin:0 auto;padding:0 18px}
.mega-grid.mega-only{
  display:grid;
  grid-template-columns:repeat(5, minmax(140px, 1fr));
  gap:28px;
  padding:26px 0 34px;
}
.mega-col{display:flex;flex-direction:column;align-items:flex-start}
.mega-col:not(:last-child){border-right:1px solid rgba(15,23,42,.06); padding-right:18px}
.mega a{
  width:100%;
  padding:10px 0;
  color:#475569;
  font-size:16px;
  font-weight:400;
  text-align:left;
}
.mega a:hover{color:var(--brand);text-decoration:underline}

/* =========================================================
  Mobile sidebar
========================================================= */
.dimmer{position:fixed;inset:10px;background:rgba(2,8,23,.55);opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:210}
.dimmer.on{opacity:1;pointer-events:auto}
.sidebar{position:fixed;top:0;right:0;width:360px;max-width:92vw;height:100vh;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:220;border-left:1px solid rgba(15,23,42,.10);box-shadow:-20px 0 60px rgba(2,8,23,.18);transform:translateX(110%);transition:transform .45s cubic-bezier(.22,.61,.36,1);display:flex;flex-direction:column}
.sidebar.on{transform:translateX(0)}
.side-top{padding:16px 16px 12px;border-bottom:1px solid var(--line)}
.side-badge{margin-top:10px;font-size:12px;color:#334155;line-height:1.6;font-weight:900;background:rgba(12,123,209,.08);border:1px solid rgba(12,123,209,.18);padding:10px 12px;border-radius:16px}
.side-nav{padding:10px;overflow:auto}
.side-group{border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:10px 6px}
.side-head{padding:12px 12px;background:#fff;display:flex;justify-content:space-between;align-items:center;font-weight:1000;cursor:pointer}
.side-head small{color:#64748b;font-weight:900}
.side-list{display:none;padding:8px;background:rgba(2,8,23,.02);border-top:1px solid rgba(15,23,42,.06)}
.side-list a{display:block;padding:10px 10px;border-radius:12px;font-weight:900;color:#334155;font-size:13px}
.side-list a:hover{background:rgba(12,123,209,.10);color:#0f172a}
.side-group.on .side-list{display:block}

/* =========================================================
  Hero slider : Fade + Zoom (사진이 서서히 작아졌다가 사라짐)
========================================================= */
.main-visual{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:0;
}
/* 헤더 아래 경계에 셰도우 살짝 */
.main-visual::before{
  content:"";
  position:fixed;
  top:var(--headerH);
  left:0; right:0;
  height:1px;
  box-shadow:0 10px 20px rgba(2,8,23,.18);
  pointer-events:none;
  z-index:110;
}

.hero-wrap{width:100%;border:0;box-shadow:none;border-radius:0;overflow:hidden}
.hero-swiper,.hero-swiper .swiper-wrapper,.hero-swiper .swiper-slide{height:100vh}
.hero-swiper .swiper-slide{position:relative;overflow:hidden;background:#0b1220}
.hero-bg{position:absolute;inset:10px;background:linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.18))}
.hero-img{
  position:absolute; inset:10px;
  background:center/cover no-repeat;
  opacity:0;
  transform:none;
  transition:opacity 1200ms ease, transform 6500ms ease;
  will-change:transform, opacity;
}
.swiper-slide-active .hero-img{opacity:1; transform:scale(1.0)}

/* 텍스트 애니메이션 */
.hero-content{
  position:relative; z-index:2;
  max-width:var(--container);
  margin:0 auto;
  padding:0 34px;
  height:100%;
  display:flex;flex-direction:column;justify-content:center;
  color:#fff;
}
.hero-kicker, .hero-title, .hero-desc, .hero-cta{
  opacity:0;
  transform:translateY(40px);
  transition:opacity 700ms ease, transform 900ms ease;
}
.swiper-slide-active.is-ready .hero-kicker{opacity:1; transform:translateY(0); transition-delay:160ms}
.swiper-slide-active.is-ready .hero-title{opacity:1; transform:translateY(0); transition-delay:260ms}
.swiper-slide-active.is-ready .hero-desc{opacity:1; transform:translateY(0); transition-delay:380ms}
.swiper-slide-active.is-ready .hero-cta{opacity:1; transform:translateY(0); transition-delay:520ms}

.hero-kicker{display:inline-flex;gap:10px;align-items:center;width:fit-content;max-width:100%;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);font-weight:900;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hero-kicker i{width:8px;height:8px;border-radius:99px;background:var(--accent);display:inline-block}
.hero-title{margin:16px 0 12px;font-size:58px;letter-spacing:-1.6px;line-height:1.06;font-weight:900;text-shadow:0 1px 0 rgba(0,0,0,.10)}
.hero-desc{margin:0;color:rgba(255,255,255,.84);font-weight:800;line-height:1.75;font-size:16px;max-width:720px}

.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.hero-cta .btn{height:58px;padding:0 28px;border-radius:0;min-width:340px;display:inline-flex;align-items:center;justify-content:center;border-color:rgba(255,255,255,.22)}
@media (max-width:640px){.hero-cta .btn{min-width:100%;}}
.hero-cta .btn.primary{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  border-color:rgba(12,123,209,.35);
  box-shadow:0 14px 28px rgba(12,123,209,.25);
}
.hero-cta .btn.ghost{
  background:rgba(255,255,255,.10);
  color:#fff;
  border-color:rgba(255,255,255,.18);
  box-shadow:none;
}

/* Indicator (깔끔/이쁜 버전) */

/* ========================================
   슬라이더 페이지네이션 - PC 왼쪽 세로, 모바일 하단
   ======================================== */

/* PC - 왼쪽 세로 정렬 */
.hero-swiper .swiper-pagination {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
  width: 50px;
  height: 50px;
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.hero-swiper .swiper-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.hero-swiper .swiper-pagination-bullet-active {
  background: rgba(12, 123, 209, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.hero-swiper .p-circle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-swiper .p-number {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.hero-swiper .swiper-pagination-bullet-active .p-number {
  color: #ffffff;
  font-weight: 800;
}

/* 모바일 - 하단 A 위치 */
@media (max-width: 768px) {
  .hero-swiper .swiper-pagination {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 100px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 16px;
  }
  
  .hero-swiper .swiper-pagination-bullet {
    width: 44px;
    height: 44px;
  }
  
  .hero-swiper .p-number {
    font-size: 18px;
  }
}

/* =========================================================
  Sections (카드형) + Footer (기존 유지)
========================================================= */
.section{padding:54px 0}
.sec-head{text-align:center;margin-bottom:22px}
.sec-head h2{margin:0;font-size:26px;letter-spacing:-.6px}
.sec-head p{margin:10px auto 0;max-width:820px;color:var(--muted);line-height:1.75;font-weight:800}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 18px 40px rgba(2,8,23,.08);overflow:hidden}
.card .ctx{padding:16px 16px 18px}
.card .t{font-weight:1000;letter-spacing:-.3px}
.card .d{margin-top:10px;color:var(--muted);font-weight:800;font-size:13.5px;line-height:1.75}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.badge{padding:8px 10px;border-radius:999px;border:1px solid rgba(12,123,209,.18);background:rgba(12,123,209,.08);font-weight:900;font-size:12px;color:#0f172a}

.process{border-radius:26px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);overflow:hidden}
.process-grid{display:grid;grid-template-columns:.9fr 1.1fr}
.process-left{padding:26px 22px;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:10px}
.process-left h3{margin:0;font-size:20px;letter-spacing:-.4px}
.process-left p{margin:0;color:var(--muted);font-weight:800;line-height:1.75}
.process-right{padding:18px}
.step{border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden}
.step .inner{padding:14px}
.step strong{display:block;font-size:15px}
.step p{margin:8px 0 0;color:var(--muted);font-weight:800;line-height:1.75;font-size:13.5px}

.contact{border-radius:26px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:1.1fr .9fr}
.contact-l{padding:22px}
.contact-l h3{margin:0;font-size:22px;letter-spacing:-.5px}
.contact-l p{margin:10px 0 0;color:var(--muted);font-weight:800;line-height:1.75}
.contact-r{border-left:1px solid var(--line);padding:18px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.field label{font-size:12px;font-weight:1000;color:#334155}
.field input,.field select,.field textarea{border:1px solid rgba(15,23,42,.12);border-radius:14px;padding:12px;font-weight:800;outline:none;background:#fff}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(12,123,209,.55);box-shadow:0 0 0 5px rgba(12,123,209,.14)}
textarea{min-height:88px;resize:vertical}
.agree{display:flex;gap:10px;align-items:flex-start;border-radius:16px;border:1px solid var(--line);background:rgba(2,8,23,.02);padding:12px;color:var(--muted);font-weight:800;font-size:12.5px;line-height:1.55;margin:10px 0 12px}
.agree input{margin-top:2px}
.form-actions{display:flex;gap:10px}
.form-actions .btn{flex:1}

footer{padding:32px 0 44px;border-top:1px solid var(--line);color:var(--muted);background:#fff}
.foot{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-weight:850;line-height:1.7}
.foot b{color:#0f172a}
.small{font-size:12px;color:#64748b;font-weight:800}

/* Responsive */
@media (max-width: 1020px){
  :root{--headerH:84px;}
  .header-wrap{padding:0 18px}
  .brand .mark{width:50px;height:50px;border-radius:18px;font-size:18px}
  .brand .text{font-size:20px}
  .nav{display:none}
  .mega{display:none !important}
  .phone-ring{height:60px;padding:0 18px;font-size:18px}
  .btn{height:44px}
  .hero-content{padding:0 18px}
  .hero-title{font-size:36px;font-weight:900}
  
.hero-swiper .swiper-pagination{
  padding:6px 8px;
  border-radius:12px;
  background:rgba(2,6,23,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width:auto;
  max-width:unset;
}

  .cards{grid-template-columns:1fr;gap:14px}
  .process-grid{grid-template-columns:1fr}
  .process-left{border-right:0;border-bottom:1px solid var(--line)}
  .contact{grid-template-columns:1fr}
  .contact-r{border-left:0;border-top:1px solid var(--line)}
}


/* ===== v15: Right vertical quickbar (고객센터/TOP) + header separation on scroll ===== */
.quickbar{
  position:fixed;
  right:0;
  top:60%;
  transform:translateY(-50%);
  transition: opacity .25s ease, transform .25s ease;
  z-index:230; /* above header (120) and above slider */
  display:flex;
  flex-direction:column;
  gap:10px;
}
.qb-btn{
  width:56px;
  padding:14px 0;
  border:0;
  cursor:pointer;
  border-radius:18px 0 0 18px;
  background:#111827;
  color:#fff;
  font-weight:1000;
  letter-spacing:-.2px;
  box-shadow:0 18px 40px rgba(2,8,23,.18);
  transition:transform .22s ease, filter .22s ease, opacity .22s ease;
}
.qb-btn:hover{transform:translateX(-4px);filter:brightness(1.03)}
.qb-cs{
  height:176px;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  letter-spacing:.22em; /* 고객센터 글자 간격 */
  background: linear-gradient(135deg, #0b0f14 0%, #111827 35%, #0b0f14 70%, #141a22 100%);
  background-size: 220% 220%;
  animation: qbSheen 5.5s ease-in-out infinite;
}
.qb-top{
  height:64px;
  background:#64748b;
}

@media (max-width:1020px){
  .quickbar{top:62%; transform:translateY(-50%)}
  .qb-btn{width:50px;border-radius:16px 0 0 16px}
  .qb-cs{height:150px}
}

/* remove extra right padding in header util if needed */


/* Quickbar hide when sidebar open */
body.sidebar-open .quickbar{
  opacity:0;
  pointer-events:none;
  transform:translateY(-50%) translateX(16px);
}


/* =========================================================
  v19: 다이렉트 상품안내 4카드 (스크롤 등장 + 테두리 드로잉 + hover 그레이)
========================================================= */
.direct-products{padding:74px 0 86px}
.direct-products .sec-head{margin-bottom:34px}
.direct-title{text-align:center;font-size:40px;font-weight:900;letter-spacing:-1.2px;margin-bottom:12px;font-family:'GmarketSans','NanumSquare','Pretendard Variable','Pretendard','Noto Sans KR','Apple SD Gothic Neo',system-ui,sans-serif;}
.direct-sub{margin:12px auto 0;max-width:820px;text-align:center;color:var(--muted);font-weight:850;line-height:1.75}

.direct-grid{display:grid;gap:18px}
.direct-grid--4{grid-template-columns:repeat(4,1fr)}
@media (max-width:1200px){.direct-grid--4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.direct-grid--4{grid-template-columns:1fr}}

.direct-card{aspect-ratio: 1 / 1;
  position:relative;display:block;overflow:hidden;border-radius:22px;
  
  color:#fff;text-decoration:none;
  box-shadow:0 22px 60px rgba(2,8,23,.18);
  transform:translateY(40px);
  opacity:0;
  transition:
    transform .62s cubic-bezier(.2,.8,.2,1),
    opacity .62s ease,
    filter .26s ease;
  transition-delay:calc(var(--d) * 120ms);
}

.direct-products.is-visible .direct-card{transform:translateY(0);opacity:1}

.direct-card::before{
  background-color: rgba(2,6,23,.25);

  content:"";
  position:absolute; inset:10px;
  background:
    linear-gradient(180deg, rgba(2,8,23,.10) 0%, rgba(2,8,23,.58) 72%),
    var(--cardbg);
  background-size:cover;
  background-position:center;background-repeat:no-repeat;
  transform:none;
  transition:transform .65s ease, filter .26s ease;
}

.direct-card::after{
  content:"";
  position:absolute; inset:10px;
  background:rgba(255,255,255,.06);
  opacity:.9;
  pointer-events:none;
}

.direct-card:hover{filter:grayscale(1)}
.direct-card:hover::before{filter:grayscale(1);transform:scale(1.06)}

.direct-card .card-inner{position:relative;z-index:2;padding:34px 28px}
.direct-card h3{margin:0 0 10px 0;font-size:20px;font-weight:1000;letter-spacing:-.3px}
.direct-desc{margin:0 0 22px 0;font-size:14px;opacity:.92;font-weight:850}
.direct-price{font-size:16px;margin-bottom:14px;font-weight:900}
.direct-price b{font-size:28px;font-weight:1000;margin-left:6px}
.direct-pay span{display:block;font-size:14px;opacity:.95;margin-top:6px;font-weight:850}

.direct-badge{
  position:absolute;top:16px;right:16px;z-index:4;
  background:#ef4444;color:#fff;font-size:12px;font-weight:1000;
  padding:6px 10px;border-radius:999px;
  box-shadow:0 10px 24px rgba(2,8,23,.18);
}

/* 라운드 테두리 라인 드로잉 */
.card-border{overflow:visible;position:absolute;inset:16px;z-index:3;pointer-events:none}
.card-border rect{
  fill:none;
  stroke:rgba(255,255,255,.86);
  stroke-width:.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:1200;
  stroke-dashoffset:1200;
  transition:stroke-dashoffset 2.2s ease;
  filter: drop-shadow(0 10px 18px rgba(2,8,23,.20));
}
.direct-products.is-visible .direct-card.draw-border .card-border rect{stroke-dashoffset:0}

/* 배경 이미지 연결(테마 이미지 사용) */
.card-bg-90  { --cardbg: url("img/direct90.jpg"); }
.card-bg-170 { --cardbg: url("img/direct170.jpg"); }
.card-bg-270 { --cardbg: url("img/direct270.jpg"); }
.card-bg-360 { --cardbg: url("img/direct360.jpg"); }

@media (max-width:640px){.direct-title{font-size:40px;}}


/* v22: 슬라이드 하단 검정 라인 제거 (이미지 여백 제거) */
.hero-bg{inset:0 !important;}
.hero-img{inset:0 !important;}
.hero-swiper .swiper-slide{background:transparent !important;}



/* v22: 테두리 선 잘림 방지 */
.direct-grid{padding:12px 0;}


/* v23: 상품 섹션 비율 고정(기준 1730px) */
.direct-products .container{max-width:1730px;}


/* v24: 1730 기준 스케일링(간격/패딩/글자 비율 유지) */
:root{
  --dp-gap: clamp(14px, 1.2vw, 24px);
  --dp-pad-y: clamp(56px, 5vw, 90px);
  --dp-card-pad: clamp(18px, 2.1vw, 32px);
  --dp-title: clamp(30px, 2.6vw, 48px);
  --dp-sub: clamp(14px, 1.1vw, 17px);
  --dp-h3: clamp(18px, 1.35vw, 22px);
  --dp-desc: clamp(13px, 1.05vw, 15px);
  --dp-price: clamp(16px, 1.15vw, 18px);
  --dp-price-b: clamp(22px, 1.7vw, 28px);
  --dp-line: 0.8px;
}

/* 섹션 여백/타이틀 비율 */
.direct-products{padding:var(--dp-pad-y) 0 calc(var(--dp-pad-y) + 10px);}

.direct-title{
  font-size:40px;
  letter-spacing:clamp(-1.4px, -0.08vw, -0.8px);
  margin-bottom:clamp(10px, 1vw, 14px);
}

.direct-sub{
  font-size:var(--dp-sub);
  margin-bottom:clamp(32px, 3.1vw, 50px);
}

/* 그리드/카드 간격 */
.direct-grid{gap:var(--dp-gap);}

/* 카드 패딩/텍스트 비율 */
.direct-card .card-inner{padding:var(--dp-card-pad);}
.direct-card h3{font-size:var(--dp-h3);}
.direct-desc{font-size:var(--dp-desc); margin-bottom:clamp(18px, 1.7vw, 26px);}
.direct-price{font-size:var(--dp-price); margin-bottom:clamp(12px, 1.5vw, 18px);}
.direct-price b{font-size:var(--dp-price-b);}

/* 테두리선은 동일한 두께로 유지 */
.card-border rect{stroke-width:0.7px;}

/* 1024 이하 100%, 640 이하 92% 유지(기존 규칙 유지용 보강) */
@media (max-width:1024px){
  .container{width:100%;}
}
@media (max-width:640px){
  .container{width:92%;}
}

/* v26: HIT 골드 리본 */
.direct-card .badge{
  position:absolute;
  top:18px;
  right:-6px;
  z-index:4;
  background:linear-gradient(135deg,#f6e27a,#d4af37,#b8962e);
  color:#3b2f00;
  font-size:12px;
  font-weight:900;
  padding:8px 16px 8px 18px;
  border-radius:0 6px 6px 0;
  letter-spacing:.5px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.direct-card .badge::before{
  content:"";
  position:absolute;
  left:-10px;
  top:0;
  width:0;height:0;
  border-top:16px solid transparent;
  border-bottom:16px solid transparent;
  border-right:10px solid #b8962e;
}


/* v27: 리본 반짝임(shine sweep) + hover 시 브랜드 컬러 전환 */
.direct-card .badge{
  overflow:hidden;
}
.direct-card .badge::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-60%;
  width:40%;
  height:160%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  opacity:.55;
  animation: badgeShine 2.8s ease-in-out infinite;
  pointer-events:none;
  mix-blend-mode:screen;
}

@keyframes badgeShine{
  0%{left:-60%;opacity:0}
  12%{opacity:.55}
  45%{left:130%;opacity:0}
  100%{left:130%;opacity:0}
}

/* hover: 골드 -> 브랜드 컬러 */
.direct-card:hover .badge{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#ffffff;
}
.direct-card:hover .badge::before{
  border-right-color: var(--brand2);
}


/* v28 force: 추천 리본(골드) + 반짝임 + hover 브랜드 전환 (우선순위 최상) */
.direct-products .direct-card .badge{
  overflow:hidden;
  background:linear-gradient(135deg,#f6e27a,#d4af37,#b8962e) !important;
  color:#3b2f00 !important;
}
.direct-products .direct-card .badge::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-60%;
  width:40%;
  height:160%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  opacity:.55;
  animation: badgeShine 2.8s ease-in-out infinite;
  pointer-events:none;
  mix-blend-mode:screen;
}
@keyframes badgeShine{
  0%{left:-60%;opacity:0}
  12%{opacity:.55}
  45%{left:130%;opacity:0}
  100%{left:130%;opacity:0}
}
.direct-products .direct-card:hover .badge{
  background:linear-gradient(135deg,var(--brand),var(--brand2)) !important;
  color:#fff !important;
}
.direct-products .direct-card:hover .badge::before{
  border-right-color:var(--brand2) !important;
}


/* v29: 추천 골드 리본(직접 카드용) + 반짝임 + hover 브랜드 전환 */
.direct-products .direct-badge.direct-badge--ribbon{
  position:absolute;
  top:18px;
  right:-6px;
  z-index:7;
  overflow:hidden;
  background:linear-gradient(135deg,#f6e27a,#d4af37,#b8962e);
  color:#3b2f00;
  font-size:12px;
  font-weight:900;
  padding:8px 16px 8px 18px;
  border-radius:0 6px 6px 0;
  letter-spacing:.3px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.direct-products .direct-badge.direct-badge--ribbon::before{
  content:"";
  position:absolute;
  left:-10px;
  top:0;
  width:0;height:0;
  border-top:16px solid transparent;
  border-bottom:16px solid transparent;
  border-right:10px solid #b8962e;
}
.direct-products .direct-badge.direct-badge--ribbon::after{
  content:"";
  position:absolute;
  top:-30%;
  left:-60%;
  width:40%;
  height:160%;
  transform:skewX(-18deg);
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  opacity:.55;
  animation: badgeShine 2.8s ease-in-out infinite;
  pointer-events:none;
  mix-blend-mode:screen;
}
@keyframes badgeShine{
  0%{left:-60%;opacity:0}
  12%{opacity:.55}
  45%{left:130%;opacity:0}
  100%{left:130%;opacity:0}
}
.direct-products .direct-card:hover .direct-badge.direct-badge--ribbon{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
}
.direct-products .direct-card:hover .direct-badge.direct-badge--ribbon::before{
  border-right-color:var(--brand2);
}


/* v29: 페이저(01/02/03) 패널로 여백 확보 + 선 두께 개선 */

.hero-swiper .swiper-pagination{
  padding:6px 8px;
  border-radius:12px;
  background:rgba(2,6,23,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width:auto;
  max-width:unset;
}

@media (max-width:640px){
  
.hero-swiper .swiper-pagination{
  padding:6px 8px;
  border-radius:12px;
  background:rgba(2,6,23,.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width:auto;
  max-width:unset;
}

  .hero-swiper .swiper-pagination-bullet .p-ring{width:40px;height:40px;}
  .hero-swiper .p-svg{width:40px;height:40px;}
}

.hero-swiper .swiper-pagination-bullet{
  margin:6px 0;
}

/* v30: 추천 배지 제거 */
.direct-badge{display:none !important;}



/* v31: 인디케이터 배경 제거 + 왼쪽 가운데 정렬 */
.hero-swiper .swiper-pagination{
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  padding:0 !important;
  border-radius:0 !important;
  left:32px !important;
  top:50% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
}
@media (max-width:640px){
  .hero-swiper .swiper-pagination{
    left:16px !important;
  }
}


.hero-swiper .swiper-pagination-bullet{margin:10px 0 !important;}



/* v31: 사이드바 닫기 - 로고 다음이 아니라 우측 상단 X */
.sidebar-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.14);
  color:#000;
  font-size:28px;
  font-weight:900;
  line-height:42px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
}
.sidebar-close:hover{background:rgba(255,255,255,.22);}

/* 기존 '닫기' 텍스트 버튼이 있으면 숨김(선택자 최대한 광범위) */
.sidebar .close,
.sidebar .btn-close,
.sidebar .sidebar-close-text,
.sidebar button[aria-label="닫기"],




/* v32: 고객센터 텍스트 행간 확대 + 음각 효과 */
.customer-center,
.customer-center *,
.quick-customer,
.quick-customer *,
.sidebar .customer,
.sidebar .customer *{
  line-height:1.55;
  letter-spacing:0.02em;
}

/* 음각(engraved) 텍스트 효과 */
.customer-center,
.quick-customer,
.sidebar .customer{
  color:#f1f3f6;
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 -1px 0 rgba(255,255,255,.15);
}

/* 진한 배경 위에서 더 잘 보이도록 */
.sidebar .customer strong,
.customer-center strong{
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 -1px 0 rgba(255,255,255,.25);
}



/* v33 force: 고객센터(퀵바/사이드바) 폰트 키움 + 행간/음각 적용 */
.quickbar .qb-btn{
  font-size:16px !important;
  line-height:1.25 !important;
  letter-spacing:0.02em !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 -1px 0 rgba(255,255,255,.18) !important;
}
@media (max-width:640px){
  .quickbar .qb-btn{font-size:16px !important;}
}

/* 사이드바 상단 안내문(대표번호 포함) */
#sidebar .side-badge{
  font-size:16px !important;
  line-height:1.65 !important;
  letter-spacing:0.02em !important;
  color: #956513;
}
#sidebar .side-badge b{
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 -1px 0 rgba(255,255,255,.22) !important;
}

/* v33 force: 상품안내 타이틀 40px 고정(어떤 clamp/규칙보다 우선) */
.direct-products .direct-title{
  font-size:40px !important;
  font-weight:900 !important;
}
@media (max-width:640px){
  .direct-products .direct-title{font-size:34px !important;}
}


/* v34: 고객센터 TOP 분리 스타일 */
/* TOP은 기존 유지 */
.quickbar .qb-btn.qb-top{
  font-weight:400 !important;
  letter-spacing:0.02em !important;
}

/* 고객센터만 폰트 볼드 살짝 완화 + 자간 크게 */
.quickbar .qb-btn.qb-cs{
  font-weight:400 !important;
  letter-spacing:0.6em !important;
}


/* v40: logo image + text */
.brand .logo-img{
  width:46px;
  height:46px;
  display:block;
  object-fit:contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.brand .text{
  font-weight:900;
  letter-spacing:-0.02em;
}
.sidebar .brand .text{ color:#000; }


/* v39: direct text + CTA fill (from v38 texts only) */
/* 카드 텍스트 구성(상조365 / 다이렉트 / 설명 / 바로가기) */
.direct-products .direct-kicker{
  color:#f3c74a;
  font-weight:900;
  font-size:20px;
  letter-spacing:-.02em;
  margin:0 0 10px 0;
}
.direct-products .direct-name{
  font-size:32px;
  font-weight:1000;
  letter-spacing:-.03em;
  line-height:1.08;
  margin:0 0 10px 0;
  text-shadow:0 6px 18px rgba(0,0,0,.35);
}
.direct-products .direct-desc{
  font-size:12px;
  margin:0 0 16px 0;
}

/* 바로가기 버튼: hover 시 물 차듯이 왼→오 */
.direct-products .direct-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.40);
  background:rgba(0,0,0,.18);
  color:#fff;
  font-size:15px;
  overflow:hidden;
  width:max-content;
}
.direct-products .direct-cta i{font-style:normal; opacity:.9;}
.direct-products .direct-cta::before{
  content:"";
  position:absolute;
  inset:0;
  width:0%;
  background:linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.10));
  transition:width .65s ease;
  z-index:0;
}
.direct-products .direct-cta span,
.direct-products .direct-cta i{position:relative; z-index:1;}
.direct-products .direct-card:hover .direct-cta::before{width:100%;}

/* 모바일에서도 보기 좋게 */
@media (max-width:640px){
  .direct-products .direct-kicker{font-size:18px;}
  .direct-products .direct-name{font-size:30px;}
}


/* =========================================================
  Wide funeral products (full width)
========================================================= */
.wide-funeral{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  background:
    radial-gradient(1200px 520px at 30% 45%, rgba(0,0,0,.06), transparent 60%),
    #f3f5f7;
  padding: clamp(48px, 5vw, 84px) 0;
  overflow:hidden;
}
.wide-funeral__inner{
  width:80%;
  max-width:1536px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(22px, 3vw, 48px);
  align-items:center;
  position:relative;
}
@media(max-width:1024px){
  .wide-funeral__inner{ width:92%; }
}
.wide-funeral__left{position:relative;min-height:520px;display:flex;flex-direction:column;justify-content:flex-start;padding:10px 0}
.wf-title{margin:0;font-size:clamp(28px,2.6vw,44px);line-height:1.18;letter-spacing:-0.04em;color:#0f172a;font-weight:1000}
.wf-strong{font-weight:1100}
.wf-accent{color:#f59e0b;font-weight:1100}
.wf-desc{margin:18px 0 0;color:rgba(15,23,42,.70);font-weight:850;line-height:1.85;font-size:clamp(14px,1.15vw,16px)}
.wf-flower{
  position:absolute;left:-70px;bottom:-30px;width:min(260px,55vw);height:min(260px,40vw);
  background:
    radial-gradient(280px 180px at 30% 30%, rgba(255,255,255,.75), transparent 70%),
    url("img/funeral_flower.png");
  background-size: cover;
  background-position: left bottom;
  background-repeat:no-repeat;
  filter: saturate(0.98) contrast(1.02);
  opacity:0.98;
  pointer-events:none;
  transform: rotate(-1deg);
}
.wide-funeral__right{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.wf-card{position:relative;border-radius:18px;overflow:hidden;min-height:210px;box-shadow:0 18px 45px rgba(2,8,23,.14);transition:transform .22s ease, filter .22s ease;border:1px solid rgba(15,23,42,.10);background:#0b1220}
.wf-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(2,8,23,.20) 0%, rgba(2,8,23,.56) 78%), var(--wfbg);background-size:cover;background-position:center;background-repeat:no-repeat;transition:transform .6s ease, filter .22s ease}
.wf-card:hover{transform:translateY(-3px)}
.wf-card:hover::before{transform:scale(1.05);filter:saturate(1.03)}
.wf-card__top{position:relative;z-index:1;padding:18px 18px 0}
.wf-card__name{display:block;color:#fff;font-weight:1100;letter-spacing:-0.03em;font-size:26px;text-shadow:0 10px 26px rgba(0,0,0,.35)}
.wf-card__logo{position:absolute;left:18px;top:66px;width:46px;height:46px;background:url("img/logo.png") center/contain no-repeat;filter:drop-shadow(0 10px 22px rgba(0,0,0,.30));opacity:0.95;z-index:1}
.wf-card__btn{position:absolute;right:16px;bottom:16px;z-index:1;display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;border-radius:999px;background:#f59e0b;color:#0b1220;font-weight:1100;font-size:14px;box-shadow:0 14px 26px rgba(245,158,11,.30);transition:filter .22s ease, transform .22s ease}
.wf-card:hover .wf-card__btn{filter:brightness(1.03);transform:translateY(-1px)}
.wf-card--150{--wfbg:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));}
.wf-card--260{--wfbg:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));}
.wf-card--360{--wfbg:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));}
.wf-card--490{--wfbg:linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));}
@media (max-width:1024px){
  .wide-funeral__inner{grid-template-columns:1fr}
  .wide-funeral__left{min-height:420px}
  .wf-flower{left:-40px;width:min(720px,92vw);height:min(420px,60vw);opacity:0.80}
  .wide-funeral__right{gap:16px}
}
@media (max-width:560px){
  .wide-funeral{padding:44px 0}
  .wide-funeral__left{min-height:360px}
  .wide-funeral__right{grid-template-columns:1fr}
  .wf-card__name{font-size:24px}
}


/* =========================================================
  Tail consult banner + footer (full width)
========================================================= */
.tail-consult-wrap{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  background:
    radial-gradient(900px 380px at 25% 45%, rgba(0,0,0,.06), transparent 60%),
    linear-gradient(180deg, #eef1f6 0%, #f6f7fa 40%, #f2f3f6 100%);
  overflow:hidden;
}
.tail-consult-inner{
  width:min(1180px, 92vw);
  margin:0 auto;
  min-height:300px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:32px;
  align-items:center;
  padding:56px 0 54px;
}
.tail-badge{
  display:inline-flex;align-items:center;justify-content:center;
  height:40px;padding:0 22px;border-radius:999px;
  background:#0b2b55;color:#fff;font-weight:900;letter-spacing:-.02em;font-size:16px;
  width:max-content;
}
.tail-consult-title{margin:18px 0 8px;font-size:34px;font-weight:1000;letter-spacing:-.04em;color:#0f172a}
.tail-consult-phone{margin:0;font-size:68px;line-height:1.0;letter-spacing:-.03em;font-weight:1100;color:#111827}
.tail-consult-desc{margin:18px 0 0;color:rgba(15,23,42,.72);font-weight:850;line-height:1.8;font-size:14px;max-width:720px}
.tail-consult-desc b{color:#111827;font-weight:1000}
.tail-consult-art{
  position:relative;height:240px;border-radius:18px;overflow:hidden;
  filter: drop-shadow(0 26px 60px rgba(2,8,23,.10));
  background:
    radial-gradient(260px 180px at 25% 45%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(320px 220px at 70% 60%, rgba(255,255,255,.65), transparent 72%);
}

.site-footer{
  width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  background:#1f1f1f;color:rgba(255,255,255,.82);
  padding:38px 0 46px;
}
.site-footer .footer-inner{width:min(1180px, 92vw);margin:0 auto}
.footer-links{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.footer-links a{color:#fff;font-weight:900;font-size:13px;letter-spacing:-.01em;opacity:.92}
.footer-links a:hover{opacity:1;text-decoration:underline}
.footer-info{font-size:13px;line-height:1.95;font-weight:800;color:rgba(255,255,255,.78)}
.footer-info b{color:#fff;font-weight:1000}
.footer-small{margin-top:14px;font-size:12px;color:rgba(255,255,255,.55);font-weight:800}

@media (max-width:900px){
  .tail-consult-inner{grid-template-columns:1fr; padding:44px 0}
  .tail-consult-art{height:220px}
  .tail-consult-phone{font-size:56px}
}
@media (max-width:560px){
  .tail-badge{height:36px;font-size:14px}
  .tail-consult-title{font-size:28px}
  .tail-consult-phone{font-size:44px}
}

/* 상조 상담/안내 섹션 */
.sangjo-consult{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  background:
    radial-gradient(1200px 400px at 20% 30%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(135deg, #071223 0%, #0b1f3a 45%, #0a254f 100%);
  padding:80px 0 90px;
  text-align:center;
}
.sangjo-frame{
  width:80%;
  max-width:1536px;
  height:500px;
  margin:0 auto 36px;
  padding:14px;
  border:1px solid rgba(255,255,255,.55);
  box-sizing:border-box;
  overflow:hidden;
  background:rgba(255,255,255,.02);
  backdrop-filter: blur(2px);
}
.sangjo-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.sangjo-desc{
  color:rgba(255,255,255,.88);
  font-size:22px;
  line-height:1.65;
  font-weight:650;
  margin:0;
}
.sangjo-desc strong{font-weight:950;color:#fff}
.sangjo-title{
  margin:18px 0 0;
  font-size:40px;
  font-weight:900;
  letter-spacing:-0.04em;
  color:#f7c948;
  font-family:'GmarketSans','NanumSquare','Pretendard Variable','Pretendard','Noto Sans KR','Apple SD Gothic Neo',system-ui,sans-serif;
}
@media(max-width:1024px){
  .sangjo-frame{
    width:92%;
    height:300px;
  }
}


/* v59 hero-content align (메인 슬라이드 풀폭 + 내용 80% 정렬) */
.main-visual .hero-content{
  width:80%;
  max-width:1536px;
  padding-left:0;
  padding-right:0;
}
@media(max-width:1024px){
  .main-visual .hero-content{ width:92%; }
}

/* ===== HEADER OVERLAP + SIMPLE SCROLL BG (v65) ===== */

/* 헤더는 슬라이드 위에 오버랩 */
header.site-header,
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:9999;
  background:transparent !important;
  border-bottom:1px solid rgba(0,0,0,.08);
  transition: background-color .45s ease, border-color .45s ease, box-shadow .45s ease;
}

/* 메뉴 컬러는 항상 고정 */
header .nav a,
header .brand-text,
header .phone-ring{
  color:#000000 !important;
}
header .hamburger span{
  background:#0a254f !important;
}

/* 스크롤 시: 헤더 배경만 변경 (메뉴 색은 그대로) */


/* 슬라이드는 상단에서 바로 시작 */
.main-visual,
.hero,
.hero.section{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* 슬라이드 텍스트만 헤더 높이만큼 내려서 가림 방지 */
.hero-content{
  padding-top: calc(var(--headerH, 96px) + 18px);
}
@media(max-width:768px){
  .hero-content{ padding-top: calc(var(--headerH, 76px) + 12px); }
}

/* 사이드바는 헤더보다 위 */
.sidebar,
.side-menu,
#sidebar{
  position:fixed;
  z-index:10050;
}

/* ===== HEADER SCROLL COLOR FINAL (v66) ===== */
header.is-scrolled,
header.site-header.is-scrolled{
  background: rgba(53,53,53,0.85) !important; /* #353535 + 투명도 */
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* ================================
   HEADER SCROLL FINAL COLOR
================================ */

/* 스크롤 시 헤더 배경 */
header.is-scrolled,
header.site-header.is-scrolled{
  background: rgba(41,41,41,0.85) !important; /* #292929 + 투명도 */
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(255,255,255,.08);
}

/* 스크롤 시 메뉴 + 로고 텍스트 */
header.is-scrolled .nav a,
header.is-scrolled .brand-text,
header.is-scrolled .brand .text,
header.is-scrolled .phone-ring{
  color:#ffffff !important;
}

/* 햄버거 아이콘도 흰색 */
header.is-scrolled .hamburger span{
  background:#ffffff !important;
}

/* ========================================
   1. 전체 폰트 시스템 - 해상도 비례 조정
   ======================================== */

/* 기본 폰트 크기 - 해상도에 따라 모든 폰트가 비례 조정됨 */
html {
  /* 320px: 14px, 768px: 15px, 1024px: 16px, 1920px: 18px */
  font-size: clamp(14px, 0.875rem + 0.5vw, 18px);
}

body {
  font-size: 1rem; /* html 크기에 비례 */
  line-height: 1.6;
}

/* 제목 - rem 단위로 html 크기에 비례 */
h1, .hero-title {
  font-size: clamp(1.75rem, 3vw, 3.5rem); /* 24.5px ~ 63px */
  line-height: 1.2;
}

h2, .sec-head h2, .direct-title {
  font-size: clamp(1.5rem, 2.5vw, 2.625rem); /* 21px ~ 47.25px */
  line-height: 1.3;
}

h3, .wf-title {
  font-size: clamp(1.25rem, 2vw, 2rem); /* 17.5px ~ 36px */
  line-height: 1.3;
}

h4 {
  font-size: clamp(1.125rem, 1.75vw, 1.5rem); /* 15.75px ~ 27px */
  line-height: 1.4;
}

/* 본문 텍스트 - rem 단위 */
p, .hero-desc, .sec-head p {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem); /* 12.25px ~ 20.25px */
  line-height: 1.6;
}

/* 네비게이션 - rem 단위 */
.nav > a {
  font-size: clamp(1rem, 1.5vw, 1.25rem); /* 14px ~ 22.5px */
}

/* 버튼 - rem 단위 */
.btn, button {
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem); /* 12.25px ~ 19.125px */
  font-weight: 500;
}

/* 작은 텍스트 - rem 단위 */
small, .small {
  font-size: clamp(0.75rem, 1vw, 0.9375rem); /* 10.5px ~ 16.875px */
}

/* 카드 제목 - rem 단위 */
.card .t, .ctx .t {
  font-size: clamp(1rem, 1.5vw, 1.25rem); /* 14px ~ 22.5px */
  font-weight: 600;
}

/* 카드 설명 - rem 단위 */
.card .d, .ctx .d {
  font-size: clamp(0.8125rem, 1.1vw, 1rem); /* 11.375px ~ 18px */
  line-height: 1.6;
}

/* 푸터 - rem 단위 */
.footer-info {
  font-size: clamp(0.75rem, 1vw, 0.9375rem); /* 10.5px ~ 16.875px */
  line-height: 1.8;
}

.footer-small {
  font-size: clamp(0.6875rem, 0.9vw, 0.875rem); /* 9.625px ~ 15.75px */
}

/* 폼 요소 - rem 단위 */
label, .field label {
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem); /* 11.375px ~ 16.875px */
  font-weight: 500;
}

input, select, textarea {
  font-size: clamp(0.875rem, 1.2vw, 1rem); /* 12.25px ~ 18px */
}

/* ========================================
   모바일 최적화
   ======================================== */

@media (max-width: 768px) {
  /* 헤더 높이 축소 */
  :root {
    --headerH: 64px;
  }
  
  /* 모바일 네비게이션 간격 */
  .nav {
    gap: 20px;
  }
  
  /* 카드 그리드 1열 */
  .cards {
    grid-template-columns: 1fr !important;
  }
  
  /* 다이렉트 상품 카드 2열 */
  .direct-grid--4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  /* 섹션 패딩 축소 */
  .section {
    padding: 40px 0 !important;
  }
  
  /* 컨테이너 여백 */
  .section-inner {
    width: 94% !important;
    padding: 0 12px !important;
  }
  
  /* 슬라이더 높이 조절 */
  .hero-swiper {
    height: 60vh !important;
    min-height: 480px !important;
  }
  
  /* 버튼 크기 조절 */
  .btn {
    padding: 12px 20px !important;
    min-width: auto !important;
  }
  
  /* 푸터 정보 */
  .footer-info {
    font-size: clamp(12px, 1.5vw, 14px);
  }
}

/* ========================================
   태블릿 최적화
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  /* 다이렉트 상품 카드 3열 */
  .direct-grid--4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* 네비게이션 간격 축소 */
  .nav {
    gap: 40px;
  }
  
  /* 컨테이너 */
  .section-inner {
    width: 90%;
  }
}

/* ========================================
   작은 모바일 (360px 이하)
   ======================================== */

@media (max-width: 360px) {
  /* 폰트 크기 추가 축소 */
  html {
    font-size: 13px;
  }
  
  /* 다이렉트 상품 카드 1열 */
  .direct-grid--4 {
    grid-template-columns: 1fr !important;
  }
  
  /* 헤더 높이 더 축소 */
  :root {
    --headerH: 56px;
  }
  
  /* 버튼 패딩 축소 */
  .btn {
    padding: 10px 16px !important;
  }
}

/* ========================================
   큰 화면 최적화 (1920px 이상)
   ======================================== */

@media (min-width: 1920px) {
  /* 최대 폰트 크기 제한 */
  html {
    font-size: 18px;
  }
  
  /* 컨테이너 최대 너비 */
  .section-inner {
    max-width: 1600px;
  }
}

/* ========================================
   터치 디바이스 최적화
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  /* 터치 타겟 크기 증가 */
  button, a, .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* 호버 효과 제거 */
  .direct-card:hover {
    transform: none !important;
  }
  
  /* 카드 호버 효과 간소화 */
  .card:hover {
    transform: translateY(0) !important;
  }
}

/* ========================================
   다크모드 지원 (선택사항)
   ======================================== */

@media (prefers-color-scheme: dark) {
  /* 다크모드는 사용자 요청 시 활성화 */
  /* 현재는 비활성화 상태 유지 */
}

/* ========================================
   인쇄 최적화
   ======================================== */

@media print {
  /* 헤더/푸터/사이드바 숨김 */
  header, footer, .sidebar, .quickbar, .mobile-menu-btn {
    display: none !important;
  }
  
  /* 배경 이미지 제거 */
  body {
    background: white !important;
  }
  
  /* 링크 색상 */
  a {
    color: #000 !important;
    text-decoration: underline !important;
  }
}

/* ========================================
   모바일 메뉴 버튼 스타일 개선
   ======================================== */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  /* PC 네비게이션 숨김 */
  .nav {
    display: none !important;
  }
}

/* ========================================
   접근성 개선
   ======================================== */

/* 포커스 표시 */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 스킵 네비게이션 */
.skip-navigation {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-navigation:focus {
  top: 0;
}

/* 스크린 리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   전화 버튼 - 모바일/PC 공통 표시
   ======================================== */

.phone-ring {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: clamp(0.75rem, 1.3vw, 1.0625rem);
  font-weight: 600;
  white-space: nowrap;
}

/* 모바일에서 전화 버튼 크기 조정 */
@media (max-width: 768px) {
  .phone-ring {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem; /* 13px */
  }
}

@media (max-width: 480px) {
  .phone-ring {
    padding: 0.4rem 0.625rem;
    font-size: 0.75rem; /* 12px */
  }
}


/* ========================================
   4. 다이렉트 카드 텍스트 패딩 및 폰트 크기 조정
   ======================================== */

/* 다이렉트 카드 내부 텍스트 좌측 패딩 */
.direct-card .card-inner {
  padding: 1.5rem 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 다이렉트 카드 텍스트 요소들 */
.direct-kicker {
  font-size: clamp(0.6875rem, 1.2vw, 0.875rem); /* 9.6px ~ 15.75px */
  font-weight: 500;
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
  opacity: 0.85;
}

.direct-name {
  font-size: clamp(1.125rem, 2vw, 1.75rem); /* 15.75px ~ 31.5px */
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  line-height: 1.2;
}

.direct-desc {
  font-size: clamp(0.75rem, 1.3vw, 0.9375rem); /* 10.5px ~ 16.875px */
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
  line-height: 1.4;
  opacity: 0.9;
}

.direct-cta {
  padding-left: 0.25rem;
  font-size: clamp(0.8125rem, 1.2vw, 1rem); /* 11.375px ~ 18px */
  font-weight: 500;
}

/* 모바일에서 다이렉트 카드 폰트 크기 대폭 축소 (한 줄 유지) */
@media (max-width: 768px) {
  .direct-card .card-inner {
    padding: 1.25rem 1rem 1.25rem 1.5rem;
    gap: 0.375rem;
  }
  
  .direct-kicker {
    font-size: 0.625rem; /* 10px */
    margin-bottom: 0.125rem;
  }
  
  .direct-name {
    font-size: 0.9375rem; /* 15px - 한 줄 유지 */
    margin-bottom: 0.25rem;
    white-space: nowrap; /* 줄바꿈 방지 */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .direct-desc {
    font-size: 0.6875rem; /* 11px */
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .direct-cta {
    font-size: 0.75rem; /* 12px */
  }
  
  .direct-cta span {
    font-size: 0.75rem;
  }
}

/* 작은 모바일 (360px 이하) - 더 축소 */
@media (max-width: 360px) {
  .direct-card .card-inner {
    padding: 1rem 0.75rem 1rem 1.25rem;
    gap: 0.25rem;
  }
  
  .direct-kicker {
    font-size: 0.5625rem; /* 9px */
  }
  
  .direct-name {
    font-size: 0.875rem; /* 14px */
  }
  
  .direct-desc {
    font-size: 0.625rem; /* 10px */
  }
  
  .direct-cta {
    font-size: 0.6875rem; /* 11px */
  }
}

/* ========================================
   추가 특정 요소 폰트 조정 (rem 기반)
   ======================================== */

/* 모든 텍스트 요소에 반응형 폰트 적용 */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 섹션 제목 - rem 기반 */
.sec-head h2,
.sec-head .direct-title {
  font-size: clamp(1.5rem, 2.5vw, 2.625rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.sec-head p,
.sec-head .direct-sub {
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--muted);
}

/* 상조 상담 섹션 - rem 기반 */
.sangjo-title {
  font-size: clamp(1.375rem, 2.25vw, 2.25rem);
}

.sangjo-desc {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
}

/* Wide Funeral 섹션 - rem 기반 */
.wf-title {
  font-size: clamp(1.25rem, 2vw, 2.125rem);
  line-height: 1.4;
}

.wf-desc {
  font-size: clamp(0.8125rem, 1.1vw, 1rem);
  line-height: 1.7;
}

.wf-card__name {
  font-size: clamp(0.9375rem, 1.4vw, 1.1875rem);
  font-weight: 600;
}

/* ========================================
   모바일 헤더 레이아웃 개선
   ======================================== */

@media (max-width: 768px) {
  .gnbbar {
    padding: 8px 0;
    gap: 8px;
  }
  
  .brand {
    gap: 8px;
  }
  
  .brand .logo-img {
    width: 36px;
    height: 36px;
  }
  
  .brand .text {
    font-size: 18px;
  }
  
  .util {
    display: flex;
    align-items: center;
    gap: 0;
  }
}

/* ========================================
   슬라이더 텍스트와 페이지네이션 겹침 방지
   ======================================== */

/* 슬라이더 전체 높이 조정 */
@media (max-width: 768px) {
  .hero-swiper {
    min-height: 500px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
  }
  
  .hero-title {
    margin-bottom: 16px;
  }
  
  .hero-desc {
    margin-bottom: 20px;
  }
}

/* ========================================
   다이렉트 섹션 제목 간격
   ======================================== */

.direct-products .sec-head {
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .direct-products .sec-head {
    margin-bottom: 28px;
    padding: 0 12px;
  }
}

/* ========================================
   B. 모바일 고객센터 버튼 겹침 방지
   ======================================== */

@media (max-width: 768px) {
  .qb-cs {
    height: 100px; /* 120px → 100px */
    font-size: 13px; /* 폰트 축소 */
    letter-spacing: 0.15em; /* 간격 축소 */
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .qb-cs {
    height: 90px; /* 더 축소 */
    font-size: 12px;
    letter-spacing: 0.1em;
  }
}

/* ========================================
   C. 다이렉트 카드 폰트 더 축소 (짤림 방지)
   ======================================== */

@media (max-width: 768px) {
  .direct-name {
    font-size: 0.875rem !important; /* 15px → 14px */
  }
  
  .direct-kicker {
    font-size: 0.5625rem !important; /* 10px → 9px */
  }
  
  .direct-desc {
    font-size: 0.625rem !important; /* 11px → 10px */
  }
}

@media (max-width: 480px) {
  .direct-name {
    font-size: 0.8125rem !important; /* 14px → 13px */
  }
}

/* ========================================
   장례소개 - 모바일 2열 레이아웃
   ======================================== */

@media (max-width: 768px) {
  .wide-funeral__right {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .wf-card {
    min-height: 140px;
  }
  
  .wf-card__name {
    font-size: 0.875rem; /* 14px */
  }
}

@media (max-width: 480px) {
  .wf-card__name {
    font-size: 0.8125rem; /* 13px */
  }
}



/* =========================================================
  장례 후기 슬라이더 (풀폭 / PC 2개 / 자동 롤링 / 카드 강조 없음)
========================================================= */
.funeral-review{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  background:#ffffff;
  padding-top:64px;
  padding-bottom:78px;
}

/* 헤드 영역은 기존 80% 유지 */
.funeral-review .section-inner{padding-bottom:26px;}

/* 슬라이더는 화면 좌우 100% */
.funeral-review .review-slider{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  overflow:hidden;
}

/* 좌우 안전 여백(풀폭인데 가장자리 붙지 않게) */
.funeral-review .review-track{
  display:flex;
  transform:translate3d(0,0,0);
  will-change:transform;
  padding-left:max(18px, 5vw);  gap:32px; /* 후기 카드 간격 */
  padding-right:max(18px, 5vw);
}

/* 모바일/태블릿: 1개 */
.funeral-review .review-slide{
  flex:0 0 100%;
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  padding:22px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(15,23,42,.12);
  box-shadow:0 18px 40px rgba(2,8,23,.08);
  height:auto;
}

/* PC: 2개 + 전체 높이 키움(안의 img/text는 같이 따라감) */
@media (min-width:1024px){
  .funeral-review .review-slide{
    flex:0 0 calc((100% - 32px) / 2);
    grid-template-columns: 340px 1fr;   /* 이미지 영역 확대 */
    gap:28px;
    padding:28px;
    height: clamp(380px, 22vw, 460px); /* ✅ 전체 높이 기준 */
    align-items:stretch;               /* ✅ 내부가 높이 공유 */
  }
}

/* 이미지(부모 높이 기준으로 같이 커지고 같이 줄어듦) */
.funeral-review .review-img{
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(2,8,23,.18);
  height:100%;
}
.funeral-review .review-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* 텍스트(부모 높이 기준으로 같이 커지고 같이 줄어듦) */
.funeral-review .review-text{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  padding:10px 0;
}

/* 상단 라인 */
.funeral-review .review-text::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(15,23,42,.18), transparent);
}

.funeral-review .review-text h3{
  margin:10px 0 6px;
  font-size:22px;
  font-weight:1000;
  letter-spacing:-.04em;
  color:#0f172a;
}
.funeral-review .review-place{
  display:inline-block;
  margin:8px 0 14px;
  padding:6px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  background:rgba(12,123,209,.08);
  border:1px solid rgba(12,123,209,.18);
  color:#0f172a;
  width:max-content;
}
.funeral-review .review-text p{
  margin:0;
  padding-top:16px;
  border-top:1px dashed rgba(15,23,42,.14);
  color:var(--muted);
  line-height:1.85;
  font-weight:850;
  font-size:14.5px;
}

/* 도트 */
.funeral-review .review-dots{
  width:max-content;
  margin:18px auto 0;
  display:flex;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(2,6,23,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.funeral-review .review-dot{
  width:10px;height:10px;border-radius:999px;
  border:0;
  background:rgba(255,255,255,.55);
  cursor:pointer;
  transition:.18s ease;
}
.funeral-review .review-dot.is-active{
  background:rgba(255,255,255,.95);
  width:26px;
}

/* 모바일에서 높이 자동 */
@media (max-width:1023px){
  .funeral-review .review-img,
  .funeral-review .review-text{height:auto;}
  .funeral-review .review-img{aspect-ratio:16/9;}
}



@media (max-width:1023px){
  .funeral-review .review-track{gap:20px;}
}

/* =========================================================
  v3: 장례후기 배경(#0a244b) + 차분한 밝기 시프트(변화폭 최소)
  - 배경색은 고정, 오버레이 투명도만 미세하게 변화
========================================================= */
.funeral-review{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  position:relative;
  background:#0a244b;
  padding: clamp(56px, 5vw, 84px) 0;
  overflow:hidden;
}

/* 은은한 광(밝기) 오버레이 */
.funeral-review::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(900px 420px at 20% 35%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 360px at 80% 55%, rgba(255,255,255,.07), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.06));
  opacity:.12; /* 기본은 아주 약하게 */
  animation: reviewBgCalm 10s ease-in-out infinite;
}

@keyframes reviewBgCalm{
  0%,100%{ opacity:.10; }
  50%{ opacity:.15; } /* 변화폭 최소(차분) */
}

/* 섹션 헤더(어두운 배경용) */
.funeral-review .sec-head h2{ color:#ffffff; }
.funeral-review .sec-head p{ color:rgba(255,255,255,.78); }

/* 후기 카드(배경 위에서 또렷하게) */
.funeral-review .review-slide{
  background:#ffffff;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 26px 70px rgba(0,0,0,.28);
}

/* 도트 패널도 톤 다운 */
.funeral-review .review-dots{ background:rgba(255,255,255,.14); }
.funeral-review .review-dot{ background:rgba(255,255,255,.50); }
.funeral-review .review-dot.is-active{ background:rgba(255,255,255,.92); }

/* =========================================================
  v3: 후기 텍스트 6줄 고정 + 말줄임
========================================================= */
.funeral-review .review-text p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:6;
  overflow:hidden;
  text-overflow:ellipsis;
  max-height:calc(1.85em * 6);
  word-break:keep-all;
}


/* =========================================================
   v41: 모바일 메인슬라이드 1·2·3(페이지네이션) 위치/정렬 + 고객센터 세로 한줄 보정
========================================================= */

/* 모바일: 1·2·3 도트를 '가운데 하단'으로 */
@media (max-width: 640px){
  .hero-swiper .swiper-pagination{
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 22px !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .hero-swiper .swiper-pagination-bullet{
    margin: 0 6px !important; /* 기존 세로 margin 제거 */
  }
}

/* 고객센터(퀵바) 텍스트: 세로 한줄 고정 */
.quickbar .qb-btn.qb-cs{
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.28em !important;      /* 글자 사이(PC/모바일 공통) */
  white-space: nowrap !important;
  word-break: keep-all;
}



/* =========================================================
  v42: 1·2·3 링 - 투명 배경 유지 + 시계방향 회전(로딩 느낌)
========================================================= */
.hero-swiper .swiper-pagination{ background:transparent !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }

/* 활성 링: 시계방향으로 천천히 회전 */
@keyframes pSpin {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}
.hero-swiper .swiper-pagination-bullet-active .p-svg{
  animation: pSpin 2.8s linear infinite;
  transform-origin: 50% 50%;
}

/* 원 내부 배경은 항상 투명 */
.hero-swiper .swiper-pagination-bullet{
  background: transparent !important;
  box-shadow: none !important;
}




/* ================================
   v43: Hero pagination (1/2/3) - 투명 + 진행 링(시계방향) + autoplay 싱크
   - main.js에서 활성 bullet에 .is-anim 붙고 --heroDelay(ms) 주입
================================ */

/* 위치: PC는 좌측 가운데, 모바일은 가운데 하단 (가장 마지막 규칙으로 강제) */
.hero-swiper .swiper-pagination{
  position:absolute !important;
  left:40px !important;
  top:50% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:20px !important;
  padding:0 !important;
  background:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  border-radius:0 !important;
  z-index:20 !important;
}
@media (max-width:768px){
  .hero-swiper .swiper-pagination{
    left:50% !important;
    top:auto !important;
    bottom:100px !important; /* 기존(좋았던) 위치 유지 */
    transform:translateX(-50%) !important;
    flex-direction:row !important;
    gap:16px !important;
  }
}

/* bullet 기본: 배경 완전 투명 */
.hero-swiper .swiper-pagination-bullet{
  width:50px !important;
  height:50px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important; /* ✅ 배경 투명 */
  box-shadow:none !important;
  opacity:1 !important;
  cursor:pointer;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  transform:none !important;
}
@media (max-width:768px){
  .hero-swiper .swiper-pagination-bullet{width:44px !important;height:44px !important;}
}

/* 안쪽 래퍼 */
.hero-swiper .p-circle{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* 숫자 */
.hero-swiper .p-number{
  position:relative;
  z-index:2;
  font-size:20px;
  font-weight:800;
  color:rgba(255,255,255,.92);
  line-height:1;
}
@media (max-width:768px){
  .hero-swiper .p-number{font-size:18px;}
}

/* SVG 링 (진행 표시) */
.hero-swiper .p-ring{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:rotate(-90deg); /* 시작점: 12시 방향 */
  z-index:1;
}

/* 트랙(얇은 기본 테두리) */
.hero-swiper .p-ring__track{
  fill:none;
  stroke:rgba(255,255,255,.28);
  stroke-width:3;
}

/* 진행 바 (시계 방향으로 차오르는/그려지는 효과) */
.hero-swiper .p-ring__bar{
  fill:none;
  stroke:rgba(255,255,255,.92);
  stroke-width:3;
  stroke-linecap:round;
  stroke-dasharray:289;   /* 2πr (r=46) ≈ 289 */
  stroke-dashoffset:289;  /* 시작: 0% */
}

/* 활성 bullet에만 애니메이션 실행 */
.hero-swiper .swiper-pagination-bullet.is-anim .p-ring__bar{
  animation: heroRingProgress var(--heroDelay, 8000ms) linear forwards;
}

/* 클릭 전환/슬라이드 전환 시 재시작을 위해 기본은 즉시 리셋 */
.hero-swiper .swiper-pagination-bullet:not(.is-anim) .p-ring__bar{
  animation:none !important;
  stroke-dashoffset:289 !important;
}

@keyframes heroRingProgress{
  from{ stroke-dashoffset:289; }
  to  { stroke-dashoffset:0; } /* ✅ 한 바퀴(100%) 진행 */
}

/* hover 시 숫자만 살짝 선명 */
.hero-swiper .swiper-pagination-bullet:hover .p-number{
  color:#fff;
}

/* 고객센터(퀵바) 글자 간격: PC/모바일 모두 더 넓게 + 세로 1줄 유지 */
.quickbar .qb-btn.qb-cs{
  writing-mode:vertical-rl;
  text-orientation: upright; /* ✅ 두 줄로 갈라지는 현상 방지 */
  white-space:nowrap;
  letter-spacing:0.75em !important; /* ✅ PC/모바일 모두 넓게 */
}
@media (max-width:640px){
  .quickbar .qb-btn.qb-cs{
    letter-spacing:0.75em !important;
  }
}


/* =========================================================
  vNEW: 메달/국화(장식) 위치만 추가 (다른 요소 영향 없음)
========================================================= */

/* --- 메달: 상단 메달/서비스 인사 섹션 좌하단 --- */
.sangjo-consult{ position:relative; }
.sangjo-consult .sangjo-medal{
  position:absolute;
  /* 요청: 화면 가장자리에서 조금 더 안쪽으로 */
  left: clamp(56px, 8vw, 170px);
  bottom: clamp(46px, 4.5vw, 76px);
  width: clamp(120px, 12vw, 180px);
  height:auto;
  z-index:2;
  pointer-events:none;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.35));
  transform: translateZ(0);
  animation: medalGlow 3.6s ease-in-out infinite;
}

/* 메달 은은한 빛(반짝임) */
@keyframes medalGlow{
  0%,100%{ filter: drop-shadow(0 22px 40px rgba(0,0,0,.35)) brightness(1); }
  50%{ filter: drop-shadow(0 26px 52px rgba(0,0,0,.40)) brightness(1.06); }
}

/* 모바일에서 메달이 텍스트를 가리지 않게 살짝 축소/아래로 */
@media (max-width:1024px){
  .sangjo-consult .sangjo-medal{
    left: 36px;
    bottom: 34px;
    width: 120px;
    opacity: .95;
  }
}

/* --- 국화: 장례소개 섹션 좌하단 --- */
/* 기존 wf-flower 위치/크기 규칙 유지 + 실제 img를 얹어 표시 */
.wide-funeral .wf-flower{
  pointer-events:none;
  /* 요청: 좌/하단에서 조금 더 안쪽으로 */
  left:-10px;
  bottom:0px;
}
@media (max-width:1024px){
  .wide-funeral .wf-flower{ left:0px; bottom:0px; }
}
.wide-funeral .wf-flower .wf-flower-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:left bottom;
  display:block;
}



/* ===============================
   국화 & 메달 등장 애니메이션
================================ */

/* 공통 등장 효과 */
.animate-from-left {
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInLeft 1.2s ease-out forwards;
}

/* 메달 위치 조정 + 크기 애니메이션 */
.medal-img {
  position: absolute;
  bottom: 40px;
  left: 400px; /* 👉 오른쪽으로 200px 이동 */
  animation:
    slideInLeft 1.2s ease-out forwards,
    medalPulse 3.5s ease-in-out infinite;
}

/* 국화 위치 */
.flower-img {
  position: absolute;
  bottom: 40px;
  left: 40px;
  animation: slideInLeft 1.2s ease-out forwards;
}

/* 왼쪽에서 등장 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 메달 크기 반복 */
@keyframes medalPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}


/* ===============================
   Footer
================================ */
/* ===== Footer 레이아웃 ===== */
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start; /* 로고 → 정보 → 패밀리 순으로 고정 */
}

/* 1) 로고: 왼쪽에서 300px 띄워 시작 */
.footer-left{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:300px; /* ✅ 왼쪽 여백 300 */
}

/* 2) 로고 오른쪽 300px 띄우고 회사정보 시작 */
.footer-center{
  margin-left:300px;     /* ✅ 로고에서 오른쪽 300px 떨어져 시작 */
  text-align:left;
  font-size:12px;        /* ✅ 주소 폰트 12 */
  font-weight:300;
  line-height:1.15;      /* ✅ 줄간 완전 줄임 */
  color:#bfbfbf;
}

/* p 기본 마진까지 줄여서 “줄간 완전” 줄이기 */
.footer-center p{
  margin:2px 0;          /* ✅ 문단 간격 최소 */
}

/* 3) 패밀리사이트: 오른쪽에서 300px 띄우기 + 오른쪽 정렬 */
.footer-right{
  margin-left:auto;      /* 오른쪽 끝으로 밀기 */
  margin-right:300px;    /* ✅ 오른쪽에서 300px 띄움 */
}

/* ===== Family Site 펼침 ===== */
.family-site{ position:relative; }

.family-btn{
  background:transparent;
  border:1px solid #444;
  color:#fff;
  padding:8px 18px;
  cursor:pointer;
  font-size:14px;
}

.family-list{
  position:absolute;
  right:0;
  top:42px;
  background:#2a2a2a;
  border:1px solid #444;
  display:none;
  min-width:160px;
  z-index:9999;          /* ✅ 다른 요소에 가려져 클릭 안되는 현상 방지 */
}

.family-site.open .family-list{ display:block; }

.family-list li a{
  display:block;
  padding:10px 15px;
  color:#fff;
  text-decoration:none;
  font-size:13px;
}
.family-list li a:hover{ background:#444; }

/* ===============================
   FOOTER FINAL
================================ */
.site-footer{
  background:#1f1f1f;
  padding:40px 0;
  color:#ccc;
}

.footer-wrap{
  display:flex;
  width:100%;
  align-items:center;
}

/* 공통 컬럼 */
.footer-col{
  box-sizing:border-box;
}

/* LEFT 30% */
.footer-left{
  width:30%;
  display:flex;
  justify-content:center;
}

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

.footer-brand img{
  height:38px;
}

.footer-brand span{
  font-size:26px;
  font-weight:700;
  color:#fff;
}

/* CENTER 40% */
.footer-center{
  width:40%;
  text-align:left;
  font-size:12px;
  font-weight:300;
  line-height:1.15;        /* 줄간 최대한 좁게 */
  color:#bfbfbf;
}

.footer-center p{
  margin:2px 0;
}

.footer-center .copy{
  margin-top:6px;
  color:#8d8d8d;
}

/* RIGHT 30% */
.footer-right{
  width:30%;
  display:flex;
  justify-content:flex-end;
  padding-right:40px;
}

/* Family Site */
.family-site{
  position:relative;
}

.family-btn{
  background:transparent;
  border:1px solid #444;
  color:#fff;
  padding:8px 18px;
  font-size:14px;
  cursor:pointer;
}

.family-list{
  position:absolute;
  right:0;
  top:42px;
  background:#2a2a2a;
  border:1px solid #444;
  display:none;
  min-width:160px;
  z-index:9999;
}

.family-site.open .family-list{
  display:block;
}

.family-list li a{
  display:block;
  padding:10px 15px;
  font-size:13px;
  color:#fff;
  text-decoration:none;
}

.family-list li a:hover{
  background:#444;
}




/* =========================
   contact-l : 이미지처럼(좌측 안내영역)
========================= */
.contactl-imglike{
  background: #f3f3f3;
  padding: 46px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.contactl-imglike .cl-top{
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 좌측 작은 골드 마크(이미지처럼) */
.contactl-imglike .cl-mark{
  width: 40px;
  height: 40px;
  display: inline-block;
  background: var(--accent);
  border-radius: 10px;
  /* 간단한 “문양 느낌” */
  mask: radial-gradient(circle at 30% 35%, #000 12px, transparent 13px) ,
        radial-gradient(circle at 70% 35%, #000 12px, transparent 13px) ,
        radial-gradient(circle at 30% 70%, #000 12px, transparent 13px) ,
        radial-gradient(circle at 70% 70%, #000 12px, transparent 13px);
  -webkit-mask: radial-gradient(circle at 30% 35%, #000 12px, transparent 13px) ,
                radial-gradient(circle at 70% 35%, #000 12px, transparent 13px) ,
                radial-gradient(circle at 30% 70%, #000 12px, transparent 13px) ,
                radial-gradient(circle at 70% 70%, #000 12px, transparent 13px);
}

/* 상조365 타이틀 */
.contactl-imglike .cl-brand{
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  color: #000;
  line-height: 1.05;
}

/* 본문 문구 */
.contactl-imglike .cl-msg{
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 1.45;
  color: #0b1220;
}

/* 전화번호 */
.contactl-imglike .cl-phone{
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: 72px;
  color: var(--accent);
  text-shadow:
    -1.5px 0   0 currentColor,
     1.5px 0   0 currentColor,
     0   -1.5px 0 currentColor,
     0    1.5px 0 currentColor,
    -1.5px -1.5px 0 currentColor,
     1.5px  1.5px 0 currentColor,
    -1.5px  1.5px 0 currentColor,
     1.5px -1.5px 0 currentColor;
}

/* 기존 contact-l 기본 h3,p 스타일 영향 차단(선택) */
.contactl-imglike h3,
.contactl-imglike p{ margin:0; }

/* 반응형 */
@media (max-width: 1020px){
  .contactl-imglike{
    padding: 34px 22px;
    text-align: center;
    align-items: center;
  }
  .contactl-imglike .cl-top{ justify-content: center; }
  .contactl-imglike .cl-brand{ font-size: 34px; }
  .contactl-imglike .cl-msg{ font-size: 22px; }
  .contactl-imglike .cl-phone{ font-size: 46px; }
}


/* 상조365 로고 */
.contactl-imglike .cl-logo{
  width:50px;
  height:50px;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

/* 로고 + 텍스트 정렬 */
.contactl-imglike .cl-top{
  display:flex;
  align-items:center;
  gap:14px;
}
/* =========================
   contact-r 폼: 깨짐(작게 붙는 현상) 수정 + 요청 색상/포커스/버튼 반영
   - 핵심: width:100%를 "텍스트 입력"에만 적용(체크박스 제외)
========================= */

.contactr-formlike{
  padding: 34px 34px 30px;
}

/* 폼을 세로로 꽉 차게 정렬 */
.contactr-formlike .fr-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* 각 줄(필드)은 100% */
.contactr-formlike .fr-field{
  width:100%;
  margin:0;
}

/* ✅ 체크박스 제외: 텍스트/셀렉트/텍스트영역만 100% */
.contactr-formlike .fr-field input,
.contactr-formlike .fr-field select,
.contactr-formlike .fr-field textarea{
  width:100%;
  box-sizing:border-box;
  border:3px solid #bdbdbd !important;  /* 회색 테두리 */
  background:#f3fbff !important;        /* 연한 하늘색 */
  border-radius:8px;
  padding:16px 18px;
  font-size:22px;
  font-weight:900;
  color:#7a7a7a !important;
  outline:none;
}

/* placeholder */
.contactr-formlike .fr-field input::placeholder,
.contactr-formlike .fr-field textarea::placeholder{
  color:#7a7a7a !important;
  opacity:1;
  font-weight:900;
}

/* textarea 높이 */
.contactr-formlike .fr-textarea textarea{
  min-height:120px;
  resize:vertical;
  padding-bottom:54px;
}

/* 문의내용 안내문 */
.contactr-formlike .fr-textarea{ position:relative; }
.contactr-formlike .fr-help{
  position:absolute;
  left:18px;
  bottom:16px;
  font-size:16px;
  font-weight:800;
  color: rgba(122,122,122,.85) !important;
  pointer-events:none;
}

/* ✅ 포커스 시 배경색 변경 */
.contactr-formlike .fr-field input:focus,
.contactr-formlike .fr-field select:focus,
.contactr-formlike .fr-field textarea:focus{
  background:#fdf0ff !important;
  box-shadow:none !important;
  border-color:#bdbdbd !important;
}

/* 동의 박스(가로로 예쁘게, 줄바꿈 방지) */
.contactr-formlike .fr-agree{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  box-sizing:border-box;
  border:3px solid #bdbdbd !important;
  background:#f3fbff !important;
  border-radius:8px;
  padding:14px 16px;
  font-size:18px;
  font-weight:900;
  color:#7a7a7a !important;
}

/* ✅ 체크박스는 크기 고정(여기가 핵심!) */
.contactr-formlike .fr-agree input{
  width:18px !important;
  height:18px !important;
  flex:0 0 auto;
  accent-color:#2d86d9;
}

/* ✅ 상담신청 버튼: 중앙, 쉐도우 제거 */
.contactr-formlike .fr-submit{
  display:block;
  width:min(520px, 82%);
  margin: 6px auto 0;
  height:84px;
  border:0;
  border-radius:10px;
  background:#2d86d9 !important;
  color:#fff;
  font-size:34px;
  font-weight:1000;
  letter-spacing:-0.02em;
  cursor:pointer;
  box-shadow:none !important; /* 요청: 쉐도우 제거 */
}

.contactr-formlike .fr-submit:hover{
  transform:none !important;
  filter:brightness(1.02);
}

/* 모바일 */
@media (max-width:768px){
  .contactr-formlike{ padding:22px 18px 22px; }
  .contactr-formlike .fr-field input,
  .contactr-formlike .fr-field select,
  .contactr-formlike .fr-field textarea{
    font-size:18px;
    padding:14px 14px;
  }
  .contactr-formlike .fr-submit{
    height:72px;
    font-size:28px;
    width:88%;
  }
}

/* =========================
   메인 슬라이드 문구 위치 미세 조정
   (위로 + 오른쪽 이동)
========================= */

/* 슬라이드 텍스트 전체 래퍼 */
.hero-content{
  transform: translate(60px, -40px);
}

/* 태블릿 */
@media (max-width:1024px){
  .hero-content{
    transform: translate(40px, -28px);
  }
}

/* 모바일 */
@media (max-width:768px){
  .hero-content{
    transform: translate(16px, -18px);
  }
}
