/* 레이아웃 CSS */
@media all and (max-width:1024px) { 
    .footer_gnb .inner {padding-left: 0px !important; padding-right: 0px !important;}
    .footer_copy .inner {padding-left: 0px !important; padding-right: 0px !important;}
}


/* Base */
.site-footer{
  border-top:1px solid #eee;
  background:#fff;
  color:#666; font-size:13px; line-height:1.6;
}
.footer-inner{
  margin:0 auto;
  padding:20px 0;
  max-width: var(--rb-footer-width);
}

/* === 3열 + 2행 그리드 ===
   Row1: logo | nav  | cs
   Row2: logo | meta | cs
*/
.footer-grid{
  display:grid;
  grid-template-columns: 180px 1fr 140px; /* 필요시 폭 조절 */
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo nav  cs"
    "empty meta cs"
    "empty sns cs";
  gap:10px 16px;
  align-items:center;
}

/* 로고 (두 행 병합) */
.footer-logo{ grid-area: logo; align-self:center; }
.brand{ display:inline-flex; align-items:center; gap:10px; color:inherit; text-decoration:none; }
.brand-img{ max-width:160px; height:auto; display:inline-block; }
.brand-text{ display:none; font-weight:700; font-size:18px; letter-spacing:-.2px; }
/* 이미지 없으면 텍스트 로고 */
.brand-img[src=""], .brand-img:not([src]){ display:none; }
.brand-img[src=""], .brand-img:not([src]) + .brand-text{ display:inline-block; }

/* 메뉴 (가운데 1행) */
.footer-nav{
  grid-area: nav;
  display:flex; flex-wrap:wrap;
  gap:10px 14px;
  justify-content:flex-start;
  color:#777;
  font-size: 14px;
}
.footer-nav a{ text-decoration:none; color:inherit; white-space:nowrap; padding:2px 0; }
.footer-nav a:not(:last-child)::after{
  content:""; display:inline-block; width:1px; height:12px; background:#ddd;
  margin-left:20px; position:relative; top:2px;
}

/* 사이트 정보 (가운데 2행) */
.footer-meta{ grid-area: meta; color:#777; align-self:start; }
.footer-meta p{ margin:4px 0; word-break: auto-phrase; }
.footer-meta p span:not(:last-child)::after{ content:"|"; color:#ddd; margin:0 8px; }
.footer-meta a{ color:inherit; text-decoration:none; }
.footer-meta a:hover{ text-decoration:underline; }
.footer-meta p.copyright {margin-top: 20px;}

/* 고객센터 (두 행 병합) */
.footer-cs{ grid-area: cs; display:flex; gap:10px; justify-content:flex-end; align-self:baseline; font-size: 16px; }

.footer-sns { grid-area: sns; display: flex; align-items: flex-start; gap:10px; }
.cs-label{ color:#555; font-weight:600; letter-spacing:-.2px; }

/* Responsive */
@media (max-width: 1024px){
  .footer-inner { max-width: 100%; padding:20px; }
  .footer-nav a:not(:last-child)::after {margin-left:10px;}
  .footer-nav {justify-content: center; gap: 10px 10px; font-size: 12px;}
  .footer-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav"
      "meta"
      "cs";
    grid-template-rows: auto;
    gap:8px 0;
  }
  .footer-grid > div { text-align: center; justify-content: center; margin: 15px 0; }
  .footer-cs{ justify-content:flex-start; margin-top: 10px; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark){
  .site-footer{ background:#0b0b0b; color:#b7b7b7; border-top-color:#1d1d1d; }
  .footer-nav a:not(:last-child)::after{ background:#2a2a2a; }
  .footer-meta p span:not(:last-child)::after{ color:#2a2a2a; }
  .cs-label{ color:#ddd; }
}
/* ===== 모바일 하단 탭바 (자영업나라 SVG 아이콘 버전) ===== */
:root {
  --jy-main: #2563eb;  /* 메인 블루 (살짝 톤 다운) */
  --jy-sub:  #0ea5e9;  /* 서브 포인트 (하늘색) */
  --jy-text: #111827;  /* 진한 텍스트 */
  --jy-muted:#6b7280;  /* 보조 텍스트 */
  --jy-line: #9ca3af;  /* 아이콘 라인 기본색 */
}

.mo-tabbar.jy-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: none; /* 모바일에서만 표시 */
  z-index: 9999;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
}

/* 공통 아이템 스타일 */
.mo-tabbar.jy-tabbar .mo-tab-item {
  flex: 1;
  border: 0;
  background: none;
  margin: 0;
  padding: 7px 0 4px;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--jy-muted);
  font-size: 11px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

/* SVG 아이콘 공통 스타일 */
.mo-tabbar.jy-tabbar .jy-icon {
  width: 22px;
  height: 22px;
  stroke: var(--jy-line);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mo-tabbar.jy-tabbar .mo-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.mo-tabbar.jy-tabbar .mo-tab-label {
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* 가운데 메인 탭 (창업·상권분석) – 동그라미 유지 */
.mo-tabbar.jy-tabbar .mo-tab-main {
  position: relative;
  margin-top: -16px;
}

/* 중앙 상권분석 버튼 – 눈 편한 화이트 스타일 */
.mo-tabbar.jy-tabbar .mo-tab-main .mo-tab-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #ffffff;  
  border: 1.3px solid #d1d5db;  /* 연한 회색 라인 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 은은한 그림자 */
  margin-bottom: 4px;
}

/* 아이콘 색상 그레이 */
.mo-tabbar.jy-tabbar .mo-tab-main .jy-icon {
  stroke: #374151;   /* 진회색 라인 */
}

/* 라벨도 진한 회색 */
.mo-tabbar.jy-tabbar .mo-tab-main .mo-tab-label {
  font-weight: 700;
  color: #374151;
}

/* 눌렀을 때 살짝만 피드백 */
.mo-tabbar.jy-tabbar .mo-tab-item:active {
  background: rgba(148, 163, 184, 0.06);
  transform: translateY(1px);
}

/* 추후 현재 페이지 표시용 예시 (원하면 bo_table 따라 클래스 붙여도 됨) */
.mo-tabbar.jy-tabbar .mo-tab-item.is-active {
  color: var(--jy-text);
}
.mo-tabbar.jy-tabbar .mo-tab-item.is-active .jy-icon {
  stroke: var(--jy-main);
}

/* 모바일에서만 보이게 */
@media (max-width: 768px) {
  .mo-tabbar.jy-tabbar {
    display: flex;
  }

  body {
    padding-bottom: 62px; /* 탭바만큼 여백 */
  }
}

/* ===== 카카오톡 채널 플로팅 버튼 ===== */
.jy-kakao-floating {
  position: fixed;
  right: 18px;
  bottom: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.jy-kakao-close {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  white-space: nowrap;
}

.jy-kakao-close:hover {
  background: rgba(15, 23, 42, 0.95);
}

.jy-kakao-link {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fae300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  text-decoration: none;
  position: relative; /* +배지 위치 잡기 위해 추가 */
}

.jy-kakao-link img {
  width: 32px;
  height: 32px;
  display: block;
}

/* 오른쪽 위 + 배지 */
.jy-kakao-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #16a34a; /* 초록 + (원하면 #2563eb 등으로 바꿔도 됨) */
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.25);
  pointer-events: none; /* 클릭은 전체 버튼에만 가도록 */
}

/* 모바일에서는 탭바 위로 살짝 띄우기 */
@media (max-width: 768px) {
  .jy-kakao-floating {
    right: 14px;
    bottom: 80px; /* 모바일 탭바(62px) 위로 올라가도록 여유 */
  }
}